narindergupta / kafka-charm Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I deploy the kafka charm but the juju status is error hook failed: "certificates-relation-joined"
.
The juju log unit-kafka-0.log shows the following:
2021-03-10 13:28:34 DEBUG certificates-relation-joined Traceback (most recent call last):
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "/var/lib/juju/agents/unit-kafka-0/charm/hooks/certificates-relation-joined", line 22, in <module>
2021-03-10 13:28:34 DEBUG certificates-relation-joined main()
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "/var/lib/juju/agents/unit-kafka-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
2021-03-10 13:28:34 DEBUG certificates-relation-joined bus.dispatch(restricted=restricted_mode)
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "/var/lib/juju/agents/unit-kafka-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
2021-03-10 13:28:34 DEBUG certificates-relation-joined _invoke(other_handlers)
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "/var/lib/juju/agents/unit-kafka-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
2021-03-10 13:28:34 DEBUG certificates-relation-joined handler.invoke()
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "/var/lib/juju/agents/unit-kafka-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
2021-03-10 13:28:34 DEBUG certificates-relation-joined self._action(*args)
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "/var/lib/juju/agents/unit-kafka-0/charm/reactive/tls.py", line 165, in import_ca_crt_to_keystore
2021-03-10 13:28:34 DEBUG certificates-relation-joined '-storepass', keystore_password(),
2021-03-10 13:28:34 DEBUG certificates-relation-joined File "lib/charms/layer/kafka.py", line 227, in keystore_password
2021-03-10 13:28:34 DEBUG certificates-relation-joined os.open(path, os.O_WRONLY | os.O_CREAT, 0o440),
2021-03-10 13:28:34 DEBUG certificates-relation-joined FileNotFoundError: [Errno 2] No such file or directory: '/etc/kafka/keystore.secret'
2021-03-10 13:28:34 ERROR juju.worker.uniter.operation runhook.go:132 hook "certificates-relation-joined" failed: exit status 1
After speaking with Narinder, the problem is that I don't have the PPA necessary to install the Kafka packages.
root@node08ob32:/var/log/juju# apt-cache policy kafka
N: Unable to locate package kafka
Ideally I think the charm should verify if access to the kafka packages is available or should fail during the attempt to install Kafka before giving an error about the certificates-relation-joined hook failure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.