os-getConsoleOutput server action throws exception

Bug #907083 reported by Jake Dahn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Brian Waldon

Bug Description

Currently when you call the os-getConsoleOutput server action, an exception is thrown.

Traceback:

(nova.api.openstack.wsgi): TRACE: Traceback (most recent call last):
(nova.api.openstack.wsgi): TRACE: File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 599, in dispatch
(nova.api.openstack.wsgi): TRACE: return controller_method(req=request, **action_args)
(nova.api.openstack.wsgi): TRACE: File "/opt/stack/nova/nova/api/openstack/v2/extensions.py", line 133, in action
(nova.api.openstack.wsgi): TRACE: return handler(body, req, id)
(nova.api.openstack.wsgi): TRACE: File "/opt/stack/nova/nova/api/openstack/v2/contrib/console_output.py", line 49, in get_console_output
(nova.api.openstack.wsgi): TRACE: length)
(nova.api.openstack.wsgi): TRACE: File "/opt/stack/nova/nova/compute/api.py", line 1494, in get_console_output
(nova.api.openstack.wsgi): TRACE: {'tail_length': tail_length})
(nova.api.openstack.wsgi): TRACE: File "/opt/stack/nova/nova/compute/api.py", line 1057, in _call_compute_message
(nova.api.openstack.wsgi): TRACE: host = instance['host']
(nova.api.openstack.wsgi): TRACE: TypeError: string indices must be integers

Brian Waldon (bcwaldon)
affects: horizon → nova
Changed in nova:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Brian Waldon (bcwaldon)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/2492
Committed: http://github.com/openstack/nova/commit/47c4c49baaa08c83c29f695ed85e626b381b0a7e
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 47c4c49baaa08c83c29f695ed85e626b381b0a7e
Author: Brian Waldon <email address hidden>
Date: Tue Dec 20 17:24:13 2011 -0500

    Fix os-console-output extension integration

    Fixes bug 907083

    Change-Id: Ia57d316db0c79d7e78ef3225e77cd95589ac68df

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote :

Reviewed: https://review.openstack.org/2493
Committed: http://github.com/openstack/nova/commit/b1bd80bb087c37846edfd598d20eee5151788ddd
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit b1bd80bb087c37846edfd598d20eee5151788ddd
Author: Brian Waldon <email address hidden>
Date: Tue Dec 20 17:24:13 2011 -0500

    Fix one last bug in os-console-output extension

    Actually fixes bug 907083

    Change-Id: Ia57d316db0c79d7e78ef3225e77cd95589ac68de

Brian Waldon (bcwaldon)
Changed in nova:
milestone: none → essex-3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-3 → 2012.1
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.