Ask Your Question

Is there Packstack uninstall operation

asked 2014-03-04 23:37:58 -0500

dubi gravatar image

updated 2014-03-04 23:38:22 -0500

Is there a Packstack uninstall operation ? (uninstall) like the ./stack and ./unstack that we have on Ubuntu for Openstack devstack installation ?

I have one fedora system ( installed on raid 1 disk and EFI boot ) that whenever I make change to the --answer-file and rerun the Packstack and then reboot I have a problem with the Neutron running. I get HTTP 500 error and restarting the neutron stack (server , dhcp agent etc.) does not help it . The restart shows no error but the 500 error is still there when trying neutron commands . 'neutron agent-list' shows 'Connection to neutron failed: Maximum attempts reached'.

This does not happen on another 'older' host with same installation and answer-file but no EFI or raid 1 active

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2017-07-20 07:15:45 -0500

Uninstalling RDO

There is no automated uninstall process for RDO (or OpenStack in general) because OpenStack consists of multiple services, (possibly) running across multiple systems. At this time there is no way to identify all of the various parts, locate them, and safely uninstall them. Since OpenStack installations are almost certain to be deployed on dedicated systems (or VMs), the most reasonable way to "uninstall" RDO is to reinstall the base OS and start fresh.

edit flag offensive delete link more

answered 2017-07-20 23:42:37 -0500

mourya007 gravatar image

Hi i think we can do this by creating a file and add this script after that just run the file and your packstack will be un-install completely .:)


Warning! Dangerous step! Destroys VMs

for x in $(virsh list --all | grep instance- | awk '{print $2}') ; do virsh destroy $x ; virsh undefine $x ; done ;

Warning! Dangerous step! Removes lots of packages, including many

which may be unrelated to RDO.

yum remove -y nrpe "nagios" puppet ntp ntp-perl ntpdate "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 ;

Warning! Dangerous step! Deletes local application data

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

edit flag offensive delete link more

answered 2014-03-05 00:45:30 -0500

MoizArif gravatar image

You can remove individual components that are troubling you. Like for instance, if you want a fresh neturon installation than use yum remove openstack-neutron. After that you can re-run packstack, and it will re-install neutron on your machine. You can do this for all openstack services.

For the http 500 error, this represents that the neutron server is not working properly. You might want to re-check the configuration files (.conf) for neutron services. Also sometimes re-installing fixes this issue. Hope this helps.

edit flag offensive delete link more


To remind : I am using fedora 19 and Openstack Havana ( from allinone) - Unfortunately (removing the packages) does not prevent errors while reinstalling again with 'packstack --answer-file .< cfg-file> For the neutron I get an error : ERROR : Error appeared during Puppet run: Error: Could not start Service[ovs-cleanup-service]: Execution of '/sbin/service neutron-ovs-cleanup start' returned 6: Running systemctl status neutron-ovs-cleanup.service shows : neutron-ovs-cleanup[28597]: IOError: [Errno 13] Permission denied: '/var/log/neutron/ovs -cleanup.log neutron-ovs-cleanup.service: main process exited, code=exited, status=1/FAILURE Failed to start OpenStack Neutron Open vSwitch Cleanup Utility. I run as root and the cleanup runs as neutron . No permits were changed on the system In the error log I find no more explanation except the Traceback ( usually during running setup )

dubi gravatar imagedubi ( 2014-03-05 04:16:28 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-03-04 23:37:58 -0500

Seen: 9,936 times

Last updated: Jul 20 '17