Public bug reported: steps: - stop nova-compute on the HV you want to evacuate your vms from (e.g. cloudtest.com) - wait until "sudo nova-manage service list" on api host shows the hv is down (nova-compute cloudtest002.com nova enabled XXX 2014-05-02 19:33:42)
- nova host-evacuate cloudtest002.com +--------------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------+ | Server UUID | Evacuate Accepted | Error Message | +--------------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------+ | 82d28272-ff0d-441b-8e88-f195ab7e08c1 | False | Error while evacuating instance: Compute host None not found. (HTTP 404) Request-ID: req-4039a11d-51d6-4660-a79e-140546bcf58f) | | eae49da6-efbe-41af-81bd-e5815f9a5f68 | False | Error while evacuating instance: Compute host None not found. (HTTP 404) (Request-ID: req-508318d0-2b4c-4cd5-80d2-e9cc80c9b702) | +--------------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------+ the actual command should have been -bash-4.1$ nova host-evacuate --target_host cloudtest001.com cloudtest002..com +--------------------------------------------------------------+-----------------------------+-----------------------+ | Server UUID | Evacuate Accepted | Error Message | +--------------------------------------------------------------+-----------------------------+-----------------------+ | 82d28272-ff0d-441b-8e88-f195ab7e08c1| True | | | eae49da6-efbe-41af-81bd-e5815f9a5f68 | True | | +--------------------------------------------------------------+-----------------------------+-----------------------+ If you do a nova help for the host evacuate command it shows the --target_host as an optional parameter e.g -bash-4.1$ nova help host-evacuate usage: nova host-evacuate [--target_host <target_host>] [--on-shared-storage] <host> Evacuate all instances from failed host to specified one. Positional arguments: <host> Name of host. Optional arguments: --target_host <target_host> Name of target host. --on-shared-storage Specifies whether all instances files are on shared storage ** Affects: nova-project Importance: Undecided Status: New ** Tags: cli nova ** Project changed: neutron => nova-project ** Tags added: cli nova -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1316222 Title: Nova host-evacuate lists the target_host as optional parameter though it is a required parameter Status in The Nova Project: New Bug description: steps: - stop nova-compute on the HV you want to evacuate your vms from (e.g. cloudtest.com) - wait until "sudo nova-manage service list" on api host shows the hv is down (nova-compute cloudtest002.com nova enabled XXX 2014-05-02 19:33:42) - nova host-evacuate cloudtest002.com +--------------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------+ | Server UUID | Evacuate Accepted | Error Message | +--------------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------+ | 82d28272-ff0d-441b-8e88-f195ab7e08c1 | False | Error while evacuating instance: Compute host None not found. (HTTP 404) Request-ID: req-4039a11d-51d6-4660-a79e-140546bcf58f) | | eae49da6-efbe-41af-81bd-e5815f9a5f68 | False | Error while evacuating instance: Compute host None not found. (HTTP 404) (Request-ID: req-508318d0-2b4c-4cd5-80d2-e9cc80c9b702) | +--------------------------------------+-------------------+---------------------------------------------------------------------------------------------------------------------------------+ the actual command should have been -bash-4.1$ nova host-evacuate --target_host cloudtest001.com cloudtest002..com +--------------------------------------------------------------+-----------------------------+-----------------------+ | Server UUID | Evacuate Accepted | Error Message | +--------------------------------------------------------------+-----------------------------+-----------------------+ | 82d28272-ff0d-441b-8e88-f195ab7e08c1| True | | | eae49da6-efbe-41af-81bd-e5815f9a5f68 | True | | +--------------------------------------------------------------+-----------------------------+-----------------------+ If you do a nova help for the host evacuate command it shows the --target_host as an optional parameter e.g -bash-4.1$ nova help host-evacuate usage: nova host-evacuate [--target_host <target_host>] [--on-shared-storage] <host> Evacuate all instances from failed host to specified one. Positional arguments: <host> Name of host. Optional arguments: --target_host <target_host> Name of target host. --on-shared-storage Specifies whether all instances files are on shared storage To manage notifications about this bug go to: https://bugs.launchpad.net/nova-project/+bug/1316222/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp