Re: [one-users] 2 problems in VMs

2014-09-03 Thread Javier Fontan
Here is the problem:

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.

You need to change IMAGE=.. to IMAGE_UID and the ID number or add
IMAGE_UNAME with the owner of that image.

On Wed, Aug 20, 2014 at 8:19 AM, Sudeep Narayan Banerjee
snbaner...@iitgn.ac.in wrote:
 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@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, VMTEMPLATEID33/...
 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@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 jfon...@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
 snbaner...@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@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@front ~]$ oneimage chmod 33 664
 
 
  [oneadmin@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@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



-- 
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | @OpenNebula | github.com/jfontan

Re: [one-users] 2 problems in VMs

2014-08-20 Thread Sudeep Narayan Banerjee
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@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, VMTEMPLATEID33/...
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@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 jfon...@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
 snbaner...@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@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@front ~]$ oneimage chmod 33 664
 
 
  [oneadmin@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@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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] 2 problems in VMs

2014-08-18 Thread Javier Fontan
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
snbaner...@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@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@front ~]$ oneimage chmod 33 664


 [oneadmin@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@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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] 2 problems in VMs

2014-08-11 Thread Valentin Bud
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@front ~]$ oneimage chmod 33 664


 [oneadmin@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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] 2 problems in VMs

2014-08-11 Thread Sudeep Narayan Banerjee
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@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@front ~]$ oneimage chmod 33 664


 [oneadmin@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@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] 2 problems in VMs

2014-08-10 Thread Sudeep Narayan Banerjee
Dear All,

I am running 3 VMs successfully in my server with Ldap using a bridge
network. I face 2 problems.


1. Except oneadmin user, no other Ldap user can create a VM. It says, you
do not have the permission to use it. Use IMAGE_UNAME or IMAGE_UID.
I have done the below execution, still does not work out.

[oneadmin@front ~]$ oneimage chmod 31 664
[oneadmin@front ~]$ oneimage chmod 32 664
[oneadmin@front ~]$ oneimage chmod 33 664

[oneadmin@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

VIRTUAL MACHINES


2. If my frontend and Nodes get rebooted due to power cut, thereafter the
VMs do not turn on. It goes not Unknown state. I checked /var/lib/one is
mounted on nodes, still the error says Error executing image transfer
script: Error copying
front.iitgn.ac.in:/var/lib/one//datastores/1/47ed097d1d4c27ec087afd13abe51d55
to nc2:/var/lib/one/datastores/0/78/disk.0



-- 
Thanks  Regards,
Sudeep Narayan Banerjee
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] 2 problems in VMs

2014-08-10 Thread Sudeep Narayan Banerjee
Hi,

Problem 2 I could fix.

Problem 1 still persists.

Thanks in advance for any help!


On Mon, Aug 11, 2014 at 10:16 AM, Sudeep Narayan Banerjee 
snbaner...@iitgn.ac.in wrote:

 Dear All,

 I am running 3 VMs successfully in my server with Ldap using a bridge
 network. I face 2 problems.


 1. Except oneadmin user, no other Ldap user can create a VM. It says, you
 do not have the permission to use it. Use IMAGE_UNAME or IMAGE_UID.
 I have done the below execution, still does not work out.

 [oneadmin@front ~]$ oneimage chmod 31 664
 [oneadmin@front ~]$ oneimage chmod 32 664
 [oneadmin@front ~]$ oneimage chmod 33 664

 [oneadmin@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

 VIRTUAL MACHINES


 2. If my frontend and Nodes get rebooted due to power cut, thereafter the
 VMs do not turn on. It goes not Unknown state. I checked /var/lib/one is
 mounted on nodes, still the error says Error executing image transfer
 script: Error copying 
 front.iitgn.ac.in:/var/lib/one//datastores/1/47ed097d1d4c27ec087afd13abe51d55
 to nc2:/var/lib/one/datastores/0/78/disk.0



 --
 Thanks  Regards,
 Sudeep Narayan Banerjee




-- 
Thanks  Regards,
Sudeep Narayan Banerjee
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org