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

Include /etc/manageiq/postgresql.conf.d/ directory to log collection #18262

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Dec 4, 2018

Include /etc/manageiq/postgresql.conf.d/* to log collection

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

@miq-bot add-label bug, hammer/yes

@miq-bot
Copy link
Member

miq-bot commented Dec 4, 2018

Checked commits yrudman/manageiq@673faef~...92d7a0b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@yrudman
Copy link
Contributor Author

yrudman commented Dec 4, 2018

@jrafanie could you review

@@ -80,7 +80,7 @@ def pg_log_patterns
return [] unless pg_data

pg_data = Pathname.new(pg_data)
[pg_data.join("*.conf"), pg_data.join("pg_log/*")]
[pg_data.join("*.conf"), pg_data.join("pg_log/*"), Pathname.new("/etc/manageiq/postgresql.conf.d/*")]
Copy link
Member

Choose a reason for hiding this comment

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

Is /etc/manageiq/postgresql.conf.d/ the same everywhere? If so, I'm good with this change. We might want to externalize this path as a contanst like we do with pg_data_dir but if this is the only caller of it, it's fine to be like this for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jrafanie jrafanie self-assigned this Dec 4, 2018
@jrafanie jrafanie merged commit e91f6b8 into ManageIQ:master Dec 4, 2018
@jrafanie jrafanie added this to the Sprint 101 Ending Dec 17, 2018 milestone Dec 4, 2018
@yrudman yrudman deleted the add-etc_manageiq_postgresql_conf_d-directory-to-log-collection branch December 4, 2018 17:48
simaishi pushed a commit that referenced this pull request Feb 5, 2019
…nf_d-directory-to-log-collection

Include  /etc/manageiq/postgresql.conf.d/ directory to log collection

(cherry picked from commit e91f6b8)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1672694
@simaishi
Copy link
Contributor

simaishi commented Feb 5, 2019

Hammer backport details:

$ git log -1
commit 0c2fad6f2c92e8438162d3433bb4a685b30910ee
Author: Joe Rafaniello <[email protected]>
Date:   Tue Dec 4 12:25:23 2018 -0500

    Merge pull request #18262 from yrudman/add-etc_manageiq_postgresql_conf_d-directory-to-log-collection
    
    Include  /etc/manageiq/postgresql.conf.d/ directory to log collection
    
    (cherry picked from commit e91f6b80db30a44f90379ffcf8bb57412c9eab19)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1672694

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