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

[RHELC-1385] Satellite package backup failure fix #1182

Merged
merged 10 commits into from
Apr 26, 2024

Conversation

pr-watson
Copy link
Contributor

@pr-watson pr-watson commented Apr 12, 2024

This PR changes our backups to now backup the redhat.repo file when running with satellite. The reason backups were failing on satellite was due to the redhat.repo file being excluded from backups which in turn causes the .repo files not to be backed up. This change also removes the requirement for internet access to backup using hardcoded repository files and defaults to always using the the hardcoded repository files.

A similiar failure with backing up repo files has been reported for offline conversions with satellite - RHELC-1040, however this PR does not fix the issue

Jira Issues:

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

@pr-watson pr-watson added kind/feature New feature or request tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. labels Apr 12, 2024
@has-bot
Copy link
Member

has-bot commented Apr 12, 2024

/packit test --labels tier0


Comment generated by an automation.

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.55%. Comparing base (0cbfd75) to head (6f9b687).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1182      +/-   ##
==========================================
+ Coverage   95.53%   95.55%   +0.01%     
==========================================
  Files          53       53              
  Lines        4660     4656       -4     
  Branches      818      816       -2     
==========================================
- Hits         4452     4449       -3     
  Misses        130      130              
+ Partials       78       77       -1     
Flag Coverage Δ
centos-linux-7 90.68% <100.00%> (+0.01%) ⬆️
centos-linux-8 91.65% <100.00%> (+0.01%) ⬆️
centos-linux-9 91.70% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@r0x0d
Copy link
Member

r0x0d commented Apr 12, 2024

/packit test --labels tier0

@Venefilyn Venefilyn changed the title Satellite package backup failure fix [RHELC-1385] Satellite package backup failure fix Apr 15, 2024
@Venefilyn
Copy link
Member

Unit tests failing @pr-watson

@pr-watson
Copy link
Contributor Author

Unit tests failing @pr-watson

Working on the fixes now

@pr-watson pr-watson marked this pull request as draft April 23, 2024 13:49
@pr-watson pr-watson marked this pull request as ready for review April 23, 2024 14:25
Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

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

Looks good to me. Only a couple of comments regarding the message we want to inform to the user.

Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

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

Looks good!

@pr-watson
Copy link
Contributor Author

/packit build

@pr-watson
Copy link
Contributor Author

/packit test --labels tier0

@danmyway
Copy link
Member

Just tested the build with a Satellite registration and the backup works fine.

@Venefilyn
Copy link
Member

@danmyway merge whenever

@pr-watson
Copy link
Contributor Author

/packit test --labels tier0

Copy link
Member

@danmyway danmyway left a comment

Choose a reason for hiding this comment

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

Found a minor bug breaking the backup on some systems @pr-watson

convert2rhel/actions/pre_ponr_changes/backup_system.py Outdated Show resolved Hide resolved
pr-watson and others added 6 commits April 24, 2024 10:09
THe should_subscribe call was missing a `()` to execute the function.
Co-authored-by: Rodolfo Olivieri <rodolfo.olivieri3@gmail.com>
@pr-watson
Copy link
Contributor Author

/packit test --labels tier0

Copy link
Member

@danmyway danmyway left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@danmyway danmyway merged commit 8e69e8a into oamg:main Apr 26, 2024
33 checks passed
@danmyway
Copy link
Member

@pr-watson I'm merging this
@r0x0d this might resolve the issues in #1181, if you may pull the changes from @kokesak and rebase, so we can see, how that's going.
Thanks!

@pr-watson
Copy link
Contributor Author

@danmyway thank you!

@hosekadam hosekadam mentioned this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants