Bug 1484685 - cns-deployment fails while trying to setup heketidb
Summary: cns-deployment fails while trying to setup heketidb
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: cns-deploy-tool
Version: cns-3.6
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: CNS 3.6
Assignee: Raghavendra Talur
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1445448
TreeView+ depends on / blocked
 
Reported: 2017-08-24 06:55 UTC by krishnaram Karthick
Modified: 2018-12-06 19:44 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, heketi-cli could not write the copy-job file in root of the container filesystem due to insufficient permission. With this update, this issue is fixed and enables files to be written in /tmp and a successful cns-deployment.
Clone Of:
Environment:
Last Closed: 2017-10-11 07:12:11 UTC
Embargoed:


Attachments (Terms of Use)
cns-deploy logs (105.94 KB, text/plain)
2017-08-24 07:14 UTC, krishnaram Karthick
no flags Details
cns-deploy script (25.98 KB, application/x-shellscript)
2017-08-24 13:15 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-08-24 06:55:58 UTC
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

Comment 4 Raghavendra Talur 2017-08-24 07:10:11 UTC
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.

Comment 5 krishnaram Karthick 2017-08-24 07:14:26 UTC
Created attachment 1317472 [details]
cns-deploy logs

Comment 6 krishnaram Karthick 2017-08-24 13:15:15 UTC
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.

Comment 13 krishnaram Karthick 2017-08-25 06:51:16 UTC
cns-deployment works in build - cns-deploy-5.0.0-23.el7rhgs

This issue is no more seen. Moving the bug to verified.

Comment 14 Raghavendra Talur 2017-10-04 10:18:55 UTC
I have edited the doc text

Comment 16 Raghavendra Talur 2017-10-04 15:42:29 UTC
doc text looks good to me

Comment 18 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

Comment 19 vinutha 2018-12-06 19:44:29 UTC
Marking qe-test-coverage as - since the preferred mode of deployment is using ansible


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