Reputation: 1
We have tried to evacuate the instance with the "on-shared-storage" option but that parameter is not recognized. Please help me with this issue.
nova evacuate --on-shared-storage <<Instance_UUID>> <<host_name>>
Error:
error: unrecognized arguments: --on-shared-storage Try 'nova help ' for more information.
Upvotes: 0
Views: 398
Reputation: 719739
According to the Nova release notes, the onSharedStorage
option is no longer necessary:
@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.
The fact that your nova
client doesn't recognize the option implies that your Nova service's default microversion is later than 2.14.
You could try forcing the microversion, but there doesn't seem to be much point ... based on what the release note says.
(According to the current python-novaclient
source code, the --on-shared-storage
option is recognized for microversions 2.0 through 2.13. See https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/shell.py)
Upvotes: 1