*** This bug is a duplicate of bug 1488453 ***
https://bugs.launchpad.net/bugs/1488453
** This bug has been marked a duplicate of bug 1488453
Package postinst always fail on first install when using systemd
--
You received this bug notification because you are a member of Ubuntu
High Availability Team, which is subscribed to pacemaker in Ubuntu.
https://bugs.launchpad.net/bugs/1479661
Title:
hacluster install hook fails on Vivid and Wily (pacemaker
/var/lib/heartbeat home dir ownership issue)
Status in pacemaker package in Ubuntu:
New
Status in hacluster package in Juju Charms Collection:
Triaged
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pacemaker/+bug/1479661/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help : https://help.launchpad.net/ListHelp