Missing image causes confusing 'server show' response

Bug #1489901 reported by CampGareth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Terry Howe

Bug Description

When an instance has been created and later the image it was based on has been deleted the Nova client will with 'nova show <id>' return all the usual information but will say the image is not found on the image line. In contrast the unified OpenStack client will not return any information except an error message about the missing image. I feel this is confusing as it should return the same amount of information as nova show, or give an error message that is more obviously related to the original command.

(openstack) server list
+--------------------------------------+---------------------+--------+-----------------------+
| ID | Name | Status | Networks |
+--------------------------------------+---------------------+--------+-----------------------+
| cd265ec5-744b-4ae1-9113-0c7e57056e42 | wandows survur 2000 | ACTIVE | demo_net=192.168.2.26 |
+--------------------------------------+---------------------+--------+-----------------------+

(openstack) server show cd265ec5-744b-4ae1-9113-0c7e57056e42
ERROR: openstack No image with a name or ID of '166a9d17-32e9-4b91-9f06-1bfc6510c67e' exists.

Compare this output to the output of the Nova client which will give a lot more information in this situation despite the missing image :

nova show cd265ec5-744b-4ae1-9113-0c7e57056e42
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | Production |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2015-08-27T13:19:16.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2015-08-27T13:07:51Z |
| demo_net network | 192.168.2.26 |
| flavor | dc1.2x4.40 (196235bc-7ca5-4085-ac81-7e0242bda3f9) |
| hostId | afce023c5f9ac7ff7bdbdda870328811d96327bed483706bf6d922f1 |
| id | cd265ec5-744b-4ae1-9113-0c7e57056e42 |
| image | Image not found (166a9d17-32e9-4b91-9f06-1bfc6510c67e) |
| key_name | much_secure_very_key |
| metadata | {} |
| name | wandows survur 2000 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 548c47cdbc4b4dd49867d886b21da69d |
| updated | 2015-08-27T13:19:16Z |
| user_id | e33558fbee274266932ac6f394e6b134 |
+--------------------------------------+----------------------------------------------------------+

Terry Howe (thowe-g)
Changed in python-openstackclient:
assignee: nobody → Terry Howe (thowe-g)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/218357

Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/218357
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=5171a427ac81605182cee55efdcd48da07cb5633
Submitter: Jenkins
Branch: master

commit 5171a427ac81605182cee55efdcd48da07cb5633
Author: TerryHowe <email address hidden>
Date: Fri Aug 28 09:32:05 2015 -0600

    Ignore flavor and image find errors on server show

    If there is an error finding an image or a flavor during
    image show, ignore it and just print the id of the flavor
    or image. This code is also used during server create and
    server rebuild, but only to display the results.

    Change-Id: I5362158ab8ffc3e5a0800904d6ea15420c3a8627
    Closes-bug: #1489901

Changed in python-openstackclient:
status: In Progress → Fix Committed
Changed in python-openstackclient:
milestone: none → 1.7.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.