Bug 1488122 - [cns-deploy]: gluster-block setup fails
Summary: [cns-deploy]: gluster-block setup fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: CNS-deployment
Version: cns-3.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: CNS 3.6
Assignee: Jose A. Rivera
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1445448 1468110 1480124
TreeView+ depends on / blocked
 
Reported: 2017-09-04 11:36 UTC by krishnaram Karthick
Modified: 2018-12-14 11:27 UTC (History)
12 users (show)

Fixed In Version: cns-deploy-5.0.0-30.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-11 07:12:11 UTC
Embargoed:


Attachments (Terms of Use)
cns-deploy logs (103.46 KB, text/plain)
2017-09-04 11:52 UTC, krishnaram Karthick
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2881 0 normal SHIPPED_LIVE cns-deploy-tool bug fix and enhancement update 2017-10-11 11:11:43 UTC

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


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