We introduced nova compute restart to handle problems of it failure
to start when keystone is not available. However, now we get broken
again because stop_service fails when nova compute is not running.
This change makes it ignore failure to stop nova compute.
Also, if n-cpu failed to start the first time, the n-cpu.failure file
that
was created will fail the service_check function in the end
of the deployment, although n-cpu might be in fact up, running and
healthy.
Rename this file to `n-cpu.failure.before-restart-by-ironic` right after
stopping n-cpu so that it does not fail service_check later, but is
still
available for reference if needed.
Reviewed: https:/ /review. openstack. org/280601 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=001513f4234 ab681d33c9d1f3c d97a005b338df9
Committed: https:/
Submitter: Jenkins
Branch: master
commit 001513f4234ab68 1d33c9d1f3cd97a 005b338df9
Author: Dmitry Tantsur <email address hidden>
Date: Tue Feb 16 11:53:16 2016 +0100
[DevStack] fix restart of nova compute
We introduced nova compute restart to handle problems of it failure
to start when keystone is not available. However, now we get broken
again because stop_service fails when nova compute is not running.
This change makes it ignore failure to stop nova compute.
Also, if n-cpu failed to start the first time, the n-cpu.failure file
that
was created will fail the service_check function in the end
of the deployment, although n-cpu might be in fact up, running and
healthy.
Rename this file to `n-cpu. failure. before- restart- by-ironic` right after
stopping n-cpu so that it does not fail service_check later, but is
still
available for reference if needed.
Change-Id: Idfe7d68d6ebeb7 86fe9e6da6a001a 0ee2e10a76b
Closes-Bug: #1546058
Related-Bug: #1537076