Bug 1676701 - Scaling objects controlled by an operator
Summary: Scaling objects controlled by an operator
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.1.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: 4.1.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1664187
TreeView+ depends on / blocked
 
Reported: 2019-02-12 21:55 UTC by Matthew Witzenman
Modified: 2019-03-12 14:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-18 14:43:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matthew Witzenman 2019-02-12 21:55:54 UTC
Description of problem: Within the web ui in OCP 4.0 the ability to scale a deployment that is controlled by an operator does not work as expected, the operator scales it back to the original replicas


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


How reproducible: login to the web ui and scale the OCP router that resides in the openshift-ingress


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jakub Hadvig 2019-02-13 11:50:52 UTC
This works by design. The purpose of the operator is to keep the specified number or replicas, which is 1 in this case.

Comment 2 Jared Hocutt 2019-02-13 14:06:08 UTC
It's understood that the operator is configured to keep the replicas at 1 (in this case).

However, because of this, it renders the UI to change replicas to not work as expected. This needs to be fixed.

Comment 3 Matthew Witzenman 2019-02-13 18:38:35 UTC
It would be out suggestion that in the case of something like the router pod that one of the following would happen:

1 grey out the ability to scale that pod via the current web ui

or

2 the scaling function makes the proper call behind the scenes such as this command from the cli: 

oc scale clusteringresses default --replicas 3

Comment 4 Samuel Padgett 2019-02-18 14:43:52 UTC
This is a feature, not a bug! The operator makes sure the deployment is in the correct state. You should not be modifying these resources directly.

There's no good way for the web console to know what resources and what specific fields each operator controls. It's not limited to scaling, but any field in any resource controlled by an operator. This is not specific to the web console, either. You could change the fields using the CLI, and the changes would be overwritten. Additionally, there is an option to mark some operators as "unmanaged" where you can change these values, and we wouldn't want to block users from making these changes in the UI.

If I delete a pod that's part of a replica set, the pod automatically gets recreated. We don't block the delete action in the UI, however. I see this as being very similar.


Note You need to log in before you can comment on or make changes to this bug.