+++ This bug was initially created as a clone of Bug #1111229 +++
Description of problem:
The uploader requires existence of user 'vdsm' on the machine where its executed.
Its rpm doesn't check/add the required user, so if that user doesn't exist on the machine where it runs - the uploader fails.(for example - ovirt-engine machine where the engine was built from source and doesn't require user vdsm to exist)
The error at failure:
"ERROR: A user named vdsm with a UID and GID of 36 must be defined on the system to mount the export storage domain on myexport as Read/Write"
Version-Release number of selected component (if applicable):
when user vdsm doesn't exist on the machine where the uploader runs.
either there's no need to have user 'vdsm' or the uploader adds it upon installation.
--- Additional comment from Sandro Bonazzola on 2014-06-19 10:08:05 EDT ---
Lev, you can find examples for checking user and group existence and code for creating them within the spec file in vdsm and ovirt-engine projects spec files.
--- Additional comment from Sandro Bonazzola on 2014-08-05 07:35:36 EDT ---
Please clone the BZ to iso uploader for tracking it too.
--- Additional comment from Lev Veyde on 2014-08-05 08:32:13 EDT ---
(In reply to Sandro Bonazzola from comment #2)
> Please clone the BZ to iso uploader for tracking it too.
Can't do - there is no ovirt-iso-uploader component in oVirt.
And since the patch is basically the same I think it's OK to track both in one bug.
ok, tested while installing ovirt-iso-uploader and ovirt-engine-sdk-python as its dep.
# rpm --scripts -q ovirt-iso-uploader-3.5.0-0.1.master.20140904121430.git0bbf129.el6.noarch
preinstall scriptlet (using /bin/sh):
getent group kvm >/dev/null || \
LC_ALL=C groupadd -g 36 -r kvm
getent passwd vdsm >/dev/null || \
LC_ALL=C useradd -r -u 36 -g kvm -d / \
-s /sbin/nologin -c "Node Virtualization Manager" vdsm
oVirt 3.5 has been released and should include the fix for this issue.