Bug 1398504 - Prompt info is not suitable when scale rc with dc
Summary: Prompt info is not suitable when scale rc with dc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: Xingxing Xia
URL:
Whiteboard:
: 1398502 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-25 03:36 UTC by Yanping Zhang
Modified: 2019-08-21 09:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-21 09:10:15 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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