在openstack里面有时候删除instance时,volume无法跟着删除,可以自己编写脚本来实现, 脚本代码如下: #!/bin/bash for i in $(cat /root/host-del); do host_id=`nova list --all --ip $i |grep -w "$i" |awk '{print $2}'` volume_id=`cinder list --all |grep -w $host_id |a…
Issue: When you created an instance inside Openstack, you may find that you cannot ping address by domain name in the instance. But ping IP Address directly is OK. For example, ping 74.125.200.99 is OK, but ping www.google.com will be failed, because…
#!/bin/bash #delete vm for vim in `nova list |awk '{if( NR > 2 ) {print $2}}'`;do nova delete $vim & done #Unbundling router for port in `neutron port-list --all |awk '{if( NR > 2 ) {print $2}}'`;do for router in `neutron router-list --all | awk…