
This is a multi-part MIME message. --=_reb-r3E2C9F17-t5431F02A Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Hi I am trying to backup and restore the VM using the flow suggester at Features/Backup-Restore API Integration <http://www.ovirt.org/Features/Backup-Restore_API_Integration#VM_Backup.2FRestore_suggested_flows> When I tried to restore the VM using the following steps, _*Full Virtual Machine Restoration*_ 1. Create disks for restore 2. Attach the disks for restore to the virtual appliance (Restore the data to it) 3. Detach the disks from the virtual appliance. 4. Create a vm using the configuration that was saved as part of the backup flow - (added capabillity to oVirt as part of the Backup API) 5. Attach the restored disks to the created vm. I encountered following error at step 4. <fault> <reason>Operation Failed</reason> <detail>[Import VM failed - _*VM Id already exist in the system*_. Please remove the VM (RHEL_65_CL1_CLONE2) from the system first]</detail> </fault> I have not deleted/removed the backed up VM from the system. Is it expected behaviour? Should it not overwrite the existing VM or Create new VM with different VM Id, if the backup up VM exists? Thanks, Santosh ***************************Legal Disclaimer*************************** "This communication may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message by mistake, please advise the sender by reply email and delete the message. Thank you." ********************************************************************** --=_reb-r3E2C9F17-t5431F02A Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: base64 PGh0bWw+DQogIDxoZWFkPg0KDQogICAgPG1ldGEgaHR0cC1lcXVpdj0iY29udGVudC10eXBl IiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPg0KICA8L2hlYWQ+DQogIDxi b2R5IGJnY29sb3I9IiNGRkZGRkYiIHRleHQ9IiMwMDAwMDAiPg0KICAgIEhpIDxicj4NCiAg ICA8YnI+DQogICAgSSBhbSB0cnlpbmcgdG8gYmFja3VwIGFuZCByZXN0b3JlIHRoZSBWTSB1 c2luZyB0aGUgZmxvdyBzdWdnZXN0ZXINCiAgICBhdMKgwqAgPGENCmhyZWY9Imh0dHA6Ly93 d3cub3ZpcnQub3JnL0ZlYXR1cmVzL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GlhbCBhbmQgcHJpdmlsZWdlZCBtYXRlcmlhbCBmb3IgdGhlDQpz b2xlIHVzZSBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50LiBBbnkgdW5hdXRob3JpemVkIHJl dmlldywgdXNlIG9yIGRpc3RyaWJ1dGlvbg0KYnkgb3RoZXJzIGlzIHN0cmljdGx5IHByb2hp Yml0ZWQuIElmIHlvdSBoYXZlIHJlY2VpdmVkIHRoZSBtZXNzYWdlIGJ5IG1pc3Rha2UsDQpw bGVhc2UgYWR2aXNlIHRoZSBzZW5kZXIgYnkgcmVwbHkgZW1haWwgYW5kIGRlbGV0ZSB0aGUg bWVzc2FnZS4gVGhhbmsgeW91LiINCioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKio8L3ByZT4NCg== --=_reb-r3E2C9F17-t5431F02A--

If you still have the backed up VM in your system, the create from configuration operation should be blocked as you've encountered. Allon, what does the create VM from configuration checks? The existence of the VM name or the existence of its ID? ----- Original Message ----- From: "santosh" <sbahir@commvault.com> To: users@ovirt.org Sent: Monday, 6 October, 2014 4:28:06 AM Subject: [ovirt-users] Restoring backed up VM Hi I am trying to backup and restore the VM using the flow suggester at Features/Backup-Restore API Integration When I tried to restore the VM using the following steps, Full Virtual Machine Restoration 1. Create disks for restore 2. Attach the disks for restore to the virtual appliance (Restore the data to it) 3. Detach the disks from the virtual appliance. 4. Create a vm using the configuration that was saved as part of the backup flow - (added capabillity to oVirt as part of the Backup API) 5. Attach the restored disks to the created vm. I encountered following error at step 4. <fault> <reason>Operation Failed</reason> <detail>[Import VM failed - VM Id already exist in the system . Please remove the VM (RHEL_65_CL1_CLONE2) from the system first]</detail> </fault> I have not deleted/removed the backed up VM from the system. Is it expected behaviour? Should it not overwrite the existing VM or Create new VM with different VM Id, if the backup up VM exists? Thanks, Santosh ***************************Legal Disclaimer*************************** "This communication may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message by mistake, please advise the sender by reply email and delete the message. Thank you." ********************************************************************** _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Elad, the the VM from configuration checks the existence of the VM id. Probably RHEL_65_CL1_CLONE2 has the same id as the VM which is being imported. Regards, Maor ----- Original Message -----
From: "Elad Ben Aharon" <ebenahar@redhat.com> To: "santosh" <sbahir@commvault.com>, "Allon Mureinik" <amureini@redhat.com> Cc: users@ovirt.org Sent: Tuesday, October 7, 2014 9:08:42 AM Subject: Re: [ovirt-users] Restoring backed up VM
If you still have the backed up VM in your system, the create from configuration operation should be blocked as you've encountered. Allon, what does the create VM from configuration checks? The existence of the VM name or the existence of its ID?
----- Original Message ----- From: "santosh" <sbahir@commvault.com> To: users@ovirt.org Sent: Monday, 6 October, 2014 4:28:06 AM Subject: [ovirt-users] Restoring backed up VM
Hi
I am trying to backup and restore the VM using the flow suggester at Features/Backup-Restore API Integration
When I tried to restore the VM using the following steps,
Full Virtual Machine Restoration
1. Create disks for restore 2. Attach the disks for restore to the virtual appliance (Restore the data to it) 3. Detach the disks from the virtual appliance. 4. Create a vm using the configuration that was saved as part of the backup flow - (added capabillity to oVirt as part of the Backup API) 5. Attach the restored disks to the created vm.
I encountered following error at step 4.
<fault> <reason>Operation Failed</reason> <detail>[Import VM failed - VM Id already exist in the system . Please remove the VM (RHEL_65_CL1_CLONE2) from the system first]</detail> </fault>
I have not deleted/removed the backed up VM from the system.
Is it expected behaviour? Should it not overwrite the existing VM or Create new VM with different VM Id, if the backup up VM exists?
Thanks, Santosh ***************************Legal Disclaimer*************************** "This communication may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message by mistake, please advise the sender by reply email and delete the message. Thank you." **********************************************************************
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Allon, Elad: Yes, RHEL_65_CL1_CLONE2 has the same ID as the VM being restored. And error message also indicates that the conflict is occurring on the VM id. Thanks for the confirmation. Thanks, Santosh On 10/07/2014 03:59 AM, Maor Lipchuk wrote:
Elad, the the VM from configuration checks the existence of the VM id. Probably RHEL_65_CL1_CLONE2 has the same id as the VM which is being imported.
Regards, Maor
----- Original Message -----
From: "Elad Ben Aharon" <ebenahar@redhat.com> To: "santosh" <sbahir@commvault.com>, "Allon Mureinik" <amureini@redhat.com> Cc: users@ovirt.org Sent: Tuesday, October 7, 2014 9:08:42 AM Subject: Re: [ovirt-users] Restoring backed up VM
If you still have the backed up VM in your system, the create from configuration operation should be blocked as you've encountered. Allon, what does the create VM from configuration checks? The existence of the VM name or the existence of its ID?
----- Original Message ----- From: "santosh" <sbahir@commvault.com> To: users@ovirt.org Sent: Monday, 6 October, 2014 4:28:06 AM Subject: [ovirt-users] Restoring backed up VM
Hi
I am trying to backup and restore the VM using the flow suggester at Features/Backup-Restore API Integration
When I tried to restore the VM using the following steps,
Full Virtual Machine Restoration
1. Create disks for restore 2. Attach the disks for restore to the virtual appliance (Restore the data to it) 3. Detach the disks from the virtual appliance. 4. Create a vm using the configuration that was saved as part of the backup flow - (added capabillity to oVirt as part of the Backup API) 5. Attach the restored disks to the created vm.
I encountered following error at step 4.
<fault> <reason>Operation Failed</reason> <detail>[Import VM failed - VM Id already exist in the system . Please remove the VM (RHEL_65_CL1_CLONE2) from the system first]</detail> </fault>
I have not deleted/removed the backed up VM from the system.
Is it expected behaviour? Should it not overwrite the existing VM or Create new VM with different VM Id, if the backup up VM exists?
Thanks, Santosh ***************************Legal Disclaimer*************************** "This communication may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message by mistake, please advise the sender by reply email and delete the message. Thank you." **********************************************************************
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
***************************Legal Disclaimer*************************** "This communication may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message by mistake, please advise the sender by reply email and delete the message. Thank you." **********************************************************************
participants (3)
-
Elad Ben Aharon
-
Maor Lipchuk
-
santosh