Description of problem: cns-deployment fails while trying to setup heketidb. complete set of output shall be attached to the bug. snippet of cns-deploy: ======================= Determining heketi service URL ... OK /usr/bin/oc -n storage-project exec -it deploy-heketi-1-tm804 -- heketi-cli -s http://localhost:8080 --user admin --secret '' topology load --json=/etc/heketi/topology.json 2>&1 /usr/bin/oc -n storage-project exec -it deploy-heketi-1-tm804 -- heketi-cli -s http://localhost:8080 --user admin --secret '' topology load --json=/etc/heketi/topology.json 2>&1 Creating cluster ... ID: 725813542ba5a84fe7bb6094d853c2cf Allowing file volumes on cluster. Allowing block volumes on cluster. Creating node dhcp46-199.lab.eng.blr.redhat.com ... ID: e727788f8c649d4d466254d2e8a38c01 Adding device /dev/sdd ... OK Creating node dhcp46-203.lab.eng.blr.redhat.com ... ID: 69c94ef81c6ee81bf94951ce900ff260 Adding device /dev/sdd ... OK Creating node dhcp46-197.lab.eng.blr.redhat.com ... ID: c68d52bcaaec65ae5289a8bed189fa15 Adding device /dev/sdd ... OK heketi topology loaded. /usr/bin/oc -n storage-project exec -it deploy-heketi-1-tm804 -- heketi-cli -s http://localhost:8080 --user admin --secret '' setup-openshift-heketi-storage --image rhgs3/rhgs-volmanager-rhel7:3.3.0 2>&1 /usr/bin/oc -n storage-project exec -it deploy-heketi-1-tm804 -- heketi-cli -s http://localhost:8080 --user admin --secret '' setup-openshift-heketi-storage --image rhgs3/rhgs-volmanager-rhel7:3.3.0 2>&1 Saving heketi-storage.json Cleaning up Error: open heketi-storage.json: permission denied command terminated with exit code 255 Failed on setup openshift heketi storage This may indicate that the storage must be wiped and the GlusterFS nodes must be reset. Version-Release number of selected component (if applicable): cns-deploy-5.0.0-21.el7rhgs.x86_64 How reproducible: 1/1, should be seen always
heketi-cli creates a copy job when setup-openshift-heketi-storage command is used. This job is created in a file named heketi-storage.json. we failed to save the job in this run. I am suspecting permission errors for the file as the current working dir has changed in this build for cns-deploy.
Created attachment 1317472 [details] cns-deploy logs
Created attachment 1317672 [details] cns-deploy script Attaching the modified cns-deploy file with the workaround. This cns-deploy script should be used until we have a fix.
cns-deployment works in build - cns-deploy-5.0.0-23.el7rhgs This issue is no more seen. Moving the bug to verified.
I have edited the doc text
doc text looks good to me
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
Marking qe-test-coverage as - since the preferred mode of deployment is using ansible