无法识别的参数:--on-shared-storage

问题描述

我们已尝试使用“on-shared-storage”选项疏散实例,但无法识别该参数。请帮我解决这个问题。

nova evacuate --on-shared-storage > >

错误

错误:无法识别的参数:--on-shared-storage 尝试“nova help”以获取更多信息。

解决方法

根据 Nova 发行说明,不再需要 onSharedStorage 选项:

https://github.com/openstack/nova/blob/master/releasenotes/notes/remove-on-shared-storage-flag-from-evacuate-api-76a3d58616479fe9.yaml

@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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...