voxpupuli/puppet-corosync

openhpid dependency issue

Closed this issue · 2 comments

[via @actatux; creating an issue to track separately from #395]
The acceptance test with ruby 2.3.1 and env set docker/debian-8 fails because of dpkg failing to install the openhpid dependency.

Setting up openhpid (2.14.1-1.4) ...
Job for openhpid.service failed. See 'systemctl status openhpid.service' and 'journalctl -xn' 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
[...]
Errors were encountered while processing:
 openhpid
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is related to https://bugs.debian.org/785287. This is a one time bug during post-install.

I can't see any elegant way to fix this acceptance test.

  • Using ensure_packages() won't help since dpkg can fail as well.

  • openhpid being a recommended dependency (ie not mandatory), we can change the default apt configuration to not install the recommended packages (APT::Install-Recommends defaults to "1" in the debian:8 docker image). However, it can trigger additional issues (other packages missing).

  • we can install openhpid prior running puppet

Any thoughts?

Closing via #411, Though the upstream bug could still affect idempotency for end-users in some cases.