Ask Your Question
0

nova hypervisor-list empty on Liberty

asked 2015-11-14 01:34:40 -0500

updated 2015-11-17 23:19:48 -0500

Hi Friend,

I have installed Liberty on 3 node Ubuntu. After configuration of Compute node I could see hypervisor list is empty..

Please find the below details as per my observation and suggest me for any possible solution on this.

nova hypervisor-list
+----+---------------------+-------+--------+
| ID | Hypervisor hostname | State | Status |
+----+---------------------+-------+--------+
+----+---------------------+-------+--------+

@compute:~# nova service-list
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-consoleauth | controller | internal | enabled | up    | 2015-11-14T07:17:53.000000 | -               |
| 2  | nova-scheduler   | controller | internal | enabled | up    | 2015-11-14T07:17:54.000000 | -               |
| 3  | nova-conductor   | controller | internal | enabled | up    | 2015-11-14T07:17:57.000000 | -               |
| 4  | nova-compute     | compute    | nova     | enabled | up    | 2015-11-14T07:18:02.000000 | -               |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+




/usr/bin/nova-compute --config-file=/etc/nova/nova.conf --config-file=/etc/nova/nova-compute.conf
    2015-11-17 23:06:29.815 12878 ERROR nova.compute.manager [req-56422772-48a6-4394-9d02-fbd5c1e886f1 - - - - -] No compute node record for host compute
    2015-11-17 23:06:29.818 12878 INFO nova.compute.resource_tracker [req-56422772-48a6-4394-9d02-fbd5c1e886f1 - - - - -] Auditing locally available compute resources for node compute.liberty.labs
    2015-11-17 23:06:29.820 12878 ERROR nova.compute.manager [req-56422772-48a6-4394-9d02-fbd5c1e886f1 - - - - -] Error updating resources for node compute.liberty.labs: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/instances'

Configuration file as per below reference link:

http://docs.openstack.org/liberty/ins... https://ask.openstack.org/en/question... http://wiki.libvirt.org/page/Failed_t...

In compute node the loaded the KVM kernel module and noticed the parameter has configured properly

@compute:~# lsmod | grep kvm
kvm_intel             151552  0
kvm                   479232  1 kvm_intel

 virsh -c qemu:///system list
 Id    Name                           State
----------------------------------------------------

ll /var/run/libvirt/libvirt-sock
srwxrwx--- 1 root libvirtd 0 Nov 14 00:50 /var/run/libvirt/libvirt-sock=

/etc/libvirt/libvirtd.conf
unix_sock_group = "libvirtd"

Nova Configuration "nova.conf" and "nova-compute.conf" files for compute node..

/etc/nova/nova.conf
[DEFAULT]
verbose = True
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 192.168.100.3
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[oslo_messaging_rabbit]
rabbit_host = 192.168.100.2
rabbit_userid = openstack
rabbit_password = openstack
[keystone_authtoken]
auth_uri = http://192.168.100.2:5000
auth_url = http://192.168.100.2:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = nova
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
libvirt_use_virtio_for_bridges=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
enabled_apis=osapi_compute,metadata
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 192.168.100.3
novncproxy_base_url = http://192.168.100.2:6080/vnc_auto.html
[glance]
host = 192.168.100.2
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[neutron]
url = http://192.168.100.2:9696
auth_url = http://192.168.100.2:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
[cinder]
os_region_name = RegionOne

/etc/nova/nova-compute.conf
[DEFAULT]
compute_driver=libvirt.LibvirtDriver
[libvirt]
virt_type=qemu
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-09 15:20:10 -0500

Hi,

I'm facing the same issue. I've exactly the same error with the same configuration. Did you solve your issue ?

If yes, could you please share your fix ?

Thanks.

UPDATE

I found the issue (for mine).

The access_drivers in the /etc/libvirt/libvirtd.conf was configured to [ "polkit" ]. I'm not using ACL so, I just removed it and restart libvirtd.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-11-14 01:34:40 -0500

Seen: 5,852 times

Last updated: Nov 17 '15