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

Bug 1207077

Summary: Can't add storage domain with error: CanDoAction of action 'AddStorageServerConnection' failed for user admin@internal. Reasons: VAR__ACTION__ADD,VAR__TYPE__STORAGE__CONNECTION,ACTION_TYPE_FAILED_OBJECT_LOCKED
Product: [Retired] oVirt Reporter: Michael Burman <mburman>
Component: ovirt-engine-webadminAssignee: Maor <mlipchuk>
Status: CLOSED WORKSFORME QA Contact: Aharon Canan <acanan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6CC: bugs, ecohen, gklein, lsurette, mburman, mgoldboi, rbalakri, tnisan, yeylon, ylavi
Target Milestone: m1   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-24 05:14:49 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:
Bug Depends On: 1172699    
Bug Blocks:    
Attachments:
Description Flags
engine log none

Description Michael Burman 2015-03-30 08:10:16 UTC
Created attachment 1008262 [details]
engine log

Description of problem:
Can't add storage domain with error: CanDoAction of action 'AddStorageServerConnection' failed for user admin@internal. Reasons: VAR__ACTION__ADD,VAR__TYPE__STORAGE__CONNECTION,ACTION_TYPE_FAILED_OBJECT_LOCKED.

Looks very familiar to other bug i opened with such object_locked see BZ 1169879.

Storage domain adding is locked and so is the engine.
The engine is stacked for ever trying to add storage domain, when trying to add another one, i got error:
Operation canceled:
 Error while executing action: Cannot add Storage Connection. Related operation is currently in progress. Please try again later.

Version-Release number of selected component (if applicable):
3.6.0-0.0.master.20150329172249.git660d494.el6


Steps to Reproduce:
1. To reproduce this issue, need first to get to situation like mine, the engine is stacked for ever trying to add first storage domain without any timeout for this,

- Is there a time-out for adding storage domain to engine if failing to add one?
- Restarting engine doesn't solving this.
- I pretty sure i got to this situation cause of this BZ  1205575, 
- I guess the behavior in this issue is like in BZ 1169879 - fist command locks the engine or the storage domain adding, we have here multiple requests.
Buy the way, the first and original request for adding storage domain never been resolved, succeed or actually failed.

Comment 1 Maor 2015-08-23 13:56:56 UTC
looks like you Host encountered some python error.
  "error = local variable 'lines' referenced before assignment"
Can u please attach the Host logs and the RPM versions you are using

Comment 2 Michael Burman 2015-08-23 14:02:29 UTC
Hi Maor, 

I reported this issue 5 months ago..all i can do now, is to try and reproduce this report.

Comment 3 Maor 2015-08-23 15:17:54 UTC
It looks like your VDSM Host had a problem.
If you can reproduce this bug with the latest build and verify that there is a problem which so we can resolve, it could be great.
Perhaps we can move this to ON_QA or close it until it will be reproduce and re-opened with the full relevant logs and reproduce steps.

Comment 4 Michael Burman 2015-08-24 05:14:21 UTC
I can't reproduce this issue, it's a specific scenario in which the engine trying to add host for ever without any time out(for some reason), from this stage you will try to add another host and will fail cause the object is locked in db. 

This is an issue for sure, but i can't reproduce the point in which engine trying to add host for ever without any time out.

Closing this report until it will be reproducible and will re-open it again.