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

[release-5.7] LOG-3945: Collector pods in CrashLoopBackOff with spaces in pipeline name #1961

Merged
merged 1 commit into from May 19, 2023

Conversation

Clee2691
Copy link
Contributor

Description

This PR fixes the CrashLoopBackOff problem for the collector container when the ClusterLogForwarder spec's pipeline name contained spaces. This fix sanitizes pipeline names replacing spaces " ", dashes -, and dots . with underscores _.

Example:
pipeline with space -> pipeline_with_space
pipeline.with space.dot -> pipeline_with_space_dot

In addition to the above fix, I refactored most vector output's ComponentIDs to use the vector helper function, FormatComponentID() instead of strings.ToLower(), to improve code readability.

/cc @cahartma @vparfonov
/assign @jcantrill

/cherry-pick master

Links

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 21, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 21, 2023

@Clee2691: This pull request references LOG-3945 which is a valid jira issue.

In response to this:

Description

This PR fixes the CrashLoopBackOff problem for the collector container when the ClusterLogForwarder spec's pipeline name contained spaces. This fix sanitizes pipeline names replacing spaces " ", dashes -, and dots . with underscores _.

Example:
pipeline with space -> pipeline_with_space
pipeline.with space.dot -> pipeline_with_space_dot

In addition to the above fix, I refactored most vector output's ComponentIDs to use the vector helper function, FormatComponentID() instead of strings.ToLower(), to improve code readability.

/cc @cahartma @vparfonov
/assign @jcantrill

/cherry-pick master

Links

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jcantrill
Copy link
Contributor

/approve
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 21, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 21, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Clee2691, jcantrill

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 21, 2023
@jcantrill
Copy link
Contributor

/retest

3 similar comments
@jcantrill
Copy link
Contributor

/retest

@jcantrill
Copy link
Contributor

/retest

@Clee2691
Copy link
Contributor Author

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 27, 2023
… pipeline has space in between the pipeline name.
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 28, 2023
@jcantrill
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 1, 2023
@Clee2691 Clee2691 changed the title LOG-3945: Collector pods in CrashLoopBackOff with spaces in pipeline name [release-5.7] LOG-3945: Collector pods in CrashLoopBackOff with spaces in pipeline name May 5, 2023
@jcantrill
Copy link
Contributor

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 18, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 26afcb4 and 2 for PR HEAD a85b2c2 in total

@Clee2691
Copy link
Contributor Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 19, 2023

@Clee2691: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 052a0e9 into openshift:release-5.7 May 19, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. release/5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants