Re: [one-users] oned crashes after sometime , scheduler keeps running saying C_PTR recieved faulty value

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

The ulimit command is used to generate a core dump file in case the daemon
crashes, the behaviour is not modified.

Anyway, thanks for the feedback.
--
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/12 Abhishek [ABK] Kumar abhikumar...@gmail.com

 I no more have the same setup, and replaced it with version 2.2.x and its
 running fine now.

 Though, earlier I used that 'ulimit' action while troubleshooting and at
 least in logs, there was no behavior change. It failed the same way as
 before.


 --
 Regards,
 Abhishek Kumar
 https://sites.google.com/site/abhikumar163/


 --
 --ABK-mail.signature
  
 http://www.blogger.com/profile/06276198262605731980http://abhishekkr.deviantart.com/http://www.facebook.com/aBionichttp://www.twitter.com/aBionichttp://sourceforge.net/users/abhishekkrhttp://www.youtube.com/user/1ABKhttp://in.linkedin.com/in/abionic
 ---
 ~=ABK=~



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

 Hi,

 Could you please set

 $ ulimit -c unlimited

 and restart the ONE daemon? if it crashes again, please send the core
 dump file in /var/lib/one (or $ONE_LOCATION/var).


 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/9/8 Abhishek [ABK] Kumar abhikumar...@gmail.com

 Yes, I did that on purpose. because oned.log doesn't show any
 anything just_before/on/after the oned creashes. the only activity
 affected by it at that time  after is shown in the scheduler log.

 There is no activity in oned.log after it loads all modules and says
 success on each module load.
 *Then after a minute or so, oned dies and the only activity is shown in
 shed.log* .


 --
 Regards,
 Abhishek Kumar
 https://sites.google.com/site/abhikumar163/


 --
 --ABK-mail.signature
  
 http://www.blogger.com/profile/06276198262605731980http://abhishekkr.deviantart.com/http://www.facebook.com/aBionichttp://www.twitter.com/aBionichttp://sourceforge.net/users/abhishekkrhttp://www.youtube.com/user/1ABKhttp://in.linkedin.com/in/abionic
 ---
 ~=ABK=~



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

 Hi,

 It looks like you sent the scheduler.log file, not oned.log. If you
 still have the file around, could you send it?

 The error message can be related to these threads:

 http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006096.html

 http://lists.opennebula.org/pipermail/users-opennebula.org/2010-August/002470.html

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


 On Wed, Sep 7, 2011 at 2:06 PM, Abhishek [ABK] Kumar 
 abhikumar...@gmail.com wrote:

 I have OpenNebula 2.9.8 installed at CentOs 5.5.

 oned crashes after sometime , scheduler keeps running saying C_PTR
 recieved faulty value

 =log at the moment error oned crashes*

 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:20 2011 [VM][E]: Exception raised: RPC response
 indicates failure.  Value of type ??? supplied where type C_PTR was
 expected.
 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:20 2011 [VM][E]: Exception raised: RPC response
 indicates failure.  Value of type ??? supplied where type C_PTR was
 expected.
 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:24 2011 [HOST][D]: Discovered Hosts (enabled):
 Wed Sep  7 17:28:24 2011 [HOST][D]: Discovered Hosts (enabled):
 Wed Sep  7 17:28:24 2011 [HOST][D]: Discovered Hosts (enabled):
 Wed Sep  7 17:28:24 2011 [HOST][E]: Exception raised: Unable to
 transport XML to server and get XML response back.  Curl failed to perform
 HTTP POST request.  curl_easy_perform() says: Empty reply from server
 Wed Sep  7 17:28:24 2011 [HOST][E]: Exception raised: Unable to
 transport XML to server and get XML response back.  Curl failed to perform
 HTTP POST request.  curl_easy_perform() says: Empty reply from server
 Wed Sep  7 17:28:24 2011 [HOST][E]: Exception raised: Unable to
 transport XML to server and get XML response back.  Curl failed to perform
 HTTP POST request.  curl_easy_perform() says: Empty reply from server
 Wed Sep  7 17:28:24 2011 [HOST][E]: Exception raised: Unable to
 transport XML to server and get XML response back.  Curl failed to perform
 HTTP POST request.  curl_easy_perform() says: Empty reply from server
 Wed Sep  7 17:28:24 2011 

Re: [one-users] Strange behaviour of DEFAULT_DEVICE_PREFIX and TARGET when using Xen in HVM mode

2011-09-15 Thread Tino Vazquez
Hi Maxence,

You are right, TARGET cannot be set in the image template, but you can
set the DEV_PREFIX, that should be enough to achieve a working
deployment file.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Thu, Sep 1, 2011 at 5:35 PM, Maxence Dunnewind
maxence.dunnew...@inria.fr wrote:
 And what about the image template (oneimage show image_id)? You can
 set the TARGET there.
 Hmm,

 I may be wrong, but I can only see the DEV_PREFIX, and I guess occi_templates
 are only for instances, not for compute ressources (datablock), so I don't 
 know
 any way to hardcode TARGET for all computes (which is not a good idea because 
 it
 won't work with more than one DB).

 Maxence



 --
 Maxence Dunnewind
 System Engineer on Bonfire
 Research Center INRIA Rennes - Bretagne Atlantique, France
 Team Myriads, Office E219, tel +33 2 99 84 25 76

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


Re: [one-users] Strange behaviour of DEFAULT_DEVICE_PREFIX and TARGET when using Xen in HVM mode

2011-09-15 Thread Maxence Dunnewind
hi,

 You are right, TARGET cannot be set in the image template, but you can
 set the DEV_PREFIX, that should be enough to achieve a working
 deployment file.
 

I investigate more on the subject, finally the conclusion is that Xen in HVM
mode can't handle more than 4 devices, that's why it worked with xvdc or xvdd.
I tried to upgrade to Xen4 on squeeze to try with devops modules, but because of
some stupid packaging decision, I can't make it work as expected.
The last decision has been to move to paravirt on Xen3/lenny, which works
correctly, I don't have this issue anymore.

Thanks for your help,

Maxence
-- 
Maxence Dunnewind
System Engineer on Bonfire
Research Center INRIA Rennes - Bretagne Atlantique, France
Team Myriads, Office E219, tel +33 2 99 84 25 76


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


Re: [one-users] Strange behaviour of DEFAULT_DEVICE_PREFIX and TARGET when using Xen in HVM mode

2011-09-15 Thread Tino Vazquez
Hi Maxence,

Yes, this is a problem also for KVM. There is a ticket [1] to fix the
documentation accordingly, thanks for the feedback.

Regards,

-Tino

[1] http://dev.opennebula.org/issues/808

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Thu, Sep 15, 2011 at 11:57 AM, Maxence Dunnewind
maxence.dunnew...@inria.fr wrote:
 hi,

 You are right, TARGET cannot be set in the image template, but you can
 set the DEV_PREFIX, that should be enough to achieve a working
 deployment file.


 I investigate more on the subject, finally the conclusion is that Xen in HVM
 mode can't handle more than 4 devices, that's why it worked with xvdc or xvdd.
 I tried to upgrade to Xen4 on squeeze to try with devops modules, but because 
 of
 some stupid packaging decision, I can't make it work as expected.
 The last decision has been to move to paravirt on Xen3/lenny, which works
 correctly, I don't have this issue anymore.

 Thanks for your help,

 Maxence
 --
 Maxence Dunnewind
 System Engineer on Bonfire
 Research Center INRIA Rennes - Bretagne Atlantique, France
 Team Myriads, Office E219, tel +33 2 99 84 25 76

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


Re: [one-users] Unable to migrate virtual machines

2011-09-15 Thread Javier Fontan
Indeed it looks like a libvirt error, even if this is not the same
version the problem looks the same:

https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=672725

On Sat, Sep 3, 2011 at 10:44 PM, Alexandru - Florian Antonescu
florinantone...@gmail.com wrote:
 I have solved this by upgrading to libvirt version 0.9.2 as it seems this
 behaviour was related to libvirt 0.8.3 which is the version installed on
 Ubuntu 10.10. I have also updated nodes' OS to ubuntu version 11.10.

 On Aug 30, 2011 10:42 AM, Alexandru - Florian Antonescu
 florinantone...@gmail.com wrote:
 Hello,

 I am having some problems while trying to migrate a virtual machine using
 OpenNebula 3.0 Beta 1 with NFS and KVM on Ubuntu 10.10. The error seems to
 be related to virsh restore (cannot close file: Bad file descriptor).
 Does anyone have any ideas about what could be causing this?

 Thank you,
 Florian

 The error log follows:
 Tue Aug 30 06:31:20 2011 [LCM][I]: New VM state is RUNNING
 Tue Aug 30 06:33:54 2011 [LCM][I]: New VM state is SAVE_MIGRATE
 Tue Aug 30 06:34:02 2011 [VMM][I]: save: Executed virsh --connect
 qemu:///system save one-67 /srv/cloud/one/var/67/images/checkpoint.
 Tue Aug 30 06:34:02 2011 [VMM][I]: ExitCode: 0
 Tue Aug 30 06:34:02 2011 [LCM][I]: New VM state is PROLOG_MIGRATE
 Tue Aug 30 06:34:02 2011 [TM][I]: tm_mv.sh: Will not move, source and
 destination are equal
 Tue Aug 30 06:34:02 2011 [TM][I]: ExitCode: 0
 Tue Aug 30 06:34:02 2011 [LCM][I]: New VM state is BOOT
 Tue Aug 30 06:34:33 2011 [VMM][I]: Command execution fail: 'if [ -x
 /var/tmp/one/vmm/kvm/restore ]; then /var/tmp/one/vmm/kvm/restore
 /srv/cloud/one/var/67/images/checkpoint zrhsa 67 zrhsa; else
 exit 42; fi'
 Tue Aug 30 06:34:33 2011 [VMM][E]: restore: Command virsh --connect
 qemu:///system restore /srv/cloud/one/var/67/images/checkpoint failed.
 Tue Aug 30 06:34:33 2011 [VMM][E]: restore: error: Failed to restore
 domain
 from /srv/cloud/one/var/67/images/checkpoint
 Tue Aug 30 06:34:33 2011 [VMM][I]: error: cannot close file: Bad file
 descriptor
 Tue Aug 30 06:34:33 2011 [VMM][E]: Could not restore from
 /srv/cloud/one/var/67/images/checkpoint
 Tue Aug 30 06:34:33 2011 [VMM][I]: ExitCode: 1
 Tue Aug 30 06:34:33 2011 [VMM][E]: Error restoring VM: Could not restore
 from /srv/cloud/one/var/67/images/checkpoint
 Tue Aug 30 06:34:33 2011 [DiM][I]: New VM state is FAILED
 Tue Aug 30 06:34:33 2011 [TM][W]: Ignored: LOG I 67 tm_delete.sh: Deleting
 /srv/cloud/one/var/67/images
 Tue Aug 30 06:34:33 2011 [TM][W]: Ignored: LOG I 67 tm_delete.sh: Executed
 rm -rf /srv/cloud/one/var/67/images.
 Tue Aug 30 06:34:33 2011 [TM][W]: Ignored: LOG I 67 ExitCode: 0
 Tue Aug 30 06:34:33 2011 [TM][W]: Ignored: TRANSFER SUCCESS 67 -

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





-- 
Javier Fontan, Grid  Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Changes in 3.0 template network syntax

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

On Wed, Sep 14, 2011 at 4:39 PM, Steven Timm t...@fnal.gov wrote:


 So two questions--why did they change the syntax?  It is easier
 for users to remember the name of the network than the ID of the
 network particularly since users now can't do onevnet list, and
 it renders all of our existing templates (dozens of them) broken
 and we will have to change them.


Some users requested to let new resources use repeated names. This makes
sense in deployments with a large number of users, or in a multi-tenant
scenario.
The drawback is that users are forced to use the ID in VM templates, but it
seemed a reasonable requirement.

Users can still use the 'onevnet list' command. By default, they can list
their vnets with the 'm' (mine) option, and the vnets in their group with
'g' (group).
If you need all users to be able to list any existing vnet with the 'a'
(all) option, like users in the oneadmin group can do, then you need to set
the following ACL:

$ oneacl create * NET/* INFO_POOL+INFO+USE


And second, why can not the user pick the network they want.. is
 there some ACL that has to be set now? If so, where?


Users can list, show and use by default any vnet they own, and any public
vnets in their group.
You can also set an ACL rule with the INFO+USE permission for any other
vnet; more information is available here [1].

You can forget about ACL and permissions if all users are in the default
users group, and create all resources in that group (not in oneadmin
group).


 Steve Timm


Best regards.

[1] http://opennebula.org/documentation:rel3.0:manage_acl
--
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 Wed, Sep 14, 2011 at 4:39 PM, Steven Timm t...@fnal.gov wrote:


 It appears that there have been several changes in the
 syntax of the NETWORK section in OpenNebula 3.0 which
 make templates for version 2.0 no longer work.

 Below is my template as modified for OpenNebula 3.

 I was previously using NETWORK = FermiCloudTest (the name of the network)
 and it now appears I have to change the NIC section
 to say NETWORK_ID = 1 (the number of this network).
 but NOT change the contextualization section, which still
 requires the name of the network.  Anyway, this template is now
 syntactically correct but when I try to launch it
 I get the error:

 bash-3.2$ onevm create test-kvm-3.one
 [VirtualMachineAllocate] User [1] : Not authorized to perform USE NET [1].
 --**-


 So two questions--why did they change the syntax?  It is easier
 for users to remember the name of the network than the ID of the
 network particularly since users now can't do onevnet list, and
 it renders all of our existing templates (dozens of them) broken
 and we will have to change them.
 And second, why can not the user pick the network they want.. is
 there some ACL that has to be set now? If so, where?

 Steve Timm


 -
 NAME   = test-kvm
 VCPU   = 1
 MEMORY = 2048

 #OS = [
 #  kernel = /vmlinuz,
 #  initrd = /initrd.img,
 #  root   = sda1,
 #  kernel_cmd = ro xencons=tty console=tty1]

 DISK   = [
  source   = /cloud/images/OpenNebula/**images/current-image.img,
  save = yes,
  target   = vda,
  readonly = no ]

 DISK   = [
  type = swap,
  size = 5120,
  target   = vdb ]

 DISK   = [
  type = fs,
  size = 4096,
  format   = ext3,
  save = yes,
  target   = vdc,
  bus  = virtio ]

 NIC= [ NETWORK_ID = 1 , model = virtio ]

 FEATURES=[ acpi=yes ]

 GRAPHICS = [
  type= vnc,
  listen  = 127.0.0.1,
  port= -1,
  autoport = yes,
  keymap=en-us ]

 CONTEXT = [
ip_public   = $NIC[IP, NETWORK=\FermiCloudTest\],
netmask = 255.255.254.0,
gateway = 131.225.154.1,
ns  = 131.225.8.120,
files  = /cloud/images/OpenNebula/**templates/init.sh
 /home/timm/OpenNebula/k5login /home/timm/OpenNebula/link_**certs.sh,
target  = hdc,
root_pubkey = id_dsa.pub,
username= opennebula,
user_pubkey = id_dsa.pub
 ]

 REQUIREMENTS = HYPERVISOR=\kvm\
 RANK = - RUNNING_VMS
 --**

 [root@fgitb317 var]# onevnet show 1
 VIRTUAL NETWORK 1 INFORMATION
 ID : 1
 USER   : oneadmin
 GROUP  : oneadmin
 PUBLIC : Yes
 USED LEASES: 0

 VIRTUAL NETWORK TEMPLATE
 BRIDGE=br1
 LEASES=[ IP=131.225.154.169, MAC=54:52:00:02:b5:00 ]
 LEASES=[ IP=131.225.154.170, MAC=54:52:00:02:b5:01 ]
 LEASES=[ IP=131.225.154.171, MAC=54:52:00:02:b5:02 ]
 LEASES=[ IP=131.225.154.168, MAC=54:52:00:02:b5:03 ]
 NAME=FermiCloudTest
 TYPE=FIXED

 LEASES INFORMATION
 LEASE=[ IP=131.225.154.168, MAC=54:52:00:02:b5:03, USED=0, VID=-1 ]
 LEASE=[ IP=131.225.154.169, MAC=54:52:00:02:b5:00, USED=0, VID=-1 ]
 LEASE=[ IP=131.225.154.170, MAC=54:52:00:02:b5:01, USED=0, VID=-1 ]
 LEASE=[ 

Re: [one-users] oned crashes after sometime , scheduler keeps running saying C_PTR recieved faulty value

2011-09-15 Thread Abhishek [ABK] Kumar
Hi,

I get that as in a way to get entire required coredump, making it
easier to debug. I said I tried it but wasn't able to get any
conclusion in the limited attempt.

And, now I switched back to older version so don't have it anymore.

Though, I'm thinking of repeating the task again (after some time) in
a smaller prototype to perfect it, if the error re-occurs... I'll
provide the coredump.

Thanks for keeping a constant tab and effort.

Regards,
AbhishekKr

On 9/15/11, Carlos Martín Sánchez cmar...@opennebula.org wrote:
 Hi,

 The ulimit command is used to generate a core dump file in case the daemon
 crashes, the behaviour is not modified.

 Anyway, thanks for the feedback.
 --
 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/12 Abhishek [ABK] Kumar abhikumar...@gmail.com

 I no more have the same setup, and replaced it with version 2.2.x and its
 running fine now.

 Though, earlier I used that 'ulimit' action while troubleshooting and at
 least in logs, there was no behavior change. It failed the same way as
 before.


 --
 Regards,
 Abhishek Kumar
 https://sites.google.com/site/abhikumar163/


 --
 --ABK-mail.signature

 http://www.blogger.com/profile/06276198262605731980http://abhishekkr.deviantart.com/http://www.facebook.com/aBionichttp://www.twitter.com/aBionichttp://sourceforge.net/users/abhishekkrhttp://www.youtube.com/user/1ABKhttp://in.linkedin.com/in/abionic
 ---
 ~=ABK=~



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

 Hi,

 Could you please set

 $ ulimit -c unlimited

 and restart the ONE daemon? if it crashes again, please send the core
 dump file in /var/lib/one (or $ONE_LOCATION/var).


 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/9/8 Abhishek [ABK] Kumar abhikumar...@gmail.com

 Yes, I did that on purpose. because oned.log doesn't show any
 anything just_before/on/after the oned creashes. the only activity
 affected by it at that time  after is shown in the scheduler log.

 There is no activity in oned.log after it loads all modules and says
 success on each module load.
 *Then after a minute or so, oned dies and the only activity is shown in
 shed.log* .


 --
 Regards,
 Abhishek Kumar
 https://sites.google.com/site/abhikumar163/


 --
 --ABK-mail.signature

 http://www.blogger.com/profile/06276198262605731980http://abhishekkr.deviantart.com/http://www.facebook.com/aBionichttp://www.twitter.com/aBionichttp://sourceforge.net/users/abhishekkrhttp://www.youtube.com/user/1ABKhttp://in.linkedin.com/in/abionic
 ---
 ~=ABK=~



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

 Hi,

 It looks like you sent the scheduler.log file, not oned.log. If you
 still have the file around, could you send it?

 The error message can be related to these threads:

 http://lists.opennebula.org/pipermail/users-opennebula.org/2011-August/006096.html

 http://lists.opennebula.org/pipermail/users-opennebula.org/2010-August/002470.html

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


 On Wed, Sep 7, 2011 at 2:06 PM, Abhishek [ABK] Kumar 
 abhikumar...@gmail.com wrote:

 I have OpenNebula 2.9.8 installed at CentOs 5.5.

 oned crashes after sometime , scheduler keeps running saying C_PTR
 recieved faulty value

 =log at the moment error oned crashes*

 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:20 2011 [VM][E]: Exception raised: RPC response
 indicates failure.  Value of type ??? supplied where type C_PTR was
 expected.
 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:20 2011 [VM][E]: Exception raised: RPC response
 indicates failure.  Value of type ??? supplied where type C_PTR was
 expected.
 Wed Sep  7 17:28:20 2011 [POOL][E]: Could not retrieve pool info from
 ONE
 Wed Sep  7 17:28:24 2011 [HOST][D]: Discovered Hosts (enabled):
 Wed Sep  7 17:28:24 2011 [HOST][D]: Discovered Hosts (enabled):
 Wed Sep  7 17:28:24 2011 [HOST][D]: Discovered Hosts (enabled):
 Wed Sep  7 17:28:24 2011 [HOST][E]: Exception raised: Unable to
 transport XML to server and get XML response back.  Curl failed to
 perform
 HTTP POST request.  curl_easy_perform() says: Empty reply from server
 Wed Sep  7 17:28:24 2011 [HOST][E]: Exception raised: Unable to
 transport XML to server and get XML response back.  Curl failed to
 

Re: [one-users] onevm saveas error

2011-09-15 Thread Fabian Wenk

Hello

On 15.09.2011 07:39, bharath pb wrote:

I tried to save the running Vm image using
onevm saveasvm_id  dick_id  imagename
onevm shutdownvm_id



Fri Sep  9 10:11:46 2011 [TM][E]: Error excuting image transfer script: cp:
cannot stat
`/srv/cloud/one/var//images/e0561a492c9aaac280479f2f0d85dcced9156fbf': No
such file or directory


Does the oneadmin user have write permissions in that path?
Which path have you set in the VM_DIR option in oned.conf?
What does 'oneimage list' and 'oneimage show id' say?


Fri Sep  9 10:11:47 2011 [DiM][I]: New VM state is FAILED
Fri Sep  9 10:11:47 2011 [TM][W]: Ignored: LOG - 44 tm_delete.sh: Deleting
/srv/cloud/one/var//44/images


I guess the registered images (which also happens when you run 
'onevm saveas ...') should be somewhere else and not in the var 
folder, which is used by the running VMs.



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


[one-users] accessing VDC using Cloud APIs

2011-09-15 Thread Prakhar Srivastava
Hi,
I was checking the Opennebula 2.9.80 and really liked the VDC feature. I
wanted to know if it is possible to create VDC using Cloud APIs. I checked
the Opennebula Java API, it seems they doesn't have support for it.

Is there any other way one can create VDC except onevdc command ??

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


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

2011-09-15 Thread Valentin Bud
Hello Community,

 I have installed OpenNebula 3.0 beta 2 from source on Ubuntu Lucid
(10.04-amd64). I have built OpenNebula with MySQL
support because I want a MySQL backend. After building it I have installed
it using install.sh as follows:
# ./install.sh -u oneadmin -g cloud

 Everything went well and I ended up with a fresh OpenNebula install. I have
configured the MySQL databases credentials in /etc/oned.conf
and started oned. Next step was to register one Debian Squeeze image.

# oneimage show 0
IMAGE 0 INFORMATION

ID : 0
NAME   : debian-squeeze
USER   : oneadmin
GROUP  : oneadmin
TYPE   : OS
REGISTER TIME  : 09/15 15:13:44
PUBLIC : Yes
PERSISTENT : No
SOURCE : /var/lib/one/images/5c55b64e99e37b5b8b0d7dde918a91f1
SIZE   : 612
STATE  : rdy
RUNNING_VMS: 0

IMAGE TEMPLATE

DESCRIPTION=Debian Squeeze.
DEV_PREFIX=hd
NAME=debian-squeeze
PATH=/home/images/debian-squeeze.img
TYPE=OS

I have create a virtual machine template and registered it.
# onetemplate show 0
TEMPLATE 0 INFORMATION

ID : 0
NAME   : debian-squezee
USER   : oneadmin
GROUP  : oneadmin
REGISTER TIME  : 09/15 15:16:18
PUBLIC : No

TEMPLATE CONTENTS

CPU=1
DISK=[
  BUS=ide,
  DRIVER=qcow2,
  IMAGE_ID=0 ]
DISK=[
  READONLY=no,
  SIZE=1024,
  TYPE=swap ]
GRAPHICS=[
  LISTEN=0.0.0.0,
  TYPE=vnc ]
MEMORY=1024
NAME=debian-squezee
NIC=[
  IP=192.168.150.11,
  NETWORK_ID=0 ]
OS=[
  ARCH=x86_64 ]
TEMPLATE_ID=0

The virtual network with id 0 is also created.
#onevnet show 0
VIRTUAL NETWORK 0 INFORMATION

ID : 0
USER   : oneadmin
GROUP  : oneadmin
PUBLIC : Yes
USED LEASES: 0

VIRTUAL NETWORK TEMPLATE

BRIDGE=vlan150
DNS=192.168.150.1
GATEWAY=192.168.150.1
NAME=VLAN150
NETWORK_ADDRESS=192.168.150.0
NETWORK_SIZE=C
TYPE=RANGED

I have instantiated the virtual machine defined in the above template. So
far so good, everything works as expected. What I want
to do next is to update the debian image (apt-get update  apt-get upgrade)
and save it as a new image. Said and done. I first start
the Debian VM, update it and then using onevm saveas I want to save the VM
disk with ID 0 under a new name.

# 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.

# onevm shutdown 5
# onevm list
ID USER GROUPNAME STAT CPU MEMHOSTNAME
 TIME
 5 oneadmin oneadmin one-5shut   0  0K  node02 00
00:09:18

I verify if the image is created using oneimage. I have double checked
listing the SOURCE and it is there.

# oneimage show 2
IMAGE 2 INFORMATION

ID : 2
NAME   : debian-s-upd1
USER   : oneadmin
GROUP  : oneadmin
TYPE   : OS
REGISTER TIME  : 09/15 16:15:06
PUBLIC : No
PERSISTENT : No
SOURCE : /var/lib/one/images/b92349a9f4ad479facf95f6706777d11
SIZE   : 721
STATE  : rdy
RUNNING_VMS: 0

IMAGE TEMPLATE

DEV_PREFIX=hd
NAME=debian-s-upd1
SOURCE=-

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?

Thank you,
v
-- 
network warrior
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Opennebula DB upgrade issues:

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

The sequel gem should be installed by the install_gems script [1].
Did you get any error message during the installation?

Regarding the Mysql error, it is a bug. I have opened a ticket [2].

Please change in /usr/lib/one/ruby/onedb/2.0_to_2.9.80.rb the following:

- @db.fetch(SELECT COUNT (ip) FROM old_leases WHERE (oid=#{oid} AND
used=1)) do |r|
- total_leases = r[:COUNT (ip)]
+ @db.fetch(SELECT COUNT(ip) FROM old_leases WHERE (oid=#{oid} AND
used=1)) do |r|
+ total_leases = r[:COUNT(ip)]

It looks mysql doesn't like the space before the parenthesis.

I have also found a typo in /usr/lib/one/ruby/onedb/onedb_backend.rb , and
onedb restore won't work with mysql unless you change:

  create_cmd = mysql_cmd+-e 'CREATE DATABASE IF NOT EXISTS #{@db_name};'
- rc = system(create_cnd)
+ rc = system(create_cmd)
  if !rc
  raise Error creating MySQL DB #{@db_name} at #{@server}.
  end

Thank you for the feedback, it will be solved in the final release.
Carlos.

[1]
http://opennebula.org/documentation:rel3.0:ignc#ruby_libraries_requirements_front-end
[2] http://dev.opennebula.org/issues/812
--
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 Wed, Sep 14, 2011 at 4:07 PM, Ajay Bhatnagar abhatna...@rim.com wrote:

 I tried to upgrade Mysql db from V2.0 to 2.9.80 using onedb upgrade –v
 command for updating db to support Opennebula 3. But ran in into issues
 described below

 Does it need some more mysql component or some fix in onedb upgrade process
 ?

 Thanks

 Ajay

 ** **

 Environment:

 **a.   **OS :  Suse 11Sp1 2.6.32.12-0.7-default

 **b.  **Mysql : Server version: 5.0.67 SUSE MySQL RPM

 **c.   **Installed mysql components rpm -qa|grep mysql

 libmysqlclient15-5.0.67-13.20.1

 libmysqlclient-devel-5.0.67-13.20.1

 mysql-client-5.0.67-13.20.1

 libmysqlclient_r15-5.0.67-13.20.1

 mysql-5.0.67-13.20.1

 ruby-mysql-2.7.4-2.11

 ** **

 Following issues were encountered:

 **1.   **Following mysql gem install does not resolve all issues to
 run upgrade, needed to add gem sequel.

 gem install mysql2-0.3.7.gem

 gem install mysql-2.8.1.gem

 ** **

 ./onedb  upgrade -v

 /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
 `gem_original_require': no such file to load -- sequel (LoadError)

 from
 /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
 

 from /srv/cloud/lib/ruby/onedb/onedb_backend.rb:18

 from /srv/cloud/lib/ruby/onedb/onedb.rb:18:in `require'

 from /srv/cloud/lib/ruby/onedb/onedb.rb:18

 from ./onedb:39:in `require'

 from ./onedb:39

 ** **

 gem install sequel-3.27.0.gem

 Successfully installed sequel-3.27.0

 1 gem installed

 Installing ri documentation for sequel-3.27.0...

 Installing RDoc documentation for sequel-3.27.0...

 ** **

 **2.   **During upgrade it refers to function count which does not
 exist. 

 ** **

 ./onedb  upgrade -v

 Version read:

 2.0 : Could not read any previous db_versioning data, assuming it is an
 OpenNebula 2.0 or 2.2 DB.

 ** **

 MySQL dump stored in /srv/cloud/var/mysql_localhost_opennebula.sql

 Use 'onedb restore' or restore the DB using the mysql command:

 mysql -u user -h server -P port db_name  backup_file

 *   Running migrator /srv/cloud/lib/ruby/onedb/2.0_to_2.9.80.rb*

 *Mysql::Error: FUNCTION opennebula.COUNT does not exist*
 -
 This transmission (including any attachments) may contain confidential
 information, privileged material (including material protected by the
 solicitor-client or other applicable privileges), or constitute non-public
 information. Any use of this information by anyone other than the intended
 recipient is prohibited. If you have received this transmission in error,
 please immediately reply to the sender and delete this information from your
 system. Use, dissemination, distribution, or reproduction of this
 transmission by unintended recipients is not authorized and may be unlawful.


 ___
 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


[one-users] IMAGE_REPOSITORY_PATH and OpenNebula 3

2011-09-15 Thread Robert Parrott
Hi All,

With ONE 2.2, we used the IMAGE_REPOSITORY_PATH config value to
point to a separate store for image files that was outside of the
$ONE_LOCATION/var/ directory.

It appears that with the new ONE_IMAGE MAD, this config value is gone,
so we can't now add new images into the system as we had before. Right
now we are using symlinks to fix this, but that's not a great
solution.

What is the appropriate upgrade in ONE 3 to match this functionality from ONE 2?

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


Re: [one-users] IMAGE_REPOSITORY_PATH and OpenNebula 3

2011-09-15 Thread Ruben S. Montero
Hi,

OpenNebula 3.0 features a new image repository based on drivers. Currently
we are shipping one based on files (images supported by a regular file).

You can take a look at it under:

$ONE_LOCATION/var/remotes/image/fs

There you will see scripts for the repo operations, to copy (cp), move (mv),
delete (rm) and create (mkfs). There is also a configuration file

$ONE_LOCATION/var/remotes/image/fs/fsrc

Modify IMAGE_REPOSITORY_PATH to point to your repo directory. You may be
also interested in the other scripts to fine tune your deployment

Cheers

Ruben


On Thu, Sep 15, 2011 at 6:35 PM, Robert Parrott parr...@seas.harvard.eduwrote:

 Hi All,

 With ONE 2.2, we used the IMAGE_REPOSITORY_PATH config value to
 point to a separate store for image files that was outside of the
 $ONE_LOCATION/var/ directory.

 It appears that with the new ONE_IMAGE MAD, this config value is gone,
 so we can't now add new images into the system as we had before. Right
 now we are using symlinks to fix this, but that's not a great
 solution.

 What is the appropriate upgrade in ONE 3 to match this functionality from
 ONE 2?

 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




-- 
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid

URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Guidance regarding the project Develop Android Application for OpenNebula

2011-09-15 Thread Susmita Horrow
Hello,
I am interested to work in this project.I need to know about how to start.
So I need some study materials and guidance regarding this.


Thanking You.

Susmita Horrow
MCA 3rd Year
IIT Roorkee
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org