hacluster install hook fails on Vivid and Wily (pacemaker /var/lib/heartbeat home dir ownership issue)

Bug #1479661 reported by Ryan Beisner on 2015-07-30
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hacluster (Juju Charms Collection)
High
Unassigned
pacemaker (Ubuntu)
Undecided
Unassigned

Bug Description

pacemaker and/or openhpid in Vivid and Wily may need love.

This occurs when manually installing on fresh Wily and Vivid instances:
...
Setting up pacemaker (1.1.12-0ubuntu2) ...
Adding group `haclient' (GID 119) ...
Done.
Warning: The home dir /var/lib/heartbeat you specified already exists.
Adding system user `hacluster' (UID 111) ...
Adding new user `hacluster' (UID 111) with group `haclient' ...
The home directory `/var/lib/heartbeat' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/heartbeat' does not belong to the user you are currently creating.

# Observation from the charm perspective:
http://paste.ubuntu.com/11964818/

2015-07-30 07:27:14 INFO install Setting up openhpid (2.14.1-1.3ubuntu2) ...
2015-07-30 07:27:15 INFO install Job for openhpid.service failed. See "systemctl status openhpid.service" and "journalctl -xe" for details.
2015-07-30 07:27:15 INFO install invoke-rc.d: initscript openhpid, action "start" failed.
2015-07-30 07:27:15 INFO install dpkg: error processing package openhpid (--configure):
2015-07-30 07:27:15 INFO install subprocess installed post-installation script returned error exit status 1
2015-07-30 07:27:15 INFO install Errors were encountered while processing:
2015-07-30 07:27:15 INFO install openhpid
2015-07-30 07:27:15 INFO install E: Sub-process /usr/bin/dpkg returned an error code (1)
2015-07-30 07:27:15 INFO install Traceback (most recent call last):
2015-07-30 07:27:15 INFO install File "/var/lib/juju/agents/unit-hacluster-2/charm/hooks/install", line 405, in <module>
2015-07-30 07:27:15 INFO install hooks.execute(sys.argv)
2015-07-30 07:27:15 INFO install File "/var/lib/juju/agents/unit-hacluster-2/charm/hooks/charmhelpers/core/hookenv.py", line 557, in execute
2015-07-30 07:27:15 INFO install self._hooks[hook_name]()
2015-07-30 07:27:15 INFO install File "/var/lib/juju/agents/unit-hacluster-2/charm/hooks/install", line 87, in install
2015-07-30 07:27:15 INFO install apt_install(filter_installed_packages(PACKAGES), fatal=True)
2015-07-30 07:27:15 INFO install File "/var/lib/juju/agents/unit-hacluster-2/charm/hooks/charmhelpers/fetch/__init__.py", line 183, in apt_install
2015-07-30 07:27:15 INFO install _run_apt_command(cmd, fatal)
2015-07-30 07:27:15 INFO install File "/var/lib/juju/agents/unit-hacluster-2/charm/hooks/charmhelpers/fetch/__init__.py", line 428, in _run_apt_command
2015-07-30 07:27:15 INFO install result = subprocess.check_call(cmd, env=env)
2015-07-30 07:27:15 INFO install File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
2015-07-30 07:27:15 INFO install raise CalledProcessError(retcode, cmd)
2015-07-30 07:27:15 INFO install subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'corosync', 'pacemaker', 'ipmitool', 'libnagios-plugin-perl']' returned non-zero exit status 100
2015-07-30 07:27:15 INFO juju.worker.uniter.context context.go:543 handling reboot
2015-07-30 07:27:15 ERROR juju.worker.uniter.operation runhook.go:103 hook "install" failed: exit status 1

# Wily
ubuntu@1ea-wily214622:~$ sudo apt-get install corosync pacemaker python-netaddr ipmitool
...
Setting up libesmtp6 (1.0.6-4) ...
Setting up libheartbeat2 (1:3.0.5+hg12629-1.2) ...
Setting up liblrmd1 (1.1.12-0ubuntu2) ...
Setting up libpe-status4 (1.1.12-0ubuntu2) ...
Setting up libpengine4 (1.1.12-0ubuntu2) ...
Setting up libtransitioner2 (1.1.12-0ubuntu2) ...
Setting up openhpid (2.14.1-1.3ubuntu2) ...
Job for openhpid.service failed because a configured resource limit was exceeded. See "systemctl status openhpid.service" and "journalctl -xe" for details.
invoke-rc.d: initscript openhpid, action "start" failed.
dpkg: error processing package openhpid (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up openipmi (2.0.18-0ubuntu8) ...
Setting up resource-agents (1:3.9.3+git20121009-3.1) ...
Setting up python-lxml (3.4.4-1) ...
Setting up python-yaml (3.11-2build1) ...
Setting up crmsh (1.2.6+git+e77add-1.3ubuntu2) ...
Setting up pacemaker-cli-utils (1.1.12-0ubuntu2) ...
Setting up python-bs4 (4.3.2-2ubuntu3) ...
Setting up python-chardet (2.3.0-1build1) ...
Setting up python-html5lib (0.999-3build1) ...
Setting up python-netaddr (0.7.15-1) ...
Setting up libnss3-nssdb (2:3.19.2-1ubuntu1) ...
Setting up libnss3:amd64 (2:3.19.2-1ubuntu1) ...
Setting up libtotem-pg5 (2.3.4-0ubuntu1) ...
Setting up corosync (2.3.4-0ubuntu1) ...
Processing triggers for dbus (1.8.12-1ubuntu5) ...
Setting up pacemaker (1.1.12-0ubuntu2) ...
Adding group `haclient' (GID 119) ...
Done.
Warning: The home dir /var/lib/heartbeat you specified already exists.
Adding system user `hacluster' (UID 112) ...
Adding new user `hacluster' (UID 112) with group `haclient' ...
The home directory `/var/lib/heartbeat' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/heartbeat' does not belong to the user you are currently creating.
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (224-1ubuntu3) ...
Errors were encountered while processing:
 openhpid
E: Sub-process /usr/bin/dpkg returned an error code (1)

summary: - hacluster install hook fails on vivid (openhpid init script error)
+ hacluster install hook fails on Vivid and Wily (openhpid init script
+ error)
description: updated
Ryan Beisner (1chb1n) wrote :

#Vivid

ubuntu@1ea-vivid214622:~$ sudo apt-get install corosync pacemaker python-netaddr ipmitool
...
Setting up libpe-rules2 (1.1.12-0ubuntu2) ...
Setting up libcib4 (1.1.12-0ubuntu2) ...
Setting up libstonithd2 (1.1.12-0ubuntu2) ...
Setting up libcrmcluster4 (1.1.12-0ubuntu2) ...
Setting up libcrmservice1 (1.1.12-0ubuntu2) ...
Setting up libesmtp6 (1.0.6-4) ...
Setting up libheartbeat2 (1:3.0.5+hg12629-1.2) ...
Setting up liblrmd1 (1.1.12-0ubuntu2) ...
Setting up libpe-status4 (1.1.12-0ubuntu2) ...
Setting up libpengine4 (1.1.12-0ubuntu2) ...
Setting up libtransitioner2 (1.1.12-0ubuntu2) ...
Setting up openhpid (2.14.1-1.3ubuntu2) ...
Job for openhpid.service failed. See "systemctl status openhpid.service" and "journalctl -xe" for details.
invoke-rc.d: initscript openhpid, action "start" failed.
dpkg: error processing package openhpid (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up openipmi (2.0.18-0ubuntu8) ...
Setting up resource-agents (1:3.9.3+git20121009-3.1) ...
Setting up python-lxml (3.4.2-1) ...
Setting up python-yaml (3.11-2) ...
Setting up crmsh (1.2.6+git+e77add-1.3ubuntu2) ...
Setting up pacemaker-cli-utils (1.1.12-0ubuntu2) ...
Setting up python-bs4 (4.3.2-2ubuntu2) ...
Setting up python-html5lib (0.999-3) ...
Setting up python-netaddr (0.7.12-2) ...
Setting up libnss3-nssdb (2:3.19.2-0ubuntu15.04.1) ...
Setting up libnss3:amd64 (2:3.19.2-0ubuntu15.04.1) ...
Setting up libtotem-pg5 (2.3.4-0ubuntu1) ...
Setting up corosync (2.3.4-0ubuntu1) ...
Processing triggers for dbus (1.8.12-1ubuntu5) ...
Setting up pacemaker (1.1.12-0ubuntu2) ...
Adding group `haclient' (GID 119) ...
Done.
Warning: The home dir /var/lib/heartbeat you specified already exists.
Adding system user `hacluster' (UID 111) ...
Adding new user `hacluster' (UID 111) with group `haclient' ...
The home directory `/var/lib/heartbeat' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/heartbeat' does not belong to the user you are currently creating.
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 openhpid
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@1ea-vivid214622:~$

description: updated
Ryan Beisner (1chb1n) on 2015-08-19
summary: - hacluster install hook fails on Vivid and Wily (openhpid init script
- error)
+ hacluster install hook fails on Vivid and Wily (pacemaker
+ /var/lib/heartbeat home dir ownership issue)
James Page (james-page) on 2015-09-04
Changed in hacluster (Juju Charms Collection):
importance: Undecided → High
status: New → Triaged
Robie Basak (racb) wrote :

Is this actually bug 1488453? The home directory ownership warning looks like a red herring to me.

Ryan Beisner (1chb1n) wrote :

@racb yep, that was my original take on this, but somehow I convinced myself otherwise apparently. Either way, hacluster won't install on V/W. ;-)

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pacemaker (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers