Closed LaurentDumont closed 4 years ago
Hi @LaurentDumont and thanks for the report !
I think we can improve the docs for this. There's https://ara.readthedocs.io/en/latest/api-configuration.html#ara-allowed-hosts but no sample command like CORS_ORIGIN_WHITELIST.
So export ARA_ALLOWED_HOSTS="['foo', 'bar']"
should work but I would recommend using the settings.yaml file if you can :)
The ara_api role templates out the settings.yaml without the special Box syntax and it works fine, for example: https://c1f15c8f942fddd39694-f73785700cacef583f29e4dcac8fae98.ssl.cf2.rackcdn.com/703223/2/check/ansible-role-ara-api-ubuntu-postgresql/db366bb/logs/server/settings.yaml
The role is used to deploy the live demo: https://github.com/ansible-community/ara-infra/blob/master/playbooks/live-demo.yaml
I did open an issue on the dynaconf repository about what to do with those and I have a fix I need to try: https://github.com/rochacbruno/dynaconf/issues/257
Hi!
Awesome, just tested and it works. I think I tried all other combination but that one!
We wanted to use ENV variables to make containers creation a bit more simple. I could just pass what is required and not worry about templating a file or generating something first. We are currently looking at ARA to alleviate some of our issues with RH-OSP verbosity during Overcloud/Undercloud deployments. I'm just not sure how ARA is going to cope as an Overcloud deployment is generating about 100MB worth of text files.
Thanks again for your help, I'll get a PR for the docs stuff.
Btw, I think that the API demo is down :(
Awesome, just tested and it works. I think I tried all other combination but that one!
:tada:
We wanted to use ENV variables to make containers creation a bit more simple. I could just pass what is required and not worry about templating a file or generating something first.
Sure. Some configurations (logging comes to mind) might not be realistic over environment variables though.
We are currently looking at ARA to alleviate some of our issues with RH-OSP verbosity during Overcloud/Undercloud deployments. I'm just not sure how ARA is going to cope as an Overcloud deployment is generating about 100MB worth of text files.
I don't know about your specific use case but I know TripleO already leverages ARA (although still on 0.x) for CI, for example:
Thanks again for your help, I'll get a PR for the docs stuff.
Very cool! I've added a comment in https://review.opendev.org/#/c/703245/ and we can merge it soon.
Btw, I think that the API demo is down :(
Might have been a temporary blip, I've tested from different locations and it's up for me. Thanks for looking out though !
Awesome, just tested and it works. I think I tried all other combination but that one!
🎉
We wanted to use ENV variables to make containers creation a bit more simple. I could just pass what is required and not worry about templating a file or generating something first.
Sure. Some configurations (logging comes to mind) might not be realistic over environment variables though.
We are currently looking at ARA to alleviate some of our issues with RH-OSP verbosity during Overcloud/Undercloud deployments. I'm just not sure how ARA is going to cope as an Overcloud deployment is generating about 100MB worth of text files.
I don't know about your specific use case but I know TripleO already leverages ARA (although still on 0.x) for CI, for example:
- https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_1a4/702937/1/check/tripleo-ci-centos-7-containers-multinode-train/1a41f0c/logs/ara_oooq/
- https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_1a4/702937/1/check/tripleo-ci-centos-7-containers-multinode-train/1a41f0c/logs/ara_oooq_oc/
Thanks again for your help, I'll get a PR for the docs stuff.
Very cool! I've added a comment in https://review.opendev.org/#/c/703245/ and we can merge it soon.
It looks integrated into TripleO but not with the Red Hat Openstack Platform Product. At least, not when we checked before implementing ARA into our workflow.
We might end up templating the settings.yaml
, baking it into the container, pushing that image and just running the image itself without injecting anything at run-time. I'll close this for now as my original question was covered (super quickly too! Merci!)
@LaurentDumont FYI I've merged a change in master to address the odd box syntax in the default settings file: https://github.com/ansible-community/ara/commit/df3bace703ea0c8bc3cbf6946444848c4cfaa61d
What component is this about ?
This is about ara-api
What is your ARA installation like ?
Launching the server with
What is happening ?
Working - Setup with the
settings.yaml
Rendered Django variable value
NOT WORKING - using
ARA_ALLOWED_HOSTS
valueWe can see that the Django variable is changed but the format is quite different from when the values are pulled from `settings.yaml.
I've tried a few other variations on the Env variable syntax but nothing seems to stick.
Let me know if anything else is required.