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

Record instance-manager name for a block disksin node.spec.diskStatus #2761

Merged
merged 2 commits into from
May 13, 2024

Conversation

derekbit
Copy link
Member

Which issue(s) this PR fixes:

Issue longhorn/longhorn#8458

What this PR does / why we need it:

A block-type disk can only be managed by a specific spdk_tgt within an instance manager. The commit is intended to record the name of the instance manager associated with that disk.
On the other hand, for a filesystem-type disk, any instance manager can access it. Therefore, the recorded instance manager for a filesystem-type disk is always the default instance manager.

Special notes for your reviewer:

Additional documentation or context

@derekbit derekbit self-assigned this Apr 28, 2024
@derekbit derekbit changed the title Recording instance-manager name for a block disksin node.spec.diskStatus Record instance-manager name for a block disksin node.spec.diskStatus Apr 28, 2024
Copy link
Contributor

@james-munson james-munson left a comment

Choose a reason for hiding this comment

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

LGTM

controller/monitor/disk_monitor.go Show resolved Hide resolved
instanceManagerName records the instance manager that manages the disk

Longhorn 6001

Signed-off-by: Derek Su <derek.su@suse.com>
A block-type disk can only be managed by a specific spdk_tgt within an
instance manager. The commit is intended to record the name of the
instance manager associated with that disk.

On the other hand, for a filesystem-type disk, any instance manager can
access it. Therefore, the recorded instance manager for a filesystem-type
disk is always the default instance manager.

Longhorn 6001

Signed-off-by: Derek Su <derek.su@suse.com>
@derekbit derekbit merged commit 7b3521b into longhorn:master May 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants