Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionKamudini Gazdikova
2016-03-07 06:00:41 UTC
Description of problem:
capsule-remove does not delete old certificates.
Version-Release number of selected component (if applicable):
- Red Hat Satellite v 6.1.7
- capsule-installer-2.3.24-1.el7sat.noarch
Issue:
capsule-remove does not delete old certificate rpms. In katello-remove script, "/var/www/html/pub/katello-ca*.rpm" is removed, but it's missing in capsule-remove. That is why we have multiple versions of katello-ca-consumer.
Confirmed by checking and comparing the files from "/usr/share/capsule-installer/bin/capsule-remove" && "/usr/share/katello/script/katello-remove" we can see that for 'CERT_FILES' section is missing to mention for removal of "/var/www/html/pub/katello-ca*.rpm" whereas katello-remove has it scripted.
=============================
Capsule (capsule-remove) file
=============================
[root@dhcp9-147 ~]# cat /usr/share/capsule-installer/bin/capsule-remove
#!/bin/bash
echo ""
echo "WARNING: This script will erase many packages and config files."
echo "Important packages such as the following will be removed:"
echo ""
echo " * httpd (apache)"
echo " * mongodb"
echo " * tomcat"
echo " * puppet"
echo " * ruby"
echo " * rubygems"
echo " * All Katello and Foreman Packages"
...
CERT_FILES=(
/etc/pki/pulp/
/etc/pki/katello
/root/ssl-build
)
===============================
Satellite (katello-remove) file
===============================
[root@dhcp3-80 ~]# cat /usr/share/katello/script/katello-remove
#!/bin/bash
echo ""
echo "WARNING: This script will erase many packages and config files."
echo "Important packages such as the following will be removed:"
echo ""
echo " * elasticsearch"
echo " * httpd (apache)"
echo " * mongodb"
echo " * tomcat6"
echo " * puppet"
echo " * ruby"
echo " * rubygems"
echo " * All Katello and Foreman Packages"
......
...
CERT_FILES=(
/etc/pki/pulp/
/etc/pki/content/*
/etc/pki/katello
/root/ssl-build
/etc/pki/tls/certs/katello-node.crt
/etc/pki/tls/private/katello-node.key
/etc/pki/tls/certs/pulp_consumers_ca.crt
/etc/pki/tls/certs/pulp_ssl_cert.crt
/var/www/html/pub/katello-ca*.rpm
)
Expected results:
capsule-remove should delete old certificates from /var/www/html/pub/.
Additional info:
Closing this bug as BZ 1327442 is a changeup of configs etc and putting that all into 1 PR so merging this BZ with 1327442 for upstream sanity.
*** This bug has been marked as a duplicate of bug 1327442 ***
Description of problem: capsule-remove does not delete old certificates. Version-Release number of selected component (if applicable): - Red Hat Satellite v 6.1.7 - capsule-installer-2.3.24-1.el7sat.noarch Issue: capsule-remove does not delete old certificate rpms. In katello-remove script, "/var/www/html/pub/katello-ca*.rpm" is removed, but it's missing in capsule-remove. That is why we have multiple versions of katello-ca-consumer. Confirmed by checking and comparing the files from "/usr/share/capsule-installer/bin/capsule-remove" && "/usr/share/katello/script/katello-remove" we can see that for 'CERT_FILES' section is missing to mention for removal of "/var/www/html/pub/katello-ca*.rpm" whereas katello-remove has it scripted. ============================= Capsule (capsule-remove) file ============================= [root@dhcp9-147 ~]# cat /usr/share/capsule-installer/bin/capsule-remove #!/bin/bash echo "" echo "WARNING: This script will erase many packages and config files." echo "Important packages such as the following will be removed:" echo "" echo " * httpd (apache)" echo " * mongodb" echo " * tomcat" echo " * puppet" echo " * ruby" echo " * rubygems" echo " * All Katello and Foreman Packages" ... CERT_FILES=( /etc/pki/pulp/ /etc/pki/katello /root/ssl-build ) =============================== Satellite (katello-remove) file =============================== [root@dhcp3-80 ~]# cat /usr/share/katello/script/katello-remove #!/bin/bash echo "" echo "WARNING: This script will erase many packages and config files." echo "Important packages such as the following will be removed:" echo "" echo " * elasticsearch" echo " * httpd (apache)" echo " * mongodb" echo " * tomcat6" echo " * puppet" echo " * ruby" echo " * rubygems" echo " * All Katello and Foreman Packages" ...... ... CERT_FILES=( /etc/pki/pulp/ /etc/pki/content/* /etc/pki/katello /root/ssl-build /etc/pki/tls/certs/katello-node.crt /etc/pki/tls/private/katello-node.key /etc/pki/tls/certs/pulp_consumers_ca.crt /etc/pki/tls/certs/pulp_ssl_cert.crt /var/www/html/pub/katello-ca*.rpm ) Expected results: capsule-remove should delete old certificates from /var/www/html/pub/. Additional info: