[Users] exception occured when adding NFS storage

--_000_B5488210B44F434FA68B7430CC196BCFA701F041ALAMBBcorpadwrs_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 i= nto 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 firs= t 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 th= e storage: mkdir -p /mnt/data chown -R 36:36 /mnt/data Add the following line to /etc/sysconfig/nfs: NFS4_SUPPORT=3D"no" Add the following line to /etc/exports: /nmt/data *(rw,sync,no_subtree_check,all_squash,anonuid=3D36,anongid=3D= 36) systemctl restart nfs-server.service 3. Back to the Default data center, clicked the Guide Me icon to star= t 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 ad= d 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.Co= nnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [41c282da] FINISH, Co= nnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-000000000000= =3D100}, log id: 1bca7819 2013-07-10 11:37:51,303 ERROR [org.ovirt.engine.core.bll.storage.NFSStorage= Helper] (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.AddNFSStor= ageDomainCommand] (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.RemoveStor= ageServerConnectionCommand] (ajp--127.0.0.1-8702-1) [2bd59836] Running comm= and: RemoveStorageServerConnectionCommand internal: false. Entities affecte= d : ID: aaa00000-0000-0000-0000-123456789aaa Type: System 2013-07-10 11:37:51,489 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.Di= sconnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [2bd59836] START, = DisconnectStorageServerVDSCommand(HostName =3D ovirt.node, HostId =3D 8e47a= 267-98a9-4184-a92e-26587adae6c4, storagePoolId =3D 00000000-0000-0000-0000-= 000000000000, storageType =3D NFS, connectionList =3D [{ id: null, connecti= on: 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 i= s ovirt.host:/mnt/data), then everything is okay. Not sure why failed on th= e ovirt.engine side. --_000_B5488210B44F434FA68B7430CC196BCFA701F041ALAMBBcorpadwrs_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {mso-style-priority:34; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} /* List Definitions */ @list l0 {mso-list-id:284242792; mso-list-type:hybrid; mso-list-template-ids:1052426804 67698703 67698713 67698715 67698703 67698= 713 67698715 67698703 67698713 67698715;} @list l0:level1 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:none; mso-level-number-position:right; text-indent:-9.0pt;} @list l0:level4 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level5 {mso-level-number-format:alpha-lower; mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level6 {mso-level-number-format:roman-lower; mso-level-tab-stop:none; mso-level-number-position:right; text-indent:-9.0pt;} @list l0:level7 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level8 {mso-level-number-format:alpha-lower; mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level9 {mso-level-number-format:roman-lower; mso-level-tab-stop:none; mso-level-number-position:right; text-indent:-9.0pt;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Hi,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">I started to learn the oVirt by following the oVirt = Quick Start Guide.<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">I used one server as the ovirt.engine, and another s= erver as the ovirt.host. Both servers run Fedora 18.<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">After executing the command “engine-setup̶= 1; in the ovirt.engine, I can get into the admin portal to start the config= uration of host, storage, etc. Here was what I am doing:<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level= 1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">1.<span style= =3D"font:7.0pt "Times New Roman""> &= nbsp; </span></span><![endif]>In the Default data center, I clicked the Gui= de 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 th= e Up status.<o:p></o:p></p> <p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level= 1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">2.<span style= =3D"font:7.0pt "Times New Roman""> &= nbsp; </span></span><![endif]>On the ovirt.engine server, I did the following bef= ore creating the storage:<o:p></o:p></p> <p class=3D"MsoListParagraph">mkdir –p /mnt/data<o:p></o:p></p> <p class=3D"MsoListParagraph">chown –R 36:36 /mnt/data<o:p></o:p></p> <p class=3D"MsoListParagraph">Add the following line to /etc/sysconfig/nfs:= <o:p></o:p></p> <p class=3D"MsoListParagraph"> NFS4_SUPPORT=3D”no= 8221;<o:p></o:p></p> <p class=3D"MsoListParagraph">Add the following line to /etc/exports:<o:p><= /o:p></p> <p class=3D"MsoListParagraph"> /nmt/data *(rw,sync,no_sub= tree_check,all_squash,anonuid=3D36,anongid=3D36)<o:p></o:p></p> <p class=3D"MsoListParagraph">systemctl restart nfs-server.service<o:p></o:= p></p> <p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level= 1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">3.<span style= =3D"font:7.0pt "Times New Roman""> &= nbsp; </span></span><![endif]>Back to the Default data center, clicked the Guide = Me icon to start the configuration of new storage.<o:p></o:p></p> <p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level= 1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">4.<span style= =3D"font:7.0pt "Times New Roman""> &= nbsp; </span></span><![endif]>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 cl= ick OK<o:p></o:p></p> <p class=3D"MsoListParagraph">After couple of minutes, I saw the error wind= ow popped up: <span style=3D"color:red">Error: Cannot add Storage. Internal error, Storag= e Connection doesn't exist.</span><o:p></o:p></p> <p class=3D"MsoListParagraph"><o:p> </o:p></p> <p class=3D"MsoListParagraph">From the /var/log/ ovirt-engine/engine.log, I= can see:<o:p></o:p></p> <p class=3D"MsoListParagraph">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: {0= 0000000-0000-0000-0000-000000000000=3D100}, log id: 1bca7819<o:p></o:p></p> <p class=3D"MsoListParagraph">2013-07-10 11:37:51,303 <span style=3D"color:= red">ERROR</span> [org.ovirt.engine.core.bll.storage.NFSStorageHelper] (ajp= --127.0.0.1-8702-1) [41c282da] <span style=3D"color:red">The connection with details 128.224.147.229:/mnt/= data failed because of error code 100 and error message is: generalexceptio= n<o:p></o:p></span></p> <p class=3D"MsoListParagraph">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_CONNECTI= ON_NOT_EXIST<o:p></o:p></p> <p class=3D"MsoListParagraph">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: RemoveStorageServerConnectionComman= d internal: false. Entities affected : ID: aaa00000-0000-0000-0000-123456789aaa Type: System<o:p></o:p></p> <p class=3D"MsoListParagraph">2013-07-10 11:37:51,489 INFO [org.ovirt= .engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSCommand] (ajp--1= 27.0.0.1-8702-1) [2bd59836] START, DisconnectStorageServerVDSCommand(HostNa= me =3D ovirt.node, HostId =3D 8e47a267-98a9-4184-a92e-26587adae6c4, storagePoolId =3D 00000000-0000-0000-0000-000000000000, storageType =3D NF= S, connectionList =3D [{ id: null, connection: 128.224.147.229:/mnt/data, i= qn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: = null, nfsTimeo: null };]), log id: 2f9800d <o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Please let me know what I was doing wrong.<o:p></o:p=
</p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Thanks,<o:p></o:p></p> <p class=3D"MsoNormal">Hongyi<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">P.S. If I create the NFS domain in the ovirt.host si= de (i.e., Export Path is ovirt.host:/mnt/data), then everything is okay. No= t sure why failed on the ovirt.engine side.<o:p></o:p></p> </div> </body> </html>
--_000_B5488210B44F434FA68B7430CC196BCFA701F041ALAMBBcorpadwrs_--

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.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
vdsm log from the failure to create the storage domain?

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@redhat.com] Sent: Wednesday, July 10, 2013 1:45 PM To: Zhang, Hongyi Cc: users@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
vdsm log from the failure to create the storage domain?

This is a multi-part message in MIME format. --------------020705070900040608080306 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Il 10/07/2013 18:19, Zhang, Hongyi ha scritto:
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
Well, exports has a typo error: /nmt/data instead of /mnt/data If that it's not enough, If you're using selinux ensure that /mnt/data has the correct context: /etc/selinux/targeted/modules/active/file_contexts.local: /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0
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
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com --------------020705070900040608080306 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">Il 10/07/2013 18:19, Zhang, Hongyi ha scritto:<br> </div> <blockquote cite="mid:B5488210B44F434FA68B7430CC196BCFA701F041@ALA-MBB.corp.ad.wrs.com" type="cite"> <pre wrap="">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</pre> </blockquote> <br> <br> Well, exports has a typo error: /nmt/data instead of /mnt/data<br> If that it's not enough, If you're using selinux ensure that /mnt/data has the correct context:<br> <br> /etc/selinux/targeted/modules/active/file_contexts.local:<br> /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0<br> <br> <br> <br> <br> <br> <blockquote cite="mid:B5488210B44F434FA68B7430CC196BCFA701F041@ALA-MBB.corp.ad.wrs.com" type="cite"> <pre wrap=""> 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. </pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <br> <pre class="moz-signature" cols="72">-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com</pre> </body> </html> --------------020705070900040608080306--

--_000_B5488210B44F434FA68B7430CC196BCFA701F17EALAMBBcorpadwrs_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Sandro, I do see: # cat /etc/selinux/targeted/modules/active/file_contexts.local # This file is auto-generated by libsemanage # Do not edit directly. /mnt/iso(/.*)? system_u:object_r:public_content_rw_t:s0 /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0 # getenforce Permissive But I still failed to create a storage domain on the ovirt.engine side and = got the same exception errors, and also vdsm is idle during the creation of= storage domain. Here is the setup for ovirt.engine: oVirt Engine will be installed using the following configuration: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D override-httpd-config: yes http-port: 80 https-port: 443 host-fqdn: ovirt.engine auth-pass: ******** org-name: ovirt application-mode: both default-dc-type: NFS db-remote-install: local db-local-pass: ******** nfs-mp: /mnt/iso config-nfs: yes override-firewall: IPTables Proceed with the configuration listed above? (yes|no): yes Thanks, Hongyi From: Sandro Bonazzola [mailto:sbonazzo@redhat.com] Sent: Thursday, July 11, 2013 2:17 AM To: Zhang, Hongyi Cc: users@ovirt.org Subject: Re: [Users] exception occured when adding NFS storage Il 10/07/2013 18:19, Zhang, Hongyi ha scritto: 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 i= nto 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 firs= t 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 th= e storage: mkdir -p /mnt/data chown -R 36:36 /mnt/data Add the following line to /etc/sysconfig/nfs: NFS4_SUPPORT=3D"no" Add the following line to /etc/exports: /nmt/data *(rw,sync,no_subtree_check,all_squash,anonuid=3D36,anongid=3D= 36) systemctl restart nfs-server.service Well, exports has a typo error: /nmt/data instead of /mnt/data If that it's not enough, If you're using selinux ensure that /mnt/data has = the correct context: /etc/selinux/targeted/modules/active/file_contexts.local: /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0 3. Back to the Default data center, clicked the Guide Me icon to star= t 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 ad= d 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.Co= nnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [41c282da] FINISH, Co= nnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-000000000000= =3D100}, log id: 1bca7819 2013-07-10 11:37:51,303 ERROR [org.ovirt.engine.core.bll.storage.NFSStorage= Helper] (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.AddNFSStor= ageDomainCommand] (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.RemoveStor= ageServerConnectionCommand] (ajp--127.0.0.1-8702-1) [2bd59836] Running comm= and: RemoveStorageServerConnectionCommand internal: false. Entities affecte= d : ID: aaa00000-0000-0000-0000-123456789aaa Type: System 2013-07-10 11:37:51,489 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.Di= sconnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [2bd59836] START, = DisconnectStorageServerVDSCommand(HostName =3D ovirt.node, HostId =3D 8e47a= 267-98a9-4184-a92e-26587adae6c4, storagePoolId =3D 00000000-0000-0000-0000-= 000000000000, storageType =3D NFS, connectionList =3D [{ id: null, connecti= on: 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 i= s ovirt.host:/mnt/data), then everything is okay. Not sure why failed on th= e ovirt.engine side. _______________________________________________ Users mailing list Users@ovirt.org<mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com --_000_B5488210B44F434FA68B7430CC196BCFA701F17EALAMBBcorpadwrs_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca=
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif"; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-link:"HTML Preformatted"; font-family:Consolas; color:black;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3D"white" lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Hi Sandro,<o:p></o:p></sp= an></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">I do see:<o:p></o:p></spa= n></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"># cat /etc/selinux/target= ed/modules/active/file_contexts.local<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"># This file is auto-gener= ated by libsemanage<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"># Do not edit directly.<o= :p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">/mnt/iso(/.*)?  = ; system_u:object_r:public_content_rw_t:s0<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">/mnt/data(/.*)? &nbs= p; system_u:object_r:public_content_rw_t:s0<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"># getenforce<o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Permissive<o:p></o:p></sp= an></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">But I still failed to cre= ate a storage domain on the ovirt.engine side and got the same exception er= rors, and also vdsm is idle during the creation of storage domain.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Here is the setup for ovi= rt.engine:<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">oVirt Engine will be inst= alled using the following configuration:<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">override-httpd-config:&nb= sp; yes<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">http-port: &n= bsp;  = ; 80<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">https-port: &n= bsp;  = ; 443<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">host-fqdn: &nb= sp; = ovirt.engine<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">auth-pass: &nb= sp; = ********<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">org-name: &nbs= p; &= nbsp; ovirt<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">application-mode: &n= bsp; both= <o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">default-dc-type: &nb= sp; = NFS<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">db-remote-install: &= nbsp; local<o:p= libri","sans-serif";color:#1F497D">db-local-pass:  = ; &n= bsp; ********<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">nfs-mp: = &nb= sp; /mnt/iso<o:p></o:p></span></p=
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">config-nfs: &n= bsp;  = ; yes<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">override-firewall: &= nbsp; IPTables<= o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Proceed with the configur= ation listed above? (yes|no): yes<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span>= </p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D">Hongyi<o:p></o:p></span><= /p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1F497D"><o:p> </o:p></span><= /p> <div> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in = 0in 0in"> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Tahoma","sans-serif";color:windowtext">From:</span></b><spa= n style=3D"font-size:10.0pt;font-family:"Tahoma","sans-serif= ";color:windowtext"> Sandro Bonazzola [mailto:sbonazzo@redhat.com] <br> <b>Sent:</b> Thursday, July 11, 2013 2:17 AM<br> <b>To:</b> Zhang, Hongyi<br> <b>Cc:</b> users@ovirt.org<br> <b>Subject:</b> Re: [Users] exception occured when adding NFS storage<o:p><= /o:p></span></p> </div> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <div> <p class=3D"MsoNormal">Il 10/07/2013 18:19, Zhang, Hongyi ha scritto:<o:p><= /o:p></p> </div> <blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"> <pre>Hi,<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>I started to learn the oVirt by following the oVirt Quick Start Guide.= <o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>I used one server as the ovirt.engine, and another server as the ovirt= .host. Both servers run Fedora 18.<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>After executing the command "engine-setup" in the ovirt.engi= ne, I can get into the admin portal to start the configuration of host, sto= rage, etc. Here was what I am doing:<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre><o:p> </o:p></pre> <pre>1. In the Default data center, I c= licked the Guide Me icon. The first thing is to configure the host. A= fter waiting for 4-5 minutes, I saw the host ovirt.host is displayed under = the Host tab with the Up status.<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>2. On the ovirt.engine server, I d= id the following before creating the storage:<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>mkdir -p /mnt/data<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>chown -R 36:36 /mnt/data<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>Add the following line to /etc/sysconfig/nfs:<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre> NFS4_SUPPORT=3D"no"<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>Add the following line to /etc/exports:<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre> /nmt/data *(rw,sync,no_subtree_check,all_squash,ano= nuid=3D36,anongid=3D36)<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>systemctl restart nfs-server.service<o:p></o:p></pre> </blockquote> <p class=3D"MsoNormal"><br> <br> Well, exports has a typo error: /nmt/data instead of /mnt/data<br> If that it's not enough, If you're using selinux ensure that /mnt/data has = the correct context:<br> <br> /etc/selinux/targeted/modules/active/file_contexts.local:<br> /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0<= br> <br> <br> <br> <br> <br> <br> <o:p></o:p></p> <pre><o:p> </o:p></pre> <pre><o:p> </o:p></pre> <pre>3. Back to the Default data center= , clicked the Guide Me icon to start the configuration of new storage.<o:p>= </o:p></pre> <pre><o:p> </o:p></pre> <pre>4. On the New Storage dialog, set = Name field to be NFS-Share, and set the Export Path field to be ovirt.engin= e:/mnt/data. Then click OK<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>After couple of minutes, I saw the error window popped up: Error: Cann= ot add Storage. Internal error, Storage Connection doesn't exist.<o:p></o:p=
</pre> <pre><o:p> </o:p></pre> <pre><o:p> </o:p></pre> <pre><o:p> </o:p></pre> <pre>From the /var/log/ ovirt-engine/engine.log, I can see:<o:p></o:p></pre=
<pre><o:p> </o:p></pre> <pre>2013-07-10 11:37:51,300 INFO [org.ovirt.engine.core.vdsbroker.vd= sbroker.ConnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [41c282da] = FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-00= 0000000000=3D100}, log id: 1bca7819<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>2013-07-10 11:37:51,303 ERROR [org.ovirt.engine.core.bll.storage.NFSSt= orageHelper] (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 messa= ge is: generalexception<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>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,VA= R__ACTION__ADD,ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST<o:p></o:p></= pre> <pre><o:p> </o:p></pre> <pre>2013-07-10 11:37:51,483 INFO [org.ovirt.engine.core.bll.storage.= RemoveStorageServerConnectionCommand] (ajp--127.0.0.1-8702-1) [2bd59836] Ru= nning command: RemoveStorageServerConnectionCommand internal: false. Entiti= es affected : ID: aaa00000-0000-0000-0000-123456789aaa Type: System<o= :p></o:p></pre> <pre><o:p> </o:p></pre> <pre>2013-07-10 11:37:51,489 INFO [org.ovirt.engine.core.vdsbroker.vd= sbroker.DisconnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-1) [2bd5983= 6] START, DisconnectStorageServerVDSCommand(HostName =3D ovirt.node, HostId= =3D 8e47a267-98a9-4184-a92e-26587adae6c4, storagePoolId =3D 00000000-0000-= 0000-0000-000000000000, storageType =3D NFS, connectionList =3D [{ id: null= , connection: 128.224.147.229:/mnt/data, iqn: null, vfsType: null, mountOpt= ions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id= : 2f9800d<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>Please let me know what I was doing wrong.<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>Thanks,<o:p></o:p></pre> <pre>Hongyi<o:p></o:p></pre> <pre><o:p> </o:p></pre> <pre>P.S. If I create the NFS domain in the ovirt.host side (i.e., Export P= ath is ovirt.host:/mnt/data), then everything is okay. Not sure why failed = on the ovirt.engine side.<o:p></o:p></pre> <pre><o:p> </o:p></pre> <p class=3D"MsoNormal"><br> <br> <br> <o:p></o:p></p> <pre>_______________________________________________<o:p></o:p></pre> <pre>Users mailing list<o:p></o:p></pre> <pre><a href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><o:p></o:p></pre=
<pre><a href=3D"http://lists.ovirt.org/mailman/listinfo/users">http://lists= .ovirt.org/mailman/listinfo/users</a><o:p></o:p></pre> <p class=3D"MsoNormal"><br> <br> <br> <o:p></o:p></p> <pre>-- <o:p></o:p></pre> <pre>Sandro Bonazzola<o:p></o:p></pre> <pre>Better technology. Faster innovation. Powered by community collaborati= on.<o:p></o:p></pre> <pre>See how it works at redhat.com<o:p></o:p></pre> </div> </body> </html> --_000_B5488210B44F434FA68B7430CC196BCFA701F17EALAMBBcorpadwrs_--

Il 11/07/2013 16:37, Zhang, Hongyi ha scritto:
Hi Sandro,
I do see: # cat /etc/selinux/targeted/modules/active/file_contexts.local # This file is auto-generated by libsemanage # Do not edit directly. /mnt/iso(/.*)? system_u:object_r:public_content_rw_t:s0 /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0
On wich host? It's failing creating domain on 128.224.147.229:/mnt/data. You must be sure that the IP address is correct. You need to be sure that on 128.224.147.229 /mnt/data is 775, owned by 36:36, and selinux allow public content. Then you need to be sure that you can mount 128.224.147.229:/mnt/data locally. On the host running engine try: mkdir /tmp/test mount -t nfs 128.224.147.229:/mnt/data /tmp/test Then if it works you must ensure it's writable by vdsm:kvm user: sudo -u vdsm -g kvm mkdir /tmp/test/writable sudo -u vdsm -g kvm touch /tmp/test/writable/file If those commands are working, you should be able to create the domain. Remember to cleanup after the test.
# getenforce Permissive
But I still failed to create a storage domain on the ovirt.engine side and got the same exception errors, and also vdsm is idle during the creation of storage domain.
Here is the setup for ovirt.engine: oVirt Engine will be installed using the following configuration: ================================================================= override-httpd-config: yes http-port: 80 https-port: 443 host-fqdn: ovirt.engine auth-pass: ******** org-name: ovirt application-mode: both default-dc-type: NFS db-remote-install: local db-local-pass: ******** nfs-mp: /mnt/iso config-nfs: yes override-firewall: IPTables Proceed with the configuration listed above? (yes|no): yes
Thanks, Hongyi
From: Sandro Bonazzola [mailto:sbonazzo@redhat.com] Sent: Thursday, July 11, 2013 2:17 AM To: Zhang, Hongyi Cc: users@ovirt.org Subject: Re: [Users] exception occured when adding NFS storage
Il 10/07/2013 18:19, Zhang, Hongyi ha scritto:
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
Well, exports has a typo error: /nmt/data instead of /mnt/data If that it's not enough, If you're using selinux ensure that /mnt/data has the correct context:
/etc/selinux/targeted/modules/active/file_contexts.local: /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0
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<mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

It works now. Thank you very much! Hongyi -----Original Message----- From: Sandro Bonazzola [mailto:sbonazzo@redhat.com] Sent: Thursday, July 11, 2013 10:50 AM To: Zhang, Hongyi Cc: users@ovirt.org Subject: Re: [Users] exception occured when adding NFS storage Il 11/07/2013 16:37, Zhang, Hongyi ha scritto:
Hi Sandro,
I do see: # cat /etc/selinux/targeted/modules/active/file_contexts.local # This file is auto-generated by libsemanage # Do not edit directly. /mnt/iso(/.*)? system_u:object_r:public_content_rw_t:s0 /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0
On wich host? It's failing creating domain on 128.224.147.229:/mnt/data. You must be sure that the IP address is correct. You need to be sure that on 128.224.147.229 /mnt/data is 775, owned by 36:36, and selinux allow public content. Then you need to be sure that you can mount 128.224.147.229:/mnt/data locally. On the host running engine try: mkdir /tmp/test mount -t nfs 128.224.147.229:/mnt/data /tmp/test Then if it works you must ensure it's writable by vdsm:kvm user: sudo -u vdsm -g kvm mkdir /tmp/test/writable sudo -u vdsm -g kvm touch /tmp/test/writable/file If those commands are working, you should be able to create the domain. Remember to cleanup after the test.
# getenforce Permissive
But I still failed to create a storage domain on the ovirt.engine side and got the same exception errors, and also vdsm is idle during the creation of storage domain.
Here is the setup for ovirt.engine: oVirt Engine will be installed using the following configuration: ================================================================= override-httpd-config: yes http-port: 80 https-port: 443 host-fqdn: ovirt.engine auth-pass: ******** org-name: ovirt application-mode: both default-dc-type: NFS db-remote-install: local db-local-pass: ******** nfs-mp: /mnt/iso config-nfs: yes override-firewall: IPTables Proceed with the configuration listed above? (yes|no): yes
Thanks, Hongyi
From: Sandro Bonazzola [mailto:sbonazzo@redhat.com] Sent: Thursday, July 11, 2013 2:17 AM To: Zhang, Hongyi Cc: users@ovirt.org Subject: Re: [Users] exception occured when adding NFS storage
Il 10/07/2013 18:19, Zhang, Hongyi ha scritto:
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
Well, exports has a typo error: /nmt/data instead of /mnt/data If that it's not enough, If you're using selinux ensure that /mnt/data has the correct context:
/etc/selinux/targeted/modules/active/file_contexts.local: /mnt/data(/.*)? system_u:object_r:public_content_rw_t:s0
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@ovirt.org<mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

--------------060802080604080900090207 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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@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 --------------060802080604080900090207 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">On 07/11/2013 12:19 AM, Zhang, Hongyi wrote:<br> </div> <blockquote cite="mid:B5488210B44F434FA68B7430CC196BCFA701F041@ALA-MBB.corp.ad.wrs.com" type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="Generator" content="Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {mso-style-priority:34; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} /* List Definitions */ @list l0 {mso-list-id:284242792; mso-list-type:hybrid; mso-list-template-ids:1052426804 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:none; mso-level-number-position:right; text-indent:-9.0pt;} @list l0:level4 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level5 {mso-level-number-format:alpha-lower; mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level6 {mso-level-number-format:roman-lower; mso-level-tab-stop:none; mso-level-number-position:right; text-indent:-9.0pt;} @list l0:level7 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level8 {mso-level-number-format:alpha-lower; mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} @list l0:level9 {mso-level-number-format:roman-lower; mso-level-tab-stop:none; mso-level-number-position:right; text-indent:-9.0pt;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--> <div class="WordSection1"> <p class="MsoNormal">Hi,<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">I started to learn the oVirt by following the oVirt Quick Start Guide.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">I used one server as the ovirt.engine, and another server as the ovirt.host. Both servers run Fedora 18.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">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:<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman""> </span></span><!--[endif]-->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.<o:p></o:p></p> <p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman""> </span></span><!--[endif]-->On the ovirt.engine server, I did the following before creating the storage:<o:p></o:p></p> <p class="MsoListParagraph">mkdir –p /mnt/data<o:p></o:p></p> <p class="MsoListParagraph">chown –R 36:36 /mnt/data<o:p></o:p></p> <p class="MsoListParagraph">Add the following line to /etc/sysconfig/nfs:<o:p></o:p></p> <p class="MsoListParagraph"> NFS4_SUPPORT=”no”<o:p></o:p></p> <p class="MsoListParagraph">Add the following line to /etc/exports:<o:p></o:p></p> <p class="MsoListParagraph"> /nmt/data *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)<o:p></o:p></p> <p class="MsoListParagraph">systemctl restart nfs-server.service<o:p></o:p></p> <p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman""> </span></span><!--[endif]-->Back to the Default data center, clicked the Guide Me icon to start the configuration of new storage.<o:p></o:p></p> <p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman""> </span></span><!--[endif]-->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</p> </div> </blockquote> Can you select ovirt.host behind 'User Host' label ? <br> 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<br> <br> Here, ovirt-engine browser showing dialog box, 'Use Host' and 'Export Path' they are should be matched.<br> <br> Thanks.<br> <blockquote cite="mid:B5488210B44F434FA68B7430CC196BCFA701F041@ALA-MBB.corp.ad.wrs.com" type="cite"> <div class="WordSection1"> <p class="MsoListParagraph">After couple of minutes, I saw the error window popped up: <span style="color:red">Error: Cannot add Storage. Internal error, Storage Connection doesn't exist.</span><o:p></o:p></p> <p class="MsoListParagraph"><o:p> </o:p></p> <p class="MsoListParagraph">From the /var/log/ ovirt-engine/engine.log, I can see:<o:p></o:p></p> <p class="MsoListParagraph">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<o:p></o:p></p> <p class="MsoListParagraph">2013-07-10 11:37:51,303 <span style="color:red">ERROR</span> [org.ovirt.engine.core.bll.storage.NFSStorageHelper] (ajp--127.0.0.1-8702-1) [41c282da] <span style="color:red">The connection with details 128.224.147.229:/mnt/data failed because of error code 100 and error message is: generalexception<o:p></o:p></span></p> <p class="MsoListParagraph">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<o:p></o:p></p> <p class="MsoListParagraph">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<o:p></o:p></p> <p class="MsoListParagraph">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 <o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Please let me know what I was doing wrong.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Thanks,<o:p></o:p></p> <p class="MsoNormal">Hongyi<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">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.<o:p></o:p></p> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <br> <pre class="moz-signature" cols="72">-- Best regards. --------- Wgao, Linux BSP Tester, Wind River Beijing Phone: +86-10-6483-5064, Cell: +86-158-1020-4994, Fax: +86-10-6479-0367</pre> </body> </html> --------------060802080604080900090207--
participants (4)
-
Itamar Heim
-
Sandro Bonazzola
-
wgao
-
Zhang, Hongyi