[Openstack] Turn a XenServer AllInOne Node into a Compute Node?

Sisu Xi xisisu at gmail.com
Mon Jan 20 23:07:17 UTC 2014


Hi, Bob:

Seems the last email did not go through due to large attachment. I
compressed the log and is re-sending them now.

Thanks for your reply and help!

I am using a fresh XenServer 6.2 with SP1, and with the
devstack-2013_12_19.xva and novaplugins-2013_12_19.iso found on the website.

I have another machine works as the controller, where I followed the guide
to install OpenStack Havana on Ubuntu Server 12.04.

I followed the script and changed my setting in the localrc, it is now:
************
# Passwords
MYSQL_PASSWORD=MYSQL_PASS
SERVICE_TOKEN=citrix
ADMIN_PASSWORD=citrix
SERVICE_PASSWORD=SERVICE_PASS
RABBIT_PASSWORD=RABBIT_PASS
GUEST_PASSWORD=citrix
SWIFT_HASH="66a3d6b56c1f479c8b4e70ab5c2000f5"

DATABASE_TYPE=mysql
connection = mysql://nova:NOVA_DBPASS@172.16.20.128/nova

SERVICE_HOST=172.16.20.128
MYSQL_HOST=172.16.20.128
RABBIT_HOST=172.16.20.128
KEYSTONE_AUTH_HOST=172.16.20.128
GLANCE_HOSTPORT=172.16.20.128:9292

# Use xvdb for backing cinder volumes
XEN_XVDB_SIZE_GB=20
VOLUME_BACKING_DEVICE=/dev/xvdb

# Nice short names, so we could export an XVA
VM_BRIDGE_OR_NET_NAME="osvmnet"
PUB_BRIDGE_OR_NET_NAME="ospubnet"
XEN_INT_BRIDGE_OR_NET_NAME="osintnet"

# As we have nice names, specify FLAT_NETWORK_BRIDGE
# This requires https://review.openstack.org/48296 to land
# FLAT_NETWORK_BRIDGE="osvmnet"

# Do not use secure delete
CINDER_SECURE_DELETE=False

# Compute settings
EXTRA_OPTS=("xenapi_disable_agent=True")
API_RATE_LIMIT=False
VIRT_DRIVER=xenserver

# Use a XenServer Image and the standard one
# The XenServer image is faster, however tempest requires the uec files
IMAGE_URLS="
https://github.com/downloads/citrix-openstack/warehouse/cirros-0.3.0-x86_64-disk.vhd.tgz,http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-uec.tar.gz
"

DEFAULT_IMAGE_NAME="cirros-0.3.0-x86_64-disk"

# OpenStack VM settings
OSDOMU_VDI_GB=40

# Exercise settings
ACTIVE_TIMEOUT=500
TERMINATE_TIMEOUT=500

# Increase boot timeout for neutron tests:
BOOT_TIMEOUT=500

# DevStack settings
LOGFILE=/tmp/devstack/log/stack.log
SCREEN_LOGDIR=/tmp/devstack/log/

# Turn on verbosity (password input does not work otherwise)

# XenAPI specific

MULTI_HOST=1

# Skip boot from volume exercise
SKIP_EXERCISES="boot_from_volume"

ENABLED_SERVICES=n-cpu,n-net,n-api

# XEN_FIREWALL_DRIVER=nova.virt.xenapi.firewall.Dom0IptablesFirewallDriver
XEN_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver

# 9 Gigabyte for object store
SWIFT_LOOPBACK_DISK_SIZE=9000000

# Additional Localrc parameters here
# Set ubuntu mirror and proxy
BM_POSEUR_REPO=https://github.com/citrix-openstack-build/bm_poseur.git
BM_POSEUR_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
CEILOMETERCLIENT_REPO=
https://github.com/citrix-openstack-build/python-ceilometerclient.git
CEILOMETERCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
CEILOMETER_REPO=https://github.com/citrix-openstack-build/ceilometer.git
CEILOMETER_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
CINDERCLIENT_REPO=
https://github.com/citrix-openstack-build/python-cinderclient.git
CINDERCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
CINDER_REPO=https://github.com/citrix-openstack-build/cinder.git
CINDER_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
DEVSTACK_REPO=https://github.com/citrix-openstack-build/devstack.git
DEVSTACK_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
GLANCECLIENT_REPO=
https://github.com/citrix-openstack-build/python-glanceclient.git
GLANCECLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
GLANCE_REPO=https://github.com/citrix-openstack-build/glance.git
GLANCE_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
HEATCLIENT_REPO=
https://github.com/citrix-openstack-build/python-heatclient.git
HEATCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
HEAT_REPO=https://github.com/citrix-openstack-build/heat.git
HEAT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
HORIZON_REPO=https://github.com/citrix-openstack-build/horizon.git
HORIZON_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
IRONICCLIENT_REPO=
https://github.com/citrix-openstack-build/python-ironicclient.git
IRONICCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
IRONIC_REPO=https://github.com/citrix-openstack-build/ironic.git
IRONIC_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
KEYSTONECLIENT_REPO=
https://github.com/citrix-openstack-build/python-keystoneclient.git
KEYSTONECLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
KEYSTONE_REPO=https://github.com/citrix-openstack-build/keystone.git
KEYSTONE_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
NEUTRONCLIENT_REPO=
https://github.com/citrix-openstack-build/python-neutronclient.git
NEUTRONCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
NEUTRON_REPO=https://github.com/citrix-openstack-build/neutron.git
NEUTRON_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
NOVACLIENT_REPO=
https://github.com/citrix-openstack-build/python-novaclient.git
NOVACLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
NOVA_REPO=https://github.com/citrix-openstack-build/nova.git
NOVA_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
NOVNC_REPO=https://github.com/citrix-openstack-build/noVNC.git
NOVNC_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
OPENSTACKCLIENT_REPO=
https://github.com/citrix-openstack-build/python-openstackclient.git
OPENSTACKCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
OSLOCFG_REPO=https://github.com/citrix-openstack-build/oslo.config.git
OSLOCFG_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
OSLOMSG_REPO=https://github.com/citrix-openstack-build/oslo.messaging.git
OSLOMSG_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
PBR_REPO=https://github.com/citrix-openstack-build/pbr.git
PBR_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
PECAN_REPO=https://github.com/citrix-openstack-build/pecan.git
PECAN_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
REQUIREMENTS_REPO=https://github.com/citrix-openstack-build/requirements.git
REQUIREMENTS_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
RYU_REPO=https://github.com/citrix-openstack-build/ryu.git
RYU_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
SPICE_REPO=https://github.com/citrix-openstack-build/spice-html5.git
SPICE_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
SWIFT3_REPO=https://github.com/citrix-openstack-build/swift3.git
SWIFT3_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
SWIFTCLIENT_REPO=
https://github.com/citrix-openstack-build/python-swiftclient.git
SWIFTCLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
SWIFT_REPO=https://github.com/citrix-openstack-build/swift.git
SWIFT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
TEMPEST_REPO=https://github.com/citrix-openstack-build/tempest.git
TEMPEST_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
TROVECLIENT_REPO=
https://github.com/citrix-openstack-build/python-troveclient.git
TROVECLIENT_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
TROVE_REPO=https://github.com/citrix-openstack-build/trove.git
TROVE_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
WSME_REPO=https://github.com/citrix-openstack-build/wsme.git
WSME_BRANCH=refs/citrix-builds/jenkins-os-ctx-test-1046
NOVA_ZIPBALL_URL="
https://github.com/citrix-openstack-build/nova/archive/refs/citrix-builds/jenkins-os-ctx-test-1046.zip
"
NEUTRON_ZIPBALL_URL="
https://github.com/citrix-openstack-build/neutron/archive/refs/citrix-builds/jenkins-os-ctx-test-1046.zip
"
FLAT_NETWORK_BRIDGE=osvmnet
UBUNTU_INST_RELEASE=saucy
UBUNTU_INST_TEMPLATE_NAME=devstack_saucy
INSTALL_TESTONLY_PACKAGES=True

XENAPI_CONNECTION_URL="https://169.254.0.1"
VNCSERVER_PROXYCLIENT_ADDRESS=169.254.0.1

OFFLINE=true
VERBOSE=true
XENAPI_PASSWORD=456789
************

After that, I ran the unstack.sh, and then run.sh under /opt/stack/.

The /tmp/devstack/log/stack.log.summary says:
stack.sh log /tmp/devstack/log/stack.log.2014-01-20-224552
Installing package prerequisites
Installing OpenStack project source
Configuring Nova
Starting Nova API
Starting Nova
WARNING: EXTRA_OPTS is used
stack.sh completed in 22 seconds.

However, I still cannot see the compute node from my controller node.

I am also attaching the log files from stack.

Can you help me with this?

Thanks very much!


On Mon, Jan 20, 2014 at 3:10 AM, Bob Ball <bob.ball at citrix.com> wrote:

>  Hi Sisu,
>
>
>
> You can easily convert a VM running all services in devstack to one
> running just the services needed for compute (nova-compute and nova-network
> in the case of the stock method for setting up devstack with XenServer).
>
>
>
> There is a script at
> https://github.com/citrix-openstack/qa/blob/master/connect-devstack-local.sh- download this to the devstack instance you want to just run compute
> services, and run it passing the IP address of the devstack that hosts the
> rest of the services.
>
> If you’ve got a split of where the other services are, check out the
> details in the script – it’s actually quite simple to change hosts in the
> localrcs.
>
>
>
> Note that this will not convert an “AllInOne” devstack to a standalone
> compute node – it will still be using devstack, but just configuring it to
> run only the compute services.
>
>
>
> Thanks,
>
>
>
> Bob
>
>
>
> *From:* Sisu Xi [mailto:xisisu at gmail.com]
> *Sent:* 17 January 2014 17:31
> *To:* openstack at lists.openstack.org
> *Subject:* [Openstack] Turn a XenServer AllInOne Node into a Compute Node?
>
>
>
> Hi,
>
>
>
> I was having trouble configuring a XenServer Node into an computer Node,
> the tutorial/devstack are all for using XenServer as a single allinone node.
>
>
>
> For example, I found this really nice VM image from citrix at:
>
> http://downloads.vmd.citrix.com/OpenStack/
>
> which includes pre-build XenServer patch and images. I can just import
> them into XenServer and everything works.
>
>
>
> Is there any easy way to turn this AllInOne XenServer Node into just a
> compute node? Of course I have another machine works as the controller
> node, installed following the OpenStack installation guide.
>
>
>
> Thanks very much!
>
>
>
> Sisu
>
>
>
>
>
> --
> Sisu Xi, PhD Candidate
>
> http://www.cse.wustl.edu/~xis/
> Department of Computer Science and Engineering
> Campus Box 1045
> Washington University in St. Louis
> One Brookings Drive
> St. Louis, MO 63130
>



-- 
Sisu Xi, PhD Candidate

http://www.cse.wustl.edu/~xis/
Department of Computer Science and Engineering
Campus Box 1045
Washington University in St. Louis
One Brookings Drive
St. Louis, MO 63130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140120/48903147/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devstack.zip
Type: application/zip
Size: 93171 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140120/48903147/attachment.zip>


More information about the Openstack mailing list