Nova instance fail to launch: "Unexpected API Error."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
kolla |
Invalid
|
Low
|
Unassigned |
Bug Description
This is a Kolla installation of openstack. The docker images build well and some services work great; e.g cinder, glance and neutron.
Nova seems to have a problem that is prevent provisioning instances. The manila-api logs below says:
"Returning 500 to user: Unexpected API Error. Please report this at http://
<class 'oslo_messaging
1. The GIT commit level is:
lsorrillo@
commit 90321d0497f14bd
Merge: 328a7e8 a789346
Author: Jenkins <email address hidden>
Date: Sun Mar 27 23:42:47 2016 +0000
Merge "Fix gate to use world writeable docker socket"
lsorrillo@
RPM version:
lsorrillo@ptest:~$
lsorrillo@ptest:~$ docker exec -ti nova_api bash
bash-4.2$
bash-4.2$
bash-4.2$
bash-4.2$ rpm -qa | grep nova
python-
openstack-
python-
openstack-
bash-4.2$
2.
The following error is seen in the nova-api.log:
2016-03-28 19:53:40.086 29 DEBUG oslo.messaging.
2016-03-28 19:53:40.132 29 DEBUG oslo.messaging.
2016-03-28 19:53:40.148 29 DEBUG oslo.messaging.
2016-03-28 19:53:40.151 29 DEBUG oslo.messaging.
2016-03-28 19:53:40.205 29 DEBUG oslo.messaging.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.216 29 ERROR nova.api.
2016-03-28 19:54:40.229 29 INFO nova.api.
<class 'oslo_messaging
2016-03-28 19:54:40.231 29 DEBUG nova.api.
<class 'oslo_messaging
2016-03-28 19:54:40.237 29 INFO nova.osapi_
File "/usr/lib/
write(
File "/usr/lib/
_writelines
File "/usr/lib64/
self.flush()
File "/usr/lib64/
self.
File "/usr/lib/
tail = self.send(data, flags)
File "/usr/lib/
total_sent += fd.send(
error: [Errno 104] Connection reset by peer
2016-03-28 19:54:40.238 29 INFO nova.osapi_
3. git clone https:/
git checkout -b ltshome
and make the following changes:
lsorrillo@
# On branch ltshome
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: ansible/
# modified: etc/kolla/
# modified: etc/kolla/
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# etc/kolla/
no changes added to commit (use "git add" and/or "git commit -a")
lsorrillo@
Here are diffs of the modified files above:
lsorrillo@
diff --git a/ansible/
index a0ab95a..6ec956e 100644
--- a/ansible/
+++ b/ansible/
@@ -176,7 +176,7 @@ enable_rabbitmq: "yes"
# Additional optional OpenStack services are specified here
enable_ceph: "no"
enable_ceph_rgw: "no"
-enable_cinder: "no"
+enable_cinder: "yes"
enable_heat: "yes"
enable_horizon: "yes"
enable_swift: "no"
@@ -184,9 +184,9 @@ enable_murano: "no"
enable_ironic: "no"
enable_magnum: "no"
enable_mistral: "no"
-enable_
+enable_
enable_mongodb: "no"
-enable_manila: "no"
+enable_manila: "yes"
ironic_
neutron_
lsorrillo@
lsorrillo@
diff --git a/etc/kolla/
index ec26126..2afea72 100644
--- a/etc/kolla/
+++ b/etc/kolla/
@@ -55,14 +55,14 @@ kolla_internal_
# This interface is what all your api services will be bound to by default.
# Additionally, all vxlan/tunnel and storage network traffic will go over this
# interface by default. This interface must contain an IPv4 address.
-network_interface: "eth0"
+network_interface: "enp2s0f1"
# These can be adjusted for even more customization. The default is the same as
# the 'network_
-#kolla_
-#api_interface: "{{ network_interface }}"
-#storage_
-#tunnel_interface: "{{ network_interface }}"
+kolla_
+api_interface: "{{ network_interface }}"
+storage_interface: "{{ network_interface }}"
+tunnel_interface: "{{ network_interface }}"
# This is the raw interface given to neutron as its external network port. Even
# though an IP address can exist on this interface, it will be unusable in most
@@ -80,7 +80,7 @@ neutron_
# To provide encryption and authentication on the kolla_external_
# TLS can be enabled. When TLS is enabled, certificates must be provided to
# allow clients to perform authentication.
-#kolla_
+kolla_
#kolla_
@@ -89,13 +89,13 @@ neutron_
######
# Use these options to set the various log levels across all OpenStack projects
# Valid options are [ True, False ]
-#openstack_
+openstack_
# Valid options are [ novnc, spice ]
#nova_console: "novnc"
# OpenStack services can be enabled or disabled with these options
-#enable_cinder: "no"
+enable_cinder: "yes"
#enable_heat: "yes"
#enable_magnum: "no"
#enable_swift: "no"
@@ -118,7 +118,7 @@ neutron_
######
# Manila - Shared File Systems Options
######
-#manila_
+manila_
######
lsorrillo@
git diff etc/kolla/
xxx
xxx
description: | updated |
summary: |
- Nova intance fail to launch: Unexpected API Error. + Nova instance fail to launch: "Unexpected API Error." |
Changed in kolla: | |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → 2.0.0 |
milestone: | 2.0.0 → newton-1 |
Changed in kolla: | |
milestone: | newton-1 → newton-2 |
status: | Confirmed → Triaged |
status: | Triaged → Confirmed |
Changed in kolla: | |
milestone: | newton-2 → newton-3 |
Changed in kolla: | |
milestone: | newton-3 → newton-rc1 |
Changed in kolla: | |
milestone: | newton-rc1 → newton-rc2 |
Changed in kolla: | |
importance: | High → Low |
Changed in kolla: | |
status: | Won't Fix → Incomplete |
no longer affects: | kolla/mitaka |
Changed in kolla: | |
status: | Incomplete → Invalid |
I moved this over to Kolla since this looks specific to that project and I'm not working in that repo, so I can't reproduce this. If this turns out to be a Nova specific issue, please update the bug with Nova-specific reproduction steps and we'll take a look at it.