[Openstack] Unable to see xen in controller

Jitendra Bhaskar jeetuindian at gmail.com
Fri Aug 23 11:47:02 UTC 2013


Hi All,

I have openstack(Grizzly) setup with two compute , one network(quantum) and
one controller. I configured one more compute over XCP(1.6). Able to see in
control with commant : nova hypervisor-list, but I am not getting correct
vcpus, diskspace and memory info.

Attached file contains : select * from compute_nodes; from nova db .

Nova.conf on xen-compute node

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
#connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
libvirt_type=xen

# General
verbose=True
my_ip=10.10.10.13
rabbit_host=10.10.10.10
rabbit_password=password

auth_strategy=keystone
ec2_host=10.10.10.10
ec2_url=http://10.10.10.10:8773/services/Cloud

# Networking
#libvirt_use_virtio_for_bridges=True
network_api_class=nova.network.quantumv2.api.API
quantum_url=http://10.10.10.10:9696
quantum_auth_strategy=keystone
quantum_admin_tenant_name=service
quantum_admin_username=quantum
quantum_admin_password=password
quantum_admin_auth_url=http://10.10.10.10:35357/v2.0
xenapi_ovs_integration_bridge=br-int

# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=quantum

# Compute
compute_driver=xenapi.XenAPIDriver
xenapi_connection_url=http://192.168.1.21
xenapi_connection_username=root
xenapi_connection_password=pramati123
connection_type=xapi

# Cinder
volume_api_class=nova.volume.cinder.API

# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService

# novnc
vnc_enabled=true
vncserver_proxyclient_address=10.10.10.13
novncproxy_base_url=http://192.168.2.200:6080/vnc_auto.html
vncserver_listen=0.0.0.0


-- 
* Thanks & Regards   *
*Jitendra*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130823/d83b3f1a/attachment.html>
-------------- next part --------------
mysql> select * from compute_nodes;
+---------------------+---------------------+------------+----+------------+-------+-----------+----------+------------+----------------+---------------+-----------------+--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+-------------+--------------+------------------+-------------+---------------------+---------+
| created_at          | updated_at          | deleted_at | id | service_id | vcpus | memory_mb | local_gb | vcpus_used | memory_mb_used | local_gb_used | hypervisor_type | hypervisor_version | cpu_info                                                                                                                                                                                                                                                 | disk_available_least | free_ram_mb | free_disk_gb | current_workload | running_vms | hypervisor_hostname | deleted |
+---------------------+---------------------+------------+----+------------+-------+-----------+----------+------------+----------------+---------------+-----------------+--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+-------------+--------------+------------------+-------------+---------------------+---------+
| 2013-08-08 09:59:26 | 2013-08-23 10:22:49 | NULL       |  3 |          6 |     8 |      7986 |      263 |          2 |           3072 |            20 | QEMU            |            1000000 | {"vendor": "Intel", "model": "core2duo", "arch": "x86_64", "features": ["lahf_lm", "dca", "pdcm", "xtpr", "cx16", "tm2", "vmx", "ds_cpl", "dtes64", "pbe", "tm", "ht", "ss", "acpi", "ds"], "topology": {"cores": 4, "threads": 1, "sockets": 2}}        |                  220 |        4914 |          243 |                0 |           2 | c01                 |       0 |
| 2013-08-10 10:47:10 | 2013-08-23 10:22:25 | NULL       |  4 |          7 |     4 |      7986 |      535 |          2 |           2560 |            20 | QEMU            |            1000000 | {"vendor": "Intel", "model": "core2duo", "arch": "x86_64", "features": ["lahf_lm", "dca", "pdcm", "xtpr", "cx16", "tm2", "est", "vmx", "ds_cpl", "dtes64", "pbe", "tm", "ht", "ss", "acpi", "ds"], "topology": {"cores": 2, "threads": 1, "sockets": 2}} |                  475 |        5426 |          515 |                0 |           1 | c02                 |       0 |
| 2013-08-23 10:17:52 | 2013-08-23 10:22:19 | NULL       |  7 |         10 |     1 |      3045 |       29 |          0 |            512 |             0 | QEMU            |            1000000 | {"vendor": null, "model": null, "arch": "x86_64", "features": [], "topology": {"cores": 1, "threads": 1, "sockets": 1}}                                                                                                                                  |                   26 |        2533 |           29 |                0 |           0 | c01-xen |       0 |
+---------------------+---------------------+------------+----+------------+-------+-----------+----------+------------+----------------+---------------+-----------------+--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+-------------+--------------+------------------+-------------+---------------------+---------+
3 rows in set (0.00 sec)







More information about the Openstack mailing list