openflighthpc / concertim-ansible-playbook

Ansible playbook for building a Concertim appliance
Eclipse Public License 2.0
0 stars 0 forks source link

Install Concertim OpenStack billing service #74

Closed benarmston closed 9 months ago

benarmston commented 9 months ago

Somehow the billing service from Concertim OpenStack Service wasn't included in the initial all-in-one work. This PR fixes that.

Including billing uncovered an order of initialisation issue where billing requires that visualisation is responding to requests when it starts. If it isn't, billing will immediately exit. This should be fixed in billing. However, it is also worked around in this PR. My initial attempt to do so was with docker compose's depends_on setting. However that didn't work as visualisation takes some time to respond to requests after it's container has started. This could be fixed with health checks and a /ping route in visualisation, however, I settled on an ansible task that waits for the visualisation port to become open.

My attempts to get depends_on working with the various permutations of the enable_* settings led me to banging my head on Jinja 2's whitespace stripping (or lack of it). I've changed how ansible renders its jinja 2 templates to consistently add lstrip_blocks: yes and moving the jinja tags to the first character on the line.