When trying to attach a domain to a data center with no active host, an error message of “Cannot edit repository” appears. This has been fixed, and when reproduced, the appropriate error of “Cannot attach domain” appears.
Created attachment 735553[details]
log
Description of problem:
I created a DC and host attached to it was in maintenance.
when I tried adding a domain I got the following error:
Cannot edit Repository. There is no active Host in the Data Center.
Version-Release number of selected component (if applicable):
sf13.1
How reproducible:
100%
Steps to Reproduce:
1. create an unattached domain
2. put one host in maintenance
3. create a new DC and cluster using wizard and select the host that you put in mainennace.
4. under Data Center tab -> select storage sub tab -> attach -> select unattached domain
4.
Actual results:
Cannot edit Repository. There is no active Host in the Data Center.
Expected results:
"Cannot edit Repository" should be removed and replaced with "cannot attach domain"
Additional info: log
2013-04-14 12:22:13,461 INFO [org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand] (ajp-/127.0.0.1:8702-1) Lock Acquired to object EngineLock [exclusiveLocks= key: 9bde1b28-3c86-4229-a3db-10238193fe02 value: POOL
, sharedLocks= ]
2013-04-14 12:22:13,464 WARN [org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand] (ajp-/127.0.0.1:8702-1) CanDoAction of action AddStoragePoolWithStorages failed. Reasons:VAR__TYPE__STORAGE__POOL,VAR__ACTION__UPDATE,ACTION_TYPE_FAILED_NO_VDS_IN_POOL
Created attachment 735553 [details] log Description of problem: I created a DC and host attached to it was in maintenance. when I tried adding a domain I got the following error: Cannot edit Repository. There is no active Host in the Data Center. Version-Release number of selected component (if applicable): sf13.1 How reproducible: 100% Steps to Reproduce: 1. create an unattached domain 2. put one host in maintenance 3. create a new DC and cluster using wizard and select the host that you put in mainennace. 4. under Data Center tab -> select storage sub tab -> attach -> select unattached domain 4. Actual results: Cannot edit Repository. There is no active Host in the Data Center. Expected results: "Cannot edit Repository" should be removed and replaced with "cannot attach domain" Additional info: log 2013-04-14 12:22:13,461 INFO [org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand] (ajp-/127.0.0.1:8702-1) Lock Acquired to object EngineLock [exclusiveLocks= key: 9bde1b28-3c86-4229-a3db-10238193fe02 value: POOL , sharedLocks= ] 2013-04-14 12:22:13,464 WARN [org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand] (ajp-/127.0.0.1:8702-1) CanDoAction of action AddStoragePoolWithStorages failed. Reasons:VAR__TYPE__STORAGE__POOL,VAR__ACTION__UPDATE,ACTION_TYPE_FAILED_NO_VDS_IN_POOL