-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift locking support #18431
Swift locking support #18431
Conversation
yanndegat
commented
Jul 11, 2018
- remote/backend/swift: Add support for locking
6b02e04
to
cc62ab1
Compare
1f0d35e
to
25100a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on #18378
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment fix...
// is a normal create operation, and take the lock at that point. | ||
// | ||
// If we need to force-unlock, but for some reason the state no longer | ||
// exists, the user will have to use aws tools to manually fix the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/aws/openstack
backend/remote-state/swift/client.go
Outdated
// recent known by swift. | ||
// swift is eventually consistent. Yet end users may expect to get a consistent | ||
// response when querying for state or lock objects | ||
type GetNewestOpts struct{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just merged support for Newest
to Gophercloud: gophercloud/gophercloud#1118
You should be able to do a vendor update and then not have to create a custom type.
Hi @yanndegat, This looks pretty good at first glance, but I would like to make sure it passes the acceptance tests first. This needs to call Since we don't have a way yet to run acceptance tests directly on backend PRs, we also require that the acceptance test output be pasted as a comment here to verify that they pass. |
hi @jbardin thanks a lot. & right after with the testforceunlock test func ? i added them by getting inspiration from other tests. if i add the ones you suggest, can i remove the ones i added because it seems to me that they overlaps ? |
It looks like you copied a lot from the S3 backend, and IIRC that test was just to catch as specific failure for that implementation. I would call The |
5428051
to
be8f514
Compare
be8f514
to
caf33ca
Compare
@jtopjian done |
@jbardin done |
I opened #18671 last week which I think should be merged before this. It does a bunch of vendor updates and gets the Swift backend aligned with the OpenStack provider as far as auth settings and such go. It would be a good foundation to apply additional features on top of. |
caf33ca
to
4748aec
Compare
- add support for workspaces in remote backend swift - fix failing acc tests
- add support for workspaces in remote backend swift - fix failing acc tests
4748aec
to
5f1be09
Compare
closing in favor of #20211 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |