Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-24375

oc process command fails while running it with a template file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 4.15.0
    • 4.12.z
    • oc
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None
    • NA
    • Release Note Not Required
    • In Progress

      Description of problem:

      oc process command fails while running it with a template file

      Version-Release number of selected component (if applicable):

      4.12.41

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create a new project and a template file 
      $ oc new-project test
      $ oc get template httpd-example -n openshift -o yaml > /tmp/template_http.yaml 
      
      2. Run oc process command as given below
      $ oc process -f /tmp/template_http.yaml 
      error: unable to process template: the namespace of the provided object does not match the namespace sent on the request
      
      3. When we run this command as a template from other namespace it runs fine.
      $ oc process openshift//httpd-example
      
      4. $ oc version
      Client Version: 4.12.41
      Kustomize Version: v4.5.7
      Server Version: 4.12.42
      Kubernetes Version: v1.25.14+bcb9a60
      

      Actual results:

      $ oc process -f /tmp/template_http.yaml
      error: unable to process template: the namespace of the provided object does not match the namespace sent on the request

      Expected results:

      Command should display the output of resources it will create

      Additional info:

          

              aguclu@redhat.com Arda Guclu
              rhn-support-pkhilare Pawan Khilare
              Rama Kasturi Narra Rama Kasturi Narra
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: