1、现象描述:
以前在测试环境中使用过icehouse版本,记得当时查看网络列表是使用neutron net-list,最近两天在测试openstack ocata的时候发现好多之前的命令都不能正常使用,大概是openstack想凸显openstack命令的重要性吧。
2、实验过程
[root@linux-node1 ~]# neutron net-list neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. Connection to neutron failed: Failed to connect Neutron server [root@linux-node1 ~]# openstack network list +--------------------------------------+----------+--------------------------------------+ | ID | Name | Subnets | +--------------------------------------+----------+--------------------------------------+ | aeb2244d-ac78-4238-bdd6-a9f0bb5cccc6 | provider | 89ba16c7-c42e-4cd6-8703-2de82b8cbfa1 | +--------------------------------------+----------+--------------------------------------+ 使用openstack network deleter "ID"进行处理 [root@linux-node1 ~]# openstack network delete aeb2244d-ac78-4238-bdd6-a9f0bb5cccc6 You have new mail in /var/spool/mail/root [root@linux-node1 ~]# openstack network list
3、小结
openstack新版本跟老版本在功能上差异不算太大,但是从命令和操作方式上来看,还是存在一些不同,学习openstack,重点要放在架构理解,具体的操作可以参考官方的手册
本文出自 “冰冻vs西瓜” 博客,请务必保留此出处http://molewan.blog.51cto.com/287340/1904668
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead
原文地址:http://molewan.blog.51cto.com/287340/1904668