<div dir="ltr">Hi All,<div><br></div><div style>I have a fresh installation of ovirt 3.1 with Datacenter type posix.</div><div style>ovirt+ 1 node.</div><div style><br></div><div style>I created a gluster volume and able to mount it locally.</div>
<div style><br></div><div style>mount -t glusterfs fig:/vol1 /rhev/data-center/mnt/fig:_vol1<br></div><div style>df -h gives:</div><div style>fig:/vol1                    50G  3.9G   43G   9% /rhev/data-center/mnt/fig:_vol1<br>
</div><div style><br></div><div style>looks fine.</div><div style><br></div><div style>when i try the same from ovirt GUI i receieve an error failed to add storage domain.</div><div style><br></div><div style>GUI parameter passed:</div>
<div style>nodename:/volume_name</div><div style>VFS type:glusterfs</div><div style>mount options:vers=3 (tried empty also).</div><div style><br></div><div style>I have reported the same one week back and I got replies like its a bug.</div>
<div style><br></div><div style>I would like to know is there a work around .</div><div style><br></div><div style>vdsm log:</div><div style><div>Thread-2474::DEBUG::2013-01-11 12:26:26,370::task::588::TaskManager.Task::(_updateState) Task=`efb3b3cc-5645-4f87-92cb-b9ecb8ccce48`::moving from state init -&gt; state preparing</div>
<div>Thread-2474::INFO::2013-01-11 12:26:26,371::logUtils::37::dispatcher::(wrapper) Run and protect: validateStorageServerConnection(domType=6, spUUID=&#39;00000000-0000-0000-0000-000000000000&#39;, conList=[{&#39;port&#39;: &#39;&#39;, &#39;connection&#39;: &#39;fig:/vol1&#39;, &#39;iqn&#39;: &#39;&#39;, &#39;portal&#39;: &#39;&#39;, &#39;user&#39;: &#39;&#39;, &#39;vfs_type&#39;: &#39;glusterfs&#39;, &#39;password&#39;: &#39;******&#39;, &#39;id&#39;: &#39;00000000-0000-0000-0000-000000000000&#39;}], options=None)</div>
<div>Thread-2474::INFO::2013-01-11 12:26:26,371::logUtils::39::dispatcher::(wrapper) Run and protect: validateStorageServerConnection, Return response: {&#39;statuslist&#39;: [{&#39;status&#39;: 0, &#39;id&#39;: &#39;00000000-0000-0000-0000-000000000000&#39;}]}</div>
<div>Thread-2474::DEBUG::2013-01-11 12:26:26,371::task::1172::TaskManager.Task::(prepare) Task=`efb3b3cc-5645-4f87-92cb-b9ecb8ccce48`::finished: {&#39;statuslist&#39;: [{&#39;status&#39;: 0, &#39;id&#39;: &#39;00000000-0000-0000-0000-000000000000&#39;}]}</div>
<div>Thread-2474::DEBUG::2013-01-11 12:26:26,371::task::588::TaskManager.Task::(_updateState) Task=`efb3b3cc-5645-4f87-92cb-b9ecb8ccce48`::moving from state preparing -&gt; state finished</div><div>Thread-2474::DEBUG::2013-01-11 12:26:26,372::resourceManager::809::ResourceManager.Owner::(releaseAll) Owner.releaseAll requests {} resources {}</div>
<div>Thread-2474::DEBUG::2013-01-11 12:26:26,372::resourceManager::844::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}</div><div>Thread-2474::DEBUG::2013-01-11 12:26:26,372::task::978::TaskManager.Task::(_decref) Task=`efb3b3cc-5645-4f87-92cb-b9ecb8ccce48`::ref 0 aborting False</div>
<div>Thread-2475::DEBUG::2013-01-11 12:26:26,410::BindingXMLRPC::156::vds::(wrapper) [135.250.76.71]</div><div>Thread-2475::DEBUG::2013-01-11 12:26:26,411::task::588::TaskManager.Task::(_updateState) Task=`f377d9bb-c357-49f9-8aef-483f0525bec9`::moving from state init -&gt; state preparing</div>
<div>Thread-2475::INFO::2013-01-11 12:26:26,411::logUtils::37::dispatcher::(wrapper) Run and protect: connectStorageServer(domType=6, spUUID=&#39;00000000-0000-0000-0000-000000000000&#39;, conList=[{&#39;port&#39;: &#39;&#39;, &#39;connection&#39;: &#39;fig:/vol1&#39;, &#39;iqn&#39;: &#39;&#39;, &#39;portal&#39;: &#39;&#39;, &#39;user&#39;: &#39;&#39;, &#39;vfs_type&#39;: &#39;glusterfs&#39;, &#39;password&#39;: &#39;******&#39;, &#39;id&#39;: &#39;c200ffa7-a334-4d8d-b43e-3f25f3e8a84c&#39;}], options=None)</div>
<div>Thread-2475::DEBUG::2013-01-11 12:26:26,419::__init__::1249::Storage.Misc.excCmd::(_log) &#39;/usr/bin/sudo -n /usr/bin/mount -t glusterfs fig:/vol1 /rhev/data-center/mnt/fig:_vol1&#39; (cwd None)</div><div>Thread-2475::ERROR::2013-01-11 12:26:26,508::hsm::1932::Storage.HSM::(connectStorageServer) Could not connect to storageServer</div>
<div>Traceback (most recent call last):</div><div>  File &quot;/usr/share/vdsm/storage/hsm.py&quot;, line 1929, in connectStorageServer</div><div>    conObj.connect()</div><div>  File &quot;/usr/share/vdsm/storage/storageServer.py&quot;, line 179, in connect</div>
<div>    self._mount.mount(self.options, self._vfsType)</div><div>  File &quot;/usr/share/vdsm/storage/mount.py&quot;, line 190, in mount</div><div>    return self._runcmd(cmd, timeout)</div><div>  File &quot;/usr/share/vdsm/storage/mount.py&quot;, line 206, in _runcmd</div>
<div>    raise MountError(rc, &quot;;&quot;.join((out, err)))</div><div>MountError: (1, &#39;Mount failed. Please check the log file for more details.\n;ERROR: failed to create logfile &quot;/var/log/glusterfs/rhev-data-center-mnt-fig:_vol1.log&quot; (Permission denied)\nERROR: failed to open logfile /var/log/glusterfs/rhev-data-center-mnt-fig:_vol1.log\n&#39;)</div>
<div><br></div><div style>engine log:</div><div style><div>2013-01-11 12:28:21,014 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ValidateStorageServerConnectionVDSCommand] (ajp--0.0.0.0-8009-4) [29437bcd] START, V</div>
<div>alidateStorageServerConnectionVDSCommand(vdsId = ee2b26ba-5bb1-11e2-815e-e4115b978434, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = PO</div><div>SIXFS, connectionList = [{ id: null, connection: fig:/vol1 };]), log id: 658913d</div>
<div>2013-01-11 12:28:21,046 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ValidateStorageServerConnectionVDSCommand] (ajp--0.0.0.0-8009-4) [29437bcd] FINISH,</div><div>ValidateStorageServerConnectionVDSCommand, return: {00000000-0000-0000-0000-000000000000=0}, log id: 658913d</div>
<div>2013-01-11 12:28:21,053 INFO  [org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand] (ajp--0.0.0.0-8009-4) [29437bcd] Running command: AddStor</div><div>ageServerConnectionCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: System</div>
<div>2013-01-11 12:28:21,056 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp--0.0.0.0-8009-4) [29437bcd] START, ConnectStora</div><div>geServerVDSCommand(vdsId = ee2b26ba-5bb1-11e2-815e-e4115b978434, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = POSIXFS, connectionList</div>
<div>= [{ id: c200ffa7-a334-4d8d-b43e-3f25f3e8a84c, connection: fig:/vol1 };]), log id: 322d95a9</div><div>2013-01-11 12:28:21,187 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp--0.0.0.0-8009-4) [29437bcd] FINISH, ConnectStor</div>
<div>ageServerVDSCommand, return: {c200ffa7-a334-4d8d-b43e-3f25f3e8a84c=477}, log id: 322d95a9</div><div>2013-01-11 12:28:21,190 ERROR [org.ovirt.engine.core.bll.storage.POSIXFSStorageHelper] (ajp--0.0.0.0-8009-4) [29437bcd] The connection with details fig:/vol1</div>
<div> failed because of error code 477 and error message is: 477</div><div>2013-01-11 12:28:21,220 WARN  [org.ovirt.engine.core.dal.job.ExecutionMessageDirector] (ajp--0.0.0.0-8009-2) [522a5ac5] The message key AddPosixFsStorageDoma</div>
<div>in is missing from bundles/ExecutionMessages</div><div>2013-01-11 12:28:21,242 INFO  [org.ovirt.engine.core.bll.storage.AddPosixFsStorageDomainCommand] (ajp--0.0.0.0-8009-2) [522a5ac5] Running command: AddPosixFs</div>
<div>StorageDomainCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: System</div><div>2013-01-11 12:28:21,253 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp--0.0.0.0-8009-2) [522a5ac5] START, CreateStorage</div>
<div>DomainVDSCommand(vdsId = ee2b26ba-5bb1-11e2-815e-e4115b978434, storageDomain=org.ovirt.engine.core.common.businessentities.storage_domain_static@9c3f6ce6, ar</div><div>gs=fig:/vol1), log id: 6a3a31b8</div><div>2013-01-11 12:28:21,776 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--0.0.0.0-8009-2) [522a5ac5] Failed in CreateStorageDomainVDS</div>
<div> method</div><div>2013-01-11 12:28:21,777 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--0.0.0.0-8009-2) [522a5ac5] Error code StorageDomainFSNotMou</div><div>nted and error message VDSGenericException: VDSErrorException: Failed to CreateStorageDomainVDS, error = Storage domain remote path not mounted: (&#39;/rhev/data</div>
<div>-center/mnt/fig:_vol1&#39;,)</div><div>2013-01-11 12:28:21,780 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--0.0.0.0-8009-2) [522a5ac5] Command org.ovirt.engine.core.vd</div><div>sbroker.vdsbroker.CreateStorageDomainVDSCommand return value</div>
<div> Class Name: org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc</div><div>mStatus                       Class Name: org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc</div><div>mCode                         360</div>
<div>mMessage                      Storage domain remote path not mounted: (&#39;/rhev/data-center/mnt/fig:_vol1&#39;,)</div><div><br></div><div style>Thanks,</div><div style>Jithin</div></div></div><div style><br></div></div>