[one-users] 2 problems in VMs

Sudeep Narayan Banerjee snbanerjee at iitgn.ac.in
Tue Aug 19 23:19:08 PDT 2014


Dear Javier,

This is the oned.log when user snbanerjee(myself) is trying to instantiate
the template CentOS-6.5 from my GUI LDAP account.

------------------------------------
[oneadmin at front ~]$ tail -f /var/log/one/oned.log
Wed Aug 20 11:42:39 2014 [ReM][D]: Req:4288 UID:5 TemplateInfo invoked, 33
Wed Aug 20 11:42:39 2014 [ReM][D]: Req:4288 UID:5 TemplateInfo result
SUCCESS, "<VMTEMPLATE><ID>33</..."
Wed Aug 20 11:42:39 2014 [ReM][D]: Req:3216 UID:5 TemplateInstantiate
invoked, 33, "", false, "DESCRIPTION="Very sm..."
Wed Aug 20 11:42:39 2014 [InM][D]: Host nc2 (19) successfully monitored.
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.
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.
Wed Aug 20 11:42:52 2014 [AuM][D]: Message received: AUTHENTICATE SUCCESS
1108 -


-------------------------------------------------


[oneadmin at front ~]$ oneimage show 35
IMAGE 35
INFORMATION
ID             : 35
NAME           : CentOS-6.5_x86_64
USER           : oneadmin
GROUP          : oneadmin
DATASTORE      : default
TYPE           : OS
REGISTER TIME  : 08/11 10:32:36
PERSISTENT     : No
SOURCE         : /var/lib/one//datastores/1/89fc59d8a0382ab679df53f3c6c4627c
PATH           : http://appliances.c12g.com/CentOS-6.5/centos6.5.qcow2.gz
SIZE           : 267M
STATE          : rdy
RUNNING_VMS    : 0

PERMISSIONS

OWNER          : um-
GROUP          : um-
OTHER          : um-

IMAGE
TEMPLATE
DEV_PREFIX="hd"
DRIVER="qcow2"

VIRTUAL MACHINES

------------------------------------------------------------

Regards,
Sudeep



On Mon, Aug 18, 2014 at 1:47 PM, Javier Fontan <jfontan at opennebula.org>
wrote:

> Do you get any extra information on oned.log? Maybe the user does not
> have permission to use a network or the template itself.
>
> On Mon, Aug 11, 2014 at 8:20 AM, Sudeep Narayan Banerjee
> <snbanerjee at iitgn.ac.in> wrote:
> > Dear Valentin,
> >
> > I am using 4.6.2 version.
> >
> > I did from CLI and GUI and checked that is um- for all owner,group,others
> >
> > I also tried by changing the group; chgrp from oneadmin to users but no
> > luck. Users is the group that carries all the LDAP users.
> >
> > The only way it works, if I manually change the ownership of the
> username.
> > But we have our LDAP users to directly login and use. Is that the only
> way
> > to manually enter each & everyone's ownership!?!
> >
> > Regards,
> > Sudeep
> >
> >
> > On Mon, Aug 11, 2014 at 11:45 AM, Valentin Bud <valentin.bud at gmail.com>
> > wrote:
> >>
> >> Hello Sudeep,
> >>
> >> I don't know what version of OpenNebula are you using. I have tested on
> my
> >> setup,
> >> which uses 4.4. The following might not apply in your case. See inline.
> >>
> >>>
> >>> [oneadmin at front ~]$ oneimage chmod 33 664
> >>>
> >>>
> >>> [oneadmin at front ~]$ oneimage show 33
> >>> IMAGE 33 INFORMATION
> >>> ID             : 33
> >>> NAME           : win7_sys
> >>> USER           : oneadmin
> >>> GROUP          : oneadmin
> >>> DATASTORE      : default
> >>> TYPE           : OS
> >>> REGISTER TIME  : 07/30 14:49:49
> >>> PERSISTENT     : No
> >>> SOURCE         :
> >>> /var/lib/one//datastores/1/0f72c7f0cd7fdc78f53b4fdbd2edb008
> >>> PATH           : /home/wind.qcow2
> >>> SIZE           : 9G
> >>> STATE          : rdy
> >>> RUNNING_VMS    : 0
> >>>
> >>> PERMISSIONS
> >>> OWNER          : um-
> >>> GROUP          : u--
> >>> OTHER          : ---
> >>>
> >>> IMAGE TEMPLATE
> >>> DEV_PREFIX="hd"
> >>> DRIVER="qcow2"
> >>
> >>
> >> According to the above output it seems like oneimage chmod didn't change
> >> the
> >> permissions.
> >>
> >> I think they should resemble the following:
> >> PERMISSIONS
> >> OWNER          : um-
> >> GROUP          : um-
> >> OTHER          : u--
> >>
> >> Can you try chmod-ing again, if it still doesn't work maybe it's a bug.
> >>
> >> Best,
> >> Valentin
> >
> >
> >
> >
> > --
> > Thanks & Regards,
> > Sudeep Narayan Banerjee
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
>
>
>
> --
> Javier Fontán Muiños
> Developer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | @OpenNebula | github.com/jfontan
>



-- 
Thanks & Regards,
Sudeep Narayan Banerjee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140820/59326e5d/attachment.htm>


More information about the Users mailing list