Ask Your Question
0

Suddenly, Nova failed to lunch an instance

asked 2016-09-07 20:56:30 -0500

fifi gravatar image

updated 2016-09-08 22:20:37 -0500

I have a four node openstack juno (1 controller, 1 network , and 2 compute nodes). It was working with no problem. It suddenly stopped lunching new vms. Whenever I'm gonna lunch a new vm, I face with the following error messages:

    Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-3adf1908-70ae-4dea-ab1d-4659fa45b383)


Error: Unable to launch instance named "vm_test".

In this site, there are many posts regarding this issue. I almost tried all of them and they didn't work for me. I checked log files, nova config, glance database, different port status, reinstalling rabbitmq, etc. and still couldn't find what is wrong.

I appreciate if anybody can help.

Here is my nova config on controller:

[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
libvirt_use_virtio_for_bridges=True
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = service_pass
auth_strategy = keystone
my_ip = 10.0.0.11
vncserver_listen = 10.0.0.11
vncserver_proxyclient_address = 10.0.0.11
verbose = True
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

service_metadata_proxy = True
metadata_proxy_shared_secret = METADATA_SECRET

[database]
connection = mysql://nova:NOVA_DBPASS@controller/nova

[keystone_authtoken]
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = nova
admin_password = service_pass

[neutron]
url = http://controller:9696
auth_strategy = keystone
admin_auth_url = http://controller:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = service_pass

[glance]
host = controller

Here is my nova.api log on controller: [nova compute log files did not show anything abnormal]

2016-09-07 20:48:26.383 20043 INFO nova.osapi_compute.wsgi.server [req-04b95aca-82e9-40ca-80a4-983f78dec9f3 None] 10.0.0.11 "GET /v2/3820f4ef246a4859afbcda121114844b/servers/detail?project_id=3820f4ef246a4859afbcda121114844b HTTP/1.1" status: 200 len: 211 time: 0.1374729
2016-09-07 20:48:26.394 20043 INFO nova.osapi_compute.wsgi.server [req-4c16b867-e508-4c98-8dbf-c1a31aaaebf4 None] 10.0.0.11 "GET /v2/3820f4ef246a4859afbcda121114844b/os-keypairs HTTP/1.1" status: 200 len: 212 time: 0.0068040
2016-09-07 20:48:26.578 20050 INFO nova.osapi_compute.wsgi.server [req-827d3318-7f9d-47fb-a399-979700d3f739 None] 10.0.0.11 "GET /v2/3820f4ef246a4859afbcda121114844b/extensions HTTP/1.1" status: 200 len: 22227 time: 0.0785420
2016-09-07 20:48:27.247 20065 ERROR nova.api.openstack [req-94a5eaab-cce7-4b26-b895-a83edf02bb5c None] Caught error: id
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack Traceback (most recent call last):
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 124, in __call__
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack     return req.get_response(self.application)
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack     application, catch_exc_info=False)
2016-09-07 20:48:27.247 20065 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2016-09-07 ...
(more)
edit retag flag offensive close merge delete

Comments

Looked upon the logs , Can you try to upload a cirros image and boot up that.

Mohit gravatar imageMohit ( 2016-09-07 22:53:04 -0500 )edit

I can upload cirros image but cannot boot a vm up based on that image. Actually the problem started with glance. The glance deleted an image but show it in horizon image list. I solved that problem by manipulating glance database. Now, glance is ok but i cannot lunch a vm.

fifi gravatar imagefifi ( 2016-09-07 23:14:08 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-09-15 13:01:38 -0500

fifi gravatar image

updated 2016-09-15 13:22:50 -0500

It was a glance client problem. It couldn't pass the image id to nova correctly

edit flag offensive delete link more
-1

answered 2016-09-08 08:37:22 -0500

Sudhin gravatar image

Hi,

Just try this command on your both compute nodes and controller node and make sure that all your openstack agents are active.

First source your terminal with admin privilege and then run this command.

neutron-agent list

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

1 follower

Stats

Asked: 2016-09-07 20:56:30 -0500

Seen: 156 times

Last updated: Sep 15 '16