d727795d66
This adds the 2.37 microversion to the REST API for automatically allocating a network, i.e. get me a network. The majority of the changes to the REST API concern request validation. 'networks' is now required in the server POST body after this microversion. The 'auto' or 'none' special network uuid values are used, but if specified, can not be specified with any other requested network values. The other special case that is checked is when the minimum compute service version is not new enough to support this change, i.e. a Mitaka compute will not have the network API code that knows how to deal with the special auto/none network IDs. Because the REST API is checking the service version, the service caches the service version after the first check. Once all computes are updated to Newton then a restart of the nova-api service(s) will be required to flush the cache. A release note is provided for this situation. The api-ref docs are also updated for this microversion including an example API sample request. The matching Tempest change to test this is here: I89b18709e0cfbbcbf9be96a91a13a1356cdf85b0 The matching python-novaclient change is here: I6636ddcd3be7bf393d2d69cc6c1ba5c7d65ff674 Implements blueprint get-me-a-network Change-Id: I89b18709e0cfbbcbf9be96a91a13a1356cdf85b0
9 lines
217 B
JSON
9 lines
217 B
JSON
{
|
|
"server": {
|
|
"name": "auto-allocate-network",
|
|
"imageRef": "70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"flavorRef": "http://openstack.example.com/flavors/1",
|
|
"networks": "auto"
|
|
}
|
|
}
|