Bug 958886
| Summary: | RFE: Cleanup utility or option for packstack. | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Stephen Gordon <sgordon> | |
| Component: | openstack-packstack | Assignee: | Ivan Chavero <ichavero> | |
| Status: | CLOSED WONTFIX | QA Contact: | yeylon <yeylon> | |
| Severity: | low | Docs Contact: | ||
| Priority: | low | |||
| Version: | 3.0 | CC: | aortega, bsettle, bugzilla, derekh, jschluet, mfuruta, mmagr, srevivo | |
| Target Milestone: | --- | Keywords: | FutureFeature | |
| Target Release: | 8.0 (Liberty) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Enhancement | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1038752 (view as bug list) | Environment: | ||
| Last Closed: | 2015-12-02 19:43:10 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | 1010317 | |||
| Bug Blocks: | 1038752 | |||
We can reuse package_manifest resource in puppet-tripleo to remove packages. |
Description of problem: Request a better way to roll back a packstack installation than manually running: for x in $(virsh list --all | grep instance- | awk '{print $2}') ; do virsh destroy $x ; virsh undefine $x ; done ; yum remove -y nrpe "*nagios*" puppet "*ntp*" "*openstack*" "*nova*" "*keystone*" "*glance*" "*cinder*" "*swift*" mysql mysql-server httpd "*memcache*" scsi-target-utils iscsi-initiator-utils perl-DBI perl-DBD-MySQL ; ps -ef | grep -i repli | grep swift | awk '{print $2}' | xargs kill ; rm -rf /etc/nagios /etc/yum.repos.d/packstack_* /root/.my.cnf /var/lib/mysql/ /var/lib/glance /var/lib/nova /etc/nova /etc/swift /srv/node/device*/* /var/lib/cinder/ /etc/rsync.d/frag* /var/cache/swift /var/log/keystone ; umount /srv/node/device* ; killall -9 dnsmasq tgtd httpd ; setenforce 1 ; vgremove -f cinder-volumes ; losetup -a | sed -e 's/:.*//g' | xargs losetup -d ; find /etc/pki/tls -name "ssl_ps*" | xargs rm -rf ; for x in $(df | grep "/lib/" | sed -e 's/.* //g') ; do umount $x ; done In RHEV there is a rhevm-cleanup utility, in IPA we have a '--uninstall' option to the ipa-server-setup script. I think we need an equivalent for OpenStack. At first it should handle the all in one case but ideally I'd like to see a plan for working out what was originally applied and rolling back external nodes too. Obviously if the user has further expanded their packstack deployment they are still on their own.