Fedora Account System
Red Hat Associate
Red Hat Customer
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:
Yes, the latest devel build has this issue where we missed to package one template file. I will let you know once its corrected.
(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.
Verified this is fixed with cns-deploy-5.0.0-24.el7rhgs.x86_64
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