<div style="font-family:Verdana;font-size:14px;color:#000;"><div><div>Dear all,</div><div><br></div><div>Thanks a lot for all your feedback, it is helping us a lot. We will let you know about our progress.</div><div><br></div><div>Best regards,</div><div><br></div><div>- Lucas Vandroux 冯凯 &nbsp;</div></div><div style="font:Verdana normal 14px;color:#000;padding:8px 0px;"><div>&nbsp;</div><div>&nbsp;</div><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;Original&nbsp;------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Itamar Heim"<iheim@redhat.com>; </div><div><b>Date:</b> 2014年12月16日(星期二) 上午7:08</div><div><b>To:</b> "Keith Robertson"<kroberts@redhat.com>; "Vandroux Lucas"<lucas.vandroux@eayun.com>; "devel"<devel@ovirt.org>; </div><div><b>Subject:</b> Re: [ovirt-devel] UI Plugin to Upload ISO Files</div></div><div>&nbsp;</div>On 12/15/2014 07:59 PM, Keith Robertson wrote:<br>&gt;<br>&gt; On 12/11/14 10:15 PM, Lucas Vandroux wrote:<br>&gt;&gt; Dear all,<br>&gt;&gt;<br>&gt;&gt; I'm actually working to create a custom user interface plugin for oVirt<br>&gt;&gt; web administration application to let user upload iso files.<br>&gt;&gt;<br>&gt;&gt; I'm in the very first stage of the project. I'm planning to use<br>&gt;&gt; angularjs with the ng-flow module &lt;<a href="https://github.com/flowjs/ng-flow&gt;" target="_blank">https://gith<wbr>ub.com/flowj<wbr>s/ng-flow&gt;<wbr>;</a> on<br>&gt;&gt; the client-side and a java servlet using the ovirt-iso-uploader<br>&gt;&gt; &lt;<a href="http://www.ovirt.org/OVirt_engine_tools#ovirt-iso-uploader&gt;" target="_blank">http://www.o<wbr>virt.org/OVi<wbr>rt_engine_to<wbr>ols#ovirt-is<wbr>o-uploader&amp;g<wbr>t;</a> engine tool<br>&gt;&gt; on the server-side.<br>&gt;&gt;<br>&gt;&gt; All my code is going to be on Github in the following repository<br>&gt;&gt; : iso-uploader-plugin<br>&gt;&gt; &lt;<a href="https://github.com/ovirt-china/iso-uploader-plugin&gt;." target="_blank">https://gith<wbr>ub.com/ovirt<wbr>-china/iso-u<wbr>ploader-plug<wbr>in&gt;.</a> You can also check<br>&gt;&gt; a more detailed version of the specifications on my wiki<br>&gt;&gt; &lt;<a href="https://github.com/ovirt-china/iso-uploader-plugin/wiki/Specifications&gt;." target="_blank">https://gith<wbr>ub.com/ovirt<wbr>-china/iso-u<wbr>ploader-plug<wbr>in/wiki/Spec<wbr>ifications&amp;g<wbr>t;.</a><br>&gt;&gt;<br>&gt;&gt; I'm writing to you guys to know if there is a way for us to collaborate<br>&gt;&gt; as you may also want to develop something like this to be integrated in<br>&gt;&gt; the oVirt Engine.<br>&gt;&gt;<br>&gt;&gt; Best regards,<br>&gt;&gt;<br>&gt;&gt; - Lucas Vandroux (冯凯)<br>&gt;&gt;<br>&gt;<br>&gt; Lucas,<br>&gt;<br>&gt; I am glad to see someone finally picking this up.<br>&gt;<br>&gt; I don't maintain the ISO uploader anymore but I can offer you some<br>&gt; suggestions that may help you with your effort.<br>&gt;<br>&gt; 1) The mount command which is used by the 'ovirt-iso-uploader' requires<br>&gt; root.&nbsp; Hence, the calling process must be root.&nbsp; If you shell out to the<br>&gt; 'ovirt-iso-uploader' from a servlet running in Ovirt Engine the calling<br>&gt; process will not be root.&nbsp; Instead, it will be the user 'ovirt'.&nbsp; As<br>&gt; such, uploading a file will fail because the mount command will fail.<br>&gt;<br>&gt; To circumvent this issue, I suggest you investigate creating a<br>&gt; consolehelper script to call the program as the user 'ovirt' and elevate<br>&gt; your privileges to root.&nbsp; I would avoid sudo for this purpose.<br>&gt;<br>&gt; 2) The plug-in you are creating will only work if Ovirt Engine can<br>&gt; actually reach the NFS server.&nbsp; AIUI, there are valid configurations<br>&gt; where Hypervisors can reach the NFS server but the Engine cannot.&nbsp; I am<br>&gt; not sure if this is still the case but you will want to gracefully<br>&gt; handle this.<br>&gt;<br>&gt; 3) SSH is easier.&nbsp; If you can SSH to the NFS server and upload the files<br>&gt; that way then you will not have to shell out to the<br>&gt; 'ovirt-iso-uploader'.&nbsp; You can use the Java SSH library that ships with<br>&gt; oVirt.&nbsp; I would suggest you review lines in [1] so that you understand<br>&gt; the necessary file permissions.&nbsp; It is important to note; however, that<br>&gt; not all NFS server support SSH so this should not be the default<br>&gt; uploading mechanism.<br>&gt;<br><br>though as mentioned on the thread, we'd really love to see this done via <br>upload to storage via vdsm communication.<br><br>&gt; HTH,<br>&gt; Keith<br>&gt;<br>&gt; [1] <a href="http://goo.gl/0ihn8W" target="_blank">http://goo.g<wbr>l/0ihn8W</a><br>&gt;<br>&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Devel mailing list<br>&gt;&gt; <a href="https://mail.google.com/mail/?view=cm&amp;fs=1&amp;tf=1&amp;to=Devel@ovirt.org" target="_blank">Devel@ovirt.<wbr>org</a><br>&gt;&gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" target="_blank">http://lists<wbr>.ovirt.org/m<wbr>ailman/listi<wbr>nfo/devel</a><br>&gt;&gt;<br>&gt; _______________________________________________<br>&gt; Devel mailing list<br>&gt; <a href="https://mail.google.com/mail/?view=cm&amp;fs=1&amp;tf=1&amp;to=Devel@ovirt.org" target="_blank">Devel@ovirt.<wbr>org</a><br>&gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" target="_blank">http://lists<wbr>.ovirt.org/m<wbr>ailman/listi<wbr>nfo/devel</a><br>&gt;<br>  <!--<![endif]--><style></style></div></div>