[OpenStack-Infra] ARA 1.0 deployment plans
David Moreau Simard
dmsimard at redhat.com
Mon Jul 15 19:03:36 UTC 2019
On Tue, Jun 11, 2019 at 7:45 PM James E. Blair <corvus at inaugust.com> wrote:
> Given that our direction is to remove logs.o.o from the system along
> with all of its proxy services and only serve static files from swift, I
> think we will have to continue to use the old version of ARA until the
> story with static generation is worked out for 1.0.
We're currently experimenting with a proof of concept [1] to generate
static reports in 1.x -- you can see what it looks like in the
uploaded logs here [2].
In a nutshell, it uses the offline API client to retrieve data and
then it's rendered using simple html templates.
No added dependencies, no javascript (yet?) and the only css is
included from a CDN.
The challenge with static reports remains the same, though: if you run
100 tasks against 10 hosts, it's 1000 task results.
If we keep results in their own pages to keep the playbook pages
lightweight, we end up with 1000+ small files.
Inlcuding those task results in the same pages as the playbooks
reduces the amount of files to generate but it also results in heavier
pages to load in users' browsers.
Another option is to have arguments or parameters to omit data from
the report which would result in less bloat.
For example, there could be a flag to omit (detailed) results for "OK"
and "SKIPPED" tasks or there could be a flag to only include failed
playbooks in the report. Doing something like this isn't complicated
since the API already supports filtering by playbook and task status.
I'll think about it a little bit but I'm open to suggestions if anyone
has an idea.
In the meantime, we've landed an implementation of the sqlite
middleware for the API [3].
I know it wouldn't work with Swift (unless we use something like s3ql
[4]?) but I think that an API to browse and query any job's results
could be useful.
[1]: https://review.opendev.org/#/c/670597/
[2]: http://logs.openstack.org/97/670597/7/check/ansible-role-ara-api-fedora-devel/1dcf203/logs/static/
[3]: https://ara.readthedocs.io/en/latest/distributed-sqlite-backend.html
[4]: https://github.com/s3ql/s3ql
David Moreau Simard
dmsimard = [irc, github, twitter]
More information about the OpenStack-Infra
mailing list