-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLINT-246] Add pagination support for ironic nodes endpoint (#16400)
* Add support for pagination in ironic nodes endpoint * Update log line and remove first_try * rename resources var * Reformat logging * Add changelog * Address review * fix config spec
- Loading branch information
1 parent
0f79c1f
commit d647f80
Showing
25 changed files
with
1,789 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add pagination support for ironic nodes endpoint |
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
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
116 changes: 116 additions & 0 deletions
116
...al/v1/nodes/detail/limit=1/marker=54855e59-83ca-46f8-a78f-55d3370e0656/response-1.80.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,116 @@ | ||
{ | ||
"nodes": [ | ||
{ | ||
"uuid": "20512deb-e493-4796-a046-5d6e4e072c95", | ||
"created_at": "2023-04-06T16:55:34+00:00", | ||
"updated_at": "2023-04-06T16:57:38+00:00", | ||
"automated_clean": null, | ||
"bios_interface": "fake", | ||
"boot_interface": "fake", | ||
"boot_mode": null, | ||
"clean_step": {}, | ||
"conductor_group": "", | ||
"console_enabled": false, | ||
"console_interface": "fake", | ||
"deploy_interface": "direct", | ||
"deploy_step": {}, | ||
"description": null, | ||
"driver": "fake-hardware", | ||
"driver_info": {}, | ||
"driver_internal_info": { | ||
"last_power_state_change": "2023-04-06T16:55:42.474124" | ||
}, | ||
"extra": {}, | ||
"fault": null, | ||
"inspection_finished_at": null, | ||
"inspection_started_at": null, | ||
"inspect_interface": "fake", | ||
"instance_info": {}, | ||
"instance_uuid": null, | ||
"last_error": null, | ||
"lessee": null, | ||
"maintenance": false, | ||
"maintenance_reason": null, | ||
"management_interface": "fake", | ||
"name": "test", | ||
"network_data": {}, | ||
"network_interface": "flat", | ||
"owner": "01b21103a92d4997ab09e46ff8346bd5", | ||
"power_interface": "fake", | ||
"power_state": "power on", | ||
"properties": {}, | ||
"protected": false, | ||
"protected_reason": null, | ||
"provision_state": "active", | ||
"provision_updated_at": "2023-04-06T16:56:21+00:00", | ||
"raid_config": {}, | ||
"raid_interface": "fake", | ||
"rescue_interface": "fake", | ||
"reservation": null, | ||
"resource_class": null, | ||
"retired": false, | ||
"retired_reason": null, | ||
"secure_boot": null, | ||
"storage_interface": "noop", | ||
"target_power_state": null, | ||
"target_provision_state": null, | ||
"target_raid_config": {}, | ||
"traits": [], | ||
"vendor_interface": "fake", | ||
"links": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"conductor": "agent-integrations-openstack-ironic", | ||
"allocation_uuid": null, | ||
"chassis_uuid": null, | ||
"ports": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95/ports", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95/ports", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"states": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95/states", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95/states", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"portgroups": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95/portgroups", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95/portgroups", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"volume": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95/volume", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95/volume", | ||
"rel": "bookmark" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
47 changes: 47 additions & 0 deletions
47
...remetal/v1/nodes/detail/limit=1/marker=54855e59-83ca-46f8-a78f-55d3370e0656/response.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,47 @@ | ||
{ | ||
"nodes": [ | ||
{ | ||
"uuid": "20512deb-e493-4796-a046-5d6e4e072c95", | ||
"created_at": "2023-04-06T16:55:34+00:00", | ||
"updated_at": "2023-04-06T16:57:38+00:00", | ||
"console_enabled": false, | ||
"driver": "fake-hardware", | ||
"driver_info": {}, | ||
"extra": {}, | ||
"instance_info": {}, | ||
"instance_uuid": null, | ||
"last_error": null, | ||
"maintenance": false, | ||
"maintenance_reason": null, | ||
"power_state": "power on", | ||
"properties": {}, | ||
"provision_state": "active", | ||
"provision_updated_at": "2023-04-06T16:56:21+00:00", | ||
"reservation": null, | ||
"target_power_state": null, | ||
"target_provision_state": null, | ||
"links": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95", | ||
"rel": "bookmark" | ||
} | ||
], | ||
"chassis_uuid": null, | ||
"ports": [ | ||
{ | ||
"href": "http://34.141.226.224/baremetal/v1/nodes/20512deb-e493-4796-a046-5d6e4e072c95/ports", | ||
"rel": "self" | ||
}, | ||
{ | ||
"href": "http://34.141.226.224/baremetal/nodes/20512deb-e493-4796-a046-5d6e4e072c95/ports", | ||
"rel": "bookmark" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
Oops, something went wrong.