stx-puppet/modules
Yuxing Jiang 595c007ac2 Restart patching services after keystone_authtoken changes
The patch services(sw-patch-agent and sw-patch-controller-daemon if
the node is a controller) are expected to reload if the patching
config changes. However, the subscription on
File[$::patching::params::patching_conf] starts after the
configuration of keystone_authtoken, which results the services still
using the old configure.

This commit applies the sw-patch-agent.service and
sw-patch-controller-daemon.service to the Patching_config collector,
so the services will be reloaded after any value in patching_config
changes.

Tests:
1 Installed and bootstrapped an AIO standalone system and a standard
duplex subcloud.
2 Manually modify the keystone password configuration, lock/unlock the
nodes, the start time of sw-patch-agent and sw-patch-controller-daemon
are later than the timestamp of the configuration file.
3 Issue a "dcmanager subcloud add --migrate" command to migrate the
subcloud to another central cloud, during the migration, the hieradata
is aligned with the new central cloud, but the configuration on
controller-1 remains. After lock/unlock the controller-1 in the
subcloud, the subcloud can get managed and the  patching_sync_status
and load_sync_status can get in-sync

Closes-Bug: 1929595
Signed-off-by: Yuxing Jiang <yuxing.jiang@windriver.com>
Change-Id: I923c9e88c9b53d2ba4bf8fb43aa9dabf1bbb728e
2021-05-27 15:21:39 -05:00
..
puppet-dcdbsync Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
puppet-dcmanager Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
puppet-dcorch Adjust dcorch database pool size for dcorch scaling 2021-01-25 07:15:57 -06:00
puppet-fm Remove trap destination from fm.conf 2021-01-20 09:55:36 -03:00
puppet-mtce Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
puppet-nfv Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
puppet-patching Restart patching services after keystone_authtoken changes 2021-05-27 15:21:39 -05:00
puppet-smapi Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
puppet-sshd Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
puppet-sysinv Add auto-version for remaining stx/stx-puppet packages 2020-12-17 13:21:50 -05:00
tox.ini Fix puppet-lint errors 2019-10-09 15:39:30 -05:00