Re: [one-users] Using 2 type of datastore

2011-09-21 Thread Carlos Martín Sánchez
Hi Alberto,

This thread may be a short answer to your question:
http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006152.html

But don't hesitate to ask for more details.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Sep 20, 2011 at 7:41 AM, Alberto Zuin - Liste
li...@albertozuin.euwrote:

 Just a little question: it's possible to use an NFS datastore for OS images
 and a LVM datastore for datablock, or I have to create a custom hybrid
 driver?
 I'm modifing nfs driver to use btrfs, then while I'm at work...
 Thanks,
 Alberto
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Mutating a living VM?

2011-09-21 Thread Carlos Martín Sánchez
Hi,

We currently don't support that functionality, but it's in our long-term
roadmap.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Sep 19, 2011 at 11:22 PM, Ismael Farfán sulfur...@gmail.com wrote:

 Ok, that sounds a little dramatic :p

 What I'd like to know is if there's a way to add/remove resources
 (at least RAM and CPU) to a VM while it's running.

 Otherwise I have to edit the description file every time and shutdown
 and create it again for the changes to have effect, which is what I'd
 prefer no to do.

 Regards
 Ismael

 --
 Do not let me induce you to satisfy my curiosity, from an expectation,
 that I shall gratify yours. What I may judge proper to conceal, does
 not concern myself alone.
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula 3.0b2 after onevm saveas VM gone

2011-09-21 Thread Carlos Martín Sánchez
Hi,

I just wanted to add to Fabian's reply that in OpenNebula 3.0 the VM
instance is lost (well, not really lost, it just happens to end its life
cycle), but the template can be instantiated as many times as you need.
You can also edit the template to change the image id, using 'onetemplate
update id'.

Since you are updating your OS image, you may want to make it persistent
instead of saving another copy.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Thu, Sep 15, 2011 at 4:58 PM, Fabian Wenk fab...@wenks.ch wrote:

 Hello Valentin

 I did not yet play around with ONE 3.x, but I guess this behavior is the
 same as in 2.2.1.


 On 15.09.2011 15:36, Valentin Bud wrote:

 # onevm saveas 5 0 debian-upd1

 I mention that I ran the above command while the Debian VM was on. As far
 as
 I understand from documentation this is not a problem but
 the contents of the image are only created after the VM is shutdown
 gracefully (using onevm shutdown). So I did just that.


  The problem. The Debian VM is gone, it is not listed anymore. onevm
 returns
 empty list. The Debian VM was the only
 one active. Is this normal behavior if you save the only disk the VM has?


 This is normal behavior, see the Virtual Machine Life-cycle at [1]. The
 only workaround I know is to recreate the VM with 'onevm create template'.
 This will give an new VID for the VM. If you want to boot it with the just
 freshly saved image, you need to adjust your template so it will use the
 newly created image.

  [1] 
 http://www.opennebula.org/**documentation:rel2.2:vm_guidehttp://www.opennebula.org/documentation:rel2.2:vm_guide

 As far as I have understood, if you want to have an VM which should run (or
 exists) forever do not use 'onevm shutdown vm_id' at any time, or you need
 to recreate the VM. Only use 'onevm stop vm_id' and 'onevm resume
 vm_id', which will just pause the VM (no processes are stopped inside the
 VM). Reboot or shutdown of the OS in the VM is possible. With using shutdown
 inside the VM, I had to recover (eg. boot again) the VM with waiting until
 'onevm list' (or 'onevm top') shows the state as unkn and then use 'onevm
 restart vm_id' to boot the VM again.

 Hope this helps.


 bye
 Fabian

 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Is the reverse proxy of a VDC set up automatically?

2011-09-21 Thread Tino Vazquez
Dear Shi Jin,

You may want to take a look at the Configure oZones Server section of [1].

In a nutshell, the oZones server configures the reverse proxy by
rewritting the .htaccess file. The documentation is still at
development state, any feedback on it would be highly appreciated.

Regards,

-Tino

[1] http://opennebula.org/documentation:rel3.0:ozonescfg

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Thu, Sep 15, 2011 at 11:56 PM, Shi Jin jinzish...@gmail.com wrote:
 Hi there,
 I am starting to test ONE-3.0beta2, particularly on the oZones and VDCs.
 My question is that do we have to manually set up the reverse proxy on
 Apache for each VDC or this is taken care of by OpenNebula automatically? So
 far, I have found that I need to manually add to httpd.conf
 ProxyPass /vdc1 http://192.168.1.52:2633/RPC2
 ProxyPassReverse /vdc1 http://192.168.1.52:2633/RPC2
 In order to use the http://host/vdc1 as the end point for the VDC.
 Is this how it is supposed to be?

 Also, as the VDC admin, I don't have the permission to run oneuser list.
 But shouldn't I be seeing myself and accounts I created under this account?
 Thanks a lot.
 Shi
 --
 Shi Jin, Ph.D.


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] groups and images/templates

2011-09-21 Thread Carlos Martín Sánchez
Hi all,

We are considering a new simple approach on this use-case, and we'd like to
hear your thoughts:

Resources could have two flags to let other users list/use them:
- shared: users in the resource's group.
- public: all users

This would make it easier to share resources with everybody (there is no
need to manage ACLs), and users could list shared objects.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/8/29 Robert Parrott parr...@seas.harvard.edu

 Hi Carlos,

 The workaround you describe will get us going, and we can enumerate
 our temapltes and resources as needed for now.

 The multiple groups idea is most likely the _right_ approach, but for
 the time being perhaps also could be added a public flag to listing,
 which lists all objects which the user is entitled to see (in fact, at
 first blush it seems that this is the correct default setting).

 Rob

 2011/8/29 Carlos Martín Sánchez cmar...@opennebula.org:
  Hi Robert,
 
  You are right about the meaning of public, its scope is the resource's
  group.
  Using ACLs, you can create a group (let's say shared), and allow
 everybody
  to use and instantiate IMAGE and TEMPLATES in that group.
 
  $ onegroup create shared
  ID: 100
  ACL_ID: 2
  ACL_ID: 3
 
  $ oneacl create * IMAGE+TEMPLATE/@100 INFO+USE+INSTANTIATE
  ID: 4
 
  $ oneacl list
 ID USER RES_VHNIUTG   RID OPE_CDUMIPpTW
  0   @1 V-NI-T- * C-p--
  1   @1 -H- * --U--
  2 @100 V-NI-T- * C-p--
  3 @100 -H- * --U--
  4* ---I-T-  @100 --U-I--T-
 
  That will provide the scenario you described.
  However, there's no straight-forward way for regular users to list the
  resources in the shared group, as they can only list resources with the
  'all', 'mine' or 'group' flag.
 
  You can grant users the right to list all resources (INFO_POOL) if
 privacy
  is not a concern... or you could create some other way to let users know
 the
  list of resources in the shared group, for instance creating a new
  Sunstone plug-in [1]
 
 
  Maybe we could use this thread to discuss how to integrate better this
  use-case in future versions.
  We already have a request for multiple groups [2], that's one of the ways
 to
  address this issue.
 
  Regards,
  Carlos.
 
  [1] http://opennebula.org/documentation:rel3.0:sunstone_plugin_reference
  [2] http://dev.opennebula.org/issues/761
 
  --
  Carlos Martín, MSc
  Project Major Contributor
  OpenNebula - The Open Source Toolkit for Cloud Computing
  www.OpenNebula.org | cmar...@opennebula.org
 
 
 
  On Wed, Aug 24, 2011 at 10:40 PM, Robert Parrott 
 parr...@seas.harvard.edu
  wrote:
  Hi Folks,
 
  Is there some way to make images or templates completely public?
 
  Currently, it looks like making an image or template public means
  that anyone within your group can see and use that image or template.
  It would be nice to also have the functionality where members of any
  group can make use of a set of public images and templates as a
  starting point for customizing their own VMs (i.e. vanilla CentOS 6
  or Ubuntu 10.04 LTS).
 
  Thanks,
  Rob
 
 
  --
  Robert E. Parrott, Ph.D. (Phys. '06)
  Director, Academic Computing
  Harvard University Sch. of Eng. and App. Sci.
  Maxwell-Dworkin  211,
  33 Oxford St.
  Cambridge, MA 02138
  (617)-496-1520
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 
 



 --
 Robert E. Parrott, Ph.D. (Phys. '06)
 Director, Academic Computing
 Harvard University Sch. of Eng. and App. Sci.
 Maxwell-Dworkin  211,
 33 Oxford St.
 Cambridge, MA 02138
 (617)-496-1520

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] changing virtual network online

2011-09-21 Thread samuel
Hi folks,

I've just wondering whether is it possible to change the virtual network
that a virtual machine is attached once it has been working (deploy-run).
I've tried to modify the deployment.0 file but it did not affect the new
restarted machine. Might be a problem with the underlying MySQL database
that has to be also changed?

Use Case:
*create a new virtual machine and just forgot to attach a virtual network
*modify a virtual network (in case of VLAN change)
*attach a new interface to a running machine.

Thank you very much in advance,
Samuel.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Sunstone with different AWS cred

2011-09-21 Thread Zeeshan Ali Shah
Hi,
Can Users from Sunstone configure their own AWS credential so that we can
avoid using single AWS account ?

Zeeshan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] groups and images/templates

2011-09-21 Thread Robert Parrott
This seems a sensible approach to me. It's reminiscent of the unix
permission categories me, group and everyone.

2011/9/21 Carlos Martín Sánchez cmar...@opennebula.org:
 Hi all,

 We are considering a new simple approach on this use-case, and we'd like to
 hear your thoughts:

 Resources could have two flags to let other users list/use them:
 - shared: users in the resource's group.
 - public: all users

 This would make it easier to share resources with everybody (there is no
 need to manage ACLs), and users could list shared objects.

 Regards.
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org | cmar...@opennebula.org


 2011/8/29 Robert Parrott parr...@seas.harvard.edu

 Hi Carlos,

 The workaround you describe will get us going, and we can enumerate
 our temapltes and resources as needed for now.

 The multiple groups idea is most likely the _right_ approach, but for
 the time being perhaps also could be added a public flag to listing,
 which lists all objects which the user is entitled to see (in fact, at
 first blush it seems that this is the correct default setting).

 Rob

 2011/8/29 Carlos Martín Sánchez cmar...@opennebula.org:
  Hi Robert,
 
  You are right about the meaning of public, its scope is the resource's
  group.
  Using ACLs, you can create a group (let's say shared), and allow
  everybody
  to use and instantiate IMAGE and TEMPLATES in that group.
 
  $ onegroup create shared
  ID: 100
  ACL_ID: 2
  ACL_ID: 3
 
  $ oneacl create * IMAGE+TEMPLATE/@100 INFO+USE+INSTANTIATE
  ID: 4
 
  $ oneacl list
     ID USER RES_VHNIUTG   RID OPE_CDUMIPpTW
      0   @1 V-NI-T- * C-p--
      1   @1 -H- * --U--
      2 @100 V-NI-T- * C-p--
      3 @100 -H- * --U--
      4    * ---I-T-  @100 --U-I--T-
 
  That will provide the scenario you described.
  However, there's no straight-forward way for regular users to list the
  resources in the shared group, as they can only list resources with
  the
  'all', 'mine' or 'group' flag.
 
  You can grant users the right to list all resources (INFO_POOL) if
  privacy
  is not a concern... or you could create some other way to let users know
  the
  list of resources in the shared group, for instance creating a new
  Sunstone plug-in [1]
 
 
  Maybe we could use this thread to discuss how to integrate better this
  use-case in future versions.
  We already have a request for multiple groups [2], that's one of the
  ways to
  address this issue.
 
  Regards,
  Carlos.
 
  [1] http://opennebula.org/documentation:rel3.0:sunstone_plugin_reference
  [2] http://dev.opennebula.org/issues/761
 
  --
  Carlos Martín, MSc
  Project Major Contributor
  OpenNebula - The Open Source Toolkit for Cloud Computing
  www.OpenNebula.org | cmar...@opennebula.org
 
 
 
  On Wed, Aug 24, 2011 at 10:40 PM, Robert Parrott
  parr...@seas.harvard.edu
  wrote:
  Hi Folks,
 
  Is there some way to make images or templates completely public?
 
  Currently, it looks like making an image or template public means
  that anyone within your group can see and use that image or template.
  It would be nice to also have the functionality where members of any
  group can make use of a set of public images and templates as a
  starting point for customizing their own VMs (i.e. vanilla CentOS 6
  or Ubuntu 10.04 LTS).
 
  Thanks,
  Rob
 
 
  --
  Robert E. Parrott, Ph.D. (Phys. '06)
  Director, Academic Computing
  Harvard University Sch. of Eng. and App. Sci.
  Maxwell-Dworkin  211,
  33 Oxford St.
  Cambridge, MA 02138
  (617)-496-1520
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 
 



 --
 Robert E. Parrott, Ph.D. (Phys. '06)
 Director, Academic Computing
 Harvard University Sch. of Eng. and App. Sci.
 Maxwell-Dworkin  211,
 33 Oxford St.
 Cambridge, MA 02138
 (617)-496-1520





-- 
Robert E. Parrott, Ph.D. (Phys. '06)
Director, Academic Computing
Harvard University Sch. of Eng. and App. Sci.
Maxwell-Dworkin  211,
33 Oxford St.
Cambridge, MA 02138
(617)-496-1520
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Binding VMs to clusters, maybe on a per user policy

2011-09-21 Thread Gian Uberto Lauri
Hello gentlemen!

I  know that  OpenNebula has  REQUIREMENTS  that can  bind a  VM to  a
certain cluster.

But I have  this problem. We will  allow users to create  VMs using an
OCCI+OVF  implementation  Engineering  is   writing  for  the  Venus-C
project. At  first I thought  that adding  the requirement on  the fly
would have done  the work since I  needed to redirect the  all the VMs
created with  OCCI+OVF to a  single cluster, but  this could be  a bad
choice for general usage, so I started wondering if there were already
hooks to  get the  scheduler choose  the right  cluster for  a certain
user ? Or should I use Haizea ?

--
ing. Gian Uberto Lauri
Ricercatore / Reasearcher
Laboratorio Ricerca e Sviluppo / Research  Development Lab.
Area Calcolo Distribuito / Distributed Computation Area

gianuberto.la...@eng.it

Engineering Ingegneria Informatica spa
Corso Stati Uniti 23/C, 35127 Padova (PD) 

Tel. +39-049.8283.571 | main(){printf(unix[\021%six\012\0], 
Fax  +39-049.8283.569 |(unix)[have]+fun-0x60);}   
Skype: gian.uberto.lauri  |  David Korn, ATT Bell Labs 

http://www.eng.it |  ioccc best One Liner, 1987 

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Error monitoring host

2011-09-21 Thread Humberto N. Castejon Martinez
Hi,

I know the problem I am going to report has already been discussed, but what
I have read from previous discussions has not helped.
My Opennebula front-end has problems to monitor one of my hosts. I get the
following log messages:

Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x
/var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm joker;
else $
Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password).
Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255
Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE
0 Could not monitor host joker.

The first thing that I have noticed is that run_probes is not in
/var/tmp/one/im/, but I have it in /srv/cloud/one/lib/remotes/im/. Can that
be the source of the problem?
If I executed from my front end machine the following command as root,
everything seems to work ok:

 /srv/cloud/one/lib/remotes/im/run_probes kvm joker

However, if i execute it as oneadmin, i get the following error:

Connecting to uri: qemu:///system
error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission
denied
error: failed to connect to the hypervisor
Error executing kvm.rb
ARCH=x86_64 MODELNAME=Intel(R) Xeon(R) CPU E5540 @ 2.53GHz

I have checked, and oneadmin is member of the cloud group in joker, I have
specified unix_sock_group = cloud in /etc/libvirt/libvirtd.conf and
libvirt-sock  seems to have the right permissions: srwxrwx--- 1 root cloud 0
2011-09-21 17:02 /var/run/libvirt/libvirt-sock
So i do not know why I get the permission denied message.
However, if I run virsh -c qemu+ssh://oneadmin@joker/system, I manage to
connect to virsh, w/o entering a password.

So i do not really know what the problem is, and hope you can help me.  The
funny thing is that it used to work perfectly, but it stopped working
suddenly, without me changing anything (or at least I think so).

Cheers,
Humberto
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] REG: operation problem

2011-09-21 Thread Carlos Martín Sánchez
Hi,

I've tried to reproduce it feeding your xml string to the host.info method,
but it still works for me.
That Unknown type: string error seems to come from the Apache XML-RPC
library.
The only thing I can think of is that maybe you are using a different
library version from the one included in our source.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/9/20 srivatsan jagannathan srivatsa...@gmail.com

 Hi,

 OpenNebula version 2.2
 onehost list
   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
 STAT
   18 cloud9default0   2400   2400   2400 63G   61.6G
 on
 onehost show 18 -x
 HOST
   ID18/ID
   NAMEcloud9/NAME
   STATE2/STATE
   IM_MADim_kvm/IM_MAD
   VM_MADvmm_kvm/VM_MAD
   TM_MADtm_nfs/TM_MAD
   LAST_MON_TIME1316541929/LAST_MON_TIME
   CLUSTERdefault/CLUSTER
   HOST_SHARE
 HID18/HID
 DISK_USAGE0/DISK_USAGE
 MEM_USAGE0/MEM_USAGE
 CPU_USAGE0/CPU_USAGE
 MAX_DISK0/MAX_DISK
 MAX_MEM66097408/MAX_MEM
 MAX_CPU2400/MAX_CPU
 FREE_DISK0/FREE_DISK
 FREE_MEM64609184/FREE_MEM
 FREE_CPU2400/FREE_CPU
 USED_DISK0/USED_DISK
 USED_MEM1488224/USED_MEM
 USED_CPU0/USED_CPU
 RUNNING_VMS0/RUNNING_VMS
   /HOST_SHARE
   TEMPLATE
 ARCH![CDATA[x86_64]]/ARCH
 CPUSPEED![CDATA[2100]]/CPUSPEED
 FREECPU![CDATA[2400.0]]/FREECPU
 FREEMEMORY![CDATA[64609184]]/FREEMEMORY
 HOSTNAME![CDATA[cloud9]]/HOSTNAME
 HYPERVISOR![CDATA[kvm]]/HYPERVISOR
 MODELNAME![CDATA[AMD Opteron(tm) Processor 6172]]/MODELNAME
 NETRX![CDATA[2998354]]/NETRX
 NETTX![CDATA[4807146]]/NETTX
 TOTALCPU![CDATA[2400]]/TOTALCPU
 TOTALMEMORY![CDATA[66097408]]/TOTALMEMORY
 USEDCPU![CDATA[0.0]]/USEDCPU
 USEDMEMORY![CDATA[1488224]]/USEDMEMORY
   /TEMPLATE
 /HOST



 once again i reran the program, still getting same error.
 JAVA API code

 OneResponse or = Host.info(Client, 18);
 if(or.isError()){
System.out.println( Check for error +or.getErrorMessage());
   }
 else{
  System.out.println(or.getMessage());
  }


 the response for this code error Failed to parse servers response: Unknown
 type: string

 I am thinking OneResponse return TRUE, because Check for error is missing
 in the output


 Regards,
 Srivatsan J.

 2011/9/20 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 I can't reproduce this problem. Can you provide more information?

 What OpenNebula version are you using?
 What's the output of onehost show id -x?
 Any trace?

 Regards
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Mon, Sep 19, 2011 at 11:59 AM, srivatsan jagannathan 
 srivatsa...@gmail.com wrote:

 Hi Team,

 I am trying to use JAVA API to perform operation on host.

 All these operation succeed,
 Host.allocate(Client, hostname, im, vmm, tm)
 Host.enable(Client, id, true)
 Host.enable(Client, id, false)
 Host.delete(Client, id)

 But
 Host.info(Client, id)
 gives error Failed to parse servers response: Unknown type: string

 in CLI onehost list  onehost show works properly

 no error in oned.log


 Regards,
 Srivatsan J.

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] REG: operation problem

2011-09-21 Thread srivatsan jagannathan
Hi,

different library version from the one included in our source  can you
explain bit more on this, not sure which library you are referring to



Regards,
Srivatsan J.


2011/9/21 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 I've tried to reproduce it feeding your xml string to the host.infomethod, 
 but it still works for me.
 That Unknown type: string error seems to come from the Apache XML-RPC
 library.
 The only thing I can think of is that maybe you are using a different
 library version from the one included in our source.


 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 2011/9/20 srivatsan jagannathan srivatsa...@gmail.com

 Hi,

 OpenNebula version 2.2
 onehost list
   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
 STAT
   18 cloud9default0   2400   2400   2400 63G   61.6G
   on
 onehost show 18 -x
 HOST
   ID18/ID
   NAMEcloud9/NAME
   STATE2/STATE
   IM_MADim_kvm/IM_MAD
   VM_MADvmm_kvm/VM_MAD
   TM_MADtm_nfs/TM_MAD
   LAST_MON_TIME1316541929/LAST_MON_TIME
   CLUSTERdefault/CLUSTER
   HOST_SHARE
 HID18/HID
 DISK_USAGE0/DISK_USAGE
 MEM_USAGE0/MEM_USAGE
 CPU_USAGE0/CPU_USAGE
 MAX_DISK0/MAX_DISK
 MAX_MEM66097408/MAX_MEM
 MAX_CPU2400/MAX_CPU
 FREE_DISK0/FREE_DISK
 FREE_MEM64609184/FREE_MEM
 FREE_CPU2400/FREE_CPU
 USED_DISK0/USED_DISK
 USED_MEM1488224/USED_MEM
 USED_CPU0/USED_CPU
 RUNNING_VMS0/RUNNING_VMS
   /HOST_SHARE
   TEMPLATE
 ARCH![CDATA[x86_64]]/ARCH
 CPUSPEED![CDATA[2100]]/CPUSPEED
 FREECPU![CDATA[2400.0]]/FREECPU
 FREEMEMORY![CDATA[64609184]]/FREEMEMORY
 HOSTNAME![CDATA[cloud9]]/HOSTNAME
 HYPERVISOR![CDATA[kvm]]/HYPERVISOR
 MODELNAME![CDATA[AMD Opteron(tm) Processor 6172]]/MODELNAME
 NETRX![CDATA[2998354]]/NETRX
 NETTX![CDATA[4807146]]/NETTX
 TOTALCPU![CDATA[2400]]/TOTALCPU
 TOTALMEMORY![CDATA[66097408]]/TOTALMEMORY
 USEDCPU![CDATA[0.0]]/USEDCPU
 USEDMEMORY![CDATA[1488224]]/USEDMEMORY
   /TEMPLATE
 /HOST



 once again i reran the program, still getting same error.
 JAVA API code

 OneResponse or = Host.info(Client, 18);
 if(or.isError()){
System.out.println( Check for error +or.getErrorMessage());
   }
 else{
  System.out.println(or.getMessage());
  }


 the response for this code error Failed to parse servers response:
 Unknown type: string

 I am thinking OneResponse return TRUE, because Check for error is
 missing in the output


 Regards,
 Srivatsan J.

 2011/9/20 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 I can't reproduce this problem. Can you provide more information?

 What OpenNebula version are you using?
 What's the output of onehost show id -x?
 Any trace?

 Regards
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Mon, Sep 19, 2011 at 11:59 AM, srivatsan jagannathan 
 srivatsa...@gmail.com wrote:

 Hi Team,

 I am trying to use JAVA API to perform operation on host.

 All these operation succeed,
 Host.allocate(Client, hostname, im, vmm, tm)
 Host.enable(Client, id, true)
 Host.enable(Client, id, false)
 Host.delete(Client, id)

 But
 Host.info(Client, id)
 gives error Failed to parse servers response: Unknown type: string

 in CLI onehost list  onehost show works properly

 no error in oned.log


 Regards,
 Srivatsan J.

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org





___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error monitoring host

2011-09-21 Thread knawnd

Hi Humberto,

Just a guess.

What the output of the command 'grep nodeinfo_text 
$ONE_LOCATION/lib/remotes/im/kvm.d/kvm.rb|grep virsh' on front-end node?

I have
nodeinfo_text = `virsh -c qemu:///system nodeinfo`

But it looks like you should change it to
virsh -c qemu+ssh:///system

HTH,
Nikolay.

Humberto N. Castejon Martinez wrote on 21/09/11 19:21:

Hi,

I know the problem I am going to report has already been discussed, but
what I have read from previous discussions has not helped.
My Opennebula front-end has problems to monitor one of my hosts. I get
the following log messages:

Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x
/var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm
joker; else $
Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password).
Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255
Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR
FAILURE 0 Could not monitor host joker.

The first thing that I have noticed is that run_probes is not in
/var/tmp/one/im/, but I have it in /srv/cloud/one/lib/remotes/im/. Can
that be the source of the problem?
If I executed from my front end machine the following command as root,
everything seems to work ok:

  /srv/cloud/one/lib/remotes/im/run_probes kvm joker

However, if i execute it as oneadmin, i get the following error:

Connecting to uri: qemu:///system
error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission
denied
error: failed to connect to the hypervisor
Error executing kvm.rb
ARCH=x86_64 MODELNAME=Intel(R) Xeon(R) CPU E5540 @ 2.53GHz

I have checked, and oneadmin is member of the cloud group in joker, I
have specified unix_sock_group = cloud in /etc/libvirt/libvirtd.conf
and   libvirt-sock  seems to have the right permissions: srwxrwx--- 1
root cloud 0 2011-09-21 17:02 /var/run/libvirt/libvirt-sock
So i do not know why I get the permission denied message.
However, if I run virsh -c qemu+ssh://oneadmin@joker/system, I manage to
connect to virsh, w/o entering a password.

So i do not really know what the problem is, and hope you can help me.
The funny thing is that it used to work perfectly, but it stopped
working suddenly, without me changing anything (or at least I think so).

Cheers,
Humberto


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] REG: onevnet list

2011-09-21 Thread Fabian Wenk

Hello Srivatsan

On 20.09.11 12:06, srivatsan jagannathan wrote:

Trying to add virtual network, type fixed see bottom.
onevnet -v create X.net
-  return vnet-number (10)

onevnet show vnet-number (works fine, list information)

onevnet list   ---  displays nothing (only header information rest
blank.)


somehow strange, did you see any errors in the log files?


#Now we'll use the cluster private network (physical)
BRIDGE = virbr0


Does the interface virbr0 exist? Is it really a bridge interface? 
You can check with 'brctl show'.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Users Digest, Vol 43, Issue 32

2011-09-21 Thread Fabian Wenk

Hello Bala

On 19.09.11 18:11, bala suru wrote:

But I'm facing the onemore problem that when I try to save the VM using the
following command .
onevm saveasvm-id  disk-id  imagename
onevm shutdownvm-id


Ok, this steps are correct. Does 'onevm list' still show your VM 
which you just did shutdown?


Because:


Here is the output of oneimage show 32
ID : 32
NAME   : alliswell
TYPE   : OS
REGISTER TIME  : 09/13 16:12:13
PUBLIC : No
PERSISTENT : No
SOURCE :
/srv/cloud/one/var/images/def71f75ceab7d2fa444927b8e1588633c547422
STATE  : rdy
RUNNING_VMS: 1


There is still is a VM running which does use this image. Also you 
need to change some other settings, like maybe PERSISTENT (see 
help of oneimage) to Yes.



IMAGE
TEMPLATE
DEV_PREFIX=hd
NAME=alliswell
TYPE=OS


Depending on your settings during the installation of this disk, 
you probably want to change DEV_PREFIX to sd (for SCSI disk) with 
the 'oneimage' command. This is a known bug of the saveas command 
in 2.2.1.



Since I'm able to save/ clone the VM , I guess there is no problem with user
rights access to the nfs shared folder .


But your error says:
cp: cannot stat 
`/srv/cloud/one/var/images/def71f75ceab7d2fa444927b8e1588633c547422': 
No such file or directory


When the VM did not shutdown properly (from OpenNeubla's point of 
view), then the image is not copied/moved to the images folder. 
The entry with 'oneimage list' and 'oneimage show image_id' is 
there, but the file in you images folder is not yet.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm save method error

2011-09-21 Thread Fabian Wenk

Hello Bala

On 20.09.11 13:44, bala suru wrote:

I need to save modified VMs as new one -
  here can I do normal copy and save the VM which is running and modified ..?


You could first register a persistent image, then create a 
persistent VM, run it and do your installation/updates. Then run 
'onevm shutdown vm_id'. Now you could create an other VM using 
the same registered image (makes probably not much sense), or copy 
the image away from your image folder, create a new template and 
register the copied image with a new name. Then create a new 
persistent VM which will use the new image.



Can I deploy the new VM using the save Image ..?


Probably as described above. But to clone a running image, the 
'onevm saveas vm_id disk_id image_name' command and then 
'onevm shutdown vm_id' (as in your link described the VM and the 
OS running in the VM needs to support ACPI) are probably easier to 
use and you do not need to manually copy around the image.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm saveas error

2011-09-21 Thread Fabian Wenk

Hello Bala

On 21.09.11 07:37, bala suru wrote:

I have used a some simple way to copy the image running Vm image(insted of
onevm saveas) ,
1. I did some modification over the running image(creating some files)
2. issued onevm suspend
3. copied var/images/uuid   file of the running image
4. Registered the above copied image as a new image
5 . launched the new VM using above image

But I could not see any modified files on this VM ,,?


This could have two reasons. First, is this a persistent image? 
Second, did the VM have enough time to write back the changes to 
the image? But I guess the second one is difficult to find out, as 
the OS in the VM and probably also the VM layer do some caching in 
memory and the write back to the image is delayed for a longer time.



Are the steps which I followed are correct ..?


I do not think, that this is really supported from ONE. You are 
taking an image away from a running VM (even in the state 
suspended), which could have an not cleanly saved state of the 
file system in the image. It is much better to use an OS and VM 
which does support ACPI and then use the 'onevm saveas vm_id 
disk_id image_name' and 'onevm shutdown vm_id' commands.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] changing virtual network online

2011-09-21 Thread Fabian Wenk

Hello Samuel

On 21.09.11 14:45, samuel wrote:

I've just wondering whether is it possible to change the virtual network
that a virtual machine is attached once it has been working (deploy-run).


With 'onevnet' you can change some settings of an network, eg. 
leases / mac addresses. But as I understand, you try to modify 
stuff which belongs to the VM itself.



I've tried to modify the deployment.0 file but it did not affect the new
restarted machine. Might be a problem with the underlying MySQL database
that has to be also changed?


As far as I know, it is currently not supported to change an 
already running VM.



Use Case:
*create a new virtual machine and just forgot to attach a virtual network
*modify a virtual network (in case of VLAN change)
*attach a new interface to a running machine.


The steps which could work, and will give minimum downtime are 
probably the following:


- update your VM template with the new / changed network / NIC
- run 'onevm shutdown vm_id' (with a registered persistent disk 
image, all the modifications in the VM are preserved).
- wait until shutdown has completed, check with 'onevm list' or 
better 'onevm top'
- run 'onevm create template' and the same VM will boot up (now 
with a different VM ID, but with the same registered persistent 
disk image)



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error monitoring host

2011-09-21 Thread Fabian Wenk

Hello Humberto

On 21.09.11 17:21, Humberto N. Castejon Martinez wrote:

Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x
/var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes kvm joker;
else $
Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password).
Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255
Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE
0 Could not monitor host joker.


I guess the ssh login from the front end to the cluster node with 
the user oneadmin does not work.


Try manually from the front end to use 'ssh -v oneadmin@joker' 
(the -v gives some verbose output, if you increase eg. with -vvv, 
it will give even more). It guess on the cluster node the file 
~oneadmin/.ssh/id_dsa.pub is missing (or not readable for 
oneadmin). Check also the sshd log file on the cluster node.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org