-
Notifications
You must be signed in to change notification settings - Fork 84
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-1635] State action in special pkg removal report msgs #1297
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -146,14 +146,21 @@ def run(self): | |||||
# shows which packages were not removed, if false, all packages were removed | ||||||
pkgs_not_removed = sorted(frozenset(pkghandler.get_pkg_nevras(all_pkgs)).difference(pkgs_removed)) | ||||||
if pkgs_not_removed: | ||||||
message = "The following packages were not removed: %s" % ", ".join(pkgs_not_removed) | ||||||
message = "The following packages cannot be removed: %s" % ", ".join(pkgs_not_removed) | ||||||
logger.warning(message) | ||||||
self.add_message( | ||||||
level="WARNING", | ||||||
id="SPECIAL_PACKAGES_NOT_REMOVED", | ||||||
title="Special packages not removed", | ||||||
description="Special packages which could not be removed", | ||||||
diagnosis=message, | ||||||
title="Some packages cannot be removed", | ||||||
description=message, | ||||||
diagnosis=( | ||||||
"The packages match a pre-defined list of packages that are to be removed during the" | ||||||
" conversion. This list includes packages that are known to cause a conversion failure." | ||||||
), | ||||||
remediations=( | ||||||
"We do a conversion dry-run (yum transaction validation) later on as part of the pre-conversion" | ||||||
" analysis. If the dry-run fails, try removing the packages listed above manually." | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to add there also command customer can use? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first sentence in the remediations seems to be they would be a better fit in the diagnosis, I belive... Right now, it doesn't seem that they are fitting in the remediations correctly. I tend to think that remediation would be a step-to-step on how to solve the problem, not really an explanation of why it failed.
If we know what command can be used, I don't see why not. Would be useful |
||||||
), | ||||||
) | ||||||
|
||||||
if pkgs_removed: | ||||||
|
@@ -162,12 +169,13 @@ def run(self): | |||||
self.add_message( | ||||||
level="INFO", | ||||||
id="SPECIAL_PACKAGES_REMOVED", | ||||||
title="Special packages to be removed", | ||||||
description=( | ||||||
title="Packages to be removed", | ||||||
description=message, | ||||||
diagnosis=( | ||||||
"We have identified installed packages that match a pre-defined list of packages that are" | ||||||
" to be removed during the conversion" | ||||||
" known to cause a conversion failure." | ||||||
), | ||||||
diagnosis=message, | ||||||
remediations=("Check that the system runs correctly without the packages after the conversion."), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bookwar, do you see a better action the user can take? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
) | ||||||
|
||||||
super(RemoveSpecialPackages, self).run() | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should also update the id? It feels strange that in the id we call them as "special" and in the title is just "some packages"