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.
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 wherebilling
requires thatvisualisation
is responding to requests when it starts. If it isn't,billing
will immediately exit. This should be fixed inbilling
. However, it is also worked around in this PR. My initial attempt to do so was with docker compose'sdepends_on
setting. However that didn't work asvisualisation
takes some time to respond to requests after it's container has started. This could be fixed with health checks and a/ping
route invisualisation
, however, I settled on an ansible task that waits for thevisualisation
port to become open.My attempts to get
depends_on
working with the various permutations of theenable_*
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 addlstrip_blocks: yes
and moving the jinja tags to the first character on the line.