Starting from a minimal RHEL 7 install I ran into some missing dependencies. Packstack requires: - iproute (for the "ip" command) - libselinux-utils (for the "restorecon" command) - initscripts (for /etc/sysctl.conf) While these will typically already be available, it seems best to make the dependencies explicit. This was in a RHEL-OSP 6 environment, but I imagine the same issues will crop up in later versions.
Those should actually be requires of OPM, that way they will be installed on all deployed nodes and not only by Packstack, but also using other OPM based installers.
OPM provides only the puppet modules, it should not install any deps as the modules can be copied around and so on. This is issue of a) modules or b) puppet/facter packages. iproute sounds like dependancy for facter package libselinux-utils sounds like puppet package dependancy initscripts should be installed by sysctl puppet module
"iproute" is absolutely a dependency of packstack; e.g., packstack/plugins/nova_300.py explicitly calls the "ip addr" command. If the package expects this command to be available, it should be listed as a Requires: by package name or by binary path in the spec file. Similarly, packstack explicitly calls "restorecon" in packstack/plugins/prescript_000.py, so it does in fact require libselinux-utils.
well than it's obviosly bug for packstack and not openstack puppet modules
Well yes, that's why this was originally opened against packstack :)
will add this dependencies into the next packstack package
Tested with openstack-packstack 7.0.0-0.14.dev1702.g490e674.el7ost I see all required dependencies in the following command: $ rpm -qR openstack-packstack /usr/bin/python PyYAML initscripts iproute libselinux-utils openssh-clients openstack-packstack-puppet = 1:7.0.0-0.14.dev1702.g490e674.el7ost openstack-puppet-modules >= 2014.2.10 pyOpenSSL python(abi) = 2.7 python-docutils python-netaddr python-setuptools rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0636.html