5月 292016
 

删除undercloud的步骤,当undercloud部署在物理机,而非虚拟机上时很有用,避免重新安装操作系统。


删除overcloud

heat stack-list
heat stack-delete <UUID>

ironic node-list
ironic node-delete <UUID>

 备份文件

  • /home/stack/undercloud.conf

  • overcloud部署yaml文件

删除相关RPM恢复至初始状态

[stack@undercloud ~]$ source stackrc
[stack@undercloud ~]$ sudo systemctl kill `systemctl | grep openstack | awk '{print $1}'`
[stack@undercloud ~]$ sudo systemctl kill `systemctl | grep neutron | awk '{print $1}'`
[stack@undercloud ~]$ sudo rm -rf /var/lib/mysql /var/lib/rabbitmq /etc/keystone /opt/stack/.undercloud-setup /root/stackrc
[stack@undercloud ~]$ sudo yum remove -y rabbitmq-server mariadb haproxy openvswitch $(rpm -qa | grep openstack)
[stack@undercloud ~]$ yum install python-rdomanager-oscplugin
[stack@undercloud ~]$ openstack undercloud install

确认环境是否干净

[stack@undercloud ~]$ heat stack-list
[stack@undercloud ~]$ ironic node-list
[stack@undercloud ~]$ nova list

应没有任何输出

 Posted by at 下午9:10391 views

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)