j2 templates are not rendered during upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Sergii Golovatiuk |
Bug Description
A few templates for services such as apache, haproxy-
[stack@undercloud services]$ pwd
/home/stack/
[stack@undercloud services]$ ls -la *j2*
-rw-rw-r--. 1 stack stack 4879 Apr 3 18:29 apache.j2.yaml
-rw-rw-r--. 1 stack stack 3331 Apr 3 18:29 haproxy-
However, during 'openstack overcloud upgrade prepare' they are not rendered to yaml thus upgrade fails with the following error
https:/
When I render manually using
cd /usr/share/
sudo ./tools/
cd
then I was able to run
openstack overcloud upgrade prepare
without any issues.
Changed in tripleo: | |
status: | New → Confirmed |
milestone: | none → rocky-3 |
assignee: | nobody → mathieu bultel (mat-bultel) |
Changed in tripleo: | |
assignee: | Steven Hardy (shardy) → nobody |
tags: | added: ux |
Changed in tripleo: | |
status: | In Progress → Triaged |
assignee: | Bogdan Dobrelya (bogdando) → nobody |
Changed in tripleo: | |
assignee: | nobody → Bogdan Dobrelya (bogdando) |
status: | Triaged → In Progress |
Changed in tripleo: | |
assignee: | Bogdan Dobrelya (bogdando) → Emilien Macchi (emilienm) |
Changed in tripleo: | |
milestone: | rocky-2 → rocky-3 |
Changed in tripleo: | |
status: | Fix Committed → Fix Released |
I performed the RCA of this bug
When operator runs
openstack overcloud upgrade prepare \ heat-templates openstack- tripleo- heat-templates/ *.yaml
--templates ~/tripleo-
-e /usr/share/
the j2 templates from '~/tripleo- heat-templates' will never be rendered and uploaded to swift.
As a workaround --templates and -e should point to the same directory. In that case, j2 templates will be rendered correctly.