Bug 1398504

Summary: Prompt info is not suitable when scale rc with dc
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: low    
Version: 3.4.0CC: aos-bugs, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-21 09:10:15 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:

Description Yanping Zhang 2016-11-25 03:36:52 UTC
Description of problem:
Now scale a rc with dc is not supported, but when scale a rc with dc, it prompts info that the rc is scaled, in fact it doesn't.

Version-Release number of selected component (if applicable):
oc v3.4.0.29+ca980ba


How reproducible:
Always

Steps to Reproduce:
1.Create rc with dc.
# oc run testdc --image=aosqe/hello-openshift 
deploymentconfig "testdc" created
# oc get pod 
NAME             READY     STATUS      RESTARTS   AGE
testdc-1-pliqq   1/1       Running     0          15s

2.Scale the rc
# oc scale rc/testdc-1 --replicas=2 
replicationcontroller "testdc-1" scaled

3.Check the pod and rc.
# oc get pod
NAME             READY     STATUS      RESTARTS   AGE
testdc-1-pliqq   1/1       Running     0          46s
# oc get rc -n prozyp
NAME       DESIRED   CURRENT   READY     AGE
testdc-1   1         1         1         1m

Actual results:
2. It prompts info that the rc is scaled.
3. The rc is not scaled and pod number is not increased.

Expected results:
2.Should show proper info that the rc can not be scaled.

Additional info:

Comment 1 Weihua Meng 2016-11-25 04:44:34 UTC
seems this is the way deploymentconfig works.

# oc describe rc/testdc-1
Events:
  FirstSeen	LastSeen	Count	From				SubobjectPath	Type		Reason			Message
  ---------	--------	-----	----				-------------	--------	------			-------
  1m		1m		1	{replication-controller }			Normal		SuccessfulCreate	Created pod: testdc-1-zw6p0
  24s		24s		1	{replication-controller }			Normal		SuccessfulCreate	Created pod: testdc-1-osz0j
  24s		24s		1	{replication-controller }			Normal		SuccessfulDelete	Deleted pod: testdc-1-osz0j

# oc describe dc/testdc
Events:
  FirstSeen	LastSeen	Count	From				SubobjectPath	Type		Reason				Message
  ---------	--------	-----	----				-------------	--------	------				-------
  1m		1m		1	{deploymentconfig-controller }			Normal		DeploymentCreated		Created new replication controller "testdc-1" for version 1
  38s		38s		1	{deploymentconfig-controller }			Normal		ReplicationControllerScaled	Scaled replication controller "testdc-1" from 2 to 1

Comment 2 Juan Vallejo 2017-01-30 19:33:03 UTC
*** Bug 1398502 has been marked as a duplicate of this bug. ***

Comment 3 Maciej Szulik 2019-08-21 09:10:15 UTC
This was addressed in one of the next releases.