config/sysinv/sysinv/sysinv/sysinv/common
Shuicheng Lin 7e5e887eb3 Audit local registry secret info when there is user update in keystone
local registry uses admin's username&password for authentication.
And admin's password could be changed by openstack client cmd. It will
cause auth info in secrets obsolete, and lead to invalid authentication
in keystone.
To keep secrets info updated, keystone event notification is enabled.
And event notification listener is added in sysinv. So when there is
user password change, a user update event will be sent out by keystone.
And sysinv will call function audit_local_registry_secrets to check
whether kubernetes secret info need be updated or not.

A periodic task is added also to ensure secrets are always synced, in
case notification is missed or there is failure in handle notification.

oslo_messaging is added to tox's requirements.txt to avoid tox failure.
The version is based on global-requirements.txt from Openstack Train.

Test:
Pass deployment and secrets could be updated automatically with new auth
info.
Pass host-swact in duplex mode.

We lack of info how LP1853093 was triggered by the user, but this patch
can address the issue that local registry secrets are not updated 
accordingly after the password of "admin" is changed. 
And this fix will help technically.

Closes-Bug: 1853017
Closes-Bug: 1853093
Depends-On: https://review.opendev.org/707522
Depends-On: https://review.opendev.org/707523
Change-Id: I959b65288e0834b989aa87e40506e41d0bba0d59
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
(cherry picked from commit 8ab1e2d7c6)
2020-02-22 08:13:40 +00:00
..
__init__.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
ceph.py Ceph: update crush map when storage tier is renamed 2019-08-01 14:53:17 +00:00
config.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
configp.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
constants.py Security: Allow disabling of spectre v1 swapgs mitigation 2020-02-04 14:35:37 -05:00
context.py Sysinv healthy query API request failed 2018-09-13 13:36:15 -04:00
exception.py Ceph: update crush map when storage tier is renamed 2019-08-01 14:53:17 +00:00
extension_manager.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
fernet.py Keystone DB sync - add fernet key repo reset API 2019-04-25 15:36:01 -04:00
fm.py Sysinv healthy query API request failed 2018-09-13 13:36:15 -04:00
health.py Fix controllerfs-modify related bugs 2019-06-10 11:34:56 -04:00
image_service.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
images.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
interface.py Update nova helm overrides for PCI alias, passthrough, and SR-IOV 2019-02-13 14:00:51 -05:00
kubernetes.py Audit local registry secret info when there is user update in keystone 2020-02-22 08:13:40 +00:00
paths.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
policy.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
retrying.py Fix tox pep8 errors of type E722 in sysinv 2018-08-10 14:51:50 -04:00
service.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
service_parameter.py Merge "Support to pull container images from authenticated registries" 2019-08-02 20:33:32 +00:00
states.py Fix word and statement errors in comments 2018-11-14 10:04:51 +08:00
storage_backend_conf.py Removal of infrastructure network code 2019-05-06 16:57:10 -04:00
utils.py Merge "Configure radosgw and ceph-rgw as optional services" 2019-08-02 16:04:48 +00:00
wsgi_service.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00