Unable to export VM from data storage domain.

I'm running oVirt 4.4.4 with two data storage domains. One domain is where the production VMs run. The second domain is where I make backup copies of the VMs in the event of problems with the main production VMs. I make backups using the export option from the GUI's dropdown list. I just now tried to "restore" a backup copy via the export function and get an error. In fact, I get errors trying to export (import to my original data domain) any of the VMs that were exported to my backup data domain. My backup domain is a DATA domain and not an EXPORT domain. The exact error is: Export VM Failed [Cannot add VM. Cannot find a disk profile defined on storage domain 246c69e9-6f16-489f-8022-8613f6c1c22a.] Is this a bug or am I doing something wrong? Help is needed urgently. In advance, thank you.

Sounds like a bug, can you attach the output of: $ psql -U engine -d engine -c "\x on" -c "select * from disk_profiles" On Sun, Aug 22, 2021 at 6:47 PM Diggy Mc <d03@bornfree.org> wrote:
I'm running oVirt 4.4.4 with two data storage domains. One domain is where the production VMs run. The second domain is where I make backup copies of the VMs in the event of problems with the main production VMs. I make backups using the export option from the GUI's dropdown list.
I just now tried to "restore" a backup copy via the export function and get an error. In fact, I get errors trying to export (import to my original data domain) any of the VMs that were exported to my backup data domain. My backup domain is a DATA domain and not an EXPORT domain.
The exact error is: Export VM Failed [Cannot add VM. Cannot find a disk profile defined on storage domain 246c69e9-6f16-489f-8022-8613f6c1c22a.]
Is this a bug or am I doing something wrong? Help is needed urgently. In advance, thank you. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/PFKGR3RIO5YSYV...

Here is the output from the SQL query you requested: Expanded display is on. -[ RECORD 1 ]-----+------------------------------------- id | 0f9d53aa-5e96-4186-9a7e-9f8e1400839c name | hosted_storage storage_domain_id | 2d8dab33-a8cd-4183-b473-711128a6c88e qos_id | description | _create_date | 2020-12-27 22:25:36.700864+00 _update_date | -[ RECORD 2 ]-----+------------------------------------- id | b53a27c8-0a01-4cd0-9a44-2edab49da0a5 name | nas_UserWkstn storage_domain_id | 24aaf9d6-60d2-481c-b303-e8bcff64baa7 qos_id | description | _create_date | 2021-01-04 18:21:34.847097+00 _update_date | 2021-01-04 18:26:08.502311+00 -[ RECORD 3 ]-----+------------------------------------- id | 8849af6d-b5a8-4124-9441-f46a0df597e1 name | nas_ISO storage_domain_id | 2df58ade-cdf2-4e15-a8b2-9a8a9d2861f6 qos_id | description | _create_date | 2020-12-28 22:47:08.36024+00 _update_date | 2021-01-04 18:29:00.07003+00 -[ RECORD 4 ]-----+------------------------------------- id | bca756b5-1347-41a4-935e-26bc25960916 name | nas_Other storage_domain_id | abc364e3-f730-4243-90a8-38c91bb8fd62 qos_id | description | _create_date | 2021-01-04 18:23:45.670996+00 _update_date | 2021-01-04 18:31:25.369887+00 -[ RECORD 5 ]-----+------------------------------------- id | b77c8ca6-d073-4703-9079-4d85f50679d7 name | nas_ProdSvr storage_domain_id | 40c157c9-3599-44d2-ab78-1ea4286b8852 qos_id | description | _create_date | 2021-01-06 02:03:55.305929+00 _update_date | -[ RECORD 6 ]-----+------------------------------------- id | d1912283-7c0f-4348-acf0-44b02a91a84a name | nas2_Other_BACKUPS storage_domain_id | 1b39dd0a-c121-43c9-8856-ca0350b88f1c qos_id | description | _create_date | 2021-01-30 23:41:31.415963+00 _update_date | -[ RECORD 7 ]-----+------------------------------------- id | f214d9d7-b48b-4c17-ac14-cc988ad4f100 name | nas2_ProdSvr_BACKUPS storage_domain_id | 246c69e9-6f16-489f-8022-8613f6c1c22a qos_id | description | _create_date | 2021-01-31 00:32:37.427456+00 _update_date | -[ RECORD 8 ]-----+------------------------------------- id | c8f05c49-9173-47a1-89fd-4c00b14760ee name | nas2_UserWkstn_BACKUPS storage_domain_id | bc398c44-8869-428b-85d4-d1058791fb0b qos_id | description | _create_date | 2021-01-31 00:35:03.625001+00 _update_date |

I believe I have significantly relevant information to help isolate the problem and I do believe it is a bug. First, I previously said that "all exported VMs" were affected. That is incorrect and therefore misleading. I apologize. The problem at hand appears to have to do with preallocated vs thin provisioning of disks. Again, I am running oVirt 4.4.4 at the moment. All VMs that only have preallocated disks have the problem. When they were exported, the disk profile remained the original profile from the source data domain. Thus, the error "Cannot add VM. Cannot find a disk profile defined on storage domain" when trying to re-export them back the other direction. VMs that have only thin provisioned disks or a combination of both types do NOT have the problem. When exported, all disks get the disk profile from the destination domain. Re-exporting them back the other direction works. Please let me know if I correctly identified a bug. More importantly, please let me know if it has been fixed since 4.4.4 and what I can do in the mean time. I really need to "restore" one of my VMs that is stuck in limbo because of the incorrect disk profile. Your prompt response is greatly appreciated.
participants (2)
-
Benny Zlotnik
-
Diggy Mc