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
Fixes #32488 - use rpm to remove pulp2 packages #473
Conversation
Issues: #32488 |
python-pulp-manifest python-pulp-oid_validation python-pulp-ostree-common python-pulp-puppet-common | ||
python-pulp-python-common python-pulp-repoauth python-pulp-rpm-common python-pulp-streamer python-pymongo | ||
python-pymongo-gridfs python2-amqp python2-billiard python2-celery python2-debpkgr python2-django python2-kombu | ||
python2-solv python2-vine) |
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.
This is a list of every rpm in the latest pulp2 repository, minus gofer packages which can be used for katello-agent. No additional packages are listed
python2-solv python2-vine) | ||
|
||
@installed_pulp_packages ||= all_possible.select { |pkg| find_package(pkg) } | ||
@installed_pulp_packages |
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.
here we only consider packages actually installed, and cache to not have to recalculate again when this method is called a 2nd time.
possible = %w[pulp-admin-client pulp-agent pulp-consumer-client pulp-deb-admin-extensions | ||
pulp-deb-plugins pulp-docker-admin-extensions pulp-docker-plugins | ||
pulp-nodes-admin-extensions pulp-nodes-child pulp-nodes-common | ||
pulp-nodes-consumer-extensions pulp-nodes-parent pulp-ostree-admin-extensions | ||
pulp-ostree-plugins pulp-puppet-admin-extensions | ||
pulp-puppet-consumer-extensions pulp-puppet-handlers pulp-puppet-plugins | ||
pulp-puppet-tools pulp-python-admin-extensions pulp-python-plugins | ||
pulp-rpm-admin-extensions pulp-rpm-consumer-extensions pulp-rpm-handlers | ||
pulp-rpm-plugins pulp-rpm-yumplugins pulp-selinux pulp-server python-bson |
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.
Can't you use rpm -qa | grep ^pulp-
or will that also match pulp 3 packages?
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.
I think both these suggestions would work, but to be honest i prefer this explicit list especially given the side effects we saw from users.
python-pulp-agent-lib python-pulp-bindings python-pulp-client-lib | ||
python-pulp-common python-pulp-deb-common python-pulp-devel | ||
python-pulp-docker-common python-pulp-integrity python-pulp-manifest | ||
python-pulp-oid_validation python-pulp-ostree-common python-pulp-puppet-common | ||
python-pulp-python-common python-pulp-repoauth python-pulp-rpm-common | ||
python-pulp-streamer python-pymongo python-pymongo-gridfs python2-amqp |
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.
Same here with ^python-pulp-
Hello @jlsherrill Changes look good to me! Apart from these changes can you also modify
Accordingly remove directory check from Thank you |
updated! |
Hello @jlsherrill can you remove |
updated! |
Hit this while testing on a 4.0 box I upgrade from 3.18:
|
I added pulp-katello to the rpms to be removed and it succeeded. Here's what's left over containing "pulp" or "mongo":
The leftovers seem valid - but what about:
|
as yum can remove other packages unexpectedly (such as mod_ssl and more)
not sure why i didn't hit that, but easy enough to add! Thanks @jturel Added! |
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.
ACK - tests well!
@upadhyeammit can you merge please :) |
as yum can remove other packages unexpectedly
(such as mod_ssl and more)