[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,

[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':

[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

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‘ ? 收件人:openstackopenstack@lists.launchpad.net 抄送: Hi all, In the nova.compute.vm_states.py SUSPENDED = 'suspended' # VM is suspended to disk. STOPPED = 'stopped' # VM is powered

[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 /:

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 parsed

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

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

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

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 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 kevin.mitch...@rackspace.com wrote: Honestly, I don't understand your questions; I figured the documentation I pointed you to would answer them, and the fact it

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

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

[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

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 leande...@gmail.com wrote: Hello, I have just installed the Folsom

[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

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 s...@ummon.com wrote: Hello Everyone, So, before I start making code changes to nova-network, I have to ask, why does

[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

[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__ =

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

2012-10-26 Thread Rosa, Andrea (HP Cloud Services)
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 only have the rapper class #!/usr/bin/python

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

2012-10-26 Thread Qin, Xiaohong
: 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 commands are executed. Would you please

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

2012-10-26 Thread Desta Haileselassie Hagos
:* 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 commands

[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

[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

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 roberto.sa...@polito.it wrote: Hi everyone I

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

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 leande...@gmail.com wrote: Hello, I've been tasked with translating the OpenStack API to

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

[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?

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 running

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

2012-09-06 Thread Leander Bessa Beernaert
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 *Subject:* Re: [Openstack] [OpenStack][Nova]Problems

[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

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

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

2012-09-05 Thread George Mihaiescu
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 controller node and 4

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

2012-09-05 Thread Leander Bessa Beernaert
] [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 controller node and 4 compute nodes. Each compute node is running nova

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

2012-09-05 Thread Leander Bessa Beernaert
Bessa Beernaert *Sent:* Wednesday, September 05, 2012 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

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 leande...@gmail.com 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

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 leande...@gmail.com wrote: Question follows inlined below. On Tue, Sep 4, 2012 at 6:48 PM, Vishvananda Ishaya vishvana...@gmail.com wrote: On Sep 4, 2012, at 8:35 AM, Leander Bessa Beernaert leande...@gmail.com wrote: Hello all,

[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

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

[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

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

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 han.sebast...@gmail.comwrote: Hi, If eth0 is connected to the public switch and if eth1 is connected to the private switch you can enable

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

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

[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

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+: 10226:

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-10

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 han.sebast...@gmail.comwrote: Hi! Usually you get: 2012-07-09 13:58:27.179+: 10227: warning : qemuDomainObjTaint:1134 : Domain id=2 name='instance-0002'

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.

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 able

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 Mahrouarazique.mahr...@gmail.com Le 10 juil.

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 han.sebast...@gmail.comwrote: Change the vncserver_listen to 0.0.0.0 and re-try the live-migration, you should get

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,

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 han.sebast...@gmail.comwrote: 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

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 AM,

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 han.sebast...@gmail.comwrote: 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

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 han.sebast...@gmail.comwrote: It's production ready, RedHat offers a commercial support on it. Just keep in mind that it's

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

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 PM,

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

[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 [-]

[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 to

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 try and

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:

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.

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 + 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 berra...@redhat.comwrote: On Tue, Jul 03, 2012 at 02:48:05PM +0100, Leander Bessa

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

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 leande...@gmail.com wrote: Hello all, I've been trying to get the live migration to work according to the guide

[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

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 leande...@gmail.com wrote: Hello all, I've been trying to get the live migration to work according to the guide

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 han.sebast...@gmail.comwrote: Which permissions did you set on /var/lib/nova/instances? On Tue, Jul 3, 2012 at 3:48 PM, Leander Bessa Beernaert

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 leande...@gmail.com 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

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

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 m...@mjvn.net 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:

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
Thanks, that let me see the real problem now: ./tools/with_venv.sh nosetests -svx nova nose.config: INFO: Set working dir to /home/gsd/nova/nova/tests nose.config: INFO: Working directory /home/gsd/nova/nova/tests is a package; adding to sys.path nose.config: INFO: Ignoring files matching

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 06:02 AM, Leander Bessa Beernaert wrote: Thanks, that let me see the real problem now: ./tools/with_venv.sh nosetests -svx nova nose.config: INFO: Set working dir to /home/gsd/nova/nova/tests nose.config: INFO: Working directory /home/gsd/nova/nova/tests is a

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

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
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 branch git pull master ? On Mon, Jul 2, 2012 at 1:44 PM, Monty Taylor

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 branch

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 jaypi...@gmail.com wrote: On 07/02/2012 08:57 AM, Leander Bessa Beernaert wrote:

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 could

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 berra...@redhat.comwrote: On Mon, Jul 02, 2012 at 01:43:31PM +0100, Leander Bessa Beernaert wrote: So,

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

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

2012-06-29 Thread Leander Bessa Beernaert
Hello, I'm sorry to restart the topic ( https://lists.launchpad.net/openstack/msg13621.html), but i accidentally deleted the message in my inbox :S. I'm still having the same problem, each time i add import libvirt to the file diangostics.py (https://review.openstack.org/#/c/8839/) the entire

Re: [Openstack] [OpenStack][Nova] Possible inconsistency between devstack/nova execution and test_virt_drivers.py

2012-06-28 Thread Leander Bessa Beernaert
Ok. I will add the required methods to the fakelbvirt. Regards, Leander On Wed, Jun 27, 2012 at 4:50 PM, Jay Pipes jaypi...@gmail.com wrote: On 06/27/2012 10:17 AM, Leander Bessa Beernaert wrote: snip How do I proceed now? Should i ate the required methods to the fake_libvirt? Do note

Re: [Openstack] [OpenStack][Nova] Snapshot stuck in Queued state, no erros found in compute log

2012-06-27 Thread Leander Bessa Beernaert
I've tried to snapshot again today and i found this error in the compute.log: http://paste.openstack.org/show/18882/ Any ideas? On Tue, Jun 26, 2012 at 9:26 AM, Leander Bessa Beernaert leande...@gmail.com wrote: I can't find any error traces in the glance api and registry log. On Mon, Jun

Re: [Openstack] [OpenStack][Nova] Possible inconsistency between devstack/nova execution and test_virt_drivers.py

2012-06-27 Thread Leander Bessa Beernaert
I've been looking at the implementation of the tests and i the fake_libvirt is a bit incomplete and lacks a lot of methods. This lack of methods causes my diagnostics code to fail the test since an error is produced. For instance this is the output from dir(virDomain) from the fake_libvirt:

Re: [Openstack] [OpenStack][Nova] Snapshot stuck in Queued state, no erros found in compute log

2012-06-27 Thread Jay Pipes
This looks very familiar :) Make sure that you have enough space in the partition that houses /tmp (usually whatever partition has / mounted). The snapshot operation requires at least as much space in /tmp as the size of the snapshot to be made. If you have improperly given yourself a very

Re: [Openstack] [OpenStack][Nova] Possible inconsistency between devstack/nova execution and test_virt_drivers.py

2012-06-27 Thread Jay Pipes
On 06/27/2012 10:17 AM, Leander Bessa Beernaert wrote: snip How do I proceed now? Should i ate the required methods to the fake_libvirt? Do note that i dont have the latest libvirt installed and am therefore missing another set of crucial methods which i can't test. :s No. In general, you only

Re: [Openstack] [OpenStack][Nova] Possible inconsistency between devstack/nova execution and test_virt_drivers.py

2012-06-27 Thread Vishvananda Ishaya
We generally add methods to the fake as they are needed by the implementation. You should probably add the needed methods and return fake values. Vish On Jun 27, 2012, at 7:17 AM, Leander Bessa Beernaert wrote: I've been looking at the implementation of the tests and i the fake_libvirt is a

Re: [Openstack] [OpenStack][Nova] Snapshot stuck in Queued state, no erros found in compute log

2012-06-27 Thread Leander Bessa Beernaert
You sir a my hero! I turned out someone altered the filesystem before installing OpenStack leaving me with 3gb partition for the operating system. Thanks. Leander On Wed, Jun 27, 2012 at 4:32 PM, Jay Pipes jaypi...@gmail.com wrote: This looks very familiar :) Make sure that you have enough

Re: [Openstack] [OpenStack][Nova] Snapshot stuck in Queued state, no erros found in compute log

2012-06-27 Thread Jay Pipes
On 06/27/2012 12:28 PM, Leander Bessa Beernaert wrote: You sir a my hero! I turned out someone altered the filesystem before installing OpenStack leaving me with 3gb partition for the operating system. LOL, no worries. I remembered running into that in the first TryStack zone deployment.

Re: [Openstack] [OpenStack][Nova] Multi-host ip mix up.

2012-06-26 Thread Leander Bessa Beernaert
I've tried again this morning: The ip adress assigned to the vm in the dashboard is 10.0.9.3, however the instances only responds to pings on the compute node where it was launched and with the ip address 10.0.9.7. Here's the vm's log: http://paste.openstack.org/show/18796/ and the ip is assigned

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
I'v tried doing those modifications directly on the master branch, just to see if the tests would run. Sadly, i get the same output. Am i supposed to change something when adding new files before running the tests? On Tue, Jun 26, 2012 at 9:36 AM, Leander Bessa Beernaert leande...@gmail.com

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Kevin L. Mitchell
On Tue, 2012-06-26 at 09:36 +0100, Leander Bessa Beernaert wrote: Any ideas? My gut instinct is that you have a syntax error as well, somewhere in diagnostics.py. Try running the python interpreter and manually trying that import; if it fails, you should have an error message that will help

  1   2   >