Skip to content

reservation: add leases resources - #4031

Merged
mandre merged 1 commit into
gophercloud:mainfrom
barnes-c:reservation-leases
Sep 30, 2026
Merged

mandre merged 1 commit into
gophercloud:mainfrom
barnes-c:reservation-leases

Conversation

@barnes-c

@barnes-c barnes-c commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Hi!

For #3987

This PR adds the leases package for the Reservation (Blazar) service ,covering the Leases suite of the api-ref:

Operation Endpoint Status
List GET /leases 200
Create POST /leases 201
Get GET /leases/{lease_id} 200
Update PUT /leases/{lease_id} 200
Delete DELETE /leases/{lease_id} 204

I saw that the previous MR which introduced the host resources, required some manual backporting. Is there something I can do to help with this?

Related:
#3988
#3304
#3406

@github-actions github-actions Bot added edit:reservation This PR updates reservation code semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 labels Sep 25, 2026
@coveralls

coveralls commented Sep 25, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 63.641% (+0.03%) from 63.614% — barnes-c:reservation-leases into gophercloud:main

Adds the `leases` package to the Reservation (Blazar) v1 service client, covering the Lease suite of the api-ref

Signed-off-by: Christopher Barnes <[email protected]>
@barnes-c barnes-c mentioned this pull request Sep 26, 2026
15 of 19 tasks
@mandre

mandre commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

I saw that the previous #3998 which introduced the host resources, required some manual #4019. Is there something I can do to help with this?

That's only because we needed your first patch that created the CI job in v2 (automation couldn't backport it automatically to v2 because the job structure is different between master and v2). Once the CI job landed in v2, I simply rebased the PR, as I recall.

@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.

Again, really nice work. Just a small question about the affinity fields, otherwise looks ready to merge.

Comment thread openstack/reservation/v1/leases/requests.go
@barnes-c

Copy link
Copy Markdown
Contributor Author

Again, really nice work

Thanks for reviewing again! I got the resource allocations PR also almost ready.

Regarding the floating IPs though, I cannot test in our own cloud since we dont support those ATM

Would you welcome it if I start making PRs to ORC for it to also have Blazar support?

@mandre
mandre added this pull request to the merge queue Sep 30, 2026
@mandre

mandre commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Again, really nice work

Thanks for reviewing again! I got the resource allocations PR also almost ready.

Nice, looking forward to it.

Regarding the floating IPs though, I cannot test in our own cloud since we dont support those ATM

We should be able to test in CI with devstack, shouldn't we?

Would you welcome it if I start making PRs to ORC for it to also have Blazar support?

More than welcome, in fact. That would be really great. Thanks a lot for all the contributions.

Merged via the queue into gophercloud:main with commit 8922083 Sep 30, 2026
73 checks passed
@barnes-c

Copy link
Copy Markdown
Contributor Author

Regarding the floating IPs though, I cannot test in our own cloud since we dont support those ATM

We should be able to test in CI with devstack, shouldn't we?

I remember reading that testing and fixtures should come from a real cloud so I was not sure. If thats not a problem Im happy to contribute this too

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.

3 participants