Skip to content

Commit

Permalink
Merge "Fixes: Openstack HA : Glance image list fails on juno"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 28, 2015
2 parents 468c8cd + d1d6827 commit a9d252b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ for myip in $MYIPS
if [ $viponme -eq 1 ]; then
log_info_msg "keystone-cleaner::Starting token cleanup"

mysql -u${mysql_user} -p${mysql_password} -h${mysql_host} -P${mysql_port} -e "USE keystone ; DELETE FROM token where expires <= convert_tz(now(),@@session.time_zone,'+01:00');"
NOW=`date -u +"%Y-%m-%d %T"`
mysql -u${mysql_user} -p${mysql_password} -h${mysql_host} -P${mysql_port} -e "USE keystone ; DELETE FROM token where expires <= '${NOW}';"
valid_token=$($mysql -u${mysql_user} -p${mysql_password} -h${mysql_host} -P${mysql_port} -e "USE keystone ; SELECT count(*) FROM token;")
valid_token=$(echo $valid_token | awk '{print $2}')

Expand Down

0 comments on commit a9d252b

Please sign in to comment.