-
Notifications
You must be signed in to change notification settings - Fork 368
extra flag parameter for storage-cli and logging stderr log stream #4795
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
Open
serdarozerr
wants to merge
10
commits into
cloudfoundry:main
Choose a base branch
from
sap-contributions:feature/log-storagecli-outputs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
extra flag parameter for storage-cli and logging stderr log stream #4795
serdarozerr
wants to merge
10
commits into
cloudfoundry:main
from
sap-contributions:feature/log-storagecli-outputs
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- we don't need to set since request_id already set in request.rb by either vcap_request_context_setter.rb or by logging_context_job.rb - user_guid is also available in request.rb but only set by security_context_setter.rb so not available in jobs context
3 tasks
3 tasks
johha
requested changes
Jan 22, 2026
lib/cloud_controller/blobstore/storage_cli/storage_cli_client.rb
Outdated
Show resolved
Hide resolved
lib/cloud_controller/blobstore/storage_cli/storage_cli_client.rb
Outdated
Show resolved
Hide resolved
johha
approved these changes
Jan 22, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
We introduced log-level support in
storage-cliand, by default, route all log output to thestderrstream. On thecloud_controller_ngside, these logs need to be persisted to support troubleshooting or debugging.In addition,
storage-clinow exposes optional flags (e.g.-log-level,-log-file) that must be configurable and passed through fromcloud_controller.Solution
We implemented log-level–aware logging in
cloud_controller_ngand ensured that all relevant output is written tocloud_controller_ng.log.To support flexible configuration, we introduced a new config variable,
storage_cli_optional_flags, which allows arbitrary extra flags to be forwarded directly tostorage-cli.The variable is defined as a single string containing the desired flags, for example:
Links to any other associated PRs
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
mainbranchI have run all the unit tests using
bundle exec rakeI have run CF Acceptance Tests