Comment 0 for bug 1682303

Revision history for this message
Felipe Monteiro (fm577c) wrote :

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

1) Create a 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

2) 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:~/patrole$ <-- 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.