Ask Your Question
0

libvirtError: internal error: No free USB ports

asked 2017-07-05 01:10:03 -0500

ch155260 gravatar image

updated 2017-07-05 03:54:05 -0500

I follow https://docs.openstack.org/ocata/install-guide-ubuntu/common/conventions.html (Openstack Ocata document) to build Openstack on Ubuntu 16.04.

When create VM will get error as http://imgur.com/a/cLTsb (image).

Compute node

/var/log/nova/nova-compute.log

2017-07-05 16:21:49.877 32621 ERROR nova.virt.libvirt.guest [req-c733cce0-b6b1-47e5-91b6-c1312b232f38 0d02b621c5a74a4c82e8487e67990135 23869adf315b4f4da8abc0793449688a - - -] Error defining a guest with XML: <domain type="qemu">
2017-07-05 16:21:49.879 32621 ERROR nova.virt.libvirt.driver [req-c733cce0-b6b1-47e5-91b6-c1312b232f38 0d02b621c5a74a4c82e8487e67990135 23869adf315b4f4da8abc0793449688a - - -] [instance: 02be3d00-78a3-4cc5-aa4d-d1b0d177d7e1] Failed to start libvirt guest
2017-07-05 16:21:50.374 32621 ERROR nova.compute.manager [instance: 02be3d00-78a3-4cc5-aa4d-d1b0d177d7e1] libvirtError: internal error: No free USB ports

Log file as https://drive.google.com/open?id=0B9CarZCRqXcXbU56NGJjZVNJRWs (link).

/etc/nova/nova.conf

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
force_dhcp_release=true
state_path=/var/lib/nova
enabled_apis=osapi_compute,metadata
transport_url = rabbit://openstack:111111@controller
my_ip = 10.1.111.151
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
compute_driver=libvirt.LibvirtDriver
compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler
[api]
auth_strategy = keystone
[api_database]
connection=sqlite:////var/lib/nova/nova.sqlite
[cells]
enable=False
[glance]
api_servers = http://controller:9292
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = 111111
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = 111111
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = 111111
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html
[wsgi]
api_paste_config=/etc/nova/api-paste.ini
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-07-05 02:33:26 -0500

Deepa gravatar image

Have a look at this link https://ask.openstack.org/en/question/57938/quickstart-demo-launching-instance-fails/ (https://ask.openstack.org/en/question...) ? Also how does your /etc/nova/nova.conf looks like ?

edit flag offensive delete link more

Comments

My compute node /etc/nova/nova.conf as above.

ch155260 gravatar imagech155260 ( 2017-07-05 03:54:50 -0500 )edit

Can you check status as below

sudo service libvirtd status, and restart the service and try to create a VM again .Do this on all nova-compute nodes

Deepa gravatar imageDeepa ( 2017-07-07 01:21:02 -0500 )edit

When service libvirtd restart and create VM have below message on libvirtd service. - service libvirtd status libvirtd[35454]: this function is not supported by the c libvirtd[35454]: Failed to get host CPU libvirtd[35454]: internal error: No free USB port

ch155260 gravatar imagech155260 ( 2017-07-10 02:41:38 -0500 )edit

I dont see a libvirtd section in your nova.conf Check for Finalize Installation section in https://docs.openstack.org/ocata/install-guide-ubuntu/nova-compute-install.html (https://docs.openstack.org/ocata/inst...)

Deepa gravatar imageDeepa ( 2017-07-10 04:58:08 -0500 )edit

[libvirt] cpu_mode=host-passthrough

ch155260 gravatar imagech155260 ( 2017-07-10 22:06:33 -0500 )edit
0

answered 2017-09-18 03:36:07 -0500

ericxu gravatar image

Please disable vnc and try:

[vnc] enabled = false

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

Stats

Asked: 2017-07-05 01:10:03 -0500

Seen: 1,155 times

Last updated: Sep 18 '17