summaryrefslogtreecommitdiff
path: root/doc/api_samples
diff options
context:
space:
mode:
authorArtom Lifshitz <alifshit@redhat.com>2017-01-24 12:27:15 -0500
committerMatt Riedemann <mriedem.os@gmail.com>2017-01-30 19:38:46 -0500
commite80e2511cf825671a479053cc8d41463aab1caaa (patch)
treea4161b931f0ac154c987f691ec268a3a9ae7e9db /doc/api_samples
parent9b9af0adb71968a0d1cfff52c327ccc75032c851 (diff)
downloadnova-e80e2511cf825671a479053cc8d41463aab1caaa.tar.gz
Fix tag attribute disappearing in 2.33 and 2.37
In the context of device tagging, bugs have caused the tag attribute to disappear starting with version 2.33 for block_devices and starting with version 2.37 for network interfaces. In other words, block devices could only be tagged in 2.32 and network interfaces between 2.32 and 2.36 inclusively. This patch documents this behaviour in api-ref and introduces microversion 2.42, which re-adds the tag in all the right places. Change-Id: Ia0869dc6f7f5bd347ccbd0930d1d668d37695a22 Closes-bug: 1658571 Implements: blueprint fix-tag-attribute-disappearing
Diffstat (limited to 'doc/api_samples')
-rw-r--r--doc/api_samples/servers/v2.42/server-create-req.json18
-rw-r--r--doc/api_samples/servers/v2.42/server-create-resp.json22
-rw-r--r--doc/api_samples/versions/v21-version-get-resp.json2
-rw-r--r--doc/api_samples/versions/versions-get-resp.json2
4 files changed, 42 insertions, 2 deletions
diff --git a/doc/api_samples/servers/v2.42/server-create-req.json b/doc/api_samples/servers/v2.42/server-create-req.json
new file mode 100644
index 0000000000..4b000b235c
--- /dev/null
+++ b/doc/api_samples/servers/v2.42/server-create-req.json
@@ -0,0 +1,18 @@
+{
+ "server" : {
+ "name" : "device-tagging-server",
+ "flavorRef" : "http://openstack.example.com/flavors/1",
+ "networks" : [{
+ "uuid" : "ff608d40-75e9-48cb-b745-77bb55b5eaf2",
+ "tag": "nic1"
+ }],
+ "block_device_mapping_v2": [{
+ "uuid": "70a599e0-31e7-49b7-b260-868f441e862b",
+ "source_type": "image",
+ "destination_type": "volume",
+ "boot_index": 0,
+ "volume_size": "1",
+ "tag": "disk1"
+ }]
+ }
+} \ No newline at end of file
diff --git a/doc/api_samples/servers/v2.42/server-create-resp.json b/doc/api_samples/servers/v2.42/server-create-resp.json
new file mode 100644
index 0000000000..dd0bb9f228
--- /dev/null
+++ b/doc/api_samples/servers/v2.42/server-create-resp.json
@@ -0,0 +1,22 @@
+{
+ "server": {
+ "OS-DCF:diskConfig": "AUTO",
+ "adminPass": "S5wqy9sPYUvU",
+ "id": "97108291-2fd7-4dc2-a909-eaae0306a6a9",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/servers/97108291-2fd7-4dc2-a909-eaae0306a6a9",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/97108291-2fd7-4dc2-a909-eaae0306a6a9",
+ "rel": "bookmark"
+ }
+ ],
+ "security_groups": [
+ {
+ "name": "default"
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/doc/api_samples/versions/v21-version-get-resp.json b/doc/api_samples/versions/v21-version-get-resp.json
index 8f9bfd8aa5..64120de26c 100644
--- a/doc/api_samples/versions/v21-version-get-resp.json
+++ b/doc/api_samples/versions/v21-version-get-resp.json
@@ -19,7 +19,7 @@
}
],
"status": "CURRENT",
- "version": "2.41",
+ "version": "2.42",
"min_version": "2.1",
"updated": "2013-07-23T11:33:21Z"
}
diff --git a/doc/api_samples/versions/versions-get-resp.json b/doc/api_samples/versions/versions-get-resp.json
index e424cf7a9d..27ad9b3703 100644
--- a/doc/api_samples/versions/versions-get-resp.json
+++ b/doc/api_samples/versions/versions-get-resp.json
@@ -22,7 +22,7 @@
}
],
"status": "CURRENT",
- "version": "2.41",
+ "version": "2.42",
"min_version": "2.1",
"updated": "2013-07-23T11:33:21Z"
}