output of volume-update command ERROR

Bug #1321205 reported by Trump.Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
Liyingjun

Bug Description

When running "nova volume-update" with correct arguments, the output will always be as follows:

ERROR (AttributeError): 'NoneType' object has no attribute '_info'

The reason is that the response body of corresponding NOVA API "os-volume_attachments" doesn't contains the "volumeAttachment" key.

Liyingjun (liyingjun)
Changed in python-novaclient:
status: New → Confirmed
assignee: nobody → Liyingjun (liyingjun)
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/98046

Changed in python-novaclient:
status: Confirmed → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :

Looks like it was introduced here: https://review.openstack.org/39686

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

Reviewed: https://review.openstack.org/98046
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=3588994cdd55fcb2cf3c702a2c2423622a1c06b0
Submitter: Jenkins
Branch: master

commit 3588994cdd55fcb2cf3c702a2c2423622a1c06b0
Author: liyingjun <email address hidden>
Date: Wed Jun 4 11:39:21 2014 +0800

    Remove _print_volume from volume-update

    Since the response of volume-update do not contain a body, just a status
    code 202, so when calling _print_volume(volume), there will be an error:
    `ERROR (AttributeError): 'NoneType' object has no attribute '_info'`.

    Change-Id: I950ae7dca5e847beae7295d72d009f2d07d07c51
    Closes-bug: 1321205

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.18.0
Michael Still (mikal)
Changed in python-novaclient:
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.