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

Dev console buildconfig got [the server does not allow this method on the requested resource] error when not setting metadate.namespace

XMLWordPrintable

    • No
    • ODC Sprint 3251, ODC Sprint 3252, ODC Sprint 3253
    • 3
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      Dev console buildconfig got [the server does not allow this method on the requested resource] error when not setting metadate.namespace

      How reproducible:

      Test case is shown in below 

      Steps to Reproduce:

      Using below to create a Buildconfig in GUI page of 
      openshift console -> Developer -> Builds -> Create BuildConfig -> yaml view
      
      
        
      ~~~
      apiVersion: build.openshift.io/v1
      kind: BuildConfig
      metadata:
        name: mywebsite
        labels:
          name: mywebsite
      spec:
        triggers:
        - type: ImageChange
          imageChange: {}
        - type: ConfigChange
        source:
          type: Git
          git:
            uri: https://github.com/monodot/container-up
          contextDir: httpd-hello-world
        strategy:
          type: Docker
          dockerStrategy:
            dockerfilePath: Dockerfile
            from:
              kind: ImageStreamTag
              name: httpd:latest 
              namespace: testbuild
        output:
          to:
            kind: ImageStreamTag
            name: mywebsite:latest 
      ~~~

      Actual results:

      Get  [the server does not allow this method on the requested resource] error 

      Expected results:

      we can find even not setting metadata.namespace in CLI mode or by contact from the customer that in 4.11 GUI console will not trigger this error, Does that mean the code changed in 4.13 ? 

            rh-ee-lprabhu Lokananda Prabhu
            rhn-support-jayu Jacob Yu
            Sanket Pathak Sanket Pathak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: