Bug 1488122

Summary: [cns-deploy]: gluster-block setup fails
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: krishnaram Karthick <kramdoss>
Component: CNS-deploymentAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED ERRATA QA Contact: krishnaram Karthick <kramdoss>
Severity: high Docs Contact:
Priority: unspecified    
Version: cns-3.6CC: akhakhar, annair, hchiramm, jarrpa, madam, mliyazud, mzywusko, pprakash, rhs-bugs, rreddy, rtalur, sselvan
Target Milestone: ---   
Target Release: CNS 3.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cns-deploy-5.0.0-30.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-11 07:12:11 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: 1445448, 1468110, 1480124    
Attachments:
Description Flags
cns-deploy logs none

Description krishnaram Karthick 2017-09-04 11:36:21 UTC
Description of problem:

While setting up gluster-block via cns-deploy, following command fails.

/usr/bin/oc -n storage-project policy add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:storage-project:glusterblock-provisioner 2>&1
error: unknown command "add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:storage-project:glusterblock-provisioner"

snippet of cns-deploy:
----------------------
Ready to create and provide GlusterFS volumes.
/usr/bin/oc -n storage-project create -f /usr/share/heketi/templates/glusterblock-config.yaml
/usr/bin/oc -n storage-project create -f /usr/share/heketi/templates/glusterblock-config.yaml
clusterrole "glusterblock-provisioner-runner" created
serviceaccount "glusterblock-provisioner" created
/usr/bin/oc -n storage-project policy add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:storage-project:glusterblock-provisioner 2>&1
/usr/bin/oc -n storage-project policy add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:storage-project:glusterblock-provisioner 2>&1
error: unknown command "add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:storage-project:glusterblock-provisioner"
See 'oc policy -h' for help and examples.
/usr/bin/oc -n storage-project create -f /usr/share/heketi/templates/glusterblock-provisioner.yaml
/usr/bin/oc -n storage-project create -f /usr/share/heketi/templates/glusterblock-provisioner.yaml
deploymentconfig "glusterblock-provisioner" created
Waiting for glusterblock-provisioner pod to start ... 
Checking status of pods matching '--selector=glusterfs=block-provisioner-pod':

p.s., complete set of cns-deploy log shall be attached.

Version-Release number of selected component (if applicable):
cns-deploy-5.0.0-29.el7rhgs.x86_64

How reproducible:
always

Steps to Reproduce:
1. setup gluster-block via cns-deploy

Comment 2 krishnaram Karthick 2017-09-04 11:38:09 UTC
gluster-block cannot be setup via cns-deploy with this bug. Raising a blocker to get this bug fixed for cns 3.6

Comment 3 krishnaram Karthick 2017-09-04 11:52:36 UTC
Created attachment 1321805 [details]
cns-deploy logs

Comment 5 krishnaram Karthick 2017-09-07 08:55:21 UTC
gluster-block setup works in build - cns-deploy-5.0.0-32.el7rhgs

moving the bug to verified.

Comment 7 errata-xmlrpc 2017-10-11 07:12:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2881