Deployment on trusty fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack HA Cluster Charm |
Fix Released
|
High
|
Liam Young |
Bug Description
Charm fails to deploy on trusty as it tries to write the pacemaker authkey to a directory which does not exist yet resulting in:
2019-04-04 09:39:21 DEBUG config-changed Traceback (most recent call last):
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed hooks.execute(
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed self._hooks[
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed if configure_
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed return_data = f(*args, **kwargs)
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed return emit_base_conf() and emit_corosync_
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed perms=0o440)
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/
2019-04-04 09:39:21 DEBUG config-changed with open(path, 'wb') as target:
2019-04-04 09:39:21 DEBUG config-changed FileNotFoundError: [Errno 2] No such file or directory: '/etc/pacemaker
Changed in charm-hacluster: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Liam Young (gnuoy) |
milestone: | none → 19.04 |
Changed in charm-hacluster: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/649649 /git.openstack. org/cgit/ openstack/ charm-hacluster /commit/ ?id=ed3ea841269 91f3c9a513d1fb4 cdb2b6fa939ce8
Committed: https:/
Submitter: Zuul
Branch: master
commit ed3ea84126991f3 c9a513d1fb4cdb2 b6fa939ce8
Author: Liam Young <email address hidden>
Date: Wed Apr 3 15:43:01 2019 +0000
Install libmaas for stonith plugin
The libmaas stonith plugin uses libmaas which is supplied via libmaas. python3-libmaas is available from bionic onwards
python3-
so install it where possible.
Also, drive by fix to precreate /etc/pacemaker dir if needed to fix
trusty installs.
Closes-Bug: #1823300
Closes-Bug: #1823302
Change-Id: Ib14146f7f667f9 c52e11d222f950e fcb7cb47a7f