Bug 1667022

Summary: [DOCS] oc volume command change to oc set command in 3.11 version
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Camino Noguera <mnoguera>
Component: doc-Container_Native_Storage_with_OpenShiftAssignee: Chandrakanth Pai <chpai>
Status: CLOSED CURRENTRELEASE QA Contact: RamaKasturi <knarra>
Severity: low Docs Contact:
Priority: unspecified    
Version: ocs-3.11CC: aos-bugs, asriram, chpai, jokerman, knarra, mmccomas, rhs-bugs, sankarshan, storage-doc
Target Milestone: ---Keywords: ZStream
Target Release: OCS 3.11.z Batch Update 2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-01 06:08:24 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:
Bug Depends On:    
Bug Blocks: 1672844    
Attachments:
Description Flags
Attaching the pdf where the bug is verified none

Description Camino Noguera 2019-01-17 09:24:16 UTC
I am trying to move the default OCP registry to a Gluster registry as [1].

Getting the below error:

$ oc volume dc/docker-registry --add --name=gluster-registry-storage -m /gluster-registry -t pvc --claim-name=gluster-registry-claim
Error: unknown command "volume" for "oc"
Run 'oc --help' for usage



command needs to be replaced with:

[quicklab@master-0 ~]$ oc set volume dc/docker-registry --add --name=gluster-registry-storage -m /gluster-registry -t pvc --claim-name=gluster-registry-claim
deploymentconfig.apps.openshift.io/docker-registry volume updated





[1]https://access.redhat.com/documentation/en-us/red_hat_openshift_container_storage/3.11/html/operations_guide/ch09s02

Comment 1 Camino Noguera 2019-01-17 09:28:36 UTC
oc version
oc v3.11.59
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://master-0.caminogluster.lab.pnq2.cee.redhat.com:443
openshift v3.11.59
kubernetes v1.11.0+d4cacc0

Comment 2 Camino Noguera 2019-01-17 11:28:09 UTC
Command executed at point 20 should be also replaced.

$ oc volume dc/docker-registry --add --name=registry-storage -t pvc --claim-name=gluster-registry-claim --overwrite
Error: unknown command "volume" for "oc"
Run 'oc --help' for usage.

$ oc set volume dc/docker-registry --add --name=registry-storage -t pvc --claim-name=gluster-registry-claim --overwrite
deploymentconfig.apps.openshift.io/docker-registry volume updated

Comment 5 Chandrakanth Pai 2019-03-06 08:37:22 UTC
Moved to MODIFIED state as the BZ still does not have PM ack.

Comment 6 Chandrakanth Pai 2019-03-07 06:45:06 UTC
Moving to ON_QA as we have received the PM ack

Comment 7 RamaKasturi 2019-03-18 18:09:15 UTC
Verified in the pdf provided by doc team and the changes looks good to me.


Moving the bug to verified state.

Comment 8 RamaKasturi 2019-03-18 18:10:28 UTC
Created attachment 1545410 [details]
Attaching the pdf where the bug is verified