Skip to content

Conversation

@anoopcs9
Copy link
Collaborator

@anoopcs9 anoopcs9 commented Jun 4, 2025

wbinfo and ctdb commands do not accept --debuglevel optional argument. Make sure that we execute those commands without --debuglevel in the presence of --samba-debug-level optional argument to samba-container command or its equivalent with SAMBA_DEBUG_LEVEL environment variable.

fixes #141

@anoopcs9
Copy link
Collaborator Author

anoopcs9 commented Jun 4, 2025

@Mergifyio rebase

@mergify
Copy link

mergify bot commented Jun 4, 2025

rebase

✅ Branch has been successfully rebased

Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this. I started looking into it back in December and then it slipped off my radar.

The general gist looks ok, but I would prefer you use the existing execvp wrapper function unless it doesn't work for some reason - and then either justify why or enhance the existing wrapper.

anoopcs9 added 3 commits June 5, 2025 20:59
This is done in preparation to accept objects of CommandArgs class which
is the parent class for SambaCommand.

Signed-off-by: Anoop C S <[email protected]>
When '--samba-debug-level' (or SAMBA_DEBUG_LEVEL env var) is specified
with samba-container command it adds '--debuglevel' to the underlying
command which is not valid for wbinfo resulting in "Invalid option".
Instead change its internal type to parent class CommandArgs where we
get to run without debug arguments.

Signed-off-by: Anoop C S <[email protected]>
When '--samba-debug-level' (or SAMBA_DEBUG_LEVEL env var) is specified
with samba-container command it adds '--debuglevel' to the underlying
command which is not valid for ctdb resulting in "Invalid option".
Instead change its internal type to parent class CommandArgs where we
get to run without debug arguments.

Signed-off-by: Anoop C S <[email protected]>
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

Copy link
Collaborator

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

lgtm

@mergify mergify bot merged commit 961d1c1 into samba-in-kubernetes:master Jun 10, 2025
10 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

Development

Successfully merging this pull request may close these issues.

samba-container check winbind fails when _GLOBAL_DEBUG is set

3 participants