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

feat(preflights): include preflight collect results in support bundle #1195

Conversation

emosbaugh
Copy link
Member

What this PR does / why we need it:

The new version of troubleshoot will drop the preflight collected files on disk in the current directory. This change will move the file to the /var/lib/embedded-cluster/logs directory which is included in support bundles.

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

src = match
}
}
dst := filepath.Join(defaults.EmbeddedClusterLogsSubDir(), "preflight-bundle.tar.gz")
Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't be unique - I think for logs we use the timestamp or something?

That way we don't overwrite each time the install command is run

Copy link
Member Author

Choose a reason for hiding this comment

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

My thinking here is that if we store all these bundles here it will bloat the support bundle too much so i am only storing the latest.

Copy link

github-actions bot commented Sep 17, 2024

This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID.

Online Installer:

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci/appver-dev-be6e7a3" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Airgap Installer (may take a few minutes before the airgap bundle is built):

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci-airgap/appver-dev-be6e7a3?airgap=true" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Happy debugging!

banjoh
banjoh previously approved these changes Sep 17, 2024
@emosbaugh
Copy link
Member Author

Test is flakey. Merging

@emosbaugh emosbaugh merged commit 545c1f9 into main Sep 18, 2024
54 of 56 checks passed
@emosbaugh emosbaugh deleted the emosbaugh/sc-111576/include-host-preflight-results-in-support-bundle branch September 18, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants