vhd images not launched on xcp-xapi

Asked by davidpenta

hello I have openstack running on a xcp-xapi(ubuntu 12.04). I used devstack for the installation.
all nova services are working fine but I cannot create instances, I receive the following error:

http://paste.openstack.org/show/32796/

and here is my nova.conf file :

http://paste.openstack.org/show/32797/

Thanks in advance
David

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
John Garbutt (johngarbutt) said :
#1

Looks like the xapi plugins are not installed correctly.
How did you invoke devstack?

On 5 March 2013 16:11, davidpenta <email address hidden> wrote:
> New question #223470 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/223470
>
> hello I have openstack running on a xcp-xapi(ubuntu 12.04). I used devstack for the installation.
> all nova services are working fine but I cannot create instances, I receive the following error:
>
> http://paste.openstack.org/show/32796/
>
> and here is my nova.conf file :
>
> http://paste.openstack.org/show/32797/
>
> Thanks in advance
> David
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).

Revision history for this message
davidpenta (pentadavid) said :
#2

hey john,
thanks for your reply

I just downloaded devstack from git and ran the script, and everything else was done automatically..

I remember copying the xapi plugins manually, since the script was complaining about overwritting just copied files

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

OK. I would double check the plugins have the execute bit set. Also, what
directory did you copy them into?

It would be good to see the error that came up, that used to work on ubuntu.

John
On Mar 6, 2013 12:50 AM, "davidpenta" <email address hidden>
wrote:

> Question #223470 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/223470
>
> davidpenta posted a new comment:
> hey john,
> thanks for your reply
>
> I just downloaded devstack from git and ran the script, and everything
> else was done automatically..
>
> I remember copying the xapi plugins manually, since the script was
> complaining about overwritting just copied files
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).
>

Revision history for this message
davidpenta (pentadavid) said :
#4

the plugins are in /usr/lib/xcp/plugins/ ,
the executable bit is set for all of them...

I was thinking the problem could come from the way I created the VHD image; I installed ubuntu on virtual box with full hard driver and I just copied the vhd file(I hope it is the right way to do it ) .

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

Ah, sorry, I miss read the trace, it looks like the plugin is working
well, just it can't fetch your image, for some reason.

Can you launch the cirros image that devstack installed for your?

John

On 6 March 2013 09:45, davidpenta <email address hidden> wrote:
> Question #223470 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/223470
>
> davidpenta posted a new comment:
> the plugins are in /usr/lib/xcp/plugins/ ,
> the executable bit is set for all of them...
>
> I was thinking the problem could come from the way I created the VHD
> image; I installed ubuntu on virtual box with full hard driver and I
> just copied the vhd file(I hope it is the right way to do it ) .
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).

Revision history for this message
davidpenta (pentadavid) said :
#6

yes I could create an instance based on that image (at last something is working :) ).
But I can't get whats the problem with the vhd imageCan you launch the cirros image that devstack installed for you

Revision history for this message
davidpenta (pentadavid) said :
#7

weird, the VM will run for some minute , dashboard shows me the VM is in "spawning state", I can see the VM on my xen server and after a while the VM is deleted from the xen server and the state is changed to "error" on dashboard.

here is what the log looks like:
http://paste.openstack.org/show/32840/

Revision history for this message
davidpenta (pentadavid) said :
#8

hey John, I could make an instance run with the default cirros image provided by devstack, by deactivating the xenapi agent.
so the setup is working. My point now would be how to build a proper image for my xcp-xapi hypervisor?

Many thanks for your help this far

David

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

Hmm, the agent in the image should be totally optional, so that is odd. That might be a bug you want to raise. Looks that the reset network call is cause the issue there.

To build an image, the simplest way I know is to create a VM, using XCP-XAPI, making sure you have an EXT SR. You can then install all the tools and other things you might want (cloud-init). Once you are happy, you can find the VHD file for that VM upload it to glance (via cli or horizon).

Can you help with this problem?

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

To post a message you must log in.