Created attachment 1500872 [details] engine and ovirt-hosted-engine-setup logs attached Description of problem: VMs running of the host where the 'hosted-engine --deploy --restore-from-file=backup_file' is performed are removed from the environment after the deploy completed. Version-Release number of selected component (if applicable): ovirt-hosted-engine-setup-2.2.31-1.el7ev.noarch ovirt-engine-4.2.7.4-0.1.el7ev.noarch How reproducible:100% Steps to Reproduce: Pre-condition: three hosts in the environment . No Power Management VMs are up on host1 : HE VM High Performance VM golden_env_mixed_virtio_1_1. High Available with lease VM golden_env_mixed_virtio_1_0. VM with iscsi disk golden_env_mixed_virtio_2_0. Four VMs run on host3: test_2gluster_2iscs test_2nfs_2iscsi_disks test_4iscsi_disks test_4nfs_disks Test Steps: 1. on all 3 hosts: yum install http://download.eng.bos.redhat.com/brewroot/packages/ovirt-hosted-engine-setup/2.2.31/1.el7ev/noarch/ovirt-hosted-engine-setup-2.2.31-1.el7ev.noarch.rpm 2. [root@compute-ge-he-4 ~]# engine-backup --mode=backup --file=backup_compute-he-4 --log=log_compute-he-4_backup4.2 Backing up: Notifying engine - Files - Engine database 'engine' - DWH database 'ovirt_engine_history' Packing into file 'backup_compute-he-4' Notifying engine Done. 3. Copy aside 4. Insert environment into global maintenance. hosted-engine --set-maintenance --mode=global 5. Cleanup HE Storage NFS Domain. rm -Rf /Compute_NFS/pagranat/compute-ge-he-4 on yellow-vdsb.qa.lab.tlv.redhat.com 6. Reprovisioning HE host . Copy repos to /etc/yum.repos.d/, yum update -y , yum install http://download.eng.bos.redhat.com/brewroot/packages/ovirt-hosted-engine-setup/2.2.31/1.el7ev/noarch/ovirt-hosted-engine-setup-2.2.31-1.el7ev.noarch.rpm fix the /etc/iscsi/initiator.iscsi 7. copy backup file to the host and run hosted-engine --deploy --restore-from-file=backup_compute-he-4 (give the NEW storage path yellow-vdsb.qa.lab.tlv.redhat.com:/Compute_NFS/pagranat/compute-ge-he-4_restored ) Actual results: The VMs run on host1 are removed from the environment. their disks are existent. Expected results: the environment restored with all the VMs Additional info: engine and ovirt-hosted-engine-setup logs attached
Were these VMs present before the backup?
Created attachment 1501214 [details] screenshot of environment before backup Yes, the VMs were running in the environment before the backup. Please see 'Pre-condition' section before the 'Test Steps:'. I also attach a screenshot of the environment before backup.
We are strongly recommending to perform the restore on a spare host that wasn't part of the original environment. In that case the user is not going to face this issue.
Worked for me on these components: ovirt-hosted-engine-setup-2.2.32-1.el7ev.noarch ovirt-hosted-engine-ha-2.2.18-1.el7ev.noarch I've tested on environment where one guest VM was running on reprovisioned ha-host with the engine VM and second guest VM was running on first ha-host. Both guest VMs remained after restore and one of them was still running on the untouched ha-host. Plese consider moving to verified.
Verified on ovirt-hosted-engine-setup-2.2.32-1.el7ev.noarch.rpm according to the Description Steps.
This bugzilla is included in oVirt 4.2.7 Async 1 release, published on November 13th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.7 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.