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

fix(logcollector): fix remote collect cmd to support non-bash shells #9598

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

mikliapko
Copy link
Contributor

@mikliapko mikliapko commented Dec 20, 2024

>& redirecting syntax has been replaced by > file 2>&1 to support shells like sh.
Such a shell is a default on Manager node deployed in Cloud. That makes impossible logs collection there.

In terms of compatibility, > file 2>&1 should behave consistently across different systems and shells.

Testing

  • SCT test for siren-created cluster.
    Has logs for siren-manager.
  • Manager SCT sanity test
    Checked that all log files were collected, no regression.

PR pre-checks (self review)

  • I added the relevant backport labels
  • I didn't leave commented-out/debugging code

`>&` redirecting syntax has been replaced by `> file 2>&1` to support
shells like sh. Such a shell is a default on Manager node deployed in
Cloud. That makes impossible logs collect there.

In terms of compatibility, `> file 2>&1` should behave consistently
across different systems and shells.
@mikliapko mikliapko added the backport/none Backport is not required label Dec 20, 2024
@mikliapko mikliapko self-assigned this Dec 20, 2024
@mikliapko mikliapko marked this pull request as ready for review December 20, 2024 14:36
Copy link
Contributor

@soyacz soyacz left a comment

Choose a reason for hiding this comment

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

LGTM

@fruch fruch merged commit 03cf4e5 into scylladb:master Dec 22, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/none Backport is not required promoted-to-master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants