cannot filter the list servers to show only those that does not have config drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Balazs Gibizer |
Bug Description
The server's config_drive field is "True" if there is a config drive attached to the server and an empty string if there is no config drive attached. Nova API allow filtering the list of servers returned by GET /servers/details by config_drive, but the API does not allow specifying an empty string in the filter. So there is no way to filter for servers without config drive.
stack@aio:~$ curl -g -i -X GET 'http://
HTTP/1.1 400 Bad Request
Date: Tue, 07 Apr 2020 14:35:24 GMT
Server: Apache/2.4.29 (Ubuntu)
OpenStack-
X-OpenStack-
Vary: OpenStack-
Content-Type: application/json; charset=UTF-8
Content-Length: 121
x-openstack-
x-compute-
Connection: close
{"badRequest": {"code": 400, "message": "Invalid input for query parameters config_drive. Value: . '' is not a 'regex'"}}
stack@aio:~$
tags: | added: api |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Balazs Gibizer (balazs-gibizer) |
Fix proposed to branch: master /review. opendev. org/718140
Review: https:/