<div dir="ltr"><div><div>Dear Javier,<br><br>This is the oned.log when user snbanerjee(myself) is trying to instantiate the template CentOS-6.5 from my GUI LDAP account.<br><br>------------------------------------<br>[oneadmin@front ~]$ tail -f /var/log/one/oned.log<br>
Wed Aug 20 11:42:39 2014 [ReM][D]: Req:4288 UID:5 TemplateInfo invoked, 33<br>Wed Aug 20 11:42:39 2014 [ReM][D]: Req:4288 UID:5 TemplateInfo result SUCCESS, "<VMTEMPLATE><ID>33</..."<br>Wed Aug 20 11:42:39 2014 [ReM][D]: Req:3216 UID:5 TemplateInstantiate invoked, 33, "", false, "DESCRIPTION="Very sm..."<br>
Wed Aug 20 11:42:39 2014 [InM][D]: Host nc2 (19) successfully monitored.<br>Wed Aug 20 11:42:39 2014 [ONE][E]: DISK 0: User 5 does not own an image with name: CentOS-6.5_x86_64 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK.<br>
Wed Aug 20 11:42:39 2014 [ReM][E]: Req:3216 UID:5 TemplateInstantiate result FAILURE [TemplateInstantiate] Error allocating a new virtual machine. DISK 0: User 5 does not own an image with name: CentOS-6.5_x86_64 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK.<br>
Wed Aug 20 11:42:52 2014 [AuM][D]: Message received: AUTHENTICATE SUCCESS 1108 -<br><br><br>-------------------------------------------------<br><br><br>[oneadmin@front ~]$ oneimage show 35<br>IMAGE 35 INFORMATION <br>
ID : 35 <br>NAME : CentOS-6.5_x86_64 <br>USER : oneadmin <br>GROUP : oneadmin <br>DATASTORE : default <br>TYPE : OS <br>
REGISTER TIME : 08/11 10:32:36 <br>PERSISTENT : No <br>SOURCE : /var/lib/one//datastores/1/89fc59d8a0382ab679df53f3c6c4627c<br>PATH : <a href="http://appliances.c12g.com/CentOS-6.5/centos6.5.qcow2.gz">http://appliances.c12g.com/CentOS-6.5/centos6.5.qcow2.gz</a><br>
SIZE : 267M <br>STATE : rdy <br>RUNNING_VMS : 0 <br><br>PERMISSIONS <br>OWNER : um- <br>
GROUP : um- <br>OTHER : um- <br><br>IMAGE TEMPLATE <br>DEV_PREFIX="hd"<br>DRIVER="qcow2"<br>
<br>VIRTUAL MACHINES<br><br>------------------------------------------------------------<br><br></div>Regards,<br></div>Sudeep<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Aug 18, 2014 at 1:47 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you get any extra information on oned.log? Maybe the user does not<br>
have permission to use a network or the template itself.<br>
<div><div class="h5"><br>
On Mon, Aug 11, 2014 at 8:20 AM, Sudeep Narayan Banerjee<br>
<<a href="mailto:snbanerjee@iitgn.ac.in">snbanerjee@iitgn.ac.in</a>> wrote:<br>
> Dear Valentin,<br>
><br>
> I am using 4.6.2 version.<br>
><br>
> I did from CLI and GUI and checked that is um- for all owner,group,others<br>
><br>
> I also tried by changing the group; chgrp from oneadmin to users but no<br>
> luck. Users is the group that carries all the LDAP users.<br>
><br>
> The only way it works, if I manually change the ownership of the username.<br>
> But we have our LDAP users to directly login and use. Is that the only way<br>
> to manually enter each & everyone's ownership!?!<br>
><br>
> Regards,<br>
> Sudeep<br>
><br>
><br>
> On Mon, Aug 11, 2014 at 11:45 AM, Valentin Bud <<a href="mailto:valentin.bud@gmail.com">valentin.bud@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello Sudeep,<br>
>><br>
>> I don't know what version of OpenNebula are you using. I have tested on my<br>
>> setup,<br>
>> which uses 4.4. The following might not apply in your case. See inline.<br>
>><br>
>>><br>
>>> [oneadmin@front ~]$ oneimage chmod 33 664<br>
>>><br>
>>><br>
>>> [oneadmin@front ~]$ oneimage show 33<br>
>>> IMAGE 33 INFORMATION<br>
>>> ID : 33<br>
>>> NAME : win7_sys<br>
>>> USER : oneadmin<br>
>>> GROUP : oneadmin<br>
>>> DATASTORE : default<br>
>>> TYPE : OS<br>
>>> REGISTER TIME : 07/30 14:49:49<br>
>>> PERSISTENT : No<br>
>>> SOURCE :<br>
>>> /var/lib/one//datastores/1/0f72c7f0cd7fdc78f53b4fdbd2edb008<br>
>>> PATH : /home/wind.qcow2<br>
>>> SIZE : 9G<br>
>>> STATE : rdy<br>
>>> RUNNING_VMS : 0<br>
>>><br>
>>> PERMISSIONS<br>
>>> OWNER : um-<br>
>>> GROUP : u--<br>
>>> OTHER : ---<br>
>>><br>
>>> IMAGE TEMPLATE<br>
>>> DEV_PREFIX="hd"<br>
>>> DRIVER="qcow2"<br>
>><br>
>><br>
>> According to the above output it seems like oneimage chmod didn't change<br>
>> the<br>
>> permissions.<br>
>><br>
>> I think they should resemble the following:<br>
>> PERMISSIONS<br>
>> OWNER : um-<br>
>> GROUP : um-<br>
>> OTHER : u--<br>
>><br>
>> Can you try chmod-ing again, if it still doesn't work maybe it's a bug.<br>
>><br>
>> Best,<br>
>> Valentin<br>
><br>
><br>
><br>
><br>
> --<br>
> Thanks & Regards,<br>
> Sudeep Narayan Banerjee<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Thanks & Regards,<div>Sudeep Narayan Banerjee</div></div>
</div>