Comment 3 for bug 2028851

Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

test_get_console_output_server_id_in_shutoff_status test was always wrong since starting which used to get the console for the server created in the setup method and is in active state. This test never tried to get the console of the shutoff server.

It is still unknown how this wrong test started failing after the test refactoring in this commit https://review.opendev.org/c/openstack/tempest/+/889109 and unhide this issue.

This Tempest test corrects the tempest test, which will always fail because the test expects the console of *shutoff* Guest also, which is not something returned by Nova. Nova does not return the server console for the shutoff server.

There is an open question on Nova's behaviours:

1. What should Nova return the console output of the shutoff guest
2. what status code should Nova return in case the "console is not available"? Currently, it returns 404.

There is some discussion over this topic in IRC:
- hhttps://meetings.opendev.org/irclogs/%23openstack-nova/%23openstack-nova.2023-07-27.log.html#t2023-07-27T18:50:03