Bug 1159166

Summary: hosted-engine --deploy fails with ovirt-engine-appliance & iscsi storage
Product: [oVirt] ovirt-node Reporter: mzcwlong
Component: GeneralAssignee: Anatoly Litovsky <tlitovsk>
Status: CLOSED WORKSFORME QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: high    
Version: ---CC: acanan, bugs, cshao, didi, ebenahar, ecohen, fdeutsch, gklein, gtaylor, huiwa, leiwang, lsurette, lveyde, mgoldboi, mzcwlong, nsednev, ovirt-bugs, rbalakri, sbonazzo, stirabos, yaniwang, ycui, yeylon
Target Milestone: ovirt-3.6.1Keywords: Reopened, TestOnly
Target Release: ---Flags: fdeutsch: ovirt-3.6.z?
fdeutsch: ovirt-4.0.0?
ylavi: planning_ack?
fdeutsch: devel_ack+
ylavi: testing_ack?
Hardware: x86_64   
OS: Linux   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 13:46:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1222058    
Bug Blocks: 1059435, 1196152, 1250199    

Description mzcwlong 2014-10-31 06:12:56 UTC
Description of problem:
i try to deploy hosted-engine with ovirt-engine-appliance & iscsi storage in ovirt-node, i have failed.

Version-Release number of selected component (if applicable):
ovirt-node-iso-3.5.0.ovirt35.20140912.el6.iso
oVirt-Engine-Appliance-Fedora-x86_64-19-20140924.ova.gz

How reproducible:

Steps to Reproduce:
1.install the ovirt-node 
2.disable SELinux
3.configuration the Network
4.select “Hosted Engine”
5.enter the URL of ovirt-engine-appliance at "Engine ISO/OVA Path:"
6.select "Setup Hosted Engine"

Actual results:
it was failed

Expected results:
it was complate seccussfully

Additional info:
log of ovirt-hosted-engine-setup
2014-10-30 11:29:57 DEBUG otopi.transaction transaction.commit:159 committing 'Image Transaction'
2014-10-30 11:29:57 INFO otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk.commit:203 Uploading volume to data domain (could take a few minutes depending on archive size)
2014-10-30 11:29:57 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk plugin.executeRaw:785 execute: ('/bin/sudo', '-u', 'vdsm', '-g', 'kvm', '/bin/qemu-img', 'convert', '-O', 'raw', '/data/tmpWycKPJ', '/rhev/data-center/mnt/blockSD/28c33a32-2f21-4150-9e63-ff0851de2196/images/7489759c-ba13-4ea6-8b29-f52bbb13432f/4bd197b3-4986-46b0-b595-2db9a5db7738'), executable='None', cwd='None', env=None
2014-10-30 11:29:57 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk plugin.executeRaw:803 execute-result: ('/bin/sudo', '-u', 'vdsm', '-g', 'kvm', '/bin/qemu-img', 'convert', '-O', 'raw', '/data/tmpWycKPJ', '/rhev/data-center/mnt/blockSD/28c33a32-2f21-4150-9e63-ff0851de2196/images/7489759c-ba13-4ea6-8b29-f52bbb13432f/4bd197b3-4986-46b0-b595-2db9a5db7738'), rc=1
2014-10-30 11:29:57 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk plugin.execute:861 execute-output: ('/bin/sudo', '-u', 'vdsm', '-g', 'kvm', '/bin/qemu-img', 'convert', '-O', 'raw', '/data/tmpWycKPJ', '/rhev/data-center/mnt/blockSD/28c33a32-2f21-4150-9e63-ff0851de2196/images/7489759c-ba13-4ea6-8b29-f52bbb13432f/4bd197b3-4986-46b0-b595-2db9a5db7738') stdout:


2014-10-30 11:29:57 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk plugin.execute:866 execute-output: ('/bin/sudo', '-u', 'vdsm', '-g', 'kvm', '/bin/qemu-img', 'convert', '-O', 'raw', '/data/tmpWycKPJ', '/rhev/data-center/mnt/blockSD/28c33a32-2f21-4150-9e63-ff0851de2196/images/7489759c-ba13-4ea6-8b29-f52bbb13432f/4bd197b3-4986-46b0-b595-2db9a5db7738') stderr:
qemu-img: /rhev/data-center/mnt/blockSD/28c33a32-2f21-4150-9e63-ff0851de2196/images/7489759c-ba13-4ea6-8b29-f52bbb13432f/4bd197b3-4986-46b0-b595-2db9a5db7738: error while converting raw: Could not create file: Permission denied

2014-10-30 11:29:57 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/vm/boot_disk.py", line 513, in _misc
    dst=self._image_path,
  File "/usr/lib/python2.7/site-packages/otopi/transaction.py", line 168, in __exit__
    self.commit()
  File "/usr/lib/python2.7/site-packages/otopi/transaction.py", line 160, in commit
    element.commit()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/vm/boot_disk.py", line 209, in commit
    raise RuntimeError(message)
RuntimeError: Command '/bin/sudo' failed to execute
2014-10-30 11:29:57 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': Command '/bin/sudo' failed to execute

Comment 1 mzcwlong 2014-10-31 09:55:02 UTC
maybe this proble is about vdsm

Comment 2 Anatoly Litovsky 2015-01-04 13:21:04 UTC
Please give me a link to oVirt-Engine-Appliance-Fedora-x86_64-19-20140924.ova.gz

Comment 3 Sandro Bonazzola 2015-01-21 16:05:41 UTC
oVirt 3.5.1 has been released, re-targeting to 3.5.2 as marked as urgent / high severity

Comment 4 Fabian Deutsch 2015-02-25 14:04:53 UTC
The problem here can be that sudo moved to /usr/bin/sudo on Fedora.

Please retry with one of the el7 isos:
http://jenkins.ovirt.org/view/All/job/ovirt-node_master_create-iso-el7_merged/

Comment 5 Fabian Deutsch 2015-02-26 10:07:38 UTC
Which indicates node:

qemu-img: /rhev/data-center/mnt/blockSD/28c33a32-2f21-4150-9e63-ff0851de2196/images/7489759c-ba13-4ea6-8b29-f52bbb13432f/4bd197b3-4986-46b0-b595-2db9a5db7738: error while converting raw: Could not create file: Permission denied

Maybe Selinux or some file permissions

Comment 6 Sandro Bonazzola 2015-03-03 13:05:57 UTC
Re-targeting to 3.5.3 since this bug has not been marked as blocker for 3.5.2 and we have already released 3.5.2 Release Candidate.

Comment 9 Simone Tiraboschi 2015-05-20 12:50:47 UTC
It's probably related to this one which appear to be the same or really similar:
https://bugzilla.redhat.com/show_bug.cgi?id=1222058

But we are facing it on 3.6, never seen it on 3.5.z

Comment 12 Fabian Deutsch 2015-11-23 13:46:27 UTC
Closing this bug according to comment 11.