<type 'NoneType'> can't be decoded with None human_id

Bug #1288397 reported by Paul Czarkowski
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
High
ChangBo Guo(gcb)
python-novaclient
Fix Released
Undecided
Unassigned

Bug Description

vagrant@devstack:~$ nova image-list
+--------------------------------------+---------------------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------------------+--------+--------+
| 1c1959aa-971a-4445-91a4-72c5191ca5ca | - | ACTIVE | |
| 20a8adb2-3965-4f73-ad22-68da47640fb7 | - | ACTIVE | |
| 273186ed-5628-40b3-8f76-227a5bab12ae | - | ACTIVE | |
| 2793b46f-1d92-4ad5-95b6-f63fea96a459 | - | ACTIVE | |
| 28e98e0c-8eca-4ccf-a813-50fdca85927b | - | ACTIVE | |
| 30b89709-a8a9-4190-8ce3-733833a6d531 | - | ACTIVE | |
| 44c05ee6-d1f9-4f43-9b5d-1be47b239c83 | - | ACTIVE | |
| 6f36f6ed-bf8c-401e-b5c1-e094ffd7f913 | - | ACTIVE | |
| 7224a860-bd6f-4ce8-8fea-c77f03d1a914 | - | ACTIVE | |
| 78b65457-20cd-4ead-bac4-748dde93223d | - | ACTIVE | |
| 796f2473-fc0e-4120-9201-dfae94c4bce9 | - | ACTIVE | |
| 904d8f79-94c5-4ba9-85cc-0fc739d9aa0a | - | ACTIVE | |
| 9e6f7450-2dd6-4afd-b815-96038e9e734c | - | ACTIVE | |
| a72f8503-0537-4fb7-bf38-7b2d7d9ba843 | - | ACTIVE | |
| d4dbbdd9-637f-42e4-aae0-d636c1c28c49 | - | ACTIVE | |
| 0cee3dc1-225a-45e4-abbf-c3965c97962b | cirros-0.3.1-x86_64-uec | ACTIVE | |
| bc037a4f-c0f8-4c0b-944e-9602b792841a | cirros-0.3.1-x86_64-uec-kernel | ACTIVE | |
| 4765155f-b0c7-4fe6-b9a6-afa873ebb399 | cirros-0.3.1-x86_64-uec-ramdisk | ACTIVE | |
| 5cc41ea7-9fb9-406b-8b48-b8755a86fc1f | docker-busybox:latest | ACTIVE | |
| 97161f25-4da3-4fe0-8109-5e01ce71aed7 | nodejs:latest | ACTIVE | |
+--------------------------------------+---------------------------------+--------+--------+
vagrant@devstack:~$ nova boot --flavor 1 --image docker-busybox:latest dummy
ERROR: <type 'NoneType'> can't be decoded

Revision history for this message
Paul Czarkowski (paulcz) wrote :
summary: - cannot boot image when glance has images with no name
+ <type 'NoneType'> can't be decoded with None human_id
Ben Nemec (bnemec)
Changed in oslo:
status: New → Triaged
importance: Undecided → High
Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

It seems like commit https://review.openstack.org/#/c/78642/ is addressing this issue.

Changed in oslo:
status: Triaged → In Progress
Changed in oslo:
assignee: nobody → ChangBo Guo(gcb) (glongwave)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/78642
Committed: https://git.openstack.org/cgit/openstack/oslo-incubator/commit/?id=822e09bf197d25427be38e697e50936466b3d402
Submitter: Jenkins
Branch: master

commit 822e09bf197d25427be38e697e50936466b3d402
Author: Paul Czarkowski <email address hidden>
Date: Thu Mar 6 09:58:52 2014 -0600

    Don't slugify names that don't exist

    When getting resource's human_id attribute when the resource name is
    None, it will raise "TypeError" while safe decoding the human_id.

    Closes-Bug: #1288397
    Change-Id: I2618235bdfc788f5313d8833a0b86d8cc74e30d0

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → juno-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/101600
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=298b06f7e0d378d2d53b130a2f954900cda61810
Submitter: Jenkins
Branch: master

commit 298b06f7e0d378d2d53b130a2f954900cda61810
Author: Rick Harris <email address hidden>
Date: Fri Jun 20 11:28:27 2014 -0500

    Sync Oslo's apiclient

    Oslo's version of apiclient fixes a bug where if `human_id` is `None` it
    causes `novaclient` to crash, so lets sync it over to fix that bug.

    Change-Id: I53f174a1d3356c4038dcbdf88f4f9c4ea179418c
    References-Bug: 1288397

Revision history for this message
melanie witt (melwitt) wrote :
Changed in python-novaclient:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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