Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make events_backread switchable #491

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

aufi
Copy link
Member

@aufi aufi commented Jul 30, 2019

OpenStack should expect timestamps in UTC. However some production environments
might work in different way. The safest way fix seems to be extend event_backread
feature with possibility to turn it off.

Event backread can be now turned off by setting :event_backread_seconds
settings option to number less than 1, e.g. 0.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1734338

OpenStack should expect timestamps in UTC. However some production environments
might work in different way. The safest way fix seems to be extend event_backread
feature with possibility to turn it off.

Event backread can be now turned off by setting :event_backread_seconds
settings option to number less than 1, e.g. 0.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1734338
@aufi aufi added the bug label Jul 30, 2019
@miq-bot
Copy link
Member

miq-bot commented Jul 30, 2019

Checked commit aufi@d854ee9 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aufi makes sense to be able to disable it 👍

Although what is the exact issue this is causing? I don't see how the backread would cause not receiving events. (also by disabling this, will we loose events again?)

@Ladas Ladas self-assigned this Aug 8, 2019
@Ladas Ladas merged commit a600714 into ManageIQ:master Aug 8, 2019
@aufi
Copy link
Member Author

aufi commented Aug 12, 2019

@Ladas There was problem with intepretation time with timezones between CF and OSP, disabling backread avoids timestamp manipulation on CF side.

@simaishi
Copy link
Contributor

@aufi ivanchuk/yes and hammer/yes?

simaishi pushed a commit that referenced this pull request Aug 12, 2019
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit 3c5e6758acb97de1fcdd9b3043e72c2f2094541d
Author: Ladislav Smola <lsmola@redhat.com>
Date:   Thu Aug 8 10:59:31 2019 +0200

    Merge pull request #491 from aufi/events_backread_switch
    
    Make events_backread switchable
    
    (cherry picked from commit a600714cdcfd7617a69102eae86fdbe1c28178b0)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1734338

simaishi pushed a commit that referenced this pull request Aug 14, 2019
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit aac58975f132d2d58a87748a6b2c09ecfa11304f
Author: Ladislav Smola <lsmola@redhat.com>
Date:   Thu Aug 8 10:59:31 2019 +0200

    Merge pull request #491 from aufi/events_backread_switch
    
    Make events_backread switchable
    
    (cherry picked from commit a600714cdcfd7617a69102eae86fdbe1c28178b0)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1740767

@aufi aufi added this to the Sprint 118 Ending Aug 19, 2019 milestone Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants