-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend microversion 2.90 to allow FQDNs in the hostname parameter. Multi-create with --hostname continues to be refused, returning error 400 to the user. This simplifies the code by not needing to handle any sort of suffix or prefix mangling of the FQDN to handle multiple instances. No other changes are made - not Neutron integration, metadata API changes (the FQDN will appear as-is in places where the hostname currently appears), etc. Change-Id: I47e397dc6da8263762479cc8ae4f8777a6d9d811 Implements: bp/fqdn-in-hostname
- Loading branch information
Showing
30 changed files
with
960 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
doc/api_samples/servers/v2.94/server-action-rebuild-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"server": { | ||
"OS-DCF:diskConfig": "AUTO", | ||
"OS-EXT-AZ:availability_zone": "us-west", | ||
"OS-EXT-SRV-ATTR:hostname": "updated-hostname.example.com", | ||
"OS-EXT-STS:power_state": 1, | ||
"OS-EXT-STS:task_state": null, | ||
"OS-EXT-STS:vm_state": "active", | ||
"OS-SRV-USG:launched_at": "2021-08-19T15:16:22.177882", | ||
"OS-SRV-USG:terminated_at": null, | ||
"accessIPv4": "1.2.3.4", | ||
"accessIPv6": "80fe::", | ||
"addresses": { | ||
"private": [ | ||
{ | ||
"OS-EXT-IPS-MAC:mac_addr": "00:0c:29:0d:11:74", | ||
"OS-EXT-IPS:type": "fixed", | ||
"addr": "192.168.1.30", | ||
"version": 4 | ||
} | ||
] | ||
}, | ||
"adminPass": "seekr3t", | ||
"config_drive": "", | ||
"created": "2019-04-23T17:10:22Z", | ||
"description": null, | ||
"flavor": { | ||
"disk": 1, | ||
"ephemeral": 0, | ||
"extra_specs": {}, | ||
"original_name": "m1.tiny", | ||
"ram": 512, | ||
"swap": 0, | ||
"vcpus": 1 | ||
}, | ||
"hostId": "2091634baaccdc4c5a1d57069c833e402921df696b7f970791b12ec6", | ||
"id": "0c37a84a-c757-4f22-8c7f-0bf8b6970886", | ||
"image": { | ||
"id": "70a599e0-31e7-49b7-b260-868f441e862b", | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/images/70a599e0-31e7-49b7-b260-868f441e862b", | ||
"rel": "bookmark" | ||
} | ||
] | ||
}, | ||
"key_name": null, | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/servers/0c37a84a-c757-4f22-8c7f-0bf8b6970886", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/0c37a84a-c757-4f22-8c7f-0bf8b6970886", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"locked": false, | ||
"locked_reason": null, | ||
"metadata": { | ||
"meta_var": "meta_val" | ||
}, | ||
"name": "foobar", | ||
"os-extended-volumes:volumes_attached": [], | ||
"progress": 0, | ||
"security_groups": [ | ||
{ | ||
"name": "default" | ||
} | ||
], | ||
"server_groups": [], | ||
"status": "ACTIVE", | ||
"tags": [], | ||
"tenant_id": "6f70656e737461636b20342065766572", | ||
"trusted_image_certificates": null, | ||
"updated": "2019-04-23T17:10:24Z", | ||
"user_data": "ZWNobyAiaGVsbG8gd29ybGQi", | ||
"user_id": "fake" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"rebuild" : { | ||
"accessIPv4" : "1.2.3.4", | ||
"accessIPv6" : "80fe::", | ||
"OS-DCF:diskConfig": "AUTO", | ||
"imageRef" : "70a599e0-31e7-49b7-b260-868f441e862b", | ||
"name" : "foobar", | ||
"adminPass" : "seekr3t", | ||
"hostname": "custom-hostname.example.com", | ||
"metadata" : { | ||
"meta_var" : "meta_val" | ||
}, | ||
"user_data": "ZWNobyAiaGVsbG8gd29ybGQi" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"server" : { | ||
"accessIPv4": "1.2.3.4", | ||
"accessIPv6": "80fe::", | ||
"name" : "new-server-test", | ||
"imageRef" : "70a599e0-31e7-49b7-b260-868f441e862b", | ||
"flavorRef" : "1", | ||
"availability_zone": "us-west", | ||
"OS-DCF:diskConfig": "AUTO", | ||
"hostname": "custom-hostname.example.com", | ||
"metadata" : { | ||
"My Server Name" : "Apache1" | ||
}, | ||
"personality": [ | ||
{ | ||
"path": "/etc/banner.txt", | ||
"contents": "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6 b25zLiINCg0KLVJpY2hhcmQgQmFjaA==" | ||
} | ||
], | ||
"security_groups": [ | ||
{ | ||
"name": "default" | ||
} | ||
], | ||
"user_data" : "IyEvYmluL2Jhc2gKL2Jpbi9zdQplY2hvICJJIGFtIGluIHlvdSEiCg==" | ||
}, | ||
"OS-SCH-HNT:scheduler_hints": { | ||
"same_host": "48e6a9f6-30af-47e0-bc04-acaed113bb4e" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"server": { | ||
"OS-DCF:diskConfig": "AUTO", | ||
"adminPass": "6NpUwoz2QDRN", | ||
"id": "f5dc173b-6804-445a-a6d8-c705dad5b5eb", | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/v2/6f70656e737461636b20342065766572/servers/f5dc173b-6804-445a-a6d8-c705dad5b5eb", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/f5dc173b-6804-445a-a6d8-c705dad5b5eb", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"security_groups": [ | ||
{ | ||
"name": "default" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"server": { | ||
"accessIPv4": "1.2.3.4", | ||
"accessIPv6": "80fe::", | ||
"addresses": { | ||
"private": [ | ||
{ | ||
"addr": "192.168.1.30", | ||
"OS-EXT-IPS-MAC:mac_addr": "00:0c:29:0d:11:74", | ||
"OS-EXT-IPS:type": "fixed", | ||
"version": 4 | ||
} | ||
] | ||
}, | ||
"created": "2013-09-03T04:01:32Z", | ||
"description": null, | ||
"locked": false, | ||
"locked_reason": null, | ||
"flavor": { | ||
"disk": 1, | ||
"ephemeral": 0, | ||
"extra_specs": {}, | ||
"original_name": "m1.tiny", | ||
"ram": 512, | ||
"swap": 0, | ||
"vcpus": 1 | ||
}, | ||
"hostId": "92154fab69d5883ba2c8622b7e65f745dd33257221c07af363c51b29", | ||
"id": "0e44cc9c-e052-415d-afbf-469b0d384170", | ||
"image": { | ||
"id": "70a599e0-31e7-49b7-b260-868f441e862b", | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/images/70a599e0-31e7-49b7-b260-868f441e862b", | ||
"rel": "bookmark" | ||
} | ||
] | ||
}, | ||
"key_name": null, | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/v2/6f70656e737461636b20342065766572/servers/0e44cc9c-e052-415d-afbf-469b0d384170", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/0e44cc9c-e052-415d-afbf-469b0d384170", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"metadata": { | ||
"My Server Name": "Apache1" | ||
}, | ||
"name": "new-server-test", | ||
"config_drive": "", | ||
"OS-DCF:diskConfig": "AUTO", | ||
"OS-EXT-AZ:availability_zone": "nova", | ||
"OS-EXT-SRV-ATTR:hostname": "custom-hostname.example.com", | ||
"OS-EXT-STS:power_state": 1, | ||
"OS-EXT-STS:task_state": null, | ||
"OS-EXT-STS:vm_state": "active", | ||
"os-extended-volumes:volumes_attached": [ | ||
{"id": "volume_id1", "delete_on_termination": false}, | ||
{"id": "volume_id2", "delete_on_termination": false} | ||
], | ||
"OS-SRV-USG:launched_at": "2013-09-23T13:37:00.880302", | ||
"OS-SRV-USG:terminated_at": null, | ||
"progress": 0, | ||
"security_groups": [ | ||
{ | ||
"name": "default" | ||
} | ||
], | ||
"server_groups": [], | ||
"status": "ACTIVE", | ||
"tags": [], | ||
"tenant_id": "6f70656e737461636b20342065766572", | ||
"trusted_image_certificates": null, | ||
"updated": "2013-09-03T04:01:33Z", | ||
"user_id": "fake" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"server": { | ||
"accessIPv4": "4.3.2.1", | ||
"accessIPv6": "80fe::", | ||
"OS-DCF:diskConfig": "AUTO", | ||
"hostname" : "new-server-hostname.example.com" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"server": { | ||
"accessIPv4": "1.2.3.4", | ||
"accessIPv6": "80fe::", | ||
"addresses": { | ||
"private": [ | ||
{ | ||
"addr": "192.168.1.30", | ||
"OS-EXT-IPS-MAC:mac_addr": "00:0c:29:0d:11:74", | ||
"OS-EXT-IPS:type": "fixed", | ||
"version": 4 | ||
} | ||
] | ||
}, | ||
"created": "2013-09-03T04:01:32Z", | ||
"description": null, | ||
"locked": false, | ||
"locked_reason": null, | ||
"flavor": { | ||
"disk": 1, | ||
"ephemeral": 0, | ||
"extra_specs": {}, | ||
"original_name": "m1.tiny", | ||
"ram": 512, | ||
"swap": 0, | ||
"vcpus": 1 | ||
}, | ||
"hostId": "92154fab69d5883ba2c8622b7e65f745dd33257221c07af363c51b29", | ||
"id": "0e44cc9c-e052-415d-afbf-469b0d384170", | ||
"image": { | ||
"id": "70a599e0-31e7-49b7-b260-868f441e862b", | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/images/70a599e0-31e7-49b7-b260-868f441e862b", | ||
"rel": "bookmark" | ||
} | ||
] | ||
}, | ||
"key_name": null, | ||
"links": [ | ||
{ | ||
"href": "http://openstack.example.com/v2/6f70656e737461636b20342065766572/servers/0e44cc9c-e052-415d-afbf-469b0d384170", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/servers/0e44cc9c-e052-415d-afbf-469b0d384170", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"metadata": { | ||
"My Server Name": "Apache1" | ||
}, | ||
"name": "new-server-test", | ||
"config_drive": "", | ||
"OS-DCF:diskConfig": "AUTO", | ||
"OS-EXT-AZ:availability_zone": "us-west", | ||
"OS-EXT-SRV-ATTR:hostname": "new-server-hostname.example.com", | ||
"OS-EXT-STS:power_state": 1, | ||
"OS-EXT-STS:task_state": null, | ||
"OS-EXT-STS:vm_state": "active", | ||
"os-extended-volumes:volumes_attached": [], | ||
"OS-SRV-USG:launched_at": "2013-09-23T13:37:00.880302", | ||
"OS-SRV-USG:terminated_at": null, | ||
"progress": 0, | ||
"security_groups": [ | ||
{ | ||
"name": "default" | ||
} | ||
], | ||
"server_groups": [], | ||
"status": "ACTIVE", | ||
"tags": [], | ||
"tenant_id": "6f70656e737461636b20342065766572", | ||
"trusted_image_certificates": null, | ||
"updated": "2013-09-03T04:01:33Z", | ||
"user_id": "fake" | ||
} | ||
} |
Oops, something went wrong.