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/469555 /git.openstack. org/cgit/ openstack/ charm-nova- cloud-controlle r/commit/ ?id=0723811cb44 8903583e208c492 5af825e3667176
Committed: https:/
Submitter: Jenkins
Branch: stable/17.02
commit 0723811cb448903 583e208c4925af8 25e3667176
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 327466bc0fbe8b5 383303ad07f
Closes-Bug: #1660244
Depends-On: I9a4245e764e268
Change-Id: Ib012d81e0a1573 f6ccf74a7a59f75 329c751d7a0
Signed-off-by: Jorge Niedbalski <email address hidden>