When generating certificates, the wrong path is used in the defaults file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
Undecided
|
James Bagwell |
Bug Description
When using the 'kolla-ansible certificates' command to generate tls certificates, we encounter the following error:
TASK [certificates : Setting permissions on key] *******
Tuesday 26 March 2019 20:29:03 +0000 (0:00:00.620) 0:00:09.874 *********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "file (/etc/kolla/
/haproxy.key", "state": "absent"}
NO MORE HOSTS LEFT *******
to retry, use: --limit @/home/
PLAY RECAP *******
localhost : ok=5 changed=0 unreachable=0 failed=1
Upon inspection of the following file:
ansible/
permissions on Key' task has a path of '{{ certificates_dir
}}/certificates
---
# Directory on deploy node (localhost) in which certificates are generated.
certificates_dir: "{{ node_config }}/certificates"
It seems as though the "certificates" is not needed as {{ node_config }} is already defined with this path. This leads to a wrong path as seen in the error above:
"/etc/kolla/
Removing the certificates directory from the generate.yaml 'Setting permissions on key' task, and rerunning the 'kolla-ansible certificates' returns successfully now. Tested a deployment using these certificates which also was successful.
Changed in kolla-ansible: | |
assignee: | nobody → James Bagwell (jimbagwell) |
status: | New → In Progress |
description: | updated |
Fix proposed to branch: master /review. openstack. org/647933
Review: https:/