Unexpected API Error is returned, when trying to add fixed IP to an instance in ERROR state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
A negative test case returns an Unexpected API Error, while there is more detailed message in nova-api.log:
2016-01-12 15:12:49.357 22446 ERROR nova.api.
2016-01-12 15:12:49.391 22446 INFO nova.osapi_
Steps to reproduce:
1. Create net01: net01__subnet, 192.168.1.0/24:
neutron net-create net01
neutron subnet-create net01 192.168.1.0/24 --enable-dhcp --name net01__subnet
2. Boot an instance vm1 in net01 with incorrect compute node:
NET_ID=$(neutron net-list | grep 'net01' | awk '{print $2}')
nova boot --flavor m1.micro --image TestVM --nic net-id=$NET_ID --security-groups default --availability-zone nova:<some-
3. Check that the instance is in ERROR state now and isn’t assigned to any host:
nova show vm1 | grep OS-EXT-
| OS-EXT-
| status | ERROR
4. Try to assign fixed IP to the instance vm1 and ensure that it returns an error:
nova add-fixed-ip vm1 $NET_ID
The expected result:
An error message, something like " Returning 409 to user: Cannot 'attach_interface' instance efbbb0cb-
The actual result:
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'nova.exception
appears
Nova version - http://
nova-api logs for faulty instance - http://
Changed in nova: | |
assignee: | nobody → Anand Shanmugam (anand1712) |
tags: | added: api |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | jichenjc (jichenjc) → nobody |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → Prateek Arora (parora) |
tags: | added: 500-error |
Changed in nova: | |
assignee: | nobody → ABHAY (ankatare) |
Changed in nova: | |
assignee: | ABHAY (ankatare) → nobody |
Fix proposed to branch: master /review. openstack. org/266675
Review: https:/