[Users] exception occured when adding NFS storage
wgao
wei.gao at windriver.com
Thu Jul 11 06:35:21 UTC 2013
On 07/11/2013 12:19 AM, 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
>
Can you select ovirt.host behind 'User Host' label ?
As I mentioned in pre-email, you should add your ovirt-engine host as
ovirt-node and up it, maybe you can select ovirt.engine
Here, ovirt-engine browser showing dialog box, 'Use Host' and 'Export
Path' they are should be matched.
Thanks.
>
> 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.ConnectStorageServerVDSCommand]
> (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.RemoveStorageServerConnectionCommand]
> (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.DisconnectStorageServerVDSCommand]
> (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
--
Best regards.
---------
Wgao, Linux BSP Tester, Wind River Beijing
Phone: +86-10-6483-5064, Cell: +86-158-1020-4994, Fax: +86-10-6479-0367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130711/f9bc5129/attachment-0001.html>
More information about the Users
mailing list