问题描述
我们已尝试使用“on-shared-storage”选项疏散实例,但无法识别该参数。请帮我解决这个问题。
nova evacuate --on-shared-storage > >
错误:
错误:无法识别的参数:--on-shared-storage 尝试“nova help”以获取更多信息。
解决方法
根据 Nova 发行说明,不再需要 onSharedStorage
选项:
@gibizer
gibizer Remove onSharedStorage from evacuate API
Latest commit c01d16e on Nov 10,2015
History
1 contributor
7 lines (7 sloc) 353 Bytes
---
features:
- Remove ``onSharedStorage`` parameter from server's evacuate action in
microversion 2.14. Nova will automatically detect if the instance is on
shared storage. Also adminPass is removed from the response body which
makes the response body empty. The user can get the password with the
server's os-server-password action.
您的 nova
客户端无法识别该选项的事实意味着您的 Nova 服务的默认微版本晚于 2.14。
您可以尝试强制微版本,但似乎没有多大意义……根据发行说明的内容。
(根据当前的 python-novaclient
源代码,--on-shared-storage
选项可用于微版本 2.0 到 2.13。请参阅 https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/shell.py)