Skip to content
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

Add a persistent UUID in create_bdev. #181

Merged
merged 3 commits into from
Aug 15, 2023
Merged

Add a persistent UUID in create_bdev. #181

merged 3 commits into from
Aug 15, 2023

Conversation

gbregman
Copy link
Contributor

@gbregman gbregman commented Aug 14, 2023

We want the generated UUID to be persistent. So, whenever the gateway restarts or in case we connect from two gateways the same UUID would be used. So, whenever a bdev is created we generate a UUID in case we don't have one already. This UUID is written to the OMAP file so in case we restore a connection we fetch the UUID value from the OMAP file and use it.

@gbregman gbregman self-assigned this Aug 14, 2023
Copy link
Member

@oritwas oritwas left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@epuertat epuertat left a comment

Choose a reason for hiding this comment

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

When delivering a PR it's always good to connect it to existing issues or feature requests. In this very case, I think this PR might close:

The PR description and the commit message should contain a line Fixes: #<issue_id>. This is described here. If the new team members do want to reconsider that approach, feel free to bring this up.

proto/gateway.proto Show resolved Hide resolved
Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

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

LGTM 🖖

…e persistent. So, whenever the gateway restarts or in case we

connect from two gateways the same UUID would be used. So, whenever a bdev is created we generate a UUID in case we don't have
one already. This UUID is written to the OMAP file so in case we restore a connection we fetch the UUID value from the OMAP file
and use it.

Signed-off-by: Gil Bregman <[email protected]>
@trociny
Copy link
Contributor

trociny commented Aug 14, 2023

@gbregman Could you please add the comment #181 (comment) to the commit log message?

@gbregman gbregman merged commit 06b73e1 into devel Aug 15, 2023
14 checks passed
@gbregman gbregman deleted the uuid-in-create-bdev branch August 15, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants