When trying to delete host that can be found in host_mappings
but not in compute_nodes, current cellv2 delete_host will throw
an exception but does not really handle it.
This patch tries to handle this exception and allow the delete
operation to continue since it shows the host has gone anyway.
Change-Id: I99bd79fb45777edc0e33d846ba478b0a94a1191e
Closes-Bug: #1781391
(cherry picked from commit 0ef4ed96d19a3576d67fdc9c1958610887d57ed4)
Reviewed: https:/ /review. opendev. org/672690 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1535f8e215c 99b730e63eafb1e 2f8db2e526376f
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 1535f8e215c99b7 30e63eafb1e2f8d b2e526376f
Author: Chen <email address hidden>
Date: Thu Jul 12 20:33:14 2018 +0800
fix cellv2 delete_host
When trying to delete host that can be found in host_mappings
but not in compute_nodes, current cellv2 delete_host will throw
an exception but does not really handle it.
This patch tries to handle this exception and allow the delete
operation to continue since it shows the host has gone anyway.
Change-Id: I99bd79fb45777e dc0e33d846ba478 b0a94a1191e 6d67fdc9c195861 0887d57ed4)
Closes-Bug: #1781391
(cherry picked from commit 0ef4ed96d19a357