-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
8f0f34c
to
86c183c
Compare
This pull request is now in conflict. Could you fix it @derekbit? 🙏 |
Longhorn 7939 Signed-off-by: Derek Su <[email protected]>
Longhorn 7939 Signed-off-by: Derek Su <[email protected]>
Longhorn 7939 Signed-off-by: Derek Su <[email protected]>
Longhorn 7939 Signed-off-by: Derek Su <[email protected]>
Longhorn 7939 Signed-off-by: Derek Su <[email protected]>
Bump InstanceManagerAPIVersion to 6 because of the introduction of log methods. Longohrn 7939 Signed-off-by: Derek Su <[email protected]>
Longhorn 7939 Signed-off-by: Derek Su <[email protected]>
@@ -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 { |
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.
@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 |
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.
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.
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