Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23412

Scale To: wrong number of replicas is shown if invoked right after "Deploy latest"

XMLWordPrintable

    • 8
    • Hide

      The following steps can be seen in the following screencast:
      scale-to-shows-old-rc.ogv

      1. ASSERT: have an app running (ex. nodejs-example)
      2. ASSERT: In OpenShift Explorer: make sure it has at least 1 pod: pick "Scale To" in the context menu of the service. Dialog shows that there's at least 1 pod currently
      3. ASSERT: in OpenShift Explorer: there 1 pod shown as child to the service.
      4. ASSERT: in Properties view, pick "Deployments" tab and see that there's at least 1 deployment (aka replication controller)
      5. EXEC: in OpenShift explorer: select Service pick "Deploy Latest"
      6. ASSERT: in Properties view: "Deployments" now shows 2 Deployments
      7. ASSERT: in OpenShift Explorer you now see 2 children/pods
      8. EXEC: in OpenShift Explorer: pick "Scale To..." in the context menu of the service

      Result:
      The current number of pods is shown as 0.

      But it's very sure that this is not true. Behind the scenes a new replication controller was created which deployed a new pod:

      The old replication controller was turned to have 0 pods. The "Scale To" dialog shows the number of replcas for the old replication controller.

      Show
      The following steps can be seen in the following screencast: scale-to-shows-old-rc.ogv ASSERT: have an app running (ex. nodejs-example) ASSERT: In OpenShift Explorer: make sure it has at least 1 pod: pick "Scale To" in the context menu of the service. Dialog shows that there's at least 1 pod currently ASSERT: in OpenShift Explorer: there 1 pod shown as child to the service. ASSERT: in Properties view, pick "Deployments" tab and see that there's at least 1 deployment (aka replication controller) EXEC: in OpenShift explorer: select Service pick "Deploy Latest" ASSERT: in Properties view: "Deployments" now shows 2 Deployments ASSERT: in OpenShift Explorer you now see 2 children/pods EXEC: in OpenShift Explorer: pick "Scale To..." in the context menu of the service Result: The current number of pods is shown as 0. But it's very sure that this is not true. Behind the scenes a new replication controller was created which deployed a new pod: The old replication controller was turned to have 0 pods. The "Scale To" dialog shows the number of replcas for the old replication controller.
    • Workaround Exists
    • Hide

      Restart Eclipse

      Show
      Restart Eclipse

      1. scale-to-shows-old-rc.ogv
        6.81 MB
      2. replicas-0.png
        replicas-0.png
        16 kB
      3. rc2-replicas-1.png
        rc2-replicas-1.png
        41 kB
      4. rc-1-replicas-0.png
        rc-1-replicas-0.png
        43 kB

            adietish@redhat.com André Dietisheim
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: