dcmanager logs are duplicated in openstack.log

Bug #1932334 reported by Jessica Castelino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Jessica Castelino

Bug Description

Brief Description
-----------------
The logs related to dcmanager (orchestrator, audit, etc..) are also showing up in openstack.log

Severity
-----------------
Minor

Steps to Reproduce
-----------------
Setup a system with DC subclouds, and look in openstack.log

Expected Behavior
-----------------
The logs that go to dcmanager/orchestrator.log and dcmanager/audit.log should not also be in openstack.log

Actual Behavior
-----------------
duplicated logs

Reproducibility
-----------------
Always

System Configuration
-----------------
Distributed Cloud

Branch/Pull Time/Commit
-----------------
June 10, 2021

Last Pass
-----------------
Never noticed

Timestamp/Logs
-----------------
(example from openstack.log) these also exist correctly in /var/log/dcmanager/audit.log

2021-06-10 18:09:47.626 93688 INFO dcorch.engine.generic_sync_manage id:(8b95791d-7fe6-4497-8b02-0beea7f950bf): All subcloud audit have
2021-06-10 18:09:49.346 1337638 INFO dcmanager.audit.subcloud_audit_er [-] Identity or Platform endpoint for subcloud1 not found, ignorine subcloud.
2021-06-10 18:09:59.138 1336817 INFO dcmanager.audit.subcloud_audit_Triggered subcloud audit: patch=(True) firmware=(False) kube=(False)
2021-06-10 18:10:20.469 1337636 INFO dcmanager.audit.subcloud_audit_er [-] Identity or Platform endpoint for subcloud1 not found, ignorine subcloud.
2021-06-10 18:10:30.295 1336817 INFO dcmanager.audit.subcloud_audit_Triggered subcloud audit: patch=(True) firmware=(False) kube=(False)

Test Activity
-----------------
Feature Testing

Workaround
-----------------
N/A

The issue is that the /etc/syslog-ng/syslog-ng.conf is not filtering for those outputs.

Changed in starlingx:
assignee: nobody → Jessica Castelino (jcasteli)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config-files (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/distcloud/+/797338

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to stx-puppet (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/stx-puppet/+/797339

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config-files (master)

Reviewed: https://review.opendev.org/c/starlingx/config-files/+/796959
Committed: https://opendev.org/starlingx/config-files/commit/af46ca0cb68192fd02f8a561e17a22626243690f
Submitter: "Zuul (22348)"
Branch: master

commit af46ca0cb68192fd02f8a561e17a22626243690f
Author: Jessica Castelino <email address hidden>
Date: Tue Jun 22 15:08:12 2021 -0400

    Avoid dcmanager and dcorch log duplication in openstack.log

    The logs related to dcmanager (orchestrator, audit, etc..) and
    dcorch show up in openstack.log as well. This commit fixes the
    issue by moving the DC logs to local4 log facility and filtering
    the slapd logs to daemon.log.

    Change-Id: I2d8fad2e2b807846f5d7a9fc383f290a7c776745
    Signed-off-by: Jessica Castelino <email address hidden>
    Closes-Bug: 1932334

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud (master)

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/797338
Committed: https://opendev.org/starlingx/distcloud/commit/7e7bdf8b16eda17fc411c9c3c876b2737f2c7ec5
Submitter: "Zuul (22348)"
Branch: master

commit 7e7bdf8b16eda17fc411c9c3c876b2737f2c7ec5
Author: Jessica Castelino <email address hidden>
Date: Mon Jun 21 14:26:51 2021 -0400

    Avoid dcmanager and dcorch log duplication in openstack.log

    The logs related to dcmanager (orchestrator, audit, etc..) and
    dcorch show up in openstack.log as well. This commit fixes the
    issue by moving the DC logs to local4 log facility.

    Change-Id: I7514ad1d009455077f4138757b480a537272839a
    Partial-Bug: 1932334
    Depends-On: https://review.opendev.org/#/c/796959
    Signed-off-by: Jessica Castelino <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-puppet (master)

Reviewed: https://review.opendev.org/c/starlingx/stx-puppet/+/797339
Committed: https://opendev.org/starlingx/stx-puppet/commit/d187601d5d167ea1c80c1c33984917eea18be76a
Submitter: "Zuul (22348)"
Branch: master

commit d187601d5d167ea1c80c1c33984917eea18be76a
Author: Jessica Castelino <email address hidden>
Date: Mon Jun 21 14:12:56 2021 -0400

    Avoid dcmanager and dcorch log duplication in openstack.log

    The logs related to dcmanager (orchestrator, audit, etc..) and
    dcorch show up in openstack.log as well. This commit fixes the
    issue by moving the DC logs to local4 log facility.

    Change-Id: I7514ad1d009455077f4138757b480a537272839a
    Partial-Bug: 1932334
    Depends-On: https://review.opendev.org/#/c/796959
    Signed-off-by: Jessica Castelino <email address hidden>

Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.distcloud
Ghada Khalil (gkhalil)
tags: added: stx.6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.