Bug 2126611 - Director doesn't apply OctaviaAdminLogTargets and OctaviaTenantLogTargets correctly
Summary: Director doesn't apply OctaviaAdminLogTargets and OctaviaTenantLogTargets cor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z5
: 16.2 (Train on RHEL 8.4)
Assignee: Gregory Thiemonge
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-14 06:29 UTC by Gregory Thiemonge
Modified: 2023-04-26 12:17 UTC (History)
6 users (show)

Fixed In Version: tripleo-ansible-0.8.1-2.20230131004926.b14f4bb.el8ost openstack-tripleo-heat-templates-11.6.1-2.20230201074932.89839cf.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-26 12:16:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 857600 0 None MERGED [Octavia] Set octavia *_log_targets params with tripleo-ansible 2023-01-17 14:09:16 UTC
OpenStack gerrit 857601 0 None MERGED [Octavia] Create a rsyslog forward when *_log_targets params are set 2023-01-17 14:09:17 UTC
OpenStack gerrit 871084 0 None MERGED [Octavia] Create a rsyslog forward when *_log_targets params are set 2023-01-31 12:43:13 UTC
OpenStack gerrit 871086 0 None MERGED [Octavia] Set octavia *_log_targets params with tripleo-ansible 2023-01-31 12:43:16 UTC
Red Hat Issue Tracker OSP-18690 0 None None None 2022-09-14 06:36:30 UTC
Red Hat Product Errata RHBA-2023:1763 0 None None None 2023-04-26 12:17:33 UTC

Description Gregory Thiemonge 2022-09-14 06:29:25 UTC
Description of problem:
A user might override the default endpoints for rsyslog servers using the OctaviaAdminLogTargets and OctaviaTenantLogTargets parameters from THT
But setting those options doesn't work properly, the default endpoints are still defined in the octavia configuration file

Version-Release number of selected component (if applicable):
16.2 (16.1 and 17.0 too)

How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP with Octavia, define OctaviaAdminLogTargets
2. Check the DEBUG output of the Octavia services, amphora_agent.admin_log_targets is not set correctly
3.


I used the following parameters:

parameter_defaults:
  OctaviaAdminLogTargets: 172.17.0.2:514
  OctaviaTenantLogTargets: 172.17.0.3:514

after deployment in worker.log:
2022-09-13 14:05:57.134 24 DEBUG cotyledon.oslo_config_glue [-] amphora_agent.admin_log_targets = ['172.24.1.180:514', '172.24.1.117:514', '172.24.1.107:514'] log_opt_values /usr/lib/python3.6/site-packages/oslo_config/cfg.py:2589

This is the default parameter (the 3 controllers)

[root@controller-0 heat-admin]# grep admin_log_targets -r /var/lib/config-data/puppet-generated/octavia -r
/var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf:# admin_log_targets =
/var/lib/config-data/puppet-generated/octavia/etc/octavia/octavia.conf:admin_log_targets=172.17.0.2:514
/var/lib/config-data/puppet-generated/octavia/etc/octavia/post-deploy.conf:admin_log_targets = 172.24.1.180:514, 172.24.1.117:514, 172.24.1.107:514

puppet-octavia sets the right value in octavia.conf
but tripleo-ansible overrides the parameter with computed values (IPs of the controllers + :514)

Comment 3 Gregory Thiemonge 2022-09-15 14:14:30 UTC
Update on the fix:

OctaviaAdminLogTargets and OctaviaTenantLogTargets no longer affects the octavia settings (octavia.conf), they only affect the configuration of the octavia-rsyslog container, creating an rsyslog forwarder when one of these params is set.

Comment 12 errata-xmlrpc 2023-04-26 12:16:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.2.5 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:1763


Note You need to log in before you can comment on or make changes to this bug.