zookeeper failed after provisioning on Build 3057

Bug #1683358 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Harish Kumar

Bug Description

R4.0 Build 3057

After bug 1683248 was hit, Harish helped me to work around and continue provisioning.
It was seen then that zookeeper had failed.

/var/lib/zookeeper/version-2 did not exist

root@testbed-1-vm1(controller):/# ls -l /var/lib/zookeeper/
total 0
lrwxrwxrwx. 1 root root 25 Apr 17 09:57 myid -> /etc/zookeeper/conf//myid
root@testbed-1-vm1(controller):/#

root@testbed-1-vm1(controller):/var/log/zookeeper# tail zookeeper.log
2017-04-17 13:13:10,581 - INFO [main:Environment@100] - Server environment:user.home=/var/lib/zookeeper
2017-04-17 13:13:10,581 - INFO [main:Environment@100] - Server environment:user.dir=/
2017-04-17 13:13:10,587 - ERROR [main:ZooKeeperServerMain@63] - Unexpected exception, exiting abnormally
java.io.IOException: Unable to create snap directory /var/lib/zookeeper/version-2
 at org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:91)
 at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:103)
 at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:86)
 at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52)
 at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
 at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
root@testbed-1-vm1(controller):/var/log/zookeeper# [root@testbed-1-vm1 ~]#

Tags: provisioning
Harish Kumar (hkumarmk)
Changed in juniperopenstack:
assignee: nobody → Harish Kumar (hkumarmk)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30503
Submitter: Harish Kumar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30503
Committed: http://github.org/Juniper/contrail-ansible-internal/commit/87caffdf683a7af9c1289f4235b6c2e2e463fed1
Submitter: Zuul (<email address hidden>)
Branch: master

commit 87caffdf683a7af9c1289f4235b6c2e2e463fed1
Author: hkumarmk <email address hidden>
Date: Mon Apr 17 23:02:20 2017 +0530

Zookeeper user to own /var/lib/zookeeper

Fixes-bug: 1683358

After mounting /var/lib/zookeeper, root user was the owner, so added
code to make sure zooekeeper user own /var/lib/zookeeper.

Change-Id: I195d55adc557f36927fbaf959f207e799da37d82

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.