Closed xannz closed 6 years ago
This is strange.. I don't think the problem is with the zk relation -- it just manifests itself there because that's the first hook that triggers a puppet apply
. The actual problem is that /etc/default/bigtop-utils
doesn't exist:
unit-kafka-test-0: 15:14:02 DEBUG unit.kafka-test/0.zookeeper-relation-changed FileNotFoundError: [Errno 2] No such file or directory: Path('/etc/default/bigtop-utils') -> Path('/etc/default/bigtop-utils.bak')
So there's something wrong with the installation of the bigtop-utils
package. This may be related to the fact that we set the apt repo to the bigtop CI system for kafka due to a redistribution issue of the kafka packages.
The strange part here is that our own CI cleared kafka-zookeeper a couple days ago:
http://bigtop.charm.qa/cwr_bundle_hadoop_kafka/48/report.html
I'll start digging into what's going on here.
Ah, i see what's up. Build 429 of the Bigtop-trunk-repos failed this morning:
https://ci.bigtop.apache.org/job/Bigtop-trunk-repos/
Due to our workaround to use the CI system as our apt repo, we're trying to install kafka from a partial repository. I'll try to find a more stable repository (or host the binary artifact ourselves).
The updated kafka charm (-41) in the edge channel should fix this:
https://jujucharms.com/kafka/41
This still uses Bigtop's CI apt repositories, but now it uses Bigtop-1.2.1
instead of Bigtop-trunk
. The latter was never a good idea given the propensity for trunk to break.
Our own CI is still running. If successful, I'll move this through to stable and fix upstream with the following:
@xannz, danger! kafka-41 is no good. A recent change to layer-basic
put charm deps in a python venv. Bigtop charm actions were not activating this venv and therefore failed:
http://bigtop.charm.qa/cwr_bundle_hadoop_kafka/49/report.html
While kafka-41
would deploy and be somewhat functional, any charm actions would most certainly fail. A fix is now in place, and has been incorporated into the edge channel release as kafka-43
:
https://jujucharms.com/kafka/43
Tests for this look good:
http://bigtop.charm.qa/cwr_bundle_hadoop_kafka/52/report.html
However, the fix required significant changes to bigtop charm actions. It'll take another day to complete CI for all the affected charms/bundles.
Fwiw, this was (as it always seems to be) unfortunate timing, especially for a friday -- what you initially reported was a real problem with kafka and the bigtop repos; it just happened to crop up at the same time as layer-basic
changes affected bigtop charm actions.
@kwmonroe Indeed unfortunate timing, thanks for the quick updates though.
I faced a similar situation when deploying Kafka and adding a relation with Zookeeper (cs:zookeeper-42).
Hey folks, I'm not sure on the exact revision where this was fixed, but it's certainly fixed in the latest stable kafka and zookeeper charms (keep in mind that zk was never really the issue -- it was just that the zk relation exposed the fact that kafka wasn't getting installed correctly):
https://jujucharms.com/kafka/ (rev >= 51) https://jujucharms.com/zookeeper/ (rev >= 53)
Closing this out.
Kafka goes into an error state after relating to zookeeper:
Executed commands: