Bug 851154 - [engine] Unable to remove datacenter because storage domain is stuck on Locked
Summary: [engine] Unable to remove datacenter because storage domain is stuck on Locked
Keywords:
Status: CLOSED DUPLICATE of bug 875651
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
: 3.2.0
Assignee: Ayal Baron
QA Contact: Haim
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-23 11:37 UTC by Gadi Ickowicz
Modified: 2016-02-10 18:49 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-12 10:26:02 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm + engine logs (12.48 MB, application/x-gzip)
2012-08-23 11:37 UTC, Gadi Ickowicz
no flags Details

Description Gadi Ickowicz 2012-08-23 11:37:40 UTC
Created attachment 606515 [details]
vdsm + engine logs

Description of problem:
If storage domain remains locked and unable to remove datacenter (force remove also). After creating a master (iscsi) storage domain, ISO domain and another storage domain (unattached), storage was destroyed on the storage server. At this point removing the datacenter fails, causing  the master storage domain to become locked, and unable to remove using "force remove" either.

Status in database:
engine=# select * from storage_pool;
                  id                  |      name      |       description       | storage_pool_type | storage_pool_format_type | status | master_domain_version | spm_vds_id | compatibility_version |         _crea
te_date          |         _update_date          | quota_enforcement_type
--------------------------------------+----------------+-------------------------+-------------------+--------------------------+--------+-----------------------+------------+-----------------------+--------------
-----------------+-------------------------------+------------------------
 967db7f0-ec5a-11e1-a258-001a4a169705 | Default        | The default Data Center |                 1 |                          |      0 |                     0 |            | 3.1                   | 2012-08-22 16
:09:21.385208+03 | 2012-08-22 16:10:53.310667+03 |
 a23c3ab1-842c-490f-a6a9-15551632e2e2 | TestDataCenter |                         |                 3 | 3                        |      4 |                     1 |            | 3.1                   | 2012-08-23 12
:32:09.175373+03 | 2012-08-23 12:52:09.957153+03 |                      0
(2 rows)

engine=# select * from storage_domains;
                  id                  |                storage                 |   storage_name   |           storage_pool_id            | available_disk_size | used_disk_size | commited_disk_size | status | stora
ge_pool_name | storage_type | storage_domain_type | storage_domain_format_type | last_time_used_as_master | owner | storage_domain_shared_status | recoverable
--------------------------------------+----------------------------------------+------------------+--------------------------------------+---------------------+----------------+--------------------+--------+------
-------------+--------------+---------------------+----------------------------+--------------------------+-------+------------------------------+-------------
 74e9890c-655c-4191-8e2c-ff872b5f87f0 | KEWtvl-0WAl-Q3UP-3De6-LaYI-NxdS-EcTk3L | ISCSIDataDomain2 |                                      |                  45 |              4 |                  0 |        |
             |            3 |                   1 | 3                          |                        0 |       |                            0 | t
 40460dfd-c028-4cda-8413-6c27e0e9e2e0 | AsnhlN-y0kI-I3Nc-qBYs-GU5O-r1vR-dqkeAW | ISCSIDataDomain  | a23c3ab1-842c-490f-a6a9-15551632e2e2 |                     |                |                  0 |      5 | TestD
ataCenter    |            3 |                   1 | 3                          |                        0 |     0 |                            2 | t
 11eae725-0215-47d9-a784-30673a6a0b7c | 82fa2875-82b2-449c-be95-e719ed2e5ba8   | ISODomainRest    | a23c3ab1-842c-490f-a6a9-15551632e2e2 |                     |                |                  0 |      0 | TestD
ataCenter    |            1 |                   2 | 0                          |                        0 |     0 |                            2 | t
(3 rows)



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create and attach master storage domain
2. Create and attach ISO domain
3. Create another storage domain
4. Try to activate the domain without attaching (using REST, fails obviously)
5. Remove storage from storage server 
6. Try to remove datacenter from GUI
  
Actual results:
Master storage domain becomes locked when removing it after the scenario is run

Expected results:
force remove should remove the datacenter

Additional info:
VDSM + engine logs attached

Comment 4 Gadi Ickowicz 2012-11-12 10:26:02 UTC

*** This bug has been marked as a duplicate of bug 875651 ***


Note You need to log in before you can comment on or make changes to this bug.