Bug 991797

Summary: storage domain creation fails if its storage connection is not mounted
Product: [Retired] oVirt Reporter: Alissa <abonas>
Component: ovirt-engine-coreAssignee: Alissa <abonas>
Status: CLOSED CURRENTRELEASE QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3CC: acathrow, amureini, iheim, yeylon
Target Milestone: ---   
Target Release: 3.3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 07:27:39 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:

Description Alissa 2013-08-04 12:16:49 UTC
Description of problem:
If a storage connection was created as standalone (via REST for example) before creating the storage domain, and it was persisted in db without connectStorageServer in vdsm (mount), or it was connected via a different host then the one used when creating storage domain - storage domain creation will fail with "remote path not mounted". 

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


How reproducible:
always

Steps to Reproduce:
1. create a storage connection without creating storage domain (not possible via UI, just via REST). Don't specify a host (vdsm) during its creation.
2. create a storage domain (via REST) and specify the existing storage connection id - from item 1.

another scenario:
1. create a storage connection without creating storage domain (not possible via UI, just via REST). specify a host (vdsm) during its creation.
2. create a storage domain (via REST) and specify the existing storage connection id (from item 1), and also specify another host - not the same as in  item 1.

Actual results:
an error "remote path not mounted" will occur.

Expected results:
domain created with no errors.

Additional info:

From engine log:
2013-07-31 11:30:44,288 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (http--0.0.0.0-8700-4) Failed in CreateStorageDomainVDS method
2013-07-31 11:30:44,289 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (http--0.0.0.0-8700-4) Error code StorageDomainFSNotMounted and error message VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, error = Storage domain remote path not mounted: ('/rhev/data-center/mnt/mymachine:_export_storagedata_username_data100',)
2013-07-31 11:30:44,290 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (http--0.0.0.0-8700-4) Command org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand return value 
 StatusOnlyReturnForXmlRpc [mStatus=StatusForXmlRpc [mCode=360, mMessage=Storage domain remote path not mounted: ('/rhev/data-center/mnt/mymachine:_export_storagedata_username_data100',)]]
2013-07-31 11:30:44,291 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (http--0.0.0.0-8700-4) HostName = MyHost
2013-07-31 11:30:44,292 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (http--0.0.0.0-8700-4) Command CreateStorageDomainVDS execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, error = Storage domain remote path not mounted: ('/rhev/data-center/mnt/mymachine:_export_storagedata_username_data100',)
2013-07-31 11:30:44,293 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (http--0.0.0.0-8700-4) FINISH, CreateStorageDomainVDSCommand, log id: 38a86a3
2013-07-31 11:30:44,293 ERROR [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (http--0.0.0.0-8700-4) Command org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, error = Storage domain remote path not mounted: ('/rhev/data-center/mnt/mymachine:_export_storagedata_username_data100',) (Failed with VDSM error StorageDomainFSNotMounted and code 360)

Comment 1 Itamar Heim 2013-08-21 16:42:50 UTC
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)

Comment 2 Itamar Heim 2013-09-23 07:27:39 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)