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

Support setting spdk_tgt log level and flags #402

Merged
merged 8 commits into from
Mar 7, 2024

Conversation

derekbit
Copy link
Member

Which issue(s) this PR fixes:

Issue longhorn/longhorn#7939

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context

Deps on longhorn/longhorn-spdk-engine#108

Copy link

mergify bot commented Feb 22, 2024

This pull request is now in conflict. Could you fix it @derekbit? 🙏

Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
Bump InstanceManagerAPIVersion to 6 because of the introduction of log
methods.

Longohrn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
Longhorn 7939

Signed-off-by: Derek Su <derek.su@suse.com>
@innobead innobead merged commit 61eb191 into longhorn:master Mar 7, 2024
6 checks passed
@@ -336,7 +336,7 @@ func (p *Proxy) RemountReadOnlyVolume(ctx context.Context, req *rpc.RemountVolum
"remount,rw",
mp.Path,
}
if _, err := nsexec.Execute("mount", opts, lhtypes.ExecuteDefaultTimeout); err != nil {
if _, err := nsexec.Execute(nil, "mount", opts, lhtypes.ExecuteDefaultTimeout); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

@ChanYiLin @derekbit already fixed the issue here.

@@ -2,7 +2,7 @@ package meta

const (
// InstanceManagerAPIVersion is used for compatibility check for longhorn-manager
InstanceManagerAPIVersion = 5
InstanceManagerAPIVersion = 6
Copy link
Member

Choose a reason for hiding this comment

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

Although we add new methods to InstanceService gRPC interface, it does not really need to bump InstanceManagerAPIVersion here, because:

  • When an old client calls any existing methods in a new instance manager w/ these new methods, everything should work correctly because of backward compatibility in gRPC.
  • When a new client calls any new method in an old instance manager, even though the method does not exist, the call will just do nothing, because of forward compatibility.

We Need to review the current traditional version flag way to control how new/old longhorn manager communicates with new/old instance manager, but rather rely on gRPC capabilities.

ref: longhorn/longhorn#4833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants