[openstack-dev] XCP/Xenapi on Ubuntu Precise on folsom
John Garbutt
John.Garbutt at citrix.com
Mon Jan 21 13:49:55 UTC 2013
The admin guide tries to explain the current deployment architecture here:
http://docs.openstack.org/folsom/openstack-compute/admin/content/introduction-to-xen.html#xenapi-deployment-architecture
Feedback on how to make that clearer is very welcome.
The easiest way of getting this quickly setup, I think, is DevStack (see tools/xen directory). But, from memory, I had to explicitly set the XenServer URL and in the localrc file I had to set:
GI_ENABLE=false
The reason we deploy in a VM is:
- XenServer's Dom0 doesn't have python 2.6
- No need to modify XenServer's Dom0, easier to support at some point
- Follows in the direction Xen is heading: http://wiki.xen.org/wiki/Dom0_Disaggregation
Clearly XCP-XAPI doesn't have these restrictions around python 2.6. Also, it should be fairly easy to look at deploying nova-compute in dom0, with minimal code changes. Sadly I haven't had the time to look into doing that.
John
> -----Original Message-----
> From: Mate Lakat [mailto:mate.lakat at citrix.com]
> Sent: 18 January 2013 17:12
> To: OpenStack Development Mailing List
> Subject: Re: [openstack-dev] XCP/Xenapi on Ubuntu Precise on folsom
>
> Hi Matthew,
>
> I see it now. I guess it means, that you want to run nova compute in dom0,
> which is not supported at the moment. You need to create a VM on your
> XCP, and set up that VM as nova compute.
>
> So you will have your XCP, and inside that, you'll have a VM, running nova-
> compute, plus the usual Dom0.
>
> Mate
>
> On Fri, Jan 18, 2013 at 04:56:04PM +0000, Matthew Mosesohn wrote:
> > Mate,
> >
> > In this test environment I have only 1 compute node with only 1 instance of
> XCP running. What other hypervisor could https://127.0.0.1 refer to? Any
> more ideas?
> >
> >
> > On Fri, Jan 18, 2013 at 8:40 PM, Mate Lakat
> <mate.lakat at citrix.com<mailto:mate.lakat at citrix.com>> wrote:
> > Hi Matthew,
> >
> > I looked into the code, and this exception happens, when the compute
> > VM is not running on the same hypervisor to which the url points to.
> > Let me know if it helped.
> >
> > Mate
> >
> > On Fri, Jan 18, 2013 at 04:13:54PM +0000, Matthew Mosesohn wrote:
> > > Hi all,
> > >
> > > I was wondering if any of you have run into issues with using Xenapi/XCP
> on Folsom with Ubuntu Precise.
> > >
> > > I'm encountering issues with getting nova-compute to talk to xenapi
> correctly. It's not rejecting the request, but giving a strange error.
> > >
> > > Here is my nova.conf on compute node:
> > >
> sql_connection=mysql://USER:PASS@10.0.0.101/nova<http://USER:PASS@1
> 0
> > > .0.0.101/nova> network_manager=nova.network.manager.FlatManager
> > > image_service=nova.image.glance.GlanceImageService
> > > flat_network_bridge=xenbr0
> > > compute_driver=xenapi.XenAPIDriver
> > > xenapi_connection_url=https://127.0.0.1
> > > xenapi_connection_username=root
> > > xenapi_connection_password=PASS
> > > rescue_timeout=86400
> > > xenapi_inject_image=false
> > >
> > >
> > > Here is the error I'm seeing from nova-compute.log:
> > >
> > > 2013-01-17 06:33:54 AUDIT nova.service [-] Starting compute node
> > > (version 2012.2-LOCALBRANCH:L
> > >
> > > OCALREVISION)
> > >
> > > Traceback (most recent call last):
> > >
> > > File "/usr/lib/python2.7/dist-packages/eventlet/hubs/poll.py",
> > > line 97, in wait
> > >
> > > readers.get(fileno, noop).cb(fileno)
> > >
> > > File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py",
> > > line 192, in main
> > >
> > > result = function(*args, **kwargs)
> > >
> > > File "/usr/lib/python2.7/dist-packages/nova/service.py", line 132,
> > > in run_server
> > >
> > > server.start()
> > >
> > > File "/usr/lib/python2.7/dist-packages/nova/service.py", line 398,
> > > in start
> > >
> > > self.manager.init_host()
> > >
> > > File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py",
> > > line 272, in init_host
> > >
> > > self.driver.init_host(host=self.host)
> > >
> > > File
> > > "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line
> > > 164, in init_host
> > >
> > > vm_utils.ensure_correct_host(self._session)
> > >
> > > File
> > > "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vm_utils.py",
> > > line 2162, in ensure_c
> > >
> > > orrect_host
> > >
> > > raise Exception(_('This domU must be running on the host '
> > >
> > >
> > > Exception: This domU must be running on the host specified by
> > > xenapi_connection_url
> > >
> > > Any advice is appreciated.
> > >
> > > Best Regards,
> > > Matthew
> >
> > > _______________________________________________
> > > OpenStack-dev mailing list
> > > OpenStack-dev at lists.openstack.org<mailto:OpenStack-
> dev at lists.opensta
> > > ck.org>
> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> >
> > --
> > Mate Lakat
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org<mailto:OpenStack-
> dev at lists.openstack
> > .org>
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> --
> Mate Lakat
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list