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

In DeploymentConfig the selector and labels values are changed when an image is changed from GUI console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • 4.13
    • 4.11
    • Dev Console
    • Moderate
    • ODC Sprint 230
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      In DeploymentConfig the selector and labels values are changed when an image is changed from console and this happens only for the key "app: <value>"
      If there is no key app added then it by-default adds that key when an image is changed from GUI.
      
      

       

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

      4.11.13

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a DC with selector and labels as given below
      spec:
        replicas: 1
        selector:
          app: apigateway
          deploymentconfig: qa-apigateway
          environment: qa
        strategy:
          activeDeadlineSeconds: 21600
          resources: {}
          rollingParams:
            intervalSeconds: 1
            maxSurge: 25%
            maxUnavailable: 25%
            timeoutSeconds: 600
            updatePeriodSeconds: 1
          type: Rolling
        template:
          metadata:
            labels:
              app: apigateway
              deploymentconfig: qa-apigateway
              environment: qa
      
      2. Once the pods are running, edit the DC from CLI and modify the image to other version and save it. The new pod is deployed but there are no modifications in "app: apigateway" under selector and labels
      
      3. Now go to GUI--> Workloads--> DeploymentConfig --> Actions--> Edit DeploymentConfig, in Form view, change the Image Name, Save it and view the selector and labels for "app: apigateway", it is changed to some other value.
      

      Actual results:

       

      Expected results:

      The values should not change

      Additional info:

       

       

       

            rh-ee-lprabhu Lokananda Prabhu
            rhn-support-pkhilare Pawan Khilare
            Sanket Pathak Sanket Pathak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: