Bug 1820268
| Summary: | Fernet token rotation by mistral workflow fails | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Manuel Rodriguez <manrodri> |
| Component: | tripleo-ansible | Assignee: | Adriano Petrich <apetrich> |
| Status: | CLOSED ERRATA | QA Contact: | David Rosenfeld <drosenfe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 16.0 (Train) | CC: | amcleod, apetrich, cjeanner, emacchi, gchamoul, jhajyahy, jschluet, lbragsta, mburns, slinaber |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 16.1 (Train on RHEL 8.2) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tripleo-ansible-0.5.1-0.20200421100735.73d9fbe.el8ost | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-29 07:51:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Manuel Rodriguez
2020-04-02 16:00:03 UTC
I have a patch up that attempts to update the location of the playbook in the mistral workflow. https://review.opendev.org/#/c/717291/ I confirmed the patch makes the workflow point to the right path this time, however now it fails because the playbook is not performing correctly the validation if keystone is running on a container:
PLAY [keystone] ******************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************
ok: [overcloud2-ctrl01]
TASK [Check for containerized keystone fernet repository] ************************************************************************************************************************************
ok: [overcloud2-ctrl01]
TASK [populate service facts] ****************************************************************************************************************************************************************
ok: [overcloud2-ctrl01]
TASK [Set container facts] *******************************************************************************************************************************************************************
ok: [overcloud2-ctrl01]
TASK [Set keystone facts] ********************************************************************************************************************************************************************
skipping: [overcloud2-ctrl01]
TASK [Remove previous fernet keys] ***********************************************************************************************************************************************************
skipping: [overcloud2-ctrl01]
TASK [Persist fernet keys to repository] *****************************************************************************************************************************************************
skipping: [overcloud2-ctrl01] => (item={'key': '/etc/keystone/fernet-keys/0', 'value': {'content': 'xWTb5JYlZah2XPYY8HiewABw6kExXrWF5IRVJ_wv4LM='}})
skipping: [overcloud2-ctrl01] => (item={'key': '/etc/keystone/fernet-keys/1', 'value': {'content': 'G4hDLNQB2RFJoXx6c_Y26MGbbonM3CKkvZdbR5vbp2g='}})
skipping: [overcloud2-ctrl01] => (item={'key': '/etc/keystone/fernet-keys/2', 'value': {'content': 'NVcarcz3uboaobSY6xTMRzcMdCgxt08Xg7JPmuyfnt8='}})
TASK [Set permissions to match container's user] *********************************************************************************************************************************************
skipping: [overcloud2-ctrl01] => (item={'key': '/etc/keystone/fernet-keys/0', 'value': {'content': 'xWTb5JYlZah2XPYY8HiewABw6kExXrWF5IRVJ_wv4LM='}})
skipping: [overcloud2-ctrl01] => (item={'key': '/etc/keystone/fernet-keys/1', 'value': {'content': 'G4hDLNQB2RFJoXx6c_Y26MGbbonM3CKkvZdbR5vbp2g='}})
skipping: [overcloud2-ctrl01] => (item={'key': '/etc/keystone/fernet-keys/2', 'value': {'content': 'NVcarcz3uboaobSY6xTMRzcMdCgxt08Xg7JPmuyfnt8='}})
TASK [Restart keystone container with docker] ************************************************************************************************************************************************
skipping: [overcloud2-ctrl01]
TASK [Restart keystone container] ************************************************************************************************************************************************************
skipping: [overcloud2-ctrl01]
TASK [Remove previous fernet keys] ***********************************************************************************************************************************************************
changed: [overcloud2-ctrl01]
TASK [Persist fernet keys to repository] *****************************************************************************************************************************************************
failed: [overcloud2-ctrl01] (item={'key': '/etc/keystone/fernet-keys/0', 'value': {'content': 'xWTb5JYlZah2XPYY8HiewABw6kExXrWF5IRVJ_wv4LM='}}) => {"ansible_loop_var": "item", "changed": fal
se, "checksum": "3b412c11e3ccbaaf2236041a5cdf08f1325605f1", "item": {"key": "/etc/keystone/fernet-keys/0", "value": {"content": "xWTb5JYlZah2XPYY8HiewABw6kExXrWF5IRVJ_wv4LM="}}, "msg": "Dest
ination directory /etc/keystone/fernet-keys does not exist"}
Fortunately this has been patched upstream, in the master branch: https://review.opendev.org/#/c/711872/1
So I just cherry picked to Train branch: https://review.opendev.org/#/c/717495/
let's see how it goes.
Thanks,
openstack workflow execution create tripleo.fernet_keys.v1.rotate_fernet_keys '{"container": "overcloud"}'
openstack workflow execution show f87819fb-7a32-4fd9-95b4-bde14875e02a
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-2020:3148 |