can't set fernet_token_expiry to 3600

Bug #1856021 reported by Will Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard
Rocky
Triaged
Medium
Unassigned
Stein
Fix Released
Medium
Mark Goddard
Train
Fix Released
Medium
Mark Goddard
Ussuri
Fix Released
Medium
Mark Goddard

Bug Description

version: stein

Fails on prechecks when deploying services.

```
TASK [keystone : Checking fernet_token_expiry in globals.yml. Update fernet_token_expiry to allowed value if this task fails] ***********************************************
fatal: [cpu-e-1041 -> localhost]: FAILED! => changed=false
  cmd:
  - awk
  - /^fernet_token_expiry/ { print $2 }
  - /home/will/kayobe-env-stein/src/kayobe-config/etc/kolla/globals.yml
  delta: '0:00:00.004553'
  end: '2019-12-10 20:26:17.525067'
  failed_when_result: true
  rc: 0
  start: '2019-12-10 20:26:17.520514'
  stderr: ''
  stderr_lines: []
  stdout: '3600'
  stdout_lines: <omitted>
```

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/698441

Changed in kolla-ansible:
assignee: nobody → Will Szumski (willjs)
status: New → In Progress
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
Will Szumski (willjs) wrote :

In the case of 3600, the issue was that the regex `360` was matching
`3600` leaving `0` which failed the regex search.

Changed in kolla-ansible:
assignee: Will Szumski (willjs) → Mark Goddard (mgoddard)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/698441
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=810acea6b1db256d9481dc025c1b13a768900009
Submitter: Zuul
Branch: master

commit 810acea6b1db256d9481dc025c1b13a768900009
Author: Will Szumski <email address hidden>
Date: Thu May 7 12:38:29 2020 +0100

    Improve fernet_token_expiry precheck

    The pre-check was broken, see bug report for details.

    Change-Id: I089f1e288bae6c093be66181c81a4373a6ef3de4
    Closes-Bug: #1856021

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/728790

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/728791

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/stein)

Reviewed: https://review.opendev.org/728791
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=242c8a6b7826be1278283ef70dcd432e6b668f31
Submitter: Zuul
Branch: stable/stein

commit 242c8a6b7826be1278283ef70dcd432e6b668f31
Author: Will Szumski <email address hidden>
Date: Thu May 7 12:38:29 2020 +0100

    Improve fernet_token_expiry precheck

    The pre-check was broken, see bug report for details.

    Change-Id: I089f1e288bae6c093be66181c81a4373a6ef3de4
    Closes-Bug: #1856021
    (cherry picked from commit 810acea6b1db256d9481dc025c1b13a768900009)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/train)

Reviewed: https://review.opendev.org/728790
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=49b58151bea3c05da7bd8253058f772dfea3f875
Submitter: Zuul
Branch: stable/train

commit 49b58151bea3c05da7bd8253058f772dfea3f875
Author: Will Szumski <email address hidden>
Date: Thu May 7 12:38:29 2020 +0100

    Improve fernet_token_expiry precheck

    The pre-check was broken, see bug report for details.

    Change-Id: I089f1e288bae6c093be66181c81a4373a6ef3de4
    Closes-Bug: #1856021
    (cherry picked from commit 810acea6b1db256d9481dc025c1b13a768900009)

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.