9fe4654273
Specifying a duplicate port ID is currently "allowed" but results in an integrity error when nova attempts to create a duplicate 'VirtualInterface' entry. Start rejecting these requests by checking for duplicate IDs and rejecting offending requests. This is arguably an API change because there isn't a HTTP 5xx error (server create is an async operation), however, users shouldn't have to opt in to non-broken behavior and the underlying instance was never actually created previously, meaning automation that relied on this "feature" was always going to fail in a later step. We're also silently failing to do what the user asked (per flow chart at [1]). [1] https://docs.openstack.org/nova/latest/contributor/microversions.html#when-do-i-need-a-new-microversion Change-Id: Ie90fb83662dd06e7188f042fc6340596f93c5ef9 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Closes-Bug: #1821088
8 lines
290 B
YAML
8 lines
290 B
YAML
---
|
|
fixes:
|
|
- |
|
|
The ``POST /servers`` (create server) API will now reject attempts to
|
|
create a server with the same port specified multiple times. This was
|
|
previously accepted by the API but the instance would fail to spawn and
|
|
would instead transition to the error state.
|