-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for OSP 18 Openstack EDPM deployment
EDPM (External DataPlane Management) will be the new way to deploy compute nodes startin from RHOSP 18 which will replace TripleO/Director - Added openstack_edpm plugin - Added custom path for config and logs in frr/libvirt/logrotate/openstack_neutron/openstack_nova/ovn_host modules - Tagged libvirt/openstack_neutron/openstack_nova/ovn_host modules as `openstack_edpm` Signed-off-by: Roberto Alfieri <[email protected]>
- Loading branch information
1 parent
27b0828
commit ffeb7d9
Showing
7 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (C) 2023 Red Hat, Inc., Roberto Alfieri <[email protected]> | ||
|
||
# This file is part of the sos project: https://github.com/sosreport/sos | ||
# | ||
# This copyrighted material is made available to anyone wishing to use, | ||
# modify, copy, or redistribute it subject to the terms and conditions of | ||
# version 2 of the GNU General Public License. | ||
# | ||
# See the LICENSE file in the source distribution for further information. | ||
|
||
from sos.report.plugins import Plugin, RedHatPlugin | ||
|
||
|
||
class OpenStackEDPM(Plugin, RedHatPlugin): | ||
|
||
short_desc = 'Installation information from OpenStack EDPM deployment' | ||
|
||
plugin_name = 'openstack_edpm' | ||
profiles = ('openstack', 'openstack_edpm') | ||
services = ('edpm-container-shutdown') | ||
|
||
def setup(self): | ||
# Notes: recursion is max 2 for edpm-config | ||
# Those directories are present on all OpenStack nodes | ||
self.edpm_log_paths = [ | ||
'/var/lib/edpm-config/' | ||
] | ||
self.add_copy_spec(self.edpm_log_paths) | ||
|
||
def postproc(self): | ||
# Ensures we do not leak passwords from the edpm related locations | ||
# Other locations don't have sensitive data. | ||
regexp = r'(".*(key|password|pass|secret|database_connection))' \ | ||
r'([":\s]+)(.*[^"])([",]+)' | ||
for path in self.edpm_log_paths: | ||
self.do_path_regex_sub(path, regexp, r'\1\3*********\5') | ||
|
||
# vim: set et ts=4 sw=4 : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters