rsyslog time is still the default timezone after deployment if it's changed

Bug #1819548 reported by Alex Schultz on 2019-03-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Medium
Alex Schultz

Bug Description

If a user configures the system local or timezone to something other than the default from the overcloud image, when the system is updated the rsyslog logs are still in the original timezone. After we configure the timezone we need to trigger a rsyslog reload in order to have the changes take effect.

Fix proposed to branch: master
Review: https://review.openstack.org/642587

Changed in tripleo:
status: Triaged → In Progress
tags: added: queens-backport-potential
Changed in tripleo:
milestone: none → stein-3

Reviewed: https://review.openstack.org/642587
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=2182e0b0d0c07cd0a90f8ebb783072e9ee41e81e
Submitter: Zuul
Branch: master

commit 2182e0b0d0c07cd0a90f8ebb783072e9ee41e81e
Author: Alex Schultz <email address hidden>
Date: Mon Mar 11 16:09:57 2019 -0600

    Reload rsyslog/cron when we change timezones

    If the default timezone in the overcloud image or deployed system is
    changed on install, rsyslog will continue to use that timezone until
    it's reloaded. Do a reload of rsyslog if we update the timezone file.
    The same happens with crond so we need to reload that again.

    Change-Id: I7cfde5963b4fce010e936b4fd5bbe96a39cc5c17
    Closes-Bug: #1819548

Changed in tripleo:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/643062
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=6646e1ce16ebe5ea50ce5f160e84a2c7ce11e704
Submitter: Zuul
Branch: stable/rocky

commit 6646e1ce16ebe5ea50ce5f160e84a2c7ce11e704
Author: Alex Schultz <email address hidden>
Date: Mon Mar 11 16:09:57 2019 -0600

    Reload rsyslog/cron when we change timezones

    If the default timezone in the overcloud image or deployed system is
    changed on install, rsyslog will continue to use that timezone until
    it's reloaded. Do a reload of rsyslog if we update the timezone file.
    The same happens with crond so we need to reload that again.

    Change-Id: I7cfde5963b4fce010e936b4fd5bbe96a39cc5c17
    Closes-Bug: #1819548
    (cherry picked from commit 2182e0b0d0c07cd0a90f8ebb783072e9ee41e81e)

tags: added: in-stable-rocky
tags: added: in-stable-queens

Reviewed: https://review.openstack.org/643072
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ec02985da93b9959c5222353c1661ceb994cce51
Submitter: Zuul
Branch: stable/queens

commit ec02985da93b9959c5222353c1661ceb994cce51
Author: Alex Schultz <email address hidden>
Date: Mon Mar 11 16:09:57 2019 -0600

    Reload rsyslog/cron when we change timezones

    If the default timezone in the overcloud image or deployed system is
    changed on install, rsyslog will continue to use that timezone until
    it's reloaded. Do a reload of rsyslog if we update the timezone file.
    The same happens with crond so we need to reload that again.

    Change-Id: I7cfde5963b4fce010e936b4fd5bbe96a39cc5c17
    Closes-Bug: #1819548
    (cherry picked from commit 2182e0b0d0c07cd0a90f8ebb783072e9ee41e81e)

Reviewed: https://review.openstack.org/647901
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=849d5ce550b818711ee15500d03dac6efba2f913
Submitter: Zuul
Branch: stable/queens

commit 849d5ce550b818711ee15500d03dac6efba2f913
Author: Alex Schultz <email address hidden>
Date: Tue Mar 26 13:49:56 2019 -0600

    Fix reload notification file

    We want to trigger the reload on the localtime file (/etc/localtime) not
    the actual zone file because that is the symlink that gets updated when
    the timezone is changed.

    NOTE: This is <= Rocky only because we switched to ansible managment in
    Stein.

    Change-Id: I2bdafeb59c3feb86a30a46eeb803bc9795c9c820
    Closes-Bug: #1819548
    (cherry picked from commit ac4bd32a70db90f55100bb74f939dad99547cde3)

Reviewed: https://review.openstack.org/647900
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ac4bd32a70db90f55100bb74f939dad99547cde3
Submitter: Zuul
Branch: stable/rocky

commit ac4bd32a70db90f55100bb74f939dad99547cde3
Author: Alex Schultz <email address hidden>
Date: Tue Mar 26 13:49:56 2019 -0600

    Fix reload notification file

    We want to trigger the reload on the localtime file (/etc/localtime) not
    the actual zone file because that is the symlink that gets updated when
    the timezone is changed.

    NOTE: This is <= Rocky only because we switched to ansible managment in
    Stein.

    Change-Id: I2bdafeb59c3feb86a30a46eeb803bc9795c9c820
    Closes-Bug: #1819548

This issue was fixed in the openstack/tripleo-heat-templates 10.5.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers