Bug 1483621 - Failed to deploy CNS with cns-deploy
Summary: Failed to deploy CNS with cns-deploy
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
medium
medium
Target Milestone: ---
: CNS 3.6
Assignee: Humble Chirammal
QA Contact: Anoop
URL:
Whiteboard:
Depends On:
Blocks: 1445448
TreeView+ depends on / blocked
 
Reported: 2017-08-21 13:31 UTC by Jianwei Hou
Modified: 2018-11-16 10:29 UTC (History)
7 users (show)

Fixed In Version:
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)


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 Jianwei Hou 2017-08-21 13:31:59 UTC
Description of problem:
Run cns-deploy for an openshift 3.6 cluster, the deployment failed with error sed: can't read heketi.json.template: No such file or directory.

The deploy-heketi pod went CrashLoopBackOff
[root@ocp36 ~]# oc get pods
NAME                             READY     STATUS             RESTARTS   AGE
deploy-heketi-1-038kq            0/1       CrashLoopBackOff   2          38s
deploy-heketi-1-deploy           1/1       Running            0          40s
glusterfs-lzd3q                  1/1       Running            0          1m
glusterfs-p9hw5                  1/1       Running            0          1m
glusterfs-w9r36                  1/1       Running            0          1m
storage-project-router-1-b7vnt   1/1       Running            0          6h
[root@ocp36 ~]# oc logs deploy-heketi-1-038kq
ERROR: Unable to parse /etc/heketi/heketi.json: EOF
Heketi 5.0.0

Version-Release number of selected component (if applicable):
cns-deploy-5.0.0-18.el7rhgs.x86_64
heketi-client-5.0.0-8.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Setup OpenShift 3.6 cluster
2. Prepare topology.json
3. cns-deploy -n storage-project -g topology.json

Actual results:
Deployment failed, the deploy-heketi pod went 'CrashLoopBackOff'.

# oc logs deploy-heketi-1-038kq
ERROR: Unable to parse /etc/heketi/heketi.json: EOF
Heketi 5.0.0

```
Do you wish to proceed with deployment?

[Y]es, [N]o? [Default: Y]: y
Using OpenShift CLI.
NAME              STATUS    AGE
storage-project   Active    6h
Using namespace "storage-project".
Checking that heketi pod is not running ... OK
template "deploy-heketi" created
serviceaccount "heketi-service-account" created
template "heketi" created
template "glusterfs" created
role "edit" added: "system:serviceaccount:storage-project:heketi-service-account"
node "ocp36.lb.master2.vsphere.local" labeled
node "ocp36.lb.node1.vsphere.local" labeled
node "ocp36.lb.node2.vsphere.local" labeled
daemonset "glusterfs" created
Waiting for GlusterFS pods to start ... OK
sed: can't read heketi.json.template: No such file or directory
secret "heketi-config-secret" created
service "deploy-heketi" created
route "deploy-heketi" created
deploymentconfig "deploy-heketi" created
Waiting for deploy-heketi pod to start ... pods not found.
Error from server (NotFound): services "heketi" not found
serviceaccount "heketi-service-account" deleted
secret "heketi-config-secret" deleted
deploymentconfig "deploy-heketi" deleted
route "deploy-heketi" deleted
service "deploy-heketi" deleted
pod "deploy-heketi-1-038kq" deleted
Error from server (NotFound): services "heketi-storage-endpoints" not found
Error from server (NotFound): deploymentconfig "heketi" not found
Error from server (NotFound): routes.route.openshift.io "heketi" not found
template "deploy-heketi" deleted
template "heketi" deleted
node "ocp36.lb.master2.vsphere.local" labeled
node "ocp36.lb.node1.vsphere.local" labeled
node "ocp36.lb.node2.vsphere.local" labeled
daemonset "glusterfs" deleted
template "glusterfs" deleted
```

Expected results:
Should deploy successfully

Additional info:

Comment 3 Humble Chirammal 2017-08-22 10:36:48 UTC
Yes, the latest devel build has this issue where we missed to package one template file. I will let you know once its corrected.

Comment 4 Humble Chirammal 2017-08-29 08:51:30 UTC
(In reply to Humble Chirammal from comment #3)
> Yes, the latest devel build has this issue where we missed to package one
> template file. I will let you know once its corrected.

Jhou, latest build ( cns-deploy v24) has the fix for this issue.

Comment 8 Jianwei Hou 2017-08-30 09:00:20 UTC
Verified this is fixed with cns-deploy-5.0.0-24.el7rhgs.x86_64

Comment 10 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.