Deployment on trusty fails

Bug #1823300 reported by Liam Young
6
This bug affects 1 person
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/juju/agents/unit-hacluster-6/charm/hooks/config-changed", line 585, in <module>
2019-04-04 09:39:21 DEBUG config-changed hooks.execute(sys.argv)
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/juju/agents/unit-hacluster-6/charm/charmhelpers/core/hookenv.py", line 909, in execute
2019-04-04 09:39:21 DEBUG config-changed self._hooks[hook_name]()
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/juju/agents/unit-hacluster-6/charm/hooks/config-changed", line 187, in config_changed
2019-04-04 09:39:21 DEBUG config-changed if configure_corosync():
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/juju/agents/unit-hacluster-6/charm/hooks/utils.py", line 857, in wrapped_f
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/juju/agents/unit-hacluster-6/charm/hooks/utils.py", line 892, in configure_corosync
2019-04-04 09:39:21 DEBUG config-changed return emit_base_conf() and emit_corosync_conf()
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/juju/agents/unit-hacluster-6/charm/hooks/utils.py", line 362, in emit_base_conf
2019-04-04 09:39:21 DEBUG config-changed perms=0o440)
2019-04-04 09:39:21 DEBUG config-changed File "/var/lib/juju/agents/unit-hacluster-6/charm/charmhelpers/core/host.py", line 555, in write_file
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/authkey'

Liam Young (gnuoy)
Changed in charm-hacluster:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Liam Young (gnuoy)
milestone: none → 19.04
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-hacluster (master)

Reviewed: https://review.openstack.org/649649
Committed: https://git.openstack.org/cgit/openstack/charm-hacluster/commit/?id=ed3ea84126991f3c9a513d1fb4cdb2b6fa939ce8
Submitter: Zuul
Branch: master

commit ed3ea84126991f3c9a513d1fb4cdb2b6fa939ce8
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
    python3-libmaas. python3-libmaas is available from bionic onwards
    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: Ib14146f7f667f9c52e11d222f950efcb7cb47a7f

Changed in charm-hacluster:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-hacluster:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.