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.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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to