Bug 1677454 - "openshift_logging_curator_run_timezone" is not implemented in CronJob template of Curator5 on v3.11
Summary: "openshift_logging_curator_run_timezone" is not implemented in CronJob templa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.11.z
Assignee: Jeff Cantrill
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-15 01:07 UTC by Daein Park
Modified: 2022-03-13 16:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-15 05:44:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 11199 0 None closed [release-3.11] Correct regressions of Curator5 template file 2020-04-30 07:51:40 UTC
Github openshift openshift-ansible pull 11211 0 None closed Revert "[release-3.11] Correct regressions of Curator5 template file" 2020-04-30 07:51:40 UTC
Red Hat Product Errata RHBA-2019:0407 0 None None None 2019-03-14 02:18:01 UTC

Description Daein Park 2019-02-15 01:07:49 UTC
Description of problem:

When "playbooks/openshift-logging/config.yml" playbooks run with "openshift_logging_curator_run_timezone", 
it would not set up "CURATOR_RUN_TIMEZONE" which is configured by the variable.

Version-Release number of the following components:
rpm -q openshift-ansible

openshift-ansible-3.11.69-1.git.0.2ff281f.el7.noarch

rpm -q ansible

ansible-2.6.6-1.el7ae.noarch

ansible --version

ansible 2.6.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

How reproducible:

It can always reproduce.

After specifing "openshift_logging_curator_run_timezone", run playbooks "deploy_clsuter.yaml" or "playbooks/openshift-logging/config.yml"

Then you can check missing "CURATOR_RUN_TIMEZONE" env variable using "oc get cronjob logging-curator -o yaml -n openshift-logging".

Steps to Reproduce:
1.
2.
3.

Actual results:

Missing "CURATOR_RUN_TIMEZONE" variables in "env" section.

Expected results:

Configured "CURATOR_RUN_TIMEZONE" as a value of "openshift_logging_curator_run_timezone".

Additional info:

Comment 3 Josef Karasek 2019-02-19 16:33:22 UTC
Between 3.10 and 3.11 we switched from custom implementation of cron to official k8s cronjob controller.
Run hour and run minute are no longer environmental variables of the pod, but are part of the cronjob configuration.
https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_logging_curator/tasks/main.yaml#L92

Kubernetes cronjob controller uses timezone of the host, which is why we don't configure it directly from curator playbook any more. As documented in https://github.com/openshift/origin-aggregated-logging/tree/master/curator#compatibility-with-openshift-37

@Daein Park, please wait for https://github.com/openshift/openshift-ansible/pull/11211 to merge and then close this bz.

Comment 4 Daein Park 2019-02-20 02:42:19 UTC
Thank you for providing the correction of this BZ @Josef,

I misunderstood to be required both "ansible playbooks" and "curator config" for configuration of run time, because the source code and logic of runtime env has been still remained now.
Let me please make clear whether or not update or remove the related source code in future for suppressing confusing. If you're remained intentionally the codes, then we would record the causes here for others.
And it also would be required to update the documentation parts.

Comment 6 Michael Burke 2019-02-23 19:20:32 UTC
Docs change PR: https://github.com/openshift/openshift-docs/pull/13758

Comment 8 Anping Li 2019-03-01 10:01:54 UTC
Verified and pass, the openshift_logging_curator_run_timezone was removed

Comment 11 Michael Burke 2019-10-04 20:07:34 UTC
Can this BZ be closed?

Comment 12 Rich Megginson 2019-10-07 14:08:02 UTC
(In reply to Michael Burke from comment #11)
> Can this BZ be closed?

This BZ has been marked as RELEASE_PENDING for months now - what's up?

Comment 13 Anping Li 2019-10-22 03:38:56 UTC
A couple of bugs in this status. Ticket files to RCM.

Comment 14 Luke Meyer 2020-05-15 05:44:06 UTC
This should have been closed due to errata shipping. Closing now.


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