Re: [ovirt-users] oVirt engine with different VM id
Ok, i did a right click on storage domain and did destroy. It's get's imported and Engine VM too. Now it seems OK, Thank you very much. Best regards, Misak Khachatryan On Thu, Aug 31, 2017 at 5:11 PM, Misak Khachatryan wrote: > Hi, > > it's grayed out on web interface, is there any other way? Trying to > detach gives error > > VDSM command DetachStorageDomainVDS failed: Storage domain does not > exist: (u'c44343af-cc4a-4bb7-a548-0c6f609d60d5',) > Failed to detach Storage Domain hosted_storage from Data Center > Default. (User: admin@internal-authz) > > > Best regards, > Misak Khachatryan > > > On Thu, Aug 31, 2017 at 4:22 PM, Martin Sivak wrote: >> Hi, >> >> you can remote the hosted engine storage domain from the engine as >> well. It should also be re-imported. >> >> We had cases where destroying the domain ended up with a locked SD, >> but removing the SD and re-importing is the proper way here. >> >> Best regards >> >> PS: Re-adding the mailing list, we should really set a proper Reply-To >> header.. >> >> Martin Sivak >> >> On Thu, Aug 31, 2017 at 2:07 PM, Misak Khachatryan wrote: >>> Hi, >>> >>> I would love to, but: >>> >>> Error while executing action: >>> >>> HostedEngine: >>> >>> Cannot remove VM. The relevant Storage Domain's status is Inactive. >>> >>> it seems i should somehow fix storage domain first ... >>> >>> engine=# update storage_domain_static set id = >>> '2e2820f3-8c3d-487d-9a56-1b8cd278ec6c' where id = >>> 'c44343af-cc4a-4bb7-a548-0c6f609d60d5'; >>> ERROR: update or delete on table "storage_domain_static" violates >>> foreign key constraint "disk_profiles_storage_domain_id_fkey" on table >>> "disk_profiles" >>> DETAIL: Key (id)=(c44343af-cc4a-4bb7-a548-0c6f609d60d5) is still >>> referenced from table "disk_profiles". >>> >>> engine=# update disk_profiles set storage_domain_id = >>> '2e2820f3-8c3d-487d-9a56-1b8cd278ec6c' where id = >>> 'a6d71571-a13a-415b-9f97-635f17cbe67d'; >>> ERROR: insert or update on table "disk_profiles" violates foreign key >>> constraint "disk_profiles_storage_domain_id_fkey" >>> DETAIL: Key (storage_domain_id)=(2e2820f3-8c3d-487d-9a56-1b8cd278ec6c) >>> is not present in table "storage_domain_static". >>> >>> engine=# select * from storage_domain_static; >>> id | storage >>> | storage_name | storage_domain_type | storage_type | >>> storage_domain_format_type | _create_date | >>> _update_date | recoverable | last_time_used_as_maste >>> r | storage_description | storage_comment | wipe_after_delete | >>> warning_low_space_indicator | critical_space_action_blocker | >>> first_metadata_device | vg_metadata_device | discard_after_delete >>> --+--++-+--++---+---+-+ >>> --+-+-+---+-+---+---++-- >>> 072fbaa1-08f3-4a40-9f34-a5ca22dd1d74 | >>> ceab03af-7220-4d42-8f5c-9b557f5d29af | ovirt-image-repository | >>>4 |8 | 0 | 2016-11-02 >>> 21:27:22.118586+04 | | t | >>> | | | f | >>> | | >>> || f >>> 51c903f6-df83-4510-ac69-c164742ca6e7 | >>> 34b72ce0-6ad7-4180-a8a1-2acfd45824d7 | iso| >>>2 |7 | 0 | 2016-11-02 >>> 23:26:21.296635+04 | | t | >>> 0 | | | f | >>> 10 | 5 | >>> || f >>> ece1f05c-97c9-4482-a1a5-914397cddd35 | >>> dd38f31f-7bdc-463c-9ae4-fcd4dc8c99fd | export | >>>3 |1 | 0 | 2016-12-14 >>> 11:28:15.736746+04 | 2016-12-14 11:33:12.872562+04 | t | >>> 0 | Export | | f | >>> 10 | 5 | >>> || f >>> 07ea2089-a82b-4ca1-9c8b-54e3895b2ed4 | >>> d1e9e3c8-aaf3-43de-ae80-101e5bd2574f | data | >>>0 |7 | 4 | 2016-11-02 >>> 23:24:43.402629+04 | 2017-02-22 17:20:42.721092+04 | t | >>> 0 | | | f | >>> 10 | 5 | >>> || f >>> c44343af-cc4a-4bb7-a548-0c6f609d60d5 | >>> 8b54ce35-3187-4fba-a2c7-6b604d077f5b | hosted_storage | >>>1 |
Re: [ovirt-users] oVirt engine with different VM id
Hi, it's grayed out on web interface, is there any other way? Trying to detach gives error VDSM command DetachStorageDomainVDS failed: Storage domain does not exist: (u'c44343af-cc4a-4bb7-a548-0c6f609d60d5',) Failed to detach Storage Domain hosted_storage from Data Center Default. (User: admin@internal-authz) Best regards, Misak Khachatryan On Thu, Aug 31, 2017 at 4:22 PM, Martin Sivak wrote: > Hi, > > you can remote the hosted engine storage domain from the engine as > well. It should also be re-imported. > > We had cases where destroying the domain ended up with a locked SD, > but removing the SD and re-importing is the proper way here. > > Best regards > > PS: Re-adding the mailing list, we should really set a proper Reply-To > header.. > > Martin Sivak > > On Thu, Aug 31, 2017 at 2:07 PM, Misak Khachatryan wrote: >> Hi, >> >> I would love to, but: >> >> Error while executing action: >> >> HostedEngine: >> >> Cannot remove VM. The relevant Storage Domain's status is Inactive. >> >> it seems i should somehow fix storage domain first ... >> >> engine=# update storage_domain_static set id = >> '2e2820f3-8c3d-487d-9a56-1b8cd278ec6c' where id = >> 'c44343af-cc4a-4bb7-a548-0c6f609d60d5'; >> ERROR: update or delete on table "storage_domain_static" violates >> foreign key constraint "disk_profiles_storage_domain_id_fkey" on table >> "disk_profiles" >> DETAIL: Key (id)=(c44343af-cc4a-4bb7-a548-0c6f609d60d5) is still >> referenced from table "disk_profiles". >> >> engine=# update disk_profiles set storage_domain_id = >> '2e2820f3-8c3d-487d-9a56-1b8cd278ec6c' where id = >> 'a6d71571-a13a-415b-9f97-635f17cbe67d'; >> ERROR: insert or update on table "disk_profiles" violates foreign key >> constraint "disk_profiles_storage_domain_id_fkey" >> DETAIL: Key (storage_domain_id)=(2e2820f3-8c3d-487d-9a56-1b8cd278ec6c) >> is not present in table "storage_domain_static". >> >> engine=# select * from storage_domain_static; >> id | storage >> | storage_name | storage_domain_type | storage_type | >> storage_domain_format_type | _create_date | >> _update_date | recoverable | last_time_used_as_maste >> r | storage_description | storage_comment | wipe_after_delete | >> warning_low_space_indicator | critical_space_action_blocker | >> first_metadata_device | vg_metadata_device | discard_after_delete >> --+--++-+--++---+---+-+ >> --+-+-+---+-+---+---++-- >> 072fbaa1-08f3-4a40-9f34-a5ca22dd1d74 | >> ceab03af-7220-4d42-8f5c-9b557f5d29af | ovirt-image-repository | >>4 |8 | 0 | 2016-11-02 >> 21:27:22.118586+04 | | t | >> | | | f | >> | | >> || f >> 51c903f6-df83-4510-ac69-c164742ca6e7 | >> 34b72ce0-6ad7-4180-a8a1-2acfd45824d7 | iso| >>2 |7 | 0 | 2016-11-02 >> 23:26:21.296635+04 | | t | >> 0 | | | f | >> 10 | 5 | >> || f >> ece1f05c-97c9-4482-a1a5-914397cddd35 | >> dd38f31f-7bdc-463c-9ae4-fcd4dc8c99fd | export | >>3 |1 | 0 | 2016-12-14 >> 11:28:15.736746+04 | 2016-12-14 11:33:12.872562+04 | t | >> 0 | Export | | f | >> 10 | 5 | >> || f >> 07ea2089-a82b-4ca1-9c8b-54e3895b2ed4 | >> d1e9e3c8-aaf3-43de-ae80-101e5bd2574f | data | >>0 |7 | 4 | 2016-11-02 >> 23:24:43.402629+04 | 2017-02-22 17:20:42.721092+04 | t | >> 0 | | | f | >> 10 | 5 | >> || f >> c44343af-cc4a-4bb7-a548-0c6f609d60d5 | >> 8b54ce35-3187-4fba-a2c7-6b604d077f5b | hosted_storage | >>1 |7 | 4 | 2016-11-02 >> 23:26:13.165435+04 | 2017-02-22 17:20:42.721092+04 | t | >> 0 | | | f | >> 10 | 5 | >> || f >> 004ca4dd-c621-463d-b514-ccfe07ef99d7 | >> b31a7de9-e789-4e
Re: [ovirt-users] oVirt engine with different VM id
Hi, you can remote the hosted engine storage domain from the engine as well. It should also be re-imported. We had cases where destroying the domain ended up with a locked SD, but removing the SD and re-importing is the proper way here. Best regards PS: Re-adding the mailing list, we should really set a proper Reply-To header.. Martin Sivak On Thu, Aug 31, 2017 at 2:07 PM, Misak Khachatryan wrote: > Hi, > > I would love to, but: > > Error while executing action: > > HostedEngine: > > Cannot remove VM. The relevant Storage Domain's status is Inactive. > > it seems i should somehow fix storage domain first ... > > engine=# update storage_domain_static set id = > '2e2820f3-8c3d-487d-9a56-1b8cd278ec6c' where id = > 'c44343af-cc4a-4bb7-a548-0c6f609d60d5'; > ERROR: update or delete on table "storage_domain_static" violates > foreign key constraint "disk_profiles_storage_domain_id_fkey" on table > "disk_profiles" > DETAIL: Key (id)=(c44343af-cc4a-4bb7-a548-0c6f609d60d5) is still > referenced from table "disk_profiles". > > engine=# update disk_profiles set storage_domain_id = > '2e2820f3-8c3d-487d-9a56-1b8cd278ec6c' where id = > 'a6d71571-a13a-415b-9f97-635f17cbe67d'; > ERROR: insert or update on table "disk_profiles" violates foreign key > constraint "disk_profiles_storage_domain_id_fkey" > DETAIL: Key (storage_domain_id)=(2e2820f3-8c3d-487d-9a56-1b8cd278ec6c) > is not present in table "storage_domain_static". > > engine=# select * from storage_domain_static; > id | storage > | storage_name | storage_domain_type | storage_type | > storage_domain_format_type | _create_date | > _update_date | recoverable | last_time_used_as_maste > r | storage_description | storage_comment | wipe_after_delete | > warning_low_space_indicator | critical_space_action_blocker | > first_metadata_device | vg_metadata_device | discard_after_delete > --+--++-+--++---+---+-+ > --+-+-+---+-+---+---++-- > 072fbaa1-08f3-4a40-9f34-a5ca22dd1d74 | > ceab03af-7220-4d42-8f5c-9b557f5d29af | ovirt-image-repository | >4 |8 | 0 | 2016-11-02 > 21:27:22.118586+04 | | t | > | | | f | > | | > || f > 51c903f6-df83-4510-ac69-c164742ca6e7 | > 34b72ce0-6ad7-4180-a8a1-2acfd45824d7 | iso| >2 |7 | 0 | 2016-11-02 > 23:26:21.296635+04 | | t | > 0 | | | f | > 10 | 5 | > || f > ece1f05c-97c9-4482-a1a5-914397cddd35 | > dd38f31f-7bdc-463c-9ae4-fcd4dc8c99fd | export | >3 |1 | 0 | 2016-12-14 > 11:28:15.736746+04 | 2016-12-14 11:33:12.872562+04 | t | > 0 | Export | | f | > 10 | 5 | > || f > 07ea2089-a82b-4ca1-9c8b-54e3895b2ed4 | > d1e9e3c8-aaf3-43de-ae80-101e5bd2574f | data | >0 |7 | 4 | 2016-11-02 > 23:24:43.402629+04 | 2017-02-22 17:20:42.721092+04 | t | > 0 | | | f | > 10 | 5 | > || f > c44343af-cc4a-4bb7-a548-0c6f609d60d5 | > 8b54ce35-3187-4fba-a2c7-6b604d077f5b | hosted_storage | >1 |7 | 4 | 2016-11-02 > 23:26:13.165435+04 | 2017-02-22 17:20:42.721092+04 | t | > 0 | | | f | > 10 | 5 | > || f > 004ca4dd-c621-463d-b514-ccfe07ef99d7 | > b31a7de9-e789-4ece-9f99-4b150bf581db | virt4-Local| >0 |4 | 4 | 2017-03-23 > 09:02:26.37006+04 | 2017-03-23 09:02:31.887534+04 | t | > 0 | | | f | > 10 | 5 | > || f > (6 rows) > > engine=# select * from storage_domain_dynamic; > id | available_disk_size | > used_disk_size | _update_d