Creating a console (os-consoles) doesn't work

Bug #1682303 reported by Felipe Monteiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
jichenjc

Bug Description

Steps to reproduce
==================

1) Spin up a server with a flavor and image (specifically, cirros-0.3.5-x86_64-disk image).

2) Create a console for the server, e.g. curl -g -i -X POST http://127.0.0.1:8774/v2.1/servers/a421e43c-b6dc-4769-9fbc-32a302a743d1/consoles -H "OpenStack-API-Version: compute 2.41" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.41" -H "X-Auth-Token: $TOKEN"

The following is returned:

HTTP/1.1 200 OK <-- The call was successful
Content-Length: 0
Content-Type: application/json
Openstack-Api-Version: compute 2.41
X-Openstack-Nova-Api-Version: 2.41
Vary: OpenStack-API-Version
Vary: X-OpenStack-Nova-API-Version
X-Compute-Request-Id: req-8b1529e0-4ea0-42ec-9fd8-885dbe2fc8b8
Date: Wed, 12 Apr 2017 23:10:40 GMT

3) List all consoles for a server, e.g. curl -g -i -X GET http://127.0.0.1:8774/v2.1/servers/a421e43c-b6dc-4769-9fbc-32a302a743d1/consoles -H "OpenStack-API-Version: compute 2.41" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.41" -H "X-Auth-Token: $TOKEN"

Expected result
===============
A console with an id is returned in the list of consoles.

Actual result
=============

HTTP/1.1 200 OK <-- The call was successful
Content-Length: 16
Content-Type: application/json
Openstack-Api-Version: compute 2.41
X-Openstack-Nova-Api-Version: 2.41
Vary: OpenStack-API-Version
Vary: X-OpenStack-Nova-API-Version
X-Compute-Request-Id: req-0ffc3068-abc4-4b1b-ac56-15af1c5b6da6
Date: Wed, 12 Apr 2017 23:11:17 GMT

{"consoles": []}stack@osboxes:~/nova$ <-- No consoles returned

Even if I messed up somewhere, these calls should not be returning 200s and not returning expected data.

Environment
===========

Ubuntu Xenial, upstream DevStack.

Tags: doc
Felipe Monteiro (fm577c)
description: updated
description: updated
Revision history for this message
jichenjc (jichenjc) wrote :

got exactly same error on my test env, need more check

Changed in nova:
assignee: nobody → jichenjc (jichenjc)
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/459266

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/459266
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=086a0c021344ee5b0ce7bc1dc36f1f5241be6232
Submitter: Jenkins
Branch: master

commit 086a0c021344ee5b0ce7bc1dc36f1f5241be6232
Author: jichenjc <email address hidden>
Date: Wed Mar 29 01:33:40 2017 +0800

    Add description for /consoles

    /consoles is only used by Xenserver VNC Proxy, so we add a note
    in the api-ref doc.

    Related-Bug: 1682303

    Change-Id: Id9b55068afa516fb089ce8ba1c1956e4c571a6a6

Changed in nova:
status: New → Fix Committed
status: Fix Committed → New
tags: added: doc
Changed in nova:
status: New → 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.