-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add rpm db consistency plugin #19
Conversation
Ensure RPM database is always consistent (all dependencies are fulfilled) and revert to previous snapshot if not.
Awesome change, LGTM! |
Yes, LGTM, too! Who's taking it? @schubi2, are you taking it? |
It turned out this check is too invasive because it
Maybe something like |
I'm not 100% sure zypper is called with --no-refresh, so it shouldn't do any network access. |
It will not, but not all issues zypper finds are a reason to do a rollback. E.g. unresolved dependencies of RPMs are sometimes wanted by the admin.
That's not correct, --no-refresh will not refresh the cache, but it does not forbid zypper to fetch missing data via network. And that's the problem: data is missing and no network, zypper fails. |
If an admin choose to shoot themself in the foot, fine, but he/she should disable this healthcheck then.
The point of this plugin was to ensure RPM db was always consistent (not just readable). Switching to |
I'm using a setup where I had to "shoot myself in the foot": A third-party package was packaged for Red Had distributions only, using a different package name as a dependency. When just ignoring that dependency everything is working perfectly fine though. I'd still like to have a check for a broken RPM database though, because at least on test machines I got into that situation a few times already, especially at the time when the database backend was migrated... |
Ensure RPM database is always consistent (all dependencies are fulfilled) and revert to previous snapshot if not.