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

fix(storage): recover config if needed #1848

Merged
merged 3 commits into from
Dec 20, 2024
Merged

fix(storage): recover config if needed #1848

merged 3 commits into from
Dec 20, 2024

Conversation

joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Dec 20, 2024

Problem

In autoinstallation, the storage config could be set before probing storage. If so, the probing action overwrites the config that was set from the autoinstall profile.

https://bugzilla.suse.com/show_bug.cgi?id=1234711

Solution

Hotfix for ensuring the storage config is preserved when doing probing for first time. A better solution should be provided for a correct management of the services and precedences.

Testing

Manually tested.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12431918378

Details

  • 7 of 22 (31.82%) changed or added relevant lines in 2 files are covered.
  • 25 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.03%) to 70.878%

Changes Missing Coverage Covered Lines Changed/Added Lines %
service/lib/agama/dbus/clients/storage.rb 3 7 42.86%
service/lib/agama/manager.rb 4 15 26.67%
Files with Coverage Reduction New Missed Lines %
service/service/lib/agama/dbus/clients/storage.rb 4 87.88%
service/service/lib/agama/manager.rb 21 80.99%
Totals Coverage Status
Change from base Build 12431612344: -0.03%
Covered Lines: 17066
Relevant Lines: 24078

💛 - Coveralls

@joseivanlopez joseivanlopez changed the title fix(storage): recover storage config if needed fix(storage): recover config if needed Dec 20, 2024
@joseivanlopez joseivanlopez marked this pull request as ready for review December 20, 2024 15:11
Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

Thanks for such a quick fix!

@@ -159,6 +148,21 @@ def install_phase
end
# rubocop:enable Metrics/AbcSize

def locale=(locale)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for moving this. I always think that it is misplaced, but I never fix it.

@joseivanlopez joseivanlopez merged commit cf131a8 into master Dec 20, 2024
12 checks passed
@joseivanlopez joseivanlopez deleted the bsc#1234711 branch December 20, 2024 15:22
@jreidinger jreidinger mentioned this pull request Dec 23, 2024
dgdavid added a commit that referenced this pull request Dec 23, 2024
## Problem

There is collision between
#1848 and
#1840 where bootloader adds
another interface with Get/SetConfig on Storage service. This result
that generic access no longer works and needs access via specific
interface.

reported on slack
https://suse.slack.com/archives/C02TLF25571/p1734924853266999

## Solution

Change code to avoid ambitious code.


## Testing

- *Tested manually*
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