Bug 1418990
Summary: | Number of replicas and pods mismatch | ||
---|---|---|---|
Product: | OKD | Reporter: | Eduard Trott <etrott> |
Component: | Deployments | Assignee: | Michal Fojtik <mfojtik> |
Status: | CLOSED NOTABUG | QA Contact: | zhou ying <yinzhou> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 3.x | CC: | abhgupta, aos-bugs, wmeng, yinzhou |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | online_3.4.1 | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-09 09:47:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eduard Trott
2017-02-03 11:28:57 UTC
replicationcontroller myapp-1 is controlled by deploymentconfig myapp. in step 3, RC replicas was set to 2, then DC set it back to 2, result in a pod is created and then deleted. # oc describe dc myapp <---snip---> Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 8m 8m 1 {deploymentconfig-controller } Normal DeploymentCreated Created new replication controller "myapp-1" for version 1 2m 2m 1 {deploymentconfig-controller } Normal ReplicationControllerScaled Scaled replication controller "myapp-1" from 2 to 1 if we do this # oc scale dc/myapp --replicas=2 we got # oc describe rc/myapp-1 <---snip---> Replicas: 2 current / 2 desired Pods Status: 1 Running / 1 Waiting / 0 Succeeded / 0 Failed No volumes. Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 8m 8m 1 {replication-controller } Normal SuccessfulCreate Created pod: myapp-1-m4lhw 1m 1m 1 {replication-controller } Normal SuccessfulCreate Created pod: myapp-1-uceuq 1m 1m 1 {replication-controller } Normal SuccessfulDelete Deleted pod: myapp-1-uceuq 7s 7s 1 {replication-controller } Normal SuccessfulCreate Created pod: myapp-1-oxfqa # oc describe dc/myapp <---snip---> Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 8m 8m 1 {deploymentconfig-controller } Normal DeploymentCreated Created new replication controller "myapp-1" for version 1 2m 2m 1 {deploymentconfig-controller } Normal ReplicationControllerScaled Scaled replication controller "myapp-1" from 2 to 1 20s 20s 1 {deploymentconfig-controller } Normal ReplicationControllerScaled Scaled replication controller "myapp-1" from 1 to 2 Are we ok closing this bug as not a bug? You should never scale RC manually if it is controlled by DC as you pointed out. The describe output you provided when you scaled DC seems OK (1 running, 1 waiting = 2 pods in total matching 2 replicas). Moving this bug to origin to decide if we want to fix this or close as won't-fix. |