Launching instance on XenServer (Nova-Compute) stays in Build/Spawning State

Asked by P Patil

I am currently stuck in deploying Openstack Essex test setup on our test-bed. Here are some details:

Setup:

Two node with Xenserver for compute resources.
Cloud Controller Setup: Keystone, Glance, Nova-Network, Nova-Schedular, Horizon, RabbitMQ, Quantum/NVP Plugin
                                              Ubuntu 12.04 Precise VM running on VMWare ESX

Cloud Compute Node: Nova Compute on Ubuntu Precise 12.04 in PV mode running on Xenserver 6.0

Problem:
I am trying to launch XVA image (1GB in size) using Dashboard or "nova boot", it stays in Status="Build" and Task="Spawning".
Log file (nova-compute.log) on compute node mentions downloading started from Glance server and throws two exceptions.
One of these exceptions is related to updating bandwidth usage cache. (InvalidOperation: quantize with one INF).
Other exception is thrown after failure of launching instance, when system is trying to delete instance. ( NotFound: No opaque_ref could be determined for 'instance-00000001'). On controller side log files for Glance shows that image download request is made and it has found image. After that, I don't see any data transfer related request.

I have attached following files:
1. nova.conf on controller node: http://pastebin.com/TEui5FXu
2. nova.conf on compute node: http://pastebin.com/XziWzSB5
3. nova-compute.log: http://pastebin.com/nCMnpTvK (Kept only important log messages)

I would appreciate if someone can take a look at these files and let me know if I am making any configuration mistakes on controller and compute node or is this some kind of bug?

Thanks
- Prasanna

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Armando Migliaccio (armando-migliaccio) said :
#1

How did you upload the image into Glance? If you did upload the bare .xva I am not sure it would work, because nova-compute is expecting at least a vhd file (as I saw from your compute log).

Revision history for this message
John Garbutt (johngarbutt) said :
#2

I have bug open for the delete of the instance failing:
https://bugs.launchpad.net/nova/+bug/962095

I think the fix is a swallowing an exception that doesn't mean anything, but I wanted to talk a closer look before I submitted a patch. Feel free to take a look yourself :-)

Armando's comment is key to your other issue:
How did you prepare an upload your image?

There are some tips on the wiki, but it looks like they could do to be fleshed out a bit:
http://wiki.openstack.org/XenServer/Development#Instance_Management

Revision history for this message
John Garbutt (johngarbutt) said :
#3

Oops, correcting the state to Information Request.

Revision history for this message
P Patil (ppats15) said :
#4

I have exported image of running instance from XenServer. Unfortunately, Openstack XenServer document isn't very detailed
about XenServer images (also I haven't dealt with XenServer a lot).
I will try to use new tips to see if I can successfully deploy guest instance.

Regarding, "delete instance" bug, could this be some kind of race condition. I have seen this stacktrace when launching guest instance fails with some error.
- Prasanna

Can you help with this problem?

Provide an answer of your own, or ask P Patil for more information if necessary.

To post a message you must log in.