Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1082028

Summary: hosted-engine fails when cdrom is chosen as the source for the installation.
Product: Red Hat Enterprise Virtualization Manager Reporter: Roman Hodain <rhodain>
Component: ovirt-hosted-engine-setupAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: movciari
Severity: high Docs Contact:
Priority: high    
Version: 3.3.0CC: aburden, danken, didi, fsimonce, iheim, lveyde, michele, nyechiel, pstehlik, rhodain, stirabos
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: vdsm-4.14.7-0.1.beta3.el6ev Doc Type: Bug Fix
Doc Text:
Previously, the Manager virtual machine did not have adequate ownership of the host's CD-ROM in a self-hosted engine deployment. This meant that deployment failed when installing the Manager from CD-ROM as the virtual machine would lose access rights to the CD-ROM immediately after installation of the operating system. Now, the qemu user has been added to the cdrom group so that the Manager virtual machine retains access rights to the CD-ROM and deployment continues as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-09 14:48:03 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 Roman Hodain 2014-03-28 13:57:11 UTC
Description of problem:
	The newly crated VM for self hosted engine fails to start if the
installation source is cdrom (/dev/cdrom). The reason is the rights. vdsm:kvm
does not have rights to read that device. If the rights are set correctly the Vm
starts, but as soon as the OS installation is finished the CD is ejected and the
rights are reset to the default which forces the next steps od the installation
fail for the same reason.

Version-Release number of selected component (if applicable):
	ovirt-hosted-engine-setup-1.0.0-6.el6ev.noarch

How reproducible:
	100%

Steps to Reproduce:
	1. # hosted-engine --deploy
	2. Choose the cdrom installation source and point it to /dev/cdrom

Actual results:
	Deployment fails

Expected results:
	RHEV-M is successfully deployed

Additional info:
	/dev/cdrom => /dev/sr0 in most cases

Comment 1 Sandro Bonazzola 2014-03-28 14:21:48 UTC
This is the first time I see someone trying to use the hardware device instead of the iso image.

Workaround may be add vdsm user to cdrom group.

Comment 2 Sandro Bonazzola 2014-04-08 12:36:59 UTC
Roman: also qemu user need to be added to cdrom group.
Fixing this on vdsm side so also vdsClient will allow to boot from local CD-ROM.

Comment 3 Dan Kenigsberg 2014-04-08 13:04:41 UTC
Could you attach the vdsm.log traceback of the failing operation?

Comment 4 Sandro Bonazzola 2014-04-11 06:53:19 UTC
No need for the logs, reproduced here. Patch pushed for both vdsm and hosted-engine setup.

Comment 5 Sandro Bonazzola 2014-04-15 06:31:33 UTC
All patches merged on upstream master and 3.4 branches.

Comment 7 errata-xmlrpc 2014-06-09 14:48:03 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-0505.html