Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 879355

Summary: engine [TEXT]: Message not clear when activating domain that was unreachable because of lock taken by engine recovery
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: abaron, acathrow, amureini, iheim, jkt, lnatapov, lpeer, Rhev-m-bugs, scohen, thildred, yeylon
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SF6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-13 14:36:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-11-22 16:35:37 UTC
Created attachment 649931 [details]
log

Description of problem:

I blocked my iso domain from the vds using iptables and after it because inactive I tried activating it right after engine detected the domain as active as well. 

as user I got a CanDoAction on Activate domain - looks due to lock taken by engine. 

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

si24.4

How reproducible:

race

Steps to Reproduce:
1. block connectivity from the vds to the iso domain using iptables
2. once the domain becomes inactive remove iptables block from vds
3. after engine acquires lock, manually activate the domain.
  
Actual results:

user gets CanDoAction of action ActivateStorageDomain failed. Reasons:VAR__TYPE__STORAGE__DOMAIN,VAR__ACTION__ACTIVATE,ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL

Expected results:

1.object lock by engine should not have status illegal CanDoAction for manual actions. 
2. CanDoAction if needed in this situation should have a "action in progress" message 

Additional info: log

2012-11-22 17:39:10,221 WARN  [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand] (QuartzScheduler_Worker-95) [1726d659] Storage Domain eebcad17-cbf7-4098-880d-81e2c2504169:shared_iso_domain was reported by Host gold-vdsc as Active in Pool edf0ee04-0cc2-4e13-877d-1e89541aea55, moving to active status
2012-11-22 17:40:00,000 INFO  [org.ovirt.engine.core.bll.AutoRecoveryManager] (QuartzScheduler_Worker-77) [2dbb2bf6] Checking autorecoverable hosts
2012-11-22 17:40:00,001 INFO  [org.ovirt.engine.core.bll.AutoRecoveryManager] (QuartzScheduler_Worker-77) [2dbb2bf6] Autorecovering 0 hosts
2012-11-22 17:40:00,001 INFO  [org.ovirt.engine.core.bll.AutoRecoveryManager] (QuartzScheduler_Worker-77) [2dbb2bf6] Checking autorecoverable hosts done
2012-11-22 17:40:00,001 INFO  [org.ovirt.engine.core.bll.AutoRecoveryManager] (QuartzScheduler_Worker-77) [2dbb2bf6] Autorecovering storage domains is disabled, skipping
2012-11-22 17:40:27,673 INFO  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (ajp-/127.0.0.1:8702-6) Lock Acquired to object EngineLock [exclusiveLocks= key: eebcad17-cbf7-4098-880d-81e2c2504169 value: STORAGE
, sharedLocks= ]
2012-11-22 17:40:27,734 WARN  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (ajp-/127.0.0.1:8702-6) CanDoAction of action ActivateStorageDomain failed. Reasons:VAR__TYPE__STORAGE__DOMAIN,VAR__ACTION__ACTIVATE,ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL
2012-11-22 17:40:27,734 INFO  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (ajp-/127.0.0.1:8702-6) Lock freed to object EngineLock [exclusiveLocks= key: eebcad17-cbf7-4098-880d-81e2c2504169 value: STORAGE
, sharedLocks= ]
(END)

Comment 1 Liron Aravot 2013-01-06 19:23:09 UTC
http://gerrit.ovirt.org/#/c/10691/

Comment 2 Leonid Natapov 2013-02-13 15:16:57 UTC
SF6. Manually activated SD after blocking connection from host to ISO domain.
No CanDoAction was noticed.


013-02-13 17:18:53,141 INFO  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (ajp-/127.0.0.1:8702-6) Lock Acquired to object EngineLock [exclusiveLocks= key: 
6d0448eb-19f0-4bb1-9989-665be18f0b00 value: STORAGE
, sharedLocks= ]
2013-02-13 17:18:53,203 INFO  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (pool-3-thread-44) [4922d102] Running command: ActivateStorageDomainCommand inter
nal: false. Entities affected :  ID: 6d0448eb-19f0-4bb1-9989-665be18f0b00 Type: Storage
2013-02-13 17:18:53,220 INFO  [org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand] (pool-3-thread-44) [4922d102] Lock freed to object EngineLock [exclusiveLocks= ke
y: 6d0448eb-19f0-4bb1-9989-665be18f0b00 value: STORAGE

Comment 3 Sean Cohen 2014-01-13 14:36:10 UTC
Based on comment 2, closing for current release