+++ This bug was initially created as a clone of Bug #832196 +++
Because sanlock does not require useradd and groupadd, the binaries might not exist when it is installed. This causes an error along the lines of:
/var/tmp/rpm-tmp.nsobaa: line 2: /usr/sbin/groupadd: No such file or directory
/var/tmp/rpm-tmp.nsobaa: line 4: /usr/sbin/useradd: No such file or directory
error: %pre(sanlock-2.1-2.fc17.x86_64) scriptlet failed, exit status 127
error: sanlock-2.1-2.fc17.x86_64: install failed
which means it will not install correctly
When building a livecd (like oVirt Node), this causes sanlock to fail to be included at all.
--- Additional comment from dougsland on 2012-06-14 18:51:45 EDT ---
Hi Mike,
I have reproduced the report (Thanks Robert). VDSM package is not automatically installed in the node as we talked over IRC. In that case, /etc/pki/vdsm/ won't be created and will affect TUI.
#rpm -qa | grep -i vdsm
vdsm-python-4.10.0-1.fc17.x86_64
vdsm-xmlrpc-4.10.0-1.fc17.noarch
vdsm-reg-4.10.0-1.fc17.noarch
vdsm-cli-4.10.0-1.fc17.noarch
Generated a rpm in the vdsm git tree:
# rpm -ivh vdsm-reg-4.10.0-0.32.git61ecfc0.el6.noarch.rpm
error: Failed dependencies:
vdsm = 4.10.0-0.32.git61ecfc0.el6 is needed by vdsm-reg-4.10.0-0.32.git61ecfc0.el6.noarch
Moving back to ovirt-node.
----------------------------------
The reason vdsm is not there is because it requires sanlock which failed for the above reason.