Monasca log transformer doesn't accept non UTC times

Bug #1839597 reported by Isaac Prior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Isaac Prior
Rocky
Fix Committed
Medium
Unassigned
Stein
Fix Committed
Medium
Unassigned
Train
Fix Released
Medium
Isaac Prior

Bug Description

Monasca log transformer throws exceptions on encountering a non UTC time offset (+0000):

{"timestamp":"2019-08-08T16:40:26.253000+0000","message":"Failed parsing date from field","field":"[log][dimensions][timestamp]","value":"2019-08-08 17:39:45 +0100","exception":"Invalid format: \"2019-08-08 17:39:45 +0100\" is malformed at \" +0100\"","config_parsers":"yyyy-MM-dd HH:mm:ss +0000,ISO8601","config_locale":"default=en_US","level":"warn"}

Isaac Prior (wasaac)
Changed in kolla-ansible:
assignee: nobody → Isaac Prior (wasaac)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/675660
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=3010d4c3911db175facec519ffce51a7c0498003
Submitter: Zuul
Branch: master

commit 3010d4c3911db175facec519ffce51a7c0498003
Author: Isaac Prior <email address hidden>
Date: Fri Aug 9 09:58:59 2019 +0100

    Fixes Monasca log transformer UTC offset exception

    Monasca log transformer currently throws exceptions on encountering a
    non-UTC time offset (+0000):
    """
    "exception": "Invalid format: \"2019-08-08 17:39:45 +0100\" is malformed at \" +0100\"",
    "config_parsers":"yyyy-MM-dd HH:mm:ss +0000,ISO8601"}
    """

    This fix allows logstash to interpret any valid ISO8601 offset.

    Change-Id: Id70c3dd9cdcf681e955931f18a054e19cc284c0a
    Closes-Bug: #1839597

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/689544

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/689545

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/stein)

Reviewed: https://review.opendev.org/689544
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=e29bdd6a357eea20d0e1f4bf824822af49ace2fc
Submitter: Zuul
Branch: stable/stein

commit e29bdd6a357eea20d0e1f4bf824822af49ace2fc
Author: Isaac Prior <email address hidden>
Date: Fri Aug 9 09:58:59 2019 +0100

    Fixes Monasca log transformer UTC offset exception

    Monasca log transformer currently throws exceptions on encountering a
    non-UTC time offset (+0000):
    """
    "exception": "Invalid format: \"2019-08-08 17:39:45 +0100\" is malformed at \" +0100\"",
    "config_parsers":"yyyy-MM-dd HH:mm:ss +0000,ISO8601"}
    """

    This fix allows logstash to interpret any valid ISO8601 offset.

    Change-Id: Id70c3dd9cdcf681e955931f18a054e19cc284c0a
    Closes-Bug: #1839597
    (cherry picked from commit 3010d4c3911db175facec519ffce51a7c0498003)

tags: added: in-stable-stein
tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/rocky)

Reviewed: https://review.opendev.org/689545
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=c24c7bd049e666e890c6f7c21cf7187c4f1961e2
Submitter: Zuul
Branch: stable/rocky

commit c24c7bd049e666e890c6f7c21cf7187c4f1961e2
Author: Isaac Prior <email address hidden>
Date: Fri Aug 9 09:58:59 2019 +0100

    Fixes Monasca log transformer UTC offset exception

    Monasca log transformer currently throws exceptions on encountering a
    non-UTC time offset (+0000):
    """
    "exception": "Invalid format: \"2019-08-08 17:39:45 +0100\" is malformed at \" +0100\"",
    "config_parsers":"yyyy-MM-dd HH:mm:ss +0000,ISO8601"}
    """

    This fix allows logstash to interpret any valid ISO8601 offset.

    Change-Id: Id70c3dd9cdcf681e955931f18a054e19cc284c0a
    Closes-Bug: #1839597
    (cherry picked from commit 3010d4c3911db175facec519ffce51a7c0498003)

Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 9.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.2.0

This issue was fixed in the openstack/kolla-ansible 7.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.1.0

This issue was fixed in the openstack/kolla-ansible 8.1.0 release.

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.