]
Radim Hopp closed JBIDE-23662.
------------------------------
Verified in Devstudio 10.3.0.AM2. Closing
Scaling To/Up/Down: causes error message (from OpenShift API)
reporting outdated objects
----------------------------------------------------------------------------------------
Key: JBIDE-23662
URL:
https://issues.jboss.org/browse/JBIDE-23662
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.4.2.Final
Reporter: Ricardo Martinelli Oliveira
Assignee: Andre Dietisheim
Labels: openshift_v3, scaling_pods_wizard
Fix For: 4.4.3.AM2
Attachments: scale-error-object-modified.png
Every Scale option I select in the OpenShift Explorer view show this error:
Unable to scale guestbook-service
Exception trying to PUT
https://10.1.2.2:8443/api/v1/namespaces/sample-project/replicationcontrol...
response code: 409 Operation cannot be fulfilled on replicationcontrollers
"guestbook-service-2": the object has been modified; please apply your changes
to the latest version and try again
However, the scale command is executed successfuly.
Steps to reproduce:
# ASSERT: make sure that you have a service with at least 1 pod running in OpenShift
# EXEC: in OpenShift Explorer: select your service and pick "Scale > To" in
the context menu
# ASSERT: "Scale Deployment" dialog is shown, prefilled with the current number
of replicas
# EXEC: change the replicas to a high number (ex. 6 is working well for me to cause the
error)
# ASSERT: you get the error, if not process with next step
# EXEC: in OpenShift Explorer: select your service and pick "Scale > To" in
the context menu and scale down to "1" replica
Result:
either you now get the error above or you need to scale back up etc.
!scale-error-object-modified.png!