Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
50359204
Commit
50359204
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Improve fernet_token_expiry precheck"
parents
fe1edb1b
810acea6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/keystone/tasks/precheck.yml
+19
-8
19 additions, 8 deletions
ansible/roles/keystone/tasks/precheck.yml
releasenotes/notes/fix-fernet-pre-check-5efbdfe43a2776e3.yaml
+6
-0
6 additions, 0 deletions
...asenotes/notes/fix-fernet-pre-check-5efbdfe43a2776e3.yaml
with
25 additions
and
8 deletions
ansible/roles/keystone/tasks/precheck.yml
+
19
−
8
View file @
50359204
...
@@ -49,12 +49,23 @@
...
@@ -49,12 +49,23 @@
-
keystone_ssh.enabled | bool
-
keystone_ssh.enabled | bool
-
inventory_hostname in groups['keystone']
-
inventory_hostname in groups['keystone']
-
name
:
Checking fernet_token_expiry
in globals.yml. Update fernet_token_expiry to allowed value if this task fails
-
name
:
Checking fernet_token_expiry
run_once
:
true
run_once
:
true
command
:
assert
:
cmd
:
awk '/^fernet_token_expiry/ { print $2 }' "{{ node_config }}/globals.yml"
that
:
delegate_to
:
localhost
-
fernet_token_expiry is number
register
:
result
# Check that it is not a floating point number
changed_when
:
false
-
fernet_token_expiry | int == fernet_token_expiry
failed_when
:
-
fernet_token_expiry >=
0
-
result.stdout | regex_replace('(60|120|180|240|300|360|600|720|900|1200|1800|3600|7200|10800|14400|21600|28800|43200|86400|604800)', '') is search(".+")
# NOTE(wszumski): fernet_rotate_cron_generator.py doesn't support a span
# greater than a week.
-
fernet_token_expiry <=
604800
msg
:
>-
fernet_token_expiry must be an integer up to and including 604800. You can
set this in `globals.yml`. The value represents the time period, in
seconds, at which to rotate the fernet keys. Suggested values are: 60,
120, 240, 480, 720, 1440, 3600, 7200, 10800, 14400, 21600, 43200, 60480,
120960, 151200, 201600, 302400, 604800. These values ensure an evenly-spaced
run schedule as they divide 7 days without remainder.
when
:
-
keystone_token_provider == 'fernet'
This diff is collapsed.
Click to expand it.
releasenotes/notes/fix-fernet-pre-check-5efbdfe43a2776e3.yaml
0 → 100644
+
6
−
0
View file @
50359204
---
fixes
:
-
|
Fixes an issue where ``fernet_token_expiry`` would fail the pre-checks
despite being set to a valid value. Please see `bug 1856021
<https://bugs.launchpad.net/kolla-ansible/+bug/1856021>`_ for more details.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment