Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1538922 - aggregatedlogging should report fluentd pod missing while running oc adm diagnostics aggregatedlogging
aggregatedlogging should report fluentd pod missing while running oc adm diag...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
3.9.0
Unspecified Unspecified
high Severity high
: ---
: 3.9.0
Assigned To: Jan Wozniak
Anping Li
: Regression, TestBlocker
: 1539211 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-26 01:54 EST by Anping Li
Modified: 2018-03-28 10:23 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-03-28 10:23:11 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github https://github.com/openshift/origin/pull/18437 None None None 2018-02-05 07:44 EST
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:23 EDT

  None (edit)
Description Anping Li 2018-01-26 01:54:07 EST
Description of problem:
aggregatedlogging should report fluentd pod missing and fluentd daemonset missing

Version-Release number of selected component (if applicable):


How reproducible:
openshift:v3.9.0-0.24.0

Steps to Reproduce:
1. deploy logging
2. Unlabel all the nodes where fluentd get running on
    oc label nodes logging-infra-fluentd- --all
     
3. Diagnose aggregated logging
   oc adm diagnostics aggregatedlogging
4. delete  daemonset
   oc delete daemonset logging-fluentd
5. Diagnose aggregated logging
   oc adm diagnostics aggregatedlogging


Actual results:
Both step 3,  5 completed with no errors or warnings seen.

[root@host3-ha-master-1 ~]# oc adm diagnostics aggregatedlogging
[Note] Determining if client configuration exists for client/cluster diagnostics
Info:  Successfully read a client config file at '/root/.kube/config'
Info:  Using context for cluster-admin access: 'logging/192-168-1-223:8443/system:admin'

[Note] Running diagnostic: AggregatedLogging
       Description: Check aggregated logging integration for proper configuration
       
[Note] Summary of diagnostics execution (version v3.9.0-0.24.0):
[Note] Completed with no errors or warnings seen.


Expected results:
Step 3, report:   Fluentd daemonset is not selecting any of the node to run pod, please label it
properly
Step 5, report: Fluentd daemonset did not exist


Additional info:
Comment 1 Luke Meyer 2018-01-26 15:31:55 EST
/cc jeff not sure when I'll get a chance to look at this -- could be due to recent diagnostics refactor though.
Comment 3 Anping Li 2018-01-30 01:03:58 EST
@Luke @Michal diagnostics aggregatedlogging  doesn't report any logging errors. It is a test block of logging team.
Comment 4 Anping Li 2018-02-01 20:37:58 EST
@Michal, The diagnostics aggregatedlogging won't work at all.  Shall we fix it in v3.9.0?
Comment 5 Jan Wozniak 2018-02-02 10:06:47 EST
problem is with silently skipping missing loggingPublicURL

more here:
https://bugzilla.redhat.com/show_bug.cgi?id=1539211#c1
Comment 6 Jan Wozniak 2018-02-05 07:34:57 EST
*** Bug 1539211 has been marked as a duplicate of this bug. ***
Comment 7 openshift-github-bot 2018-02-13 08:56:23 EST
Commits pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/7e2706c307e14bba68538e8ad7f900ddfb4e4e9f
Bug 1538922 - Fix diagnostics for AggregatedLogging

The `AssetConfig` section with the `loggingPublicURL` is being removed from the
`masterConfig`, therefore, we need a different logic to obtain logging project
name.

Currently, no location can provide logging project nor `loggingPublicURL` so we
make an assumption that logging is deployed by default to 'openshift-logging'
with legacy fallback to 'logging'. Optionally user can override the behaior
with `--logging-project=[project]` flag.

https://github.com/openshift/origin/commit/a70f803dd0832fee0ca21836339bbf46c5a58173
Merge pull request #18437 from wozniakjan/bz1538922/diagnostics/aggregatedlogging

Automatic merge from submit-queue (batch tested with PRs 18437, 18546, 18550, 18579).

Bug 1538922 - Fix diagnostics for AggregatedLogging

The `AssetConfig` section with the `loggingPublicURL` is being removed from the `masterConfig`, therefore, we need a different logic to obtain logging project name.

Currently, no location can provide logging project nor `loggingPublicURL` so we make an assumption that logging is deployed by default to 'openshift-logging' with legacy fallback to 'logging'. Optionally user can override the behaior with `--logging-project=[project]` flag.
Comment 9 Jan Wozniak 2018-02-21 02:41:22 EST
Anping Li, please keep in mind you may stumble upon diagnostics reporting false negative - fluentd SA not being among cluster-readers. There is a pending fix for that as well but the original issue should be fixed

https://github.com/openshift/origin/pull/18641
Comment 10 Anping Li 2018-02-22 02:00:15 EST
Verified and pass on oc v3.9.0-0.47.0.
Comment 13 errata-xmlrpc 2018-03-28 10:23:11 EDT
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, 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-2018:0489

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