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

🌱 test: fix log collector for cloud-init #2678

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

chrischdi
Copy link
Member

What this PR does / why we need it:

cat /var/log/cloud-init-output.log resulted in:

cat: /var/log/cloud-init-output.log: Permission denied

This makes use of sudo which fixes that. Also adds stderr to the output.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 30, 2024
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 30, 2024
@chrischdi chrischdi changed the title test: fix log collector for cloud-init 🌱 test: fix log collector for cloud-init Jan 30, 2024
@chrischdi
Copy link
Member Author

/assign sbueringer fabriziopandini

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (036fb05) 64.70% compared to head (6fd8c28) 64.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2678      +/-   ##
==========================================
- Coverage   64.70%   64.46%   -0.25%     
==========================================
  Files         118      118              
  Lines        8580     8580              
==========================================
- Hits         5552     5531      -21     
- Misses       2597     2612      +15     
- Partials      431      437       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 30, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 69b6f53d918b359a21ff10e8355bc2aaaf6fe57b

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit 0523385 into main Jan 30, 2024
22 of 23 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Jan 30, 2024
@sbueringer sbueringer deleted the pr-fix-capv-log-capture branch January 30, 2024 20:10
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants