Bug 1111229

Summary: image uploader's rpm should provide required user on install if missing
Product: [Retired] oVirt Reporter: Alissa <abonas>
Component: ovirt-image-uploaderAssignee: Lev Veyde <lveyde>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: medium Docs Contact:
Priority: high    
Version: 3.4CC: amureini, bugs, didi, jbelka, lveyde, sbonazzo, stirabos
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: ovirt-3.5.0_rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1129382 (view as bug list) Environment:
Last Closed: 2014-10-17 12:25:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alissa 2014-06-19 14:03:46 UTC
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):
3.4

How reproducible:
when user vdsm doesn't exist on the machine where the uploader runs.


Expected results:
either there's no need to have user 'vdsm' or the uploader adds it upon installation.

Additional info:

Comment 1 Sandro Bonazzola 2014-06-19 14:08:05 UTC
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.

Comment 2 Sandro Bonazzola 2014-08-05 11:35:36 UTC
Please clone the BZ to iso uploader for tracking it too.

Comment 3 Lev Veyde 2014-08-05 12:32:13 UTC
(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.

Comment 4 Jiri Belka 2014-09-16 09:03:02 UTC
ok, ovirt-image-uploader-3.5.0-0.1.master.20140905074913.git9639d6c.el6.noarch

Comment 5 Sandro Bonazzola 2014-10-17 12:25:31 UTC
oVirt 3.5 has been released and should include the fix for this issue.