sh openstack暴风雨清理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh openstack暴风雨清理相关的知识,希望对你有一定的参考价值。

#!/bin/bash

# cleanup tempest
neutron port-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron port-delete {}
neutron subnet-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron subnet-delete {}
neutron subnet-list --all-tenants | grep "100.FIXME" | awk '{print $2}' | xargs -i neutron subnet-delete {}
neutron net-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron net-delete {}
neutron net-list --all-tenants | grep snat-si-left_snat_ | awk '{print $2}' | xargs -i neutron net-delete {}
neutron security-group-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron security-group-delete {}
neutron router-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron router-delete {}
keystone user-list | grep tempest | awk '{print $2}' | xargs -i keystone user-delete {}
keystone tenant-list | grep tempest | awk '{print $2}' | xargs -i keystone tenant-delete {}
glance image-list | grep tempest | awk '{print $2}' | xargs -i glance image-delete {}

以上是关于sh openstack暴风雨清理的主要内容,如果未能解决你的问题,请参考以下文章

openstack内存占用清理

sh openstack-keystone.sh

sh openstack-keystone.sh

sh Openstack命令示例

sh openstack keystone端点恢复脚本

sh Openstack Kolla安装