Add nova-manage failure verbosity and clean up Cells V2 code
Update all nova-manage commands to use subprocess.check_output()
and log subprocess.CalledProcessError.output on failure. This
will help capture nova-manage error details on first failure.
Specify cell1 uuid on discover_hosts call. This doesn't change
behavior, it is just more explicit and useful if we move to
multiple cells in the future.
Introduce an is_cellv2_init_ready() function that uses contexts to
check if cells_v2 is ready to initialize. This cleans up the
corresponding TODOs.
Move checks for cell v2 init readiness to update_cell_db_if_ready(),
also cleaning up corresponding TODOs.
Reviewed: https:/ /review. openstack. org/509900 /git.openstack. org/cgit/ openstack/ charm-nova- cloud-controlle r/commit/ ?id=3b873932be0 05eb6ec2b979fe7 2a92ece4fe905b
Committed: https:/
Submitter: Zuul
Branch: master
commit 3b873932be005eb 6ec2b979fe72a92 ece4fe905b
Author: Corey Bryant <email address hidden>
Date: Fri Oct 6 17:37:04 2017 +0000
Add nova-manage failure verbosity and clean up Cells V2 code
Update all nova-manage commands to use subprocess. check_output( ) CalledProcessEr ror.output on failure. This
and log subprocess.
will help capture nova-manage error details on first failure.
Specify cell1 uuid on discover_hosts call. This doesn't change
behavior, it is just more explicit and useful if we move to
multiple cells in the future.
Introduce an is_cellv2_ init_ready( ) function that uses contexts to
check if cells_v2 is ready to initialize. This cleans up the
corresponding TODOs.
Move checks for cell v2 init readiness to update_ cell_db_ if_ready( ),
also cleaning up corresponding TODOs.
Change-Id: I313edce84d3d24 9031e020a4fbb4b af216c01ddb
Related-Bug: 1720846