Description of problem: If the hosted engine deploy fails during the engine configuration, the deployment cannot be run again as it always fail. Version-Release number of selected component (if applicable): ovirt-hosted-engine-setup-2.1.0-0.0.master.20161130101611.gitb3ad261.el7.centos.noarch How reproducible: 100% Steps to Reproduce: 1.run hosted-engine --deploy 2.Choose to automatically run engine-setup 3.Make sure that engine setup will fail Actual results: Another attempt to run the deployment fails Expected results: Another attempt can be triggered. Additional info: The second attempt fails with the following error: [ ERROR ] The following VMs have been found: 2ee22064-36be-4a7a-b429-1889a23040e7 [ ERROR ] Failed to execute stage 'Environment setup': Cannot setup Hosted Engine with other VMs running
Created attachment 1231193 [details] First attempt which triggered the issue
Created attachment 1231195 [details] Second attemp which always fails
The uploaded logs are hosted engine setup logs. The problem is that hosted-engine or vdsm does not properly cleaning the data and the VM recovery file remains in the ENV. # ls -ld /var/run/vdsm/*-* drwxr-xr-x. 2 vdsm kvm 40 Dec 13 13:43 /var/run/vdsm/2ee22064-36be-4a7a-b429-1889a23040e7 -rw-------. 1 vdsm kvm 5387 Dec 13 13:43 /var/run/vdsm/2ee22064-36be-4a7a-b429-1889a23040e7.recovery
Workaround is remove these files and restart vdsmd
you could also simply run: hosted-engine --vm-poweroff *** This bug has been marked as a duplicate of bug 1001181 ***