Bug 1470226 - Token flush does not complete when expired tokens becomes large enough
Summary: Token flush does not complete when expired tokens becomes large enough
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-puppet-modules
Version: 10.0 (Newton)
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: zstream
: 8.0 (Liberty)
Assignee: Harry Rybacki
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On: 1404324 1470227 1470230 1473713
Blocks: 1451122 1467120 1469457 1470221
TreeView+ depends on / blocked
 
Reported: 2017-07-12 14:34 UTC by Harry Rybacki
Modified: 2022-06-06 11:26 UTC (History)
22 users (show)

Fixed In Version: openstack-puppet-modules-7.1.5-6.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1404324
Environment:
Last Closed: 2017-09-12 17:16:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1649616 0 None None None 2017-07-12 14:34:21 UTC
Red Hat Issue Tracker OSP-980 0 None None None 2022-06-06 11:26:29 UTC
Red Hat Product Errata RHBA-2017:2691 0 normal SHIPPED_LIVE openstack-packstack and openstack-puppet-modules bug fix advisory 2017-09-12 21:14:49 UTC

Comment 3 Prasanth Anbalagan 2017-08-30 18:10:46 UTC
Verified as follows - Tokens get flushed as expected.
[root@rhos-compute-node-02 ~]# yum list installed | grep openstack-puppet
openstack-puppet-modules.noarch  1:7.1.5-6.el7ost        @rhelosp-8.0-puddle    

[root@rhos-compute-node-02 ~]# sudo crontab -u keystone -l
# HEADER: This file was autogenerated at 2017-08-30 11:24:44 -0400 by puppet.
# HEADER: While it can still be managed manually, it is definitely not recommended.
# HEADER: Note particularly that the comments starting with 'Puppet Name' should
# HEADER: not be deleted, as doing so could cause duplicate cron jobs.
# Puppet Name: keystone-manage token_flush
PATH=/bin:/usr/bin:/usr/sbin SHELL=/bin/sh
*/1 * * * * keystone-manage token_flush >>/dev/null 2>&1


Database changed
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     1235 |
+----------+
1 row in set (0.00 sec)

MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     1236 |
+----------+
1 row in set (0.00 sec)
..
...
....
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     9570 |
+----------+
1 row in set (0.00 sec)

MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     9412 |
+----------+
1 row in set (0.00 sec)
..
...
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     9119 |
+----------+
1 row in set (0.00 sec)
..
...
...
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     8344 |
+----------+
1 row in set (0.01 sec)
.
..

Database changed
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     8034 |
+----------+
1 row in set (0.00 sec)
..
...
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     7733 |
+----------+
1 row in set (0.00 sec)

..
...
MariaDB [keystone]> select count(*) from token;
+----------+
| count(*) |
+----------+
|     7577 |
+----------+
1 row in set (0.00 sec)

Comment 5 errata-xmlrpc 2017-09-12 17:16:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2691


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