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

dnf package resource version comparison failures, part 3 #10983

Open
epilatow opened this issue Feb 3, 2021 · 1 comment
Open

dnf package resource version comparison failures, part 3 #10983

epilatow opened this issue Feb 3, 2021 · 1 comment

Comments

@epilatow
Copy link

epilatow commented Feb 3, 2021

As a follow up to #10950, I found another dnf faiulre for :purge and :remove package resources, also caused by a comparison between current_version and new_version. Here's some chef debug output for an rpm which is failing to be removed:

Processing dnf_package[fb-mysql-server-5.6.35-202010141616.prod] action purge (fb_mysql::fb_mysql_server_rpm line 85)
Providers for generic dnf_package resource enabled on node include: [Chef::Provider::Package::Dnf]
Provider for action purge on resource dnf_package[fb-mysql-server-5.6.35-202010141616.prod] is Chef::Provider::Package::Dnf
sending '{"action":"whatinstalled","provides":"fb-mysql-server-5.6.35-202010141616.prod"}' to python helper
got 'fb-mysql-server-5.6.35-202010141616.prod 0:5.6.35-202010141616.prod x86_64' from python helper
parsed fb-mysql-server-5.6.35-202010141616.prod-0:5.6.35-202010141616.prod.x86_64 from python helper
sending '{"action":"whatinstalled","provides":"fb-mysql-server-5.6.35-202010141616.prod","version":"5.6.35","release":"202010141616.prod"}' to python helper
got 'fb-mysql-server-5.6.35-202010141616.prod 0:5.6.35-202010141616.prod x86_64' from python helper
parsed fb-mysql-server-5.6.35-202010141616.prod-0:5.6.35-202010141616.prod.x86_64 from python helper

It's worth pointing out that this package has its version and release information also embedded into its name. The removal fails when removing_package? calls have_any_matching_version? because equality comparisons fail for the following version strings:

current_version_array: ["0:5.6.35-202010141616.prod.x86_64"]
new_version_array: ["5.6.35-202010141616.prod"]
@epilatow epilatow added the Status: Untriaged An issue that has yet to be triaged. label Feb 3, 2021
@epilatow
Copy link
Author

epilatow commented Feb 3, 2021

The failure mode is that the package doesn't get removed.

@tas50 tas50 added Platform: RHEL-like Focus: Resources and removed Status: Untriaged An issue that has yet to be triaged. labels May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants