vault unit moves between ready and error repeatedly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vault-charm |
Incomplete
|
Medium
|
Liam Young |
Bug Description
We have a 3 node ha vault cluster, the two slave nodes switch between active (Unit is ready) and
error (hook failed: "update-status") states repeatedly (roughly every 10 minutes)
The associated error message in the logs is:
2018-07-02 16:38:10 DEBUG update-status active
2018-07-02 16:38:10 DEBUG update-status Traceback (most recent call last):
2018-07-02 16:38:10 DEBUG update-status File "/var/lib/
2018-07-02 16:38:10 DEBUG update-status main()
2018-07-02 16:38:10 DEBUG update-status File "/var/lib/
2018-07-02 16:38:10 DEBUG update-status hookenv.
2018-07-02 16:38:10 DEBUG update-status File "/var/lib/
2018-07-02 16:38:10 DEBUG update-status callback(*args, **kwargs)
2018-07-02 16:38:10 DEBUG update-status File "/var/lib/
2018-07-02 16:38:10 DEBUG update-status application_
2018-07-02 16:38:10 DEBUG update-status File "/var/lib/
2018-07-02 16:38:10 DEBUG update-status subprocess.
2018-07-02 16:38:10 DEBUG update-status File "/usr/lib/
2018-07-02 16:38:10 DEBUG update-status retcode = call(*popenargs, **kwargs)
2018-07-02 16:38:10 DEBUG update-status File "/usr/lib/
2018-07-02 16:38:10 DEBUG update-status with Popen(*popenargs, **kwargs) as p:
2018-07-02 16:38:10 DEBUG update-status File "/usr/lib/
2018-07-02 16:38:10 DEBUG update-status restore_signals, start_new_session)
2018-07-02 16:38:10 DEBUG update-status File "/usr/lib/
2018-07-02 16:38:10 DEBUG update-status restore_signals, start_new_session, preexec_fn)
2018-07-02 16:38:10 DEBUG update-status TypeError: Can't convert 'NoneType' object to str implicitly
The error seems to originate because /var/lib/
response = requests.
I added some print statements into the charm and it is connecting to http://
But when I try it by hand (on a machine showing the error) I get:
root@juju-
{"initialized"
The leader of the cluster appears to be stable
Changed in vault-charm: | |
importance: | Undecided → Medium |
Changed in vault-charm: | |
assignee: | nobody → Liam Young (gnuoy) |
status: | New → Incomplete |
This bug is subscribed to Canonical Field Critical and tracked by the SLA process.
Does the incomplete status mean development needs something from the submitter?
Could a comment be added with what's needed or an estimate on when this bug is targeted for a fix?