<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hi, </span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I am trying to add XenServer as a compute node, but failed to connect to the controller.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
For the controller node, I have Ubuntu Server 12.04 with 1 harddisk and 1 NIC.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I followed the guide on <a href="http://docs.openstack.org/trunk/install-guide/install/apt/content/" target="_blank">http://docs.openstack.org/trunk/install-guide/install/apt/content/</a> until the dashboard part (I haven't done the network part.). Everything works fine. (and I tested with another machine with KVM as the compute node, it works, then I want to replace KVM with XenServer).</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>For the compute node, I installed a fresh XenServer 6.2, with SP1 patch installed. It has 1 harddisk and 1 NIC. Then I try to follow the guide on <a href="https://github.com/Donelle/HowTo-Openstack-ComputeNode-Setup" target="_blank">https://github.com/Donelle/HowTo-Openstack-ComputeNode-Setup</a> without the network part. However, seems the controller node and compute node are not connected. </div>
<div><br></div><div>The tutorial on devstack is helpful, but it is use XenServer as a single node. Is there a easy way to configure it just as a compute node with nova-compute and nova-network?</div><div><br></div><div>Here is the nova.conf on my compute node, </div>
<div>#####################nova.conf#############</div><div><div>[DEFAULT]</div><div>dhcpbridge_flagfile=/etc/nova/nova.conf</div><div>dhcpbridge=/usr/bin/nova-dhcpbridge</div><div>logdir=/var/log/nova</div><div>state_path=/var/lib/nova</div>
<div>lock_path=/var/lock/nova</div><div>force_dhcp_release=True</div><div>iscsi_helper=tgtadm</div><div>libvirt_use_virtio_for_bridges=True</div><div># connection_type=xapi</div><div>root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf</div>
<div><br></div><div>verbose=True</div><div>debug = True</div><div><br></div><div>ec2_private_dns_show_ip=True</div><div>api_paste_config=/etc/nova/api-paste.ini</div><div>volumes_path=/var/lib/nova/volumes</div><div>enabled_apis=ec2,osapi_compute,metadata</div>
<div><br></div><div>rpc_backend = nova.rpc.impl_kombu</div><div>rabbit_host = controller</div><div>rabbit_password = RABBIT_PASS</div><div><br></div><div>glance_host=controller</div><div>glance_api_servers = controller:9292</div>
<div><br></div></div><div><div>virt_driver=xenserver</div><div>libvirt_type=xen</div><div>compute_driver=xenapi.XenAPIDriver</div><div>xenapi_connection_url=compute1</div><div>xenapi_connection_username=root</div><div>xenapi_connection_password=passwd</div>
<div><br></div><div>my_ip = OpenStack</div><div>vnc_enabled=True</div><div>vncserver_listen = compute1</div><div>vncserver_proxyclient_address = compute1</div><div>novncproxy_base_url=<a href="http://controller:6080/vnc_auto.html" target="_blank">http://controller:6080/vnc_auto.html</a></div>
<div><br></div><div>scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler</div><div><br></div><div>network_manager=nova.network.manager.FlatDHCPManager<br></div><div># firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver</div>
<div>network_size=254</div><div>allow_same_net_traffic=False</div><div>multi_host=True</div><div>send_arp_for_ha=True</div><div>share_dhcp_address=True</div><div>force_dhcp_release=True</div><div><br></div><div>network_manager = nova.network.manager.FlatDHCPManager</div>
<div>firewall_driver = nova.virt.firewall.NoopFirewallDriver</div><div>xenapi_disable_agent = True</div><div><br></div><div>my_ip = 172.16.21.6</div><div><br></div><div>flat_network_bridge=br100</div><div>flat_interface=eth0</div>
<div>public_interface=eth0</div><div><br></div><div>auth_strategy=keystone<br></div></div><div><br></div><div><div>[database]</div><div># The SQLAlchemy connection string used to connect to the database</div><div>connection = mysql://nova:NOVA_DBPASS@controller/nova</div>
<div><br></div><div>[keystone_authtoken]</div><div>auth_host = controller</div><div>auth_port = 35357</div><div>auth_protocol = http</div><div>admin_tenant_name = service</div><div>admin_user = nova</div><div>admin_password = NOVA_PASS</div>
</div><div>#########################################</div><div><br></div><div>and the nova-compute.conf file.</div><div><br></div><div>##############nova-compute.conf############</div><div><div>[DEFAULT]</div><div><br></div>
<div>libvirt_type=xen</div><div>compute_driver=xenapi.XenAPIDriver</div><div>xenapi_connection_url=compute1</div><div>xenapi_connection_username=root</div><div>xenapi_connection_password=123123</div><div>xenapi_vif_driver=nova.virt.xenapi.vif.XenAPIOpenVswitchDriver</div>
<div>xenapi_ovs_integration_bridge=xapi0</div><div>xenapi_torrent_images=none</div><div>sr_matching_filter=default-sr:true</div></div><div>#########################################</div><div><br></div><div><br></div><div>
Thanks in advance!</div></div><div><br></div>-- <br>Sisu Xi, PhD Candidate<br><br><a href="http://www.cse.wustl.edu/~xis/" target="_blank">http://www.cse.wustl.edu/~xis/</a><br>Department of Computer Science and Engineering<br>
Campus Box 1045<br>Washington University in St. Louis<br>One Brookings Drive<br>St. Louis, MO 63130
</div>