Cannot configure keystone token flush cron job to run more than once per day

Bug #1682097 reported by Juan Antonio Osorio Robles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Juan Antonio Osorio Robles

Bug Description

The keystone token crontab is configured in t-h-t via the following parameters:

  KeystoneCronTokenFlushMinute:
    type: string
    description: >
        Cron to purge expired tokens - Minute
    default: '1'
  KeystoneCronTokenFlushHour:
    type: string
    description: >
        Cron to purge expired tokens - Hour
    default: '0'
  KeystoneCronTokenFlushMonthday:
    type: string
    description: >
        Cron to purge expired tokens - Month Day
    default: '*'
  KeystoneCronTokenFlushMonth:
    type: string
    description: >
        Cron to purge expired tokens - Month
    default: '*'
  KeystoneCronTokenFlushWeekday:
    type: string
    description: >
        Cron to purge expired tokens - Week Day
    default: '*'

This doesn't allow us to set the KeystoneCronTokenFlushHour to run more than once per day, since it's a type string. We need to change the value it takes in order to allow it to run more times per day.

This is related to this bug https://bugs.launchpad.net/tripleo/+bug/1649616

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
status: New → In Progress
Changed in tripleo:
importance: Undecided → Medium
milestone: none → pike-2
importance: Medium → High
tags: added: ocata-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/456181
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=df36f221dd402a5b93585a6851fb1eb43de91967
Submitter: Jenkins
Branch: master

commit df36f221dd402a5b93585a6851fb1eb43de91967
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Wed Apr 12 14:30:27 2017 +0300

    Use comma_delimited_list for token flush cron time settings

    This allows us to better configure these parametes, e.g. we could set
    the cron job to run more times per day, and not just one.

    Change-Id: I0a151808804809c0742bcfa8ac876e22f5ce5570
    Closes-Bug: #1682097

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/458003

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/ocata)

Reviewed: https://review.openstack.org/458003
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=5eb39b42c6448f6f3c2569c597ea07a961ab5728
Submitter: Jenkins
Branch: stable/ocata

commit 5eb39b42c6448f6f3c2569c597ea07a961ab5728
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Wed Apr 12 14:30:27 2017 +0300

    Use comma_delimited_list for token flush cron time settings

    This allows us to better configure these parametes, e.g. we could set
    the cron job to run more times per day, and not just one.

    Change-Id: I0a151808804809c0742bcfa8ac876e22f5ce5570
    Closes-Bug: #1682097
    (cherry picked from commit df36f221dd402a5b93585a6851fb1eb43de91967)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 6.1.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 7.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/482900

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/newton)

Change abandoned by Harry Rybacki (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/482900
Reason: Not needed after merge of https://review.openstack.org/#/c/482585/6

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.