<div dir="ltr">Same on centos6 trying to use a bind mount:<div><div><br></div><div>Thread-5189::ERROR::2015-08-25 15:22:26,318::hsm::2379::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 2376, in connectStorageServer</div><div>    conObj.connect()</div><div>  File &quot;/usr/share/vdsm/storage/storageServer.py&quot;, line 220, in connect</div><div>    self.getMountObj().getRecord().fs_file)</div><div>  File &quot;/usr/share/vdsm/storage/mount.py&quot;, line 271, in getRecord</div><div>    (self.fs_spec, self.fs_file))</div><div>OSError: [Errno 2] Mount of `/data/test` at `/rhev/data-center/mnt/_data_test_` does not exist</div></div><div><br></div><div>And the mount gets mounted on the OS:</div><div><br></div><div><div>/data/test on /rhev/data-center/mnt/_data_test_ type none (rw,bind)</div></div><div><br></div><div>Mount options are:</div><div>Path: /data/test/</div><div>VFS type: loop</div><div>Options: bind,rw</div><div><br></div><div>Cheers,</div><div>Steve</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 3:22 PM, Steve Kilduff <span dir="ltr">&lt;<a href="mailto:kilduff@gmail.com" target="_blank">kilduff@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys, trying to reply to a previous topic but I am certain I am not doing it correct, regardless, here we go.<div><br></div><div>moosefs mounting on ovirt.</div><div><br></div><div><span>I am having similar problem to the person in the mail Cannot add Posix Storage. This is an ovirt setup attempt with moosefs. </span></div><div><span><br></span></div><div><span>Mount options are:</span></div><div><span><div>Path:       mfsmount</div><div>VFS type: fuse<br></div><div>Mount opt: mfsmaster=mfsmaster,mfsport=9421,mfssubfolder=/ovirt,_netdev</div><div><br></div><div>I specified a subfolder which may not exist on your mfs storae.</div><div><br></div></span></div><div><div>In my setup, ovirt mounts the actual mfs mount without problem, the mount remains mounted afterwards as ovirt does not seem to unmount it successfully. I think the problem is the mount detection mechanism in python, It is looking for a pattern to match both the source/destination of the mount and failing: I hope this shows what I mean:</div><div><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div><div>vsdm.log output:</div></div><div><span><span class=""><div style="font-size:12.8000001907349px">OSError: [Errno 2] Mount of `mfsmount` at `/rhev/data-center/mnt/mfsmount` does not exist</div><div style="font-size:12.8000001907349px"><br></div></span><div style="font-size:12.8000001907349px">centos7 output of mount command:</div><span class=""><div style="font-size:12.8000001907349px"><div>mfsmaster:9421 on /rhev/data-center/mnt/mfsmount type fuse.mfs (rw,relatime,user_id=0,group_id=0,allow_other)</div><div><br></div></div></span><div style="font-size:12.8000001907349px">Source = mfsmount in first error out line, and source = &#39;&#39;mfsmaster:9421&#39; on the OS, and I guess mount.py is trying to pattern match the mount and doesnt compare them correctly and bails out.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I guess normally the source of the mount does not change name, like with the specifics I gave to mount mfs.</div><div><br></div><div>I am trying to poke around the python to see if I can simply ignore this check, but my python skills are non existent.</div><div><br></div><div>Also, as a workaround, I tried to first mount mfs without ovirt, and then get ovirt to bind mount my /mnt/moosefs how-ever in centos7 bind mount names are strange, I think broken when compared to centos6,  the output of mount in centos7 when bind mounting /mnt/moosefs to /ovirt:</div><div>mfsmaster:9421 on /mnt/moosfs</div><div>mfsmaster:9421 on /ovirt</div><div><br></div><div>where as in centos6 it would be:</div><div><div>mfsmaster:9421 on /mnt/moosfs</div><div>/mnt/moosfs on /ovirt</div></div><div><br></div><div>Again, I think the pattern matching of mount.py is what fails during bind mount also. </div><div><br></div><div>I think if bind mounting worked, the user could stick what-ever filesystem they wanted onto the OS, and get ovirt to bind mount it. Then it&#39;s the user&#39;s problem how to manage their FS.</div><div><br></div><div>Best,</div><div>Steve Kilduff</div><div><br></div><span style="font-size:12.8000001907349px"><font color="#888888"></font></span></span></div></div></div>
</blockquote></div><br></div>