nallapayan 420
nallapayan 420

Reputation: 1

unrecognized arguments: --on-shared-storage

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

Answers (1)

Stephen C
Stephen C

Reputation: 719739

According to the Nova release notes, the onSharedStorage option is no longer necessary:

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.

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

Related Questions