When using the nova-cloud-controller charm in HA with the config
option single-nova-consoleauth set to true, its expected for the
nova-consoleauth service to be run in just a single unit at the time.
The service management (start/stop) is performed by pacemaker in
accordance with the cluster health using the OCF resource agent[0].
Its required for the service to be disabled by default on upstart (trusty)
or systemd (>=xenial).
This change disables the service by using the service_pause
charmhelpers call which considers both cases (upstart/systemd) when
the ha relation is present and the single-nova-consoleauth option is
used.
Also, this change fixes LP: #1660244 (Services not running that should be:
nova-consoleauth) by removing it from the resource_map when
ha + single-nova-consoleauth is used.
Reviewed: https:/ /review. openstack. org/468955 /git.openstack. org/cgit/ openstack/ charm-nova- cloud-controlle r/commit/ ?id=0d28006e1cd 7db2f37a6faaeea 266fed04c57ec7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0d28006e1cd7db2 f37a6faaeea266f ed04c57ec7
Author: Jorge Niedbalski <email address hidden>
Date: Mon May 29 13:52:31 2017 -0400
Disable the nova-consoleauth service on HA.
When using the nova-cloud- controller charm in HA with the config nova-consoleaut h set to true, its expected for the consoleauth service to be run in just a single unit at the time.
option single-
nova-
The service management (start/stop) is performed by pacemaker in
accordance with the cluster health using the OCF resource agent[0].
Its required for the service to be disabled by default on upstart (trusty)
or systemd (>=xenial).
This change disables the service by using the service_pause nova-consoleaut h option is
charmhelpers call which considers both cases (upstart/systemd) when
the ha relation is present and the single-
used.
Also, this change fixes LP: #1660244 (Services not running that should be: consoleauth) by removing it from the resource_map when nova-consoleaut h is used.
nova-
ha + single-
[0] https:/ /github. com/openstack/ openstack- resource- agents/ blob/master/ ocf/nova- consoleauth
Closes-Bug: #1693629
Closes-Bug: #1660244
Change-Id: Iaffe0456cceb42 ee124cb8881d337 9d78cac0f3a
Signed-off-by: Jorge Niedbalski <email address hidden>