[ovirt-users] Failing to add NFS storage domain

Roel de Rooy RdeRooy at motto.nl
Wed Dec 2 14:41:19 UTC 2015


Hi,

When looking inside the mounted NFS share, can you see if the needed folders are created (dom_md, etc.)?
We also had a same sort of error after trying to add a new NFS share to our development environment.

Adding the NFS storage would fail, but when looking at the host itself, the share would be connected.

In our case, we did see that the folders were created with permissions set as the root group, instead of the kvm group.
After changing permission settings on the NFS server, the share connected perfectly.

Kind regards,
Roel de Rooy


Van: users-bounces at ovirt.org [mailto:users-bounces at ovirt.org] Namens Jean-Pierre Ribeauville
Verzonden: 02 December 2015 11:51
Aan: users at ovirt.org
Onderwerp: [ovirt-users] Failing to add NFS storage domain


Hi,



By using 3.5 ovirt , I'm trying to add  an NFS  storage domain to my datacenter.





Then  I  got following error :


Error while executing action New NFS Storage Domain: Error creating a storage domain





I restart sanlock service on the host ( it's a RHEL 7)  ; no positive effect.



In engine.log  found this  :

....
2015-12-02 11:42:17,767 INFO  [org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-8) [47ec013e] Lock Acquired to object EngineLock [exclusiveLocks= key: omniserv.lab.dc01.axway.int:/nfs/omnicol value: STORAGE_CONNECTION
, sharedLocks= ]
2015-12-02 11:42:17,771 INFO  [org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-8) [47ec013e] Running command: AddStorageServerConnectionCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_DOMAIN with role type ADMIN
2015-12-02 11:42:17,771 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp-/127.0.0.1:8702-8) [47ec013e] START, ConnectStorageServerVDSCommand(HostName = ldc01omv01, HostId = 09bb3024-170f-48a1-a78a-951a2c61c680, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = NFS, connectionList = [{ id: null, connection: omniserv.lab.dc01.axway.int:/nfs/omnicol, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id: 7651babb
2015-12-02 11:42:17,790 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp-/127.0.0.1:8702-8) [47ec013e] FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-000000000000=0}, log id: 7651babb
2015-12-02 11:42:17,793 INFO  [org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-8) [47ec013e] Lock freed to object EngineLock [exclusiveLocks= key: omniserv.lab.dc01.axway.int:/nfs/omnicol value: STORAGE_CONNECTION
, sharedLocks= ]
2015-12-02 11:42:17,810 INFO  [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (ajp-/127.0.0.1:8702-6) [66393037] Running command: AddNFSStorageDomainCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_DOMAIN with role type ADMIN
2015-12-02 11:42:17,813 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] START, ConnectStorageServerVDSCommand(HostName = ldc01omv01, HostId = 09bb3024-170f-48a1-a78a-951a2c61c680, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = NFS, connectionList = [{ id: ce05a2b0-cee9-44a9-845e-8a35349c7195, connection: omniserv.lab.dc01.axway.int:/nfs/omnicol, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id: 7c9bb0db
2015-12-02 11:42:17,828 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] FINISH, ConnectStorageServerVDSCommand, return: {ce05a2b0-cee9-44a9-845e-8a35349c7195=0}, log id: 7c9bb0db
2015-12-02 11:42:17,828 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] START, CreateStorageDomainVDSCommand(HostName = ldc01omv01, HostId = 09bb3024-170f-48a1-a78a-951a2c61c680, storageDomain=StorageDomainStatic[test_nfs, 5c4b7602-47de-47a7-a278-95b1ac7b1f8d], args=omniserv.lab.dc01.axway.int:/nfs/omnicol), log id: 62401241
2015-12-02 11:42:17,986 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] Failed in CreateStorageDomainVDS method
2015-12-02 11:42:17,986 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] Command org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand return value
StatusOnlyReturnForXmlRpc [mStatus=StatusForXmlRpc [mCode=351, mMessage=Error creating a storage domain: (u'storageType=1, sdUUID=5c4b7602-47de-47a7-a278-95b1ac7b1f8d, domainName=test_nfs, domClass=1, typeSpecificArg=omniserv.lab.dc01.axway.int:/nfs/omnicol domVersion=3',)]]
2015-12-02 11:42:17,986 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] HostName = ldc01omv01
2015-12-02 11:42:17,986 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] Command CreateStorageDomainVDSCommand(HostName = ldc01omv01, HostId = 09bb3024-170f-48a1-a78a-951a2c61c680, storageDomain=StorageDomainStatic[test_nfs, 5c4b7602-47de-47a7-a278-95b1ac7b1f8d], args=omniserv.lab.dc01.axway.int:/nfs/omnicol) execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, error = Error creating a storage domain: (u'storageType=1, sdUUID=5c4b7602-47de-47a7-a278-95b1ac7b1f8d, domainName=test_nfs, domClass=1, typeSpecificArg=omniserv.lab.dc01.axway.int:/nfs/omnicol domVersion=3',), code = 351
2015-12-02 11:42:17,986 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-6) [66393037] FINISH, CreateStorageDomainVDSCommand, log id: 62401241
2015-12-02 11:42:17,986 ERROR [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (ajp-/127.0.0.1:8702-6) [66393037] 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 = Error creating a storage domain: (u'storageType=1, sdUUID=5c4b7602-47de-47a7-a278-95b1ac7b1f8d, domainName=test_nfs, domClass=1, typeSpecificArg=omniserv.lab.dc01.axway.int:/nfs/omnicol domVersion=3',), code = 351 (Failed with error StorageDomainCreationError and code 351)
2015-12-02 11:42:17,987 INFO  [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (ajp-/127.0.0.1:8702-6) [66393037] Command [id=8e20457a-94d6-45f6-8747-73eb18e0ab87]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.StorageDomainDynamic; snapshot: 5c4b7602-47de-47a7-a278-95b1ac7b1f8d.
2015-12-02 11:42:17,987 INFO  [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (ajp-/127.0.0.1:8702-6) [66393037] Command [id=8e20457a-94d6-45f6-8747-73eb18e0ab87]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.StorageDomainStatic; snapshot: 5c4b7602-47de-47a7-a278-95b1ac7b1f8d.
2015-12-02 11:42:17,989 ERROR [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand] (ajp-/127.0.0.1:8702-6) [66393037] Transaction rolled-back for command: org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand.
2015-12-02 11:42:17,991 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-6) [66393037] Correlation ID: 66393037, Job ID: e5ce2642-b4d4-4088-b33a-0e68fb698275, Call Stack: null, Custom Event ID: -1, Message: Failed to add Storage Domain test_nfs. (User: admin at internal)
2015-12-02 11:42:18,038 INFO  [org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-4) [7d01ab48] Lock Acquired to object EngineLock [exclusiveLocks= key: ce05a2b0-cee9-44a9-845e-8a35349c7195 value: STORAGE_CONNECTION
key: omniserv.lab.dc01.axway.int:/nfs/omnicol value: STORAGE_CONNECTION
, sharedLocks= ]
2015-12-02 11:42:18,040 INFO  [org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-4) [7d01ab48] Running command: RemoveStorageServerConnectionCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_DOMAIN with role type ADMIN
2015-12-02 11:42:18,041 INFO  [org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-4) [7d01ab48] Removing connection ce05a2b0-cee9-44a9-845e-8a35349c7195 from database
2015-12-02 11:42:18,042 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSCommand] (ajp-/127.0.0.1:8702-4) [7d01ab48] START, DisconnectStorageServerVDSCommand(HostName = ldc01omv01, HostId = 09bb3024-170f-48a1-a78a-951a2c61c680, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = NFS, connectionList = [{ id: ce05a2b0-cee9-44a9-845e-8a35349c7195, connection: omniserv.lab.dc01.axway.int:/nfs/omnicol, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id: 65092833
2015-12-02 11:42:18,163 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSCommand] (ajp-/127.0.0.1:8702-4) [7d01ab48] FINISH, DisconnectStorageServerVDSCommand, return: {ce05a2b0-cee9-44a9-845e-8a35349c7195=0}, log id: 65092833
2015-12-02 11:42:18,164 INFO  [org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand] (ajp-/127.0.0.1:8702-4) [7d01ab48] Lock freed to object EngineLock [exclusiveLocks= key: ce05a2b0-cee9-44a9-845e-8a35349c7195 value: STORAGE_CONNECTION
key: omniserv.lab.dc01.axway.int:/nfs/omnicol value: STORAGE_CONNECTION
, sharedLocks= ]
.......

On host side, I see the new NFS mount point correctly setup and I'm able to list its contents.

Thanks for help.

J.P. Ribeauville


P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5  Bureau 4

jpribeauville at axway.com<mailto:jpribeauville at axway.com>
http://www.axway.com<http://www.axway.com/>



P Pensez à l'environnement avant d'imprimer.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151202/01044e27/attachment-0001.html>


More information about the Users mailing list