Browse Source

Change fetch_fernet_tokens.py behaviour to check for minimum number of tokens

Change is required to properly implement logic in fernet-node-sync.sh on
kolla-ansible side - to add a check if fernet key store is populated with
required number of tokens.

Change-Id: I51ed61e34a1dd79532b4528e56a9cd9011d46e6d
Related-Bug: #1846789
(cherry picked from commit 267cb8b14a)
tags/8.0.3
Michal Nasiadka Mark Goddard 4 months ago
parent
commit
983bee4f95
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docker/keystone/keystone-fernet/fetch_fernet_tokens.py

+ 2
- 2
docker/keystone/keystone-fernet/fetch_fernet_tokens.py View File

@@ -48,7 +48,7 @@ def num_tokens():


def tokens_populated(expected):
return num_tokens() == int(expected)
return num_tokens() >= int(expected)


def token_stale(seconds, filename='0'):
@@ -71,7 +71,7 @@ def main():
help='Filename of token to check',
default='0')
parser.add_argument('-n', '--number',
help='Number of tokens that should exist',
help='Minimum number of tokens that should exist',
required=True)
args = parser.parse_args()



Loading…
Cancel
Save