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

[microshift] Add initial support for backup info #3300

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

pacevedom
Copy link
Contributor


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname [email protected]?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?

@packit-as-a-service
Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-3300
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

sos/report/plugins/microshift.py Outdated Show resolved Hide resolved
sos/report/plugins/microshift.py Outdated Show resolved Hide resolved
sos/report/plugins/microshift.py Outdated Show resolved Hide resolved
@pacevedom pacevedom force-pushed the USHIFT-1226 branch 3 times, most recently from c1e1bb7 to 1601f41 Compare July 5, 2023 08:43
self.add_forbidden_path('/var/lib/microshift')
if self.path_exists('/var/lib/microshift-backups'):
self.add_copy_spec(['/var/lib/microshift-backups/*/version',
'/var/lib/microshift-backups/health.json'])

Choose a reason for hiding this comment

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

I think @pmtk changed the name of this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done via glob for future proofness

Copy link
Member

@TurboTurtle TurboTurtle left a comment

Choose a reason for hiding this comment

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

Ack, pending confirmation of the file name mentioned above.

@dhellmann
Copy link

I like the use of the wildcard, that will mean fewer updates here if we add more metadata files.

This looks good to me.

@TurboTurtle TurboTurtle merged commit aade89e into sosreport:main Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants