Skip to content

reservation: add hosts resources - #3998

Merged
mandre merged 9 commits into
gophercloud:mainfrom
barnes-c:reservation-hosts
Sep 17, 2026
Merged

mandre merged 9 commits into
gophercloud:mainfrom
barnes-c:reservation-hosts

Conversation

@barnes-c

@barnes-c barnes-c commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

For #3987

Adds the hosts package to the Reservation (Blazar) v1 service client, covering the Hosts suite of the api-ref:

Operation Endpoint Status
List GET /os-hosts 200
Create POST /os-hosts 201
Get GET /os-hosts/{host_id} 200
Update PUT /os-hosts/{host_id} 200
Delete DELETE /os-hosts/{host_id} 204

@github-actions github-actions Bot added edit:reservation This PR updates reservation code semver:patch No API change backport-v2 This PR will be backported to v2 labels Aug 31, 2026
@coveralls

coveralls commented Aug 31, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 63.603% (+0.05%) from 63.552% — barnes-c:reservation-hosts into gophercloud:main

@barnes-c
barnes-c marked this pull request as draft August 31, 2026 15:53
@barnes-c barnes-c mentioned this pull request Sep 1, 2026
15 of 19 tasks
@barnes-c barnes-c changed the title [WIP] add hosts resources for reservation service (blazar) [WIP] reservation: add hosts resources Sep 1, 2026
This commit adds the hosts package with the GET /os-hosts endpoint

Signed-off-by: Christopher Barnes <[email protected]>
@github-actions github-actions Bot added semver:minor Backwards-compatible change and removed semver:patch No API change labels Sep 6, 2026
@barnes-c barnes-c changed the title [WIP] reservation: add hosts resources reservation: add hosts resources Sep 6, 2026
@barnes-c
barnes-c marked this pull request as ready for review September 6, 2026 17:49

@mandre mandre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, just a concern about possible API breakage, in case the blazar API evolves. I'm actually unsure about this, so looking for your feedback as well.

Also feel free to bundle more API calls in the same PR, for example all of the Host calls: this will be simpler if we want to backport the implementation to v2, and will ensure we have proper acceptance tests before merging anything.

Comment thread openstack/reservation/v1/hosts/requests.go Outdated
this commits add the stubs for ListOpts

Signed-off-by: Christopher Barnes <[email protected]>
This commit adds the GET method

Signed-off-by: Christopher Barnes <[email protected]>
Signed-off-by: Christopher Barnes <[email protected]>
Signed-off-by: Christopher Barnes <[email protected]>
Signed-off-by: Christopher Barnes <[email protected]>
@barnes-c
barnes-c requested a review from mandre September 7, 2026 12:22
Comment thread openstack/reservation/v1/hosts/requests.go Outdated
Comment thread openstack/reservation/v1/hosts/requests.go
Comment thread openstack/reservation/v1/hosts/requests.go

@mandre mandre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, really nice work.

@mandre
mandre added this pull request to the merge queue Sep 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 14, 2026
@barnes-c

Copy link
Copy Markdown
Contributor Author

Hi @winiciusallan & @mandre,

I think this PR got stuck.
Could you try to add it to the merge queue again

Cheers,
Chris

@mandre
mandre added this pull request to the merge queue Sep 17, 2026
Merged via the queue into gophercloud:main with commit d4b92c5 Sep 17, 2026
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:reservation This PR updates reservation code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants