OSAPI reports ACTIVE when server built from bad image
Bug #814469 reported by
Steve Brown
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
Nova shows instance as active when it definitely is not.
To reproduce
1. upload a bad image to glance:
glance add name="bogus" is_public="True" < barbie.jpg
2. boot it:
nova boot --flavor 1 --image <imgage id> 'bogus-server'
3. list it:
$ nova list
+-----+
| ID | Name | Status | Public IP | Private IP |
+-----+
| 667 | bogus-server | ACTIVE | | 10.0.0.7 |
+-----+
summary: |
- Nova returns incorrect status for instances + OSAPI reports ACTIVE when server built from bad image |
tags: | added: osapi-v1.1 |
tags: | removed: osapi-v1.1 |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in nova: | |
milestone: | none → essex-4 |
Changed in nova: | |
milestone: | essex-4 → none |
Changed in nova: | |
status: | Confirmed → Opinion |
To post a comment you must log in.
Strictly speaking, we can't know if what you actually wanted executed on your virtual CPU in fact was a JPEG. Of course it won't boot and become what we usually consider a useful virtual machine, but I can't think of a sane way to determine whether it's "active". We try to boot the virtual machine and the CPU will certainly execute the "machine code" its fed, just like a "real" virtual machine would.
We can make some educated guesses (check for DHCP requests), but they're only guesses. Maybe you intentionally disabled or delayed DHCP. I can't imagine why, but who am I to judge? :)