我有一个我想删除的网络。
nova net-list
命令将返回此输出:
+--------------------------------------+-----------+---------------+
| ID | Label | CIDR |
+--------------------------------------+-----------+---------------+
| 28b10eb4-88ae-46c4-802b-90456ffbd38e | intra-net | 10.0.0.128/25 |
+--------------------------------------+-----------+---------------+
如果我输入nova net-delete 28b10eb4-88ae-46c4-802b-90456ffbd38e
,输出将为:
ERROR (Conflict): Network 4 is still in use. (HTTP 409) (Request-ID: req-d4095852-3412-4c2b-a236-b272e221868c)
我现在没有创建实例(我终止了所有实例)。还有什么可以使用这个网络?
这是在/ var / log / nova / nova-network中找到的堆栈跟踪。
File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 400, in _object_dispatch
return getattr(target, method)(context, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line 204, in wrapper
return fn(self, ctxt, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/objects/network.py", line 179, in destroy
db.network_delete_safe(context, self.id)
File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 961, in network_delete_safe
return IMPL.network_delete_safe(context, network_id)
File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 125, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 2634, in network_delete_safe
raise exception.NetworkInUse(network_id=network_id)
我有nova-legacy,而不是nova-nenet-network。
答案 0 :(得分:0)
你可以尝试
netstat -tapnu | grep 10.0.0 network
如果您使用带有dhcp选项的扁平网络,则很可能dnsmasq
仍然保留计算中的这些IP地址。
查看计算网络日志。