[Openstack] [OpenStack][nova]host and node difference

2013-06-26 Thread Jay Lau
Hi, I noticed that now in nova::host_manager.py, the function get_all_host_states() is returnning constructing a state key with host and node. def get_all_host_states(self, context): """Returns a list of HostStates that represents all the hosts the HostManager knows about. Also, e

Re: [Openstack] [openstack] [nova] how to understand the vm_states ‘SUSPENDED’ and 'STOP‘ ?

2013-01-16 Thread Wangpan
发送时间:2013-01-17 11:21 主题:[Openstack] [openstack] [nova] how to understand the vm_states ‘SUSPENDED’ and 'STOP‘ ? 收件人:"openstack" 抄送: Hi all, In the nova.compute.vm_states.py SUSPENDED = 'suspended' # VM is suspended to disk. STOPPED = 'stopped'

[Openstack] [openstack] [nova] how to understand the vm_states ‘SUSPENDED’ and 'STOP‘ ?

2013-01-16 Thread 孟庆龙
Hi all, In the nova.compute.vm_states.py SUSPENDED = 'suspended' # VM is suspended to disk. STOPPED = 'stopped' # VM is powered off, the disk image is still there. but what are the different between them ? Tks, Best Regards, Lawrency Meng __

[Openstack] [openstack] [nova-api] How to explain the 'POST' APIRouter in nova-api .release F?

2013-01-16 Thread 孟庆龙
Hi friends, I got the confused at the 'POST' Mapper Router in nova-api, release F. *code*: self.resources['servers'] = servers.create_resource(ext_mgr) mapper.resource("server", "servers", controller=self.resources['servers'], collection={'detail': '

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Trinath Somanchi
Hi Kevin- Thanks for the reply and making me understand the data flow. I have one more doubt in plate. I see that in api-paste.ini, with respect to the online available documentation https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersi

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Kevin L. Mitchell
On Thu, 2012-12-06 at 23:58 +0530, Trinath Somanchi wrote: > Suppose, we have a resquest to Nova.. > > The following steps are performed... > > 1. The request is captured by webob and is authenticated by keystone > and is decorated to wsgi app Not quite correct; webob decorates (some of) the fun

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Kevin L. Mitchell
On Thu, 2012-12-06 at 13:13 -0600, Michael Basnight wrote: > Seems like a good start to a wiki page to me :) Heh. Feel free to start one up :) Or maybe this would be a candidate for Sandy Walsh's nova internals blog series? :) -- Kevin L. Mitchell ___

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Michael Basnight
Seems like a good start to a wiki page to me :) Sent from my digital shackles On Dec 6, 2012, at 11:27 AM, "Kevin L. Mitchell" wrote: > Honestly, I don't understand your questions; I figured the documentation > I pointed you to would answer them, and the fact it doesn't suggests > that you're

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Trinath Somanchi
Thanks a lot kevin.. Your explanation has cleared my doubts.. Keeping togethor what i understand... Suppose, we have a resquest to Nova.. The following steps are performed... 1. The request is captured by webob and is authenticated by keystone and is decorated to wsgi app 2. Nova-api maps the

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Kevin L. Mitchell
It's probably best to ask these sorts of questions on the email list, as it gives an opportunity to others to answer them, as well as allowing others who may have similar questions to see the answers in the first place. On Thu, 2012-12-06 at 23:24 +0530, Trinath Somanchi wrote: > [1] In nova or qu

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Kevin L. Mitchell
Honestly, I don't understand your questions; I figured the documentation I pointed you to would answer them, and the fact it doesn't suggests that you're not asking what I thought you were asking. Maybe an approach from the beginning: Nova, Quantum, Glance, Keystone, etc. all have, as components,

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Trinath Somanchi
Hi Kevin- Thanks for the reply.. But, few of my doubts are left ... [1] What is the significance of the api-paste.ini file in the configuration of nova/quantum and other modules of ipenstack? [2] How do the modules use these API configuration options? How they are used different from normal ".c

Re: [Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Kevin L. Mitchell
On Thu, 2012-12-06 at 16:11 +0530, Trinath Somanchi wrote: > What is the significance of api-paste.ini file in the configuration of > nova and quantum and other modules of openstack? > > How this configuration is parsed and used? by which api of the > openstack modules? So, api-paste.ini is par

[Openstack] Openstack Nova/Quantum :; api-paste.ini file

2012-12-06 Thread Trinath Somanchi
Hi- What is the significance of api-paste.ini file in the configuration of nova and quantum and other modules of openstack? How this configuration is parsed and used? by which api of the openstack modules? My quantum api-paste.ini looks this way. [composite:quantum] use = egg:Paste#urlmap /: qu

Re: [Openstack] [OpenStack] Nova API does not start

2012-11-09 Thread Leander Bessa Beernaert
For anyone with the same problem, I've managed to fix my problem by updating my old api-paste.ini with the one provided with the Folsom package. Regards, Leander On Fri, Nov 9, 2012 at 2:42 PM, Leander Bessa Beernaert wrote: > Hello, > > I have just installed the Folsom package of Nova API a

[Openstack] [OpenStack] Nova API does not start

2012-11-09 Thread Leander Bessa Beernaert
Hello, I have just installed the Folsom package of Nova API and am unable to get it to start. Here's the error log: 2012-11-09 14:28:40 DEBUG nova.wsgi [-] Loading app metadata from /etc/nova/api-paste.ini from (pid=25593) load_app /usr/lib/python2.7/dist-packages/nova/wsgi.py:371 2012-11-09 14:

Re: [Openstack] [openstack][nova-network] Associate Floating-ip disassociates first by design ?

2012-11-06 Thread Vishvananda Ishaya
This is based on the behavior of elastic ips in amazon where a call to associate an ip with a new instance will simply move it. Vish On Nov 6, 2012, at 4:53 PM, Stef T wrote: > Hello Everyone, > So, before I start making code changes to nova-network, I have to ask, > why does the nova-net

[Openstack] [openstack][nova-network] Associate Floating-ip disassociates first by design ?

2012-11-06 Thread Stef T
Hello Everyone, So, before I start making code changes to nova-network, I have to ask, why does the nova-network first disassociate the floating-ip before associating it ? Surely, if the floating-ip is associated with another instance it shouldn't jst be disassociated blindly ? I refer to

[Openstack] [openstack][nova-compute][xenapi] network bridge br100 can't allocate PIF-uuids

2012-11-01 Thread Ben Liu
I build up a XCP nova-compute node with FlatDHCPManager XCP server network configure: Eth0 -> xenbr0 Eth1 is automatically configured as xenbr1 by XCP server also I make a br100 network on XCP server which is known as dom0 with the command: xe network create name-label=br100 then br100 is

Re: [Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Desta Haileselassie Hagos
@lists.launchpad.net[mailto: > openstack-bounces+xiaohong.qin=emc@lists.launchpad.net] *On Behalf Of > *Desta Haileselassie Hagos > *Sent:* Friday, October 26, 2012 7:01 AM > *To:* openstack@lists.launchpad.net; Rosa, Andrea (HP Cloud Services) > *Subject:* [Openstack] OpenStack + Nova l

Re: [Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Qin, Xiaohong
ssie Hagos Sent: Friday, October 26, 2012 7:01 AM To: openstack@lists.launchpad.net; Rosa, Andrea (HP Cloud Services) Subject: [Openstack] OpenStack + Nova list, nova show location Dear All, I still couldn't find the exact location where this "nova list" and "nova show "

[Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Desta Haileselassie Hagos
Dear All, I still couldn't find the exact location where this "nova list" and "nova show " commands are executed. Would you please explain me a bit what this load_entry_point stuff is doing? and Where exactly it is loading these parameters??? if __name__ == '__main__': sys.exit( loa

Re: [Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Rosa, Andrea (HP Cloud Services)
s Sent: 26 October 2012 09:52 To: openstack@lists.launchpad.net Subject: [Openstack] OpenStack + Nova list, nova show location Dear All, Would you kindly help me where i can find the scripts for "nova list" and "nova show" I just can't find it in /user/bin/ I onl

[Openstack] OpenStack + Nova list, nova show location

2012-10-26 Thread Desta Haileselassie Hagos
Dear All, Would you kindly help me where i can find the scripts for "nova list" and "nova show" I just can't find it in /user/bin/ I only have the rapper class #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'python-novaclient==2012.1','console_scripts','nova' __requires__ = 'python-novaclient=

[Openstack] OpenStack + Nova-manage service list + Script for non-admin users

2012-10-21 Thread Desta Haileselassie Hagos
Dear ALL, I want to write a script which shows the number of physical machines on our lab's cloud. This script should show detailed list of all the OpenStack running services filtered by host and service name. It should also show the list of all VM instances launched on each physical host. Using

Re: [Openstack] Openstack Nova question

2012-09-28 Thread Roberto Sassu
On 09/28/2012 06:45 PM, Vishvananda Ishaya wrote: Hi Roberto, It looks like you have the wrong version of python-glanceclient installed Try pip install python-glanceclient (or install the appropriate package via your package management system). Hi Vish thanks, now it works! Regards Rober

Re: [Openstack] Openstack Nova question

2012-09-28 Thread Vishvananda Ishaya
Hi Roberto, It looks like you have the wrong version of python-glanceclient installed Try pip install python-glanceclient (or install the appropriate package via your package management system). Vish On Sep 28, 2012, at 6:38 AM, Roberto Sassu wrote: > Hi everyone > > I have a controller nod

[Openstack] Openstack Nova question

2012-09-28 Thread Roberto Sassu
Hi everyone I have a controller node with Ubuntu 12.04 LTS and a compute node with Fedora 16. I installed in both nodes the same version of Nova (2012.1.3), but I'm unable to deploy a VM on the compute node. The error message is: 2012-09-28 15:23:16 ERROR nova.rpc.amqp [req-44675879-a976-4

Re: [Openstack] [OpenStack][Nova] Reuse part of Nova-API

2012-09-12 Thread Trinath Somanchi
Hi vish- Can please outline about or point to some source where we get info on nava compute api code structure and relationship between the different classes This helps devs to understand the code orientation and request flow inside the api. - Trinaths On Sep 13, 2012 6:04 AM, "Vishvananda I

Re: [Openstack] [OpenStack][Nova] Reuse part of Nova-API

2012-09-12 Thread Vishvananda Ishaya
Sure, you could write a different implementation of compute.api (and network.api and volume.api if needed) to talk to the other provider. Vish On Sep 12, 2012, at 8:45 AM, Leander Bessa Beernaert wrote: > Hello, > > I've been tasked with translating the OpenStack API to another provider, so

[Openstack] [OpenStack][Nova] Reuse part of Nova-API

2012-09-12 Thread Leander Bessa Beernaert
Hello, I've been tasked with translating the OpenStack API to another provider, so that the other provider is able to handle both it's own API and requests nova's API. Is it possible to reuse most of nova-api's handling of the REST request and simply change the underlying execution? In other words

Re: [Openstack] [OpenStack][Nova] Help with Cloudpipe setup

2012-09-07 Thread Leander Bessa Beernaert
I'd like to add that i'm unable to ping or ssh this instance from any nodes in my setup. Ping and ssh are working on normal instances. On Fri, Sep 7, 2012 at 10:28 AM, Leander Bessa Beernaert < leande...@gmail.com> wrote: > Hello, > > I've been trying to set up cloud pipe for OpenStack. I'm runni

[Openstack] [OpenStack][Nova] Help with Cloudpipe setup

2012-09-07 Thread Leander Bessa Beernaert
Hello, I've been trying to set up cloud pipe for OpenStack. I'm running OpenStack Essex on Ubuntu 12.04 with the default packages. I'm following the instructions from [1,2]. When i get to the part of generating certificates to connect to the cloudpipe instance i get this error [3]. Any ideas? [

[Openstack] [OpenStack][Nova] Cloudpipe creation error

2012-09-06 Thread Leander Bessa Beernaert
Hello all, I'm trying to setup a cloudpipe for a project. I'm running OpenStack Essex on Ubuntu 12.04. I ran the command "nova cloudpipe create [project_id]" and i found this in the nova-api log: 2012-09-06 12:19:46 ERROR nova.api.openstack.wsgi > [req-6f5432b5-026c-413f-bb78-558cabe67af5 projec

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-06 Thread Leander Bessa Beernaert
tivity from the hosts, etc. > > ** ** > > ** ** > -- > > *From:* Leander Bessa Beernaert [mailto:leande...@gmail.com] > *Sent:* Wednesday, September 05, 2012 11:26 AM > *To:* **George Mihaiescu > ** > *Cc:* openstack@lists.launchpad.net

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-05 Thread Leander Bessa Beernaert
openstack-bounces+george.mihaiescu=q9@lists.launchpad.net[mailto: >> openstack-bounces+george.mihaiescu=q9@lists.launchpad.net] *On >> Behalf Of *Leander Bessa Beernaert >> *Sent:* Wednesday, September 05, 2012 9:49 AM >> *To:* Vishvananda Ishaya >> *Cc:* openstack

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-05 Thread George Mihaiescu
Beernaert [mailto:leande...@gmail.com] Sent: Wednesday, September 05, 2012 11:26 AM To: George Mihaiescu Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing Do i also need ip_forward enabled on the controller node

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-05 Thread Leander Bessa Beernaert
;>> *From:* >>> openstack-bounces+george.mihaiescu=q9@lists.launchpad.net[mailto: >>> openstack-bounces+george.mihaiescu=q9@lists.launchpad.net] *On >>> Behalf Of *Leander Bessa Beernaert >>> *Sent:* Wednesday, September 05, 2012 9:49 AM >>>

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-05 Thread Leander Bessa Beernaert
; *To:* Vishvananda Ishaya > *Cc:* openstack@lists.launchpad.net > *Subject:* Re: [Openstack] [OpenStack][Nova]Problems and questions > regarding network and/or routing > > ** ** > > I'm having the strangest issue. I have set up a separate OpenStack cluster > to test out

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-05 Thread George Mihaiescu
9:49 AM To: Vishvananda Ishaya Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing I'm having the strangest issue. I have set up a separate OpenStack cluster to test out the multi-host setup. I have one contro

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-05 Thread Leander Bessa Beernaert
I'm having the strangest issue. I have set up a separate OpenStack cluster to test out the multi-host setup. I have one controller node and 4 compute nodes. Each compute node is running nova-network, nova-compute and nova-api-metadata. I have set up a tenant with the a multi-host network on the ad

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-04 Thread Vishvananda Ishaya
On Sep 4, 2012, at 3:01 PM, Leander Bessa Beernaert wrote: > Question follows inlined below. > > On Tue, Sep 4, 2012 at 6:48 PM, Vishvananda Ishaya > wrote: > > On Sep 4, 2012, at 8:35 AM, Leander Bessa Beernaert > wrote: > >> Hello all, >> >> I've had a few reports from users testing ou

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-04 Thread Leander Bessa Beernaert
Question follows inlined below. On Tue, Sep 4, 2012 at 6:48 PM, Vishvananda Ishaya wrote: > > On Sep 4, 2012, at 8:35 AM, Leander Bessa Beernaert > wrote: > > Hello all, > > I've had a few reports from users testing out the sample installation of > OpenStack i setup. The reports were all relate

Re: [Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-04 Thread Vishvananda Ishaya
On Sep 4, 2012, at 8:35 AM, Leander Bessa Beernaert wrote: > Hello all, > > I've had a few reports from users testing out the sample installation of > OpenStack i setup. The reports were all related to problems with inter-vm > network speeds and connection timeouts as well as the inability t

[Openstack] [OpenStack][Nova]Problems and questions regarding network and/or routing

2012-09-04 Thread Leander Bessa Beernaert
Hello all, I've had a few reports from users testing out the sample installation of OpenStack i setup. The reports were all related to problems with inter-vm network speeds and connection timeouts as well as the inability to connect to the outside word from within the VM (e.g.: ping www.google.co

[Openstack] Openstack NOVA and Metadata.

2012-08-31 Thread Trinath Somanchi
Hi- While going through the source code of the Nova API, i came across the following comments. class CommonDeserializer(wsgi.MetadataXMLDeserializer): """ Common deserializer to handle xml-formatted server create requests. Handles standard server attributes as well as optional me

Re: [Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-09 Thread Sébastien Han
If your eth0 (public interface) can access Internet, with the ip_forward your instance should be able too... On Wed, Aug 8, 2012 at 12:05 PM, Leander Bessa Beernaert < leande...@gmail.com> wrote: > So i have set up a small proof of concept, one controller node and two > compute nodes. Since the

Re: [Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-08 Thread Leander Bessa Beernaert
So i have set up a small proof of concept, one controller node and two compute nodes. Since the switches do not support VLAN i'm using flat dhcp. Each machine has two network interfaces. Eth0 is connected to the public switch and eth1 to the private switch. The private switch has no access to the i

Re: [Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-07 Thread Sébastien Han
It's part of the operating system # echo 1 > /proc/sys/net/ipv4/ip_forward Then edit your /etc/sysctl.conf and uncomment net.ipv4.ip_forward=1 to make this persistent after reboot. Finally run --> # sysctl -p That's all, cheers! On Tue, Aug 7, 2012 at 11:50 PM, Leander Bessa Beernaert wrote:

Re: [Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-07 Thread Emilien Macchi
Hi, If you run VlanManager [1] you have actually two important flags : Private Switch : vlan_interface=ethX Public Switch : public_interface=ethX [1] http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-vlan-networking.html Regards On Tue, Aug 7, 2012 at 11:50 PM

Re: [Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-07 Thread Leander Bessa Beernaert
Is there a flag in the nova.conf file or is this something that needs to be done on the operating system? On Tue, Aug 7, 2012 at 8:26 PM, Sébastien Han wrote: > Hi, > > If eth0 is connected to the public switch and if eth1 is connected to > the private switch you can enable the ipv4 forwarding on

Re: [Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-07 Thread Sébastien Han
Hi, If eth0 is connected to the public switch and if eth1 is connected to the private switch you can enable the ipv4 forwarding on the compute node. Thanks to this the VMs will have access to the outside world and the packet will be routed from eth1 to eth0 :). Cheers! On Tue, Aug 7, 2012 at 5:1

[Openstack] [OpenStack][Nova] Question regarding multiple network interfaces

2012-08-07 Thread Leander Bessa Beernaert
Hello, I have a question regarding the use of two network interfaces. According to the official documentation, one of the interfaces is used for public access and the other for internal access (inter-vm communication). What i'd like to know is how does an instance connect to the outside world (int

Re: [Openstack] [openstack] nova-compute always dead on RHEL6.1

2012-07-23 Thread Pádraig Brady
On 07/23/2012 09:44 AM, 延生 付 wrote: > > Dear all, > > When I deply nova-compute based on epel repository, I found > openstack-nova-compute always dead but pid file exists. > While there is no any log file generated in /var/log/nova. > The OS is RHEL6.1. The nova.conf is copied from controller

[Openstack] [openstack] nova-compute always dead on RHEL6.1

2012-07-23 Thread 延生 付
  Dear all,   When I deply nova-compute based on epel repository, I found openstack-nova-compute always dead but pid file exists. While there is no any log file generated in /var/log/nova. The OS is RHEL6.1. The nova.conf is copied from controller node.  [root@comp02-r11 nova]# service openstack-n

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Razique Mahroua
What Stephan said, appart that, yes, it's production ready :-) Nuage & Co - Razique Mahroua razique.mahr...@gmail.com Le 10 juil. 2012 à 11:52, Leander Bessa Beernaert a écrit :If i don't run libvirt with root, it can't write to the shared folder. It's the only way i've been able to get this to wo

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Sébastien Han
Np ;) On Tue, Jul 10, 2012 at 12:33 PM, Leander Bessa Beernaert < leande...@gmail.com> wrote: > Ok. Thx for the help :) > > > On Tue, Jul 10, 2012 at 11:30 AM, Sébastien Han > wrote: > >> It's production ready, RedHat offers a commercial support on it. >> Just keep in mind that it's owned by Red

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Leander Bessa Beernaert
Ok. Thx for the help :) On Tue, Jul 10, 2012 at 11:30 AM, Sébastien Han wrote: > It's production ready, RedHat offers a commercial support on it. > Just keep in mind that it's owned by Redhat ;) > > > > On Tue, Jul 10, 2012 at 12:24 PM, Leander Bessa Beernaert < > leande...@gmail.com> wrote: > >>

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Sébastien Han
It's production ready, RedHat offers a commercial support on it. Just keep in mind that it's owned by Redhat ;) On Tue, Jul 10, 2012 at 12:24 PM, Leander Bessa Beernaert < leande...@gmail.com> wrote: > Is GlusterFS be more viable for a production environment? > > > On Tue, Jul 10, 2012 at 11:17

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Leander Bessa Beernaert
Is GlusterFS be more viable for a production environment? On Tue, Jul 10, 2012 at 11:17 AM, Sébastien Han wrote: > Great! > > The last time I ran the live-migration, it was with GlusterFS and CephFS > and I didn't changed any permissions in libvirt. I did the live-migration > with NFS once but it

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Sébastien Han
Great! The last time I ran the live-migration, it was with GlusterFS and CephFS and I didn't changed any permissions in libvirt. I did the live-migration with NFS once but it was in Diablo (horrible), I don't really remember my setup. Maybe you should consider to try GlusterFS. On Tue, Jul 10, 2

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Leander Bessa Beernaert
That did! Thanks :) Do you by change have any pointer on getting the live-migration to work without running libvirt under root? On Tue, Jul 10, 2012 at 10:55 AM, Sébastien Han wrote: > Change the vncserver_listen to 0.0.0.0 and re-try the live-migration, you > should get better results :) > > >

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Razique Mahroua
Ok it looks like Qemu is unable to access the instance state.could you perform a $ virsh list --all from the second node and tell me what you see ?as for the second message, make sure you installed the "dbus" packageRegards,Razique Nuage & Co - Razique Mahroua razique.mahr...@gmail.com Le 10 juil.

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Sébastien Han
Change the vncserver_listen to 0.0.0.0 and re-try the live-migration, you should get better results :) On Tue, Jul 10, 2012 at 11:52 AM, Leander Bessa Beernaert < leande...@gmail.com> wrote: > If i don't run libvirt with root, it can't write to the shared folder. > It's the only way i've been ab

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Leander Bessa Beernaert
If i don't run libvirt with root, it can't write to the shared folder. It's the only way i've been able to get this to work. :S Below follows the configuration of one of the compute nodes. 10.0.1.1 is the controller and 10.0.1.2 is the compute node. novncproxy_base_url=http://10.0.1.1:6080/vnc_au

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Sébastien Han
I forgot to ask, did you enable the vnc console? If so, with which parameters? On Tue, Jul 10, 2012 at 11:48 AM, Sébastien Han wrote: > Hi! > > Usually you get: > > 2012-07-09 13:58:27.179+: 10227: warning : qemuDomainObjTaint:1134 : >> Domain id=2 name='instance-0002' >> uuid=57aca8a6-

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Sébastien Han
Hi! Usually you get: 2012-07-09 13:58:27.179+: 10227: warning : qemuDomainObjTaint:1134 : > Domain id=2 name='instance-0002' > uuid=57aca8a6-d062-4a08-8d87-e4d11d259ac7 is tainted: high-privileges when you change permission in libvirt (root I presumed) which is not necessary. 2012-07-1

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Leander Bessa Beernaert
Well i've checked the libvirt logs on both nodes and i found these two lines: 2012-07-09 13:58:27.179+: 10227: warning : qemuDomainObjTaint:1134 : > Domain id=2 name='instance-0002' > uuid=57aca8a6-d062-4a08-8d87-e4d11d259ac7 is tainted: high-privileges > 2012-07-09 13:58:27.736+: 1022

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-10 Thread Razique Mahroua
Hi Leander,try to check libvirtd.log files, is the instance still running on the first node while you are lauching the migration process ?Razique Nuage & Co - Razique Mahroua razique.mahr...@gmail.com Le 9 juil. 2012 à 16:09, Leander Bessa Beernaert a écrit :Ok, so i've updated to the test package

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-09 Thread Mandar Vaze / मंदार वझे
Are you doing block migration ? (What is the exact command used to initiate live-migration?) What is the status of the instance ? ("nova list" output) You can also check the status of the instance in db, specifically vm_state and task_state These might give some clue. -Mandar On Mon, Jul 9, 2012

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-09 Thread Leander Bessa Beernaert
There is no error, it just doesn't do anything :s. I've left the instance alone for 3 hours now and it's still stuck on the original compute node. On Mon, Jul 9, 2012 at 5:55 PM, Mandar Vaze / मंदार वझे < mandarv...@gmail.com> wrote: > I see "pre_live_migration" in destination compute log, so mi

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-09 Thread Mandar Vaze / मंदार वझे
I see "pre_live_migration" in destination compute log, so migration at least started. Since there are no errors in either compute log, is it possible that migration is taking long ? (Just a possibility) When you say "migration fails" what error did you get ? -Mandar On Mon, Jul 9, 2012 at 7:39 P

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-09 Thread Leander Bessa Beernaert
Ok, so i've updated to the test packages from The migration still fails, but i see no errors in the logs. I'm trying to migrate a VM with the m1.tiny flavor from one machine to another. Their hardware are identical and they have more than enough resources to support the m1.tiny flavor: cloud35

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-06 Thread Leander Bessa Beernaert
Thanks for the tip, it's a better than nothing :) Regards, Leander On Fri, Jul 6, 2012 at 6:32 PM, Mandar Vaze / मंदार वझे < mandarv...@gmail.com> wrote: > Not sure if you are able to debug this, but a while ago there was a bug > where instance.id was passed where instance.uuid was expected. This

Re: [Openstack] [OpenStack][Nova] Live Migration Error

2012-07-06 Thread Mandar Vaze / मंदार वझे
Not sure if you are able to debug this, but a while ago there was a bug where instance.id was passed where instance.uuid was expected. This used to cause some problem. It looks like you are using distribution package rather than devstack installation, so it is likely that the issue is now fixed. Ca

Re: [Openstack] [OpenStack][Nova] Help with libvirt unit-test - get_diagnostics command

2012-07-06 Thread Leander Bessa Beernaert
Daniel, thank you very much for your help! However, i'm running into my infamous "import libvirt" problem again when running the tests (see output below), i really though i'd fixed that one for sure -.-'. > > == > ERROR: test_di

Re: [Openstack] [OpenStack][Nova] Help with libvirt unit-test - get_diagnostics command

2012-07-06 Thread Daniel P. Berrange
On Fri, Jul 06, 2012 at 11:59:51AM +0100, Leander Bessa Beernaert wrote: > Hello, > > I've been working on implementing the "diagnostics" command for libvirt - > https://review.openstack.org/#/c/8839/ . Now i need to create the unit test > for this new operation. I've been looking at the code to t

[Openstack] [OpenStack][Nova] Help with libvirt unit-test - get_diagnostics command

2012-07-06 Thread Leander Bessa Beernaert
Hello, I've been working on implementing the "diagnostics" command for libvirt - https://review.openstack.org/#/c/8839/ . Now i need to create the unit test for this new operation. I've been looking at the code to try and figure out an easy way to replicate this, but i'm a bit lost. What i need t

[Openstack] [OpenStack][Nova] Live Migration Error

2012-07-06 Thread Leander Bessa Beernaert
Hello, I've recently setup a system to test out the live migration feature. So far i've been able to launch the instances with the shared nfs folder. However, when i run the live-migration command i encounter this error in the destination compute node: 2012-07-05 09:33:48 ERROR nova.manager [-] E

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-04 Thread Mandar Vaze / मंदार वझे
See if mounting as nfsv3 helps See https://answers.launchpad.net/nova/+question/164689, specifically comment #11 -Mandar On Tue, Jul 3, 2012 at 7:18 PM, Leander Bessa Beernaert wrote: > Hello all, > > I've been trying to get the live migration to work according to the guide > http://docs.openst

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-04 Thread Leander Bessa Beernaert
Can't seem to get around it >.<. Below are the current permissions on the folder in one of the compute nodes. I've already tried chmod o+x /var/lib/nova/instances/ but nothing happend :/ gsd@cloud33:~$ ls -l /var/lib/nova/instances/ > total 4 > drwxrwxr-x 2 nova nova 4096 Jul 3 13:33 _base > gsd@

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-04 Thread Daniel P. Berrange
On Wed, Jul 04, 2012 at 04:24:42PM +0100, Leander Bessa Beernaert wrote: > Ok. so i have added the option you mentioned, restarted nfs and remounted > on the compute nodes. > > Now i get this error: http://paste.openstack.org/show/19260/ libvirtError: internal error Process exited while reading

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-04 Thread Leander Bessa Beernaert
Ok. so i have added the option you mentioned, restarted nfs and remounted on the compute nodes. Now i get this error: http://paste.openstack.org/show/19260/ :S On Wed, Jul 4, 2012 at 4:18 PM, Daniel P. Berrange wrote: > On Tue, Jul 03, 2012 at 02:48:05PM +0100, Leander Bessa Beernaert wrote: >

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-04 Thread Daniel P. Berrange
On Tue, Jul 03, 2012 at 02:48:05PM +0100, Leander Bessa Beernaert wrote: > Hello all, > > I've been trying to get the live migration to work according to the guide > http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html. > > So far i've setup 2 compute n

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-04 Thread Leander Bessa Beernaert
Shouldn't libvirt have write permission in a nova directory, since it's executed by root? On Tue, Jul 3, 2012 at 4:51 PM, Leander Bessa Beernaert wrote: > Still the same problem :S > > > On Tue, Jul 3, 2012 at 4:46 PM, Marnus van Niekerk wrote: > >> Have you tried setting the ownership of /var/

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-03 Thread Leander Bessa Beernaert
Still the same problem :S On Tue, Jul 3, 2012 at 4:46 PM, Marnus van Niekerk wrote: > Have you tried setting the ownership of /var/lib/nova/instances to the > nova user? > > sudo chown -R nova:nova /var/lib/nova/instances > > M > > > On 03/07/2012 15:48, Leander Bessa Beernaert wrote: > >> Hello

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-03 Thread Marnus van Niekerk
Have you tried setting the ownership of /var/lib/nova/instances to the nova user? sudo chown -R nova:nova /var/lib/nova/instances M On 03/07/2012 15:48, Leander Bessa Beernaert wrote: Hello all, I've been trying to get the live migration to work according to the guide http://docs.openstack

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-03 Thread Leander Bessa Beernaert
Here's an output from ls -l: drwxr-xr-x 3 nova nova 4096 Jul 3 14:10 instances On Tue, Jul 3, 2012 at 4:25 PM, Leander Bessa Beernaert wrote: > Currently it's using the default permission. Everything belongs to user > "nova" and the group "nova". > > > On Tue, Jul 3, 2012 at 4:23 PM, Sébastie

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-03 Thread Leander Bessa Beernaert
Currently it's using the default permission. Everything belongs to user "nova" and the group "nova". On Tue, Jul 3, 2012 at 4:23 PM, Sébastien Han wrote: > Which permissions did you set on /var/lib/nova/instances? > > > On Tue, Jul 3, 2012 at 3:48 PM, Leander Bessa Beernaert < > leande...@gmail.c

Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-03 Thread Sébastien Han
Which permissions did you set on /var/lib/nova/instances? On Tue, Jul 3, 2012 at 3:48 PM, Leander Bessa Beernaert wrote: > Hello all, > > I've been trying to get the live migration to work according to the guide > http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-

[Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues

2012-07-03 Thread Leander Bessa Beernaert
Hello all, I've been trying to get the live migration to work according to the guide http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html. So far i've setup 2 compute nodes and 1 controller node. They all share the /var/lib/nova/instances dir. I've alre

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Leander Bessa Beernaert
I have never tested it on a machine which doesn't have libvirt, i'll get back to you on that. I've ran "tox -v -epy27" and it produced this ouput > -- > Ran 0 tests in 0.001s > OK > ___

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Monty Taylor
Run: sudo pip install tox And you will get the tox command. Does ./run_tests.sh -N nova.tests.test_libvirt work fine when you _don't_ have libvirt? It needs to skip the test if you don't have libvirt installed, and it needs to run it and pass if you do. Jenkins is going to run "tox -v -epy27"

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Leander Bessa Beernaert
Running with " ./run_tests.sh -N nova.tests.test_libvirt" works just fine, however i don't know if this is enough to get it past jenkins :/ On Mon, Jul 2, 2012 at 3:26 PM, Daniel P. Berrange wrote: > On Mon, Jul 02, 2012 at 01:43:31PM +0100, Leander Bessa Beernaert wrote: > > So, if no system pac

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Daniel P. Berrange
On Mon, Jul 02, 2012 at 01:43:31PM +0100, Leander Bessa Beernaert wrote: > So, if no system packages can be imported, how do you test the "connection" > class for the libvirt driver? > > How does that particular test case wrap around the fact that it requires > the libvirt module? The only thing i

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Leander Bessa Beernaert
@Jay Thx. @Monty I'm unable to run "tox -efull", it keeps saying the command could not be located. I'm supposed to run this from the same place i run "run_tests.sh" right? On Mon, Jul 2, 2012 at 2:08 PM, Jay Pipes wrote: > On 07/02/2012 08:57 AM, Leander Bessa Beernaert wrote: > > I'm developin

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Jay Pipes
On 07/02/2012 08:57 AM, Leander Bessa Beernaert wrote: > I'm developing on custom branch and haven't updated the repository for > at least 3 weeks. > Do i fetch the lastest changes like this: > > git remote update > git checkout master > git pull origin master > > git checkout

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Leander Bessa Beernaert
I'm developing on custom branch and haven't updated the repository for at least 3 weeks. Do i fetch the lastest changes like this: > git remote update > git checkout master > git pull origin master git checkout git pull master ? On Mon, Jul 2, 2012 at 1:44 PM, Monty Taylor wrote: > > > On 0

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Monty Taylor
On 07/02/2012 08:43 AM, Leander Bessa Beernaert wrote: > So, if no system packages can be imported, how do you test the > "connection" class for the libvirt driver? We're working on that - but as I said, please try running tox -efull which _should_ run tests with libvirt support enabled. > How

Re: [Openstack] [OpenStack][Nova] Issues with "run_tests.sh", no tests are run when "import libvirt is present"

2012-07-02 Thread Leander Bessa Beernaert
So, if no system packages can be imported, how do you test the "connection" class for the libvirt driver? How does that particular test case wrap around the fact that it requires the libvirt module? The only thing i could find are these lines of code in the driver's __init__ method. Do these someh

  1   2   3   >