[Users] exception occured when adding NFS storage

Zhang, Hongyi Hongyi.Zhang at windriver.com
Wed Jul 10 18:03:10 UTC 2013


Hi Itamar,

No any trace was logged in the file /var/log/vdsm/vdsm.log during the creation of the storage on the ovirt.engine side. But the vdsm is running:

# systemctl status vdsmd.service
vdsmd.service - Virtual Desktop Server Manager
   Loaded: loaded (/usr/lib/systemd/system/vdsmd.service; enabled)
   Active: active (running) since Tue 2013-07-09 12:11:13 EDT; 1 day 1h ago
 Main PID: 1871 (respawn)
   CGroup: name=systemd:/system/vdsmd.service
           \u251c\u25001871 /bin/bash -e /usr/share/vdsm/respawn --minlifetime 10 --daemon --masterpid /var/run/vdsm/respawn.pid /usr/share/vdsm/...
           \u251c\u25001874 /usr/bin/python /usr/share/vdsm/vdsm
           \u251c\u25001894 /usr/bin/sudo -n /usr/bin/python /usr/share/vdsm/supervdsmServer.py 9e01f3d6-f6ac-4f19-b863-8f7c613ce899 1874 /var/ru...
           \u2514\u25001898 /usr/bin/python /usr/share/vdsm/supervdsmServer.py 9e01f3d6-f6ac-4f19-b863-8f7c613ce899 1874 /var/run/vdsm/svdsm.pid ...

Thanks,
Hongyi

-----Original Message-----
From: Itamar Heim [mailto:iheim at redhat.com] 
Sent: Wednesday, July 10, 2013 1:45 PM
To: Zhang, Hongyi
Cc: users at ovirt.org
Subject: Re: [Users] exception occured when adding NFS storage

On 07/10/2013 07:19 PM, Zhang, Hongyi wrote:
> Hi,
>
> I started to learn the oVirt by following the oVirt Quick Start Guide.
>
> I used one server as the ovirt.engine, and another server as the 
> ovirt.host. Both servers run Fedora 18.
>
> After executing the command "engine-setup" in the ovirt.engine, I can 
> get into the admin portal to start the configuration of host, storage, 
> etc. Here was what I am doing:
>
> 1.In the Default data center, I clicked  the Guide Me icon. The first 
> thing is to configure the host. After waiting for 4-5 minutes, I saw 
> the host ovirt.host is displayed under the Host tab with the Up status.
>
> 2.On the ovirt.engine server, I did the following before creating the
> storage:
>
> mkdir -p /mnt/data
>
> chown -R 36:36 /mnt/data
>
> Add the following line to /etc/sysconfig/nfs:
>
>      NFS4_SUPPORT="no"
>
> Add the following line to /etc/exports:
>
>     /nmt/data  
> *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)
>
> systemctl restart nfs-server.service
>
> 3.Back to the Default data center, clicked the Guide Me icon to start 
> the configuration of new storage.
>
> 4.On the New Storage dialog, set Name field to be NFS-Share, and set 
> the Export Path field to be ovirt.engine:/mnt/data. Then click OK
>
> After couple of minutes, I saw the error window popped up: Error: 
> Cannot add Storage. Internal error, Storage Connection doesn't exist.
>
>  From the /var/log/ ovirt-engine/engine.log, I can see:
>
> 2013-07-10 11:37:51,300 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSComm
> and]
> (ajp--127.0.0.1-8702-1) [41c282da] FINISH, 
> ConnectStorageServerVDSCommand, return:
> {00000000-0000-0000-0000-000000000000=100}, log id: 1bca7819
>
> 2013-07-10 11:37:51,303 ERROR
> [org.ovirt.engine.core.bll.storage.NFSStorageHelper]
> (ajp--127.0.0.1-8702-1) [41c282da] The connection with details 
> 128.224.147.229:/mnt/data failed because of error code 100 and error 
> message is: generalexception
>
> 2013-07-10 11:37:51,382 WARN
> [org.ovirt.engine.core.bll.storage.AddNFSStorageDomainCommand]
> (ajp--127.0.0.1-8702-6) [2612bf14] CanDoAction of action 
> AddNFSStorageDomain failed.
> Reasons:VAR__TYPE__STORAGE__DOMAIN,VAR__ACTION__ADD,ACTION_TYPE_FAILED
> _STORAGE_CONNECTION_NOT_EXIST
>
> 2013-07-10 11:37:51,483 INFO
> [org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionComman
> d]
> (ajp--127.0.0.1-8702-1) [2bd59836] Running command:
> RemoveStorageServerConnectionCommand internal: false. Entities 
> affected
> : ID: aaa00000-0000-0000-0000-123456789aaa Type: System
>
> 2013-07-10 11:37:51,489 INFO
> [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSC
> ommand]
> (ajp--127.0.0.1-8702-1) [2bd59836] START, 
> DisconnectStorageServerVDSCommand(HostName = ovirt.node, HostId = 
> 8e47a267-98a9-4184-a92e-26587adae6c4, storagePoolId = 
> 00000000-0000-0000-0000-000000000000, storageType = NFS, 
> connectionList = [{ id: null, connection: 128.224.147.229:/mnt/data, 
> iqn: null,
> vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null,
> nfsTimeo: null };]), log id: 2f9800d
>
> Please let me know what I was doing wrong.
>
> Thanks,
>
> Hongyi
>
> P.S. If I create the NFS domain in the ovirt.host side (i.e., Export 
> Path is ovirt.host:/mnt/data), then everything is okay. Not sure why 
> failed on the ovirt.engine side.
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>

vdsm log from the failure to create the storage domain?



More information about the Users mailing list