Compute API in nova - show/list servers with details says security_groups is required in response but it's optional
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Takashi Natsume |
Bug Description
- [x] This doc is inaccurate in this way:
This came up in review:
https:/
https:/
and
https:/
response parameter tables both say that "security_groups" is a required field in the response but that's not true if the server does not have any attached ports which is possible. This is the server view builder code:
Note the key is not in the GET response if the server is not attached to any ports that have security groups.
I recreated in devstack by creating a server with no network:
$ openstack --os-compute-
And the security_groups key is not in the GET /servers/detail response:
$ curl -H "X-Auth-Token: $token" http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 1388 100 1388 0 0 8213 0 --:--:-- --:--:-- --:--:-- 8213
-------
Release: on 2019-09-19 17:55:19
SHA: 9ca14e081860b1a
Source: https:/
URL: https:/
Changed in nova: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
status: | Triaged → In Progress |
Fix proposed to branch: master /review. opendev. org/686517
Review: https:/