Summary: | Zookeeper service fails to start due to classpath errors, logging no error | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | KevinFarshaw | ||||
Component: | zookeeper | Assignee: | Christopher Tubbs <ctubbsii> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 22 | CC: | ctubbsii, ethan, java-sig-commits, s, tstclair | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | zookeeper-3.4.6-13.fc23 zookeeper-3.4.6-13.fc21 zookeeper-3.4.6-13.fc22 zookeeper-3.4.6-14.fc21 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-24 22:49:49 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Attachments: |
|
Description
KevinFarshaw
2015-09-09 11:35:35 UTC
Update: I Verified that basic zookeepr functionality works as expected (ls,mkdir, rm) Also, it appears zk starts up fine without /var/lib/zookeeper/data/myid. It would be more user-friendly IMO if "systemctl start zookeeper" simply worked out of the box, meaning only that cluster configuration was necessary only by those that have one. In my case, I only needed a running zk server to test another piece of software. Bump. Bump. Bump. Please respond. sent email soliciting for co-maintainers for this package. I can take a look at this a bit later today. Sorry, other stuff came up today. I will make this the first thing I look at tomorrow. These bugs have been annoying me, too. I reviewed and applied the patch and have kicked off some builds for f21 through rawhide. If all goes well, I'll push some updates to test soon. Thanks. I'll test and leave karma when you push. Did you get rid of the myid precondition in the service file too? (In reply to KevinFarshaw from comment #9) > Thanks. I'll test and leave karma when you push. Did you get rid of the myid > precondition in the service file too? I did not. I'd rather investigate that separately from the classpath issue, because I'm not too sure about why that precondition was added. Like, is that to ensure ZK doesn't accidentally join the wrong quorum? *** Bug 1181487 has been marked as a duplicate of this bug. *** zookeeper-3.4.6-11.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-d71fcc2e48 zookeeper-3.4.6-11.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-bd2a25f292 zookeeper-3.4.6-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-970a41de03 (In reply to Christopher Tubbs from comment #10) > (In reply to KevinFarshaw from comment #9) > > Thanks. I'll test and leave karma when you push. Did you get rid of the myid > > precondition in the service file too? > > I did not. I'd rather investigate that separately from the classpath issue, > because I'm not too sure about why that precondition was added. Like, is > that to ensure ZK doesn't accidentally join the wrong quorum? That means the server will still be unrunnable in the default install. I've looked at the SRPM repo. http://pkgs.fedoraproject.org/git/zookeeper.git There's nothing in the spec file or git log that indicates this was a specific fix for a problem/race/danger. The commits adding the service files was 94aec27 Jul 18 2013 Add a server subpackage. Jeffrey C. Ollie commited by tstclair. The relevent hunk in the diff for the service file was: --- a/zookeeper.service +++ b/zookeeper.service @@ -1,14 +1,20 @@ [Unit] -Description=Zookeeper +Description=Apache ZooKeeper +After=network.target +ConditionPathExists=/etc/zookeeper/zoo.cfg +ConditionPathExists=/etc/zookeeper/log4j.properties +ConditionPathExists=/var/lib/zookeeper/data/myid I am not an authority on zookeeper but, as I read the manual https://zookeeper.apache.org/doc/trunk/zookeeperStarted.html#sc_RunningReplicatedZooKeeper the myid file is only required when zookeeper is explicitly configured for quorum operation, in which case it should match one of the quorum member entries added to /etc/zookeeper/zoo.cfg. on fedora (22): $ rpm -qlv zookeeper 0 Feb 16 2015 /etc/zookeeper 2161 Mar 12 2014 /etc/zookeeper/log4j.properties 0 Feb 16 2015 /etc/zookeeper/zoo.cfg 965 Feb 16 2015 /etc/zookeeper/zoo_sample.cfg neither the empty default config, nor the sample config provided alongside it define a quorum, they are both geared for standalone operation. Since 1. myid is not needed in standalone operation. 2. the default install will always come up in standalone operation unless someone manually edits the configuration and adds quorum entries. I think it is reasonable to remove that precondition and require that a person switching the daemon from standalone mode to quorum mode do that properly, following the procedure described in the zk documentation. It would be my pleasure to open a new issue for this and move this over there, I'm just not eager to spend an addtional two months bumping that one every week. I agree with your reasoning and will modify or remove that precondition. Let's proceed in a separate issue, only so we can track the history better later if we need to. (In reply to Christopher Tubbs from comment #16) > I agree with your reasoning and will modify or remove that precondition. > Let's proceed in a separate issue, only so we can track the history better > later if we need to. Thank you. Opened #1272694 and copied the context over. zookeeper-3.4.6-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-970a41de03 zookeeper-3.4.6-11.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-d71fcc2e48 zookeeper-3.4.6-11.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-bd2a25f292 zookeeper-3.4.6-12.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-3467dc710b zookeeper-3.4.6-12.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-93bded3672 zookeeper-3.4.6-12.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-2dc6711b15 zookeeper-3.4.6-12.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-3467dc710b zookeeper-3.4.6-12.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-2dc6711b15 zookeeper-3.4.6-12.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-93bded3672 zookeeper-3.4.6-13.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-45fe2ff2ac zookeeper-3.4.6-13.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-eef6ca6bf6 zookeeper-3.4.6-13.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-ef5e68cbf8 zookeeper-3.4.6-13.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-ef5e68cbf8 zookeeper-3.4.6-13.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-45fe2ff2ac zookeeper-3.4.6-13.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-eef6ca6bf6 zookeeper-3.4.6-13.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. zookeeper-3.4.6-13.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. zookeeper-3.4.6-13.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. zookeeper-3.4.6-12.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-2dc6711b15 Ignore the messages for zookeeper-3.4.6-12.fc21 update. It's in a strange state in Bodhi. zookeeper-3.4.6-14.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b1d473beb0 zookeeper-3.4.6-14.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update zookeeper' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b1d473beb0 zookeeper-3.4.6-14.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |