*** Jmainguy has quit IRC | 00:38 | |
*** Jmainguy has joined #ara | 00:38 | |
*** jparrill has quit IRC | 07:22 | |
*** herald85 has joined #ara | 07:38 | |
*** jungleslow has joined #ara | 09:37 | |
*** herald85 has quit IRC | 10:25 | |
*** herald85 has joined #ara | 10:58 | |
*** herald85 has quit IRC | 11:57 | |
*** weshay is now known as weshay|rover | 13:09 | |
*** openstackgerrit has joined #ara | 15:35 | |
openstackgerrit | Merged openstack/ara feature/1.0: Documentation updates post-merge of plugins/server/clients https://review.openstack.org/640596 | 15:35 |
---|---|---|
*** krion has joined #ara | 15:37 | |
krion | o/ | 15:37 |
dmsimard | krion: ohai | 15:40 |
krion | How are you dmsimard ? | 15:42 |
dmsimard | I'm tired haha | 15:44 |
dmsimard | sleeping for 24hrs straight would be nice, but other than that I'm ok :D | 15:45 |
Jmainguy | =) | 15:46 |
dmsimard | I noticed I screwed up a bit with 1.0 and I'm trying to fix that right now. I hope I can get a blog post out by the end of the week. | 15:46 |
Jmainguy | nice | 15:46 |
dmsimard | Back to basics, things were getting too complicated for nothing, etc etc | 15:46 |
dmsimard | Felt I wasn't staying true to the manifesto: https://ara.readthedocs.io/en/stable/manifesto.html | 15:47 |
dmsimard | "1) Simplicity is fundamental" | 15:47 |
dmsimard | If it's not simple, we need to fix it :p | 15:47 |
Jmainguy | dmsimard++ | 15:49 |
Glandos | yes, but sometimes, to make things simple from outside, you need to make it complicated inside | 15:57 |
Glandos | for example: writing a python decorator | 15:57 |
dmsimard | Glandos: good point, but you also need to be able to recognize that complexity has a cost not only for users but for developers as well | 15:58 |
dmsimard | it's a game of tradeoffs and compromises | 15:58 |
dmsimard | is this complexity really worth it ? does it bring enough value to exist ? | 15:59 |
krion | I'm trying to use the API but I don't have too much luck. My goal is pretty simple, extract all the ara_record from the last playbooks | 15:59 |
krion | I don't have too much perseverance either ;-) | 16:00 |
dmsimard | krion: 1.0 is in flux right now, I would not recommend it until I'm done shifting things around. | 16:00 |
krion | I copy paste the API Script Example from the doc. | 16:00 |
krion | Oh, you mean I can't achieve what I need with my current version ? | 16:01 |
krion | (0.16.3) | 16:01 |
dmsimard | krion: the API is a feature from 1.0 | 16:01 |
dmsimard | it does not exist in 0.x | 16:01 |
krion | hum, that's probably why I've no luck then xD | 16:01 |
dmsimard | yeah :) | 16:02 |
krion | I need a way to extract my data though | 16:02 |
dmsimard | krion: I can help after lunch, need to focus for a bit | 16:03 |
dmsimard | look at if the CLI can do what you want | 16:03 |
krion | No worries | 16:03 |
dmsimard | https://ara.readthedocs.io/en/stable/usage.html#querying-the-database-with-the-cli | 16:03 |
dmsimard | something like "ara data list -f json" for example | 16:03 |
krion | I once try but you tell me to use the API ! (but you probably mention the version 1 and I should have ignored it ;)) | 16:04 |
dmsimard | there are ways to get the data out of 0.x | 16:05 |
dmsimard | tripleo (an openstack project) dump everything to json and then send that to influxdb for graphing stuff in grafana | 16:05 |
dmsimard | the CLI prints to pretty tables by default but supports output to yaml and json | 16:05 |
dmsimard | it's not an API but it allows you to work with the data | 16:05 |
krion | Will try thanks ! | 16:07 |
krion | I try to extract from the DB once, but all I was seing was blob. | 16:07 |
krion | thanks for your answer, I let you focus | 16:07 |
dmsimard | yes, the data is compressed in-place in the database to keep it manageable in size | 16:07 |
dmsimard | the CLI (and the API in 1.0) takes care of uncompressing that for you | 16:08 |
krion | Will try, cheers. | 16:08 |
krion | If you need early test I've got ~420 hosts waiting for you ;-) | 16:14 |
Jmainguy | 420 eh? | 16:17 |
krion | about, yes, why ? | 16:25 |
dmsimard | let's not go there :p | 16:25 |
dmsimard | krion: april 20th has a meaning | 16:26 |
krion | 412 Hosts | 16:27 |
krion | Isn't the birth or death of adolf hitler ? | 16:27 |
krion | anyway ;-) | 16:27 |
*** gnupyx has joined #ara | 16:39 | |
krion | ara data list output the key, the type, but not the value associated | 16:49 |
dmsimard | krion: the value would be in "show" | 16:51 |
dmsimard | data show | 16:51 |
krion | https://gpldr.in/v/vBR6eLgeJ5/2kPVf7ZTOuMWb5Ae | 16:51 |
krion | hum... ok | 16:52 |
dmsimard | krion: ara data show b4efc452-3b25-468c-a22d-08f7724e561c | 16:53 |
krion | It works, thanks ! Not the most convenient for my use case though ;) | 16:54 |
dmsimard | I know, that's why I've been working on this 1.0 thing for like two years now :p | 16:55 |
krion | Wow, are you on your own ? | 16:55 |
dmsimard | I'm not, I threw away a lot of code I wasn't happy with, though. | 16:57 |
dmsimard | 1.0 was initially going to be a refactor of 0.x with flask-restful -- it still exists here: https://github.com/openstack/ara/releases/tag/old-flask-1.0 | 16:58 |
dmsimard | A lot of work went into that and it was a hard decision but we ended up rewriting everything from scratch on django/django-rest-framework | 16:58 |
dmsimard | There are periods of time where I couldn't work on ara a lot because it's not my actual job too -- so, anyway, yeah. I think I'm more excited to get this thing out than anyone else :p | 17:00 |
dmsimard | If anything, it's probably taken so long because I hold the project to very high standards | 17:01 |
dmsimard | One of the things I'm working on *right now* is to make it easier to contribute to the project. We'll see in time if it pays off :) | 17:04 |
-openstackstatus- NOTICE: Gerrit is being restarted for a configuration change, it will be briefly offline. | 17:09 | |
dmsimard | apollo13: is there no way to get django to serve static files without "DEBUG = True" ? Even with a wsgi server ? | 17:11 |
dmsimard | The only static things it needs to serve are the css/js for the django-rest-framework browser and the admin panel -- we could 100% live with that for non-production purposes | 17:12 |
krion | Still not that long as between two debian release so your good. | 17:12 |
dmsimard | apollo13: it seems to me like there should be a supported middleground between enabling debug for everything and just serving the static files :/ | 17:15 |
ara-slack | roberto.b: is there a remote nginx wsgi setup example somewhere ? | 17:17 |
dmsimard | @roberto.b for ARA 0.x: https://github.com/openstack/ansible-role-ara | 17:17 |
dmsimard | @roberto.b disclaimer: it is unfortunately not well maintained right now | 17:18 |
dmsimard | @roberto.b ah, actually that doesn't have a proper wsgi server implementation -- it just has nginx reverse proxy to the development server | 17:19 |
ara-slack | roberto.b: @dmsimard thanks ill start with that lets see what i can do with this. :+1 | 17:20 |
ara-slack | roberto.b: +1 | 17:20 |
ara-slack | roberto.b: :+1: | 17:20 |
dmsimard | apollo13: ended up finding --insecure for manage.py runserver, I'll try and figure out if there's a way to plumb that through the wsgi server | 17:22 |
dmsimard | yeah, that'll be for another day. I'll make the thing enable debug if there's no web server present for now. | 17:34 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled https://review.openstack.org/641096 | 18:00 |
dmsimard | apollo13: ^ let me know if that makes sense | 18:00 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled https://review.openstack.org/641096 | 18:02 |
ara-slack | cody_deniro: @cody_deniro has joined the channel | 19:10 |
ara-slack | cody_deniro: I am testing out ARA and having an issue with UTF8 encoding for mysql when running a playbook | 19:11 |
ara-slack | /usr/lib/python2.7/dist-packages/pymysql/cursors.py:165: Warning: (1300, u"Invalid utf8 character string: '9C6D51'") | 19:11 |
ara-slack | result = self._query(query) | 19:11 |
ara-slack | cody_deniro: i found the comment about adding ?charset=latin1 and that resolved it. thanks! | 19:15 |
dmsimard | @cody_deniro: sweet, let us know if there's anything else :p | 19:18 |
ara-slack | cody_deniro: Is there any guide on using ARA with AWX? | 19:21 |
ara-slack | dmsimard: @cody_deniro there's no proper documentation to set up the two to work together but there will be eventually. It's a bit tricky due to an issue with AWX, see this conversation: https://arecordsansible.slack.com/archives/C6V4DQT5L/p1547551120151800 | 19:51 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Check the version of ara instead of ara-server for the info endpoint https://review.openstack.org/641120 | 20:38 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 20:38 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 20:39 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled https://review.openstack.org/641096 | 20:39 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Check the version of ara instead of ara-server for the info endpoint https://review.openstack.org/641120 | 20:39 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 20:40 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 20:42 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 20:52 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled https://review.openstack.org/641096 | 20:55 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 21:04 |
openstackgerrit | Merged openstack/ara feature/1.0: Check the version of ara instead of ara-server for the info endpoint https://review.openstack.org/641120 | 21:24 |
openstackgerrit | Merged openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra https://review.openstack.org/641121 | 21:35 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Remove roles and integration tests from ara-infra, move them to ara https://review.openstack.org/640805 | 21:38 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Add missing relationship from result to play https://review.openstack.org/641133 | 21:52 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Move fields out of serializers and into fields https://review.openstack.org/641134 | 21:55 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Remove unused code and variables out of serializers https://review.openstack.org/641135 | 21:55 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Add missing relationship from result to play https://review.openstack.org/641133 | 21:55 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: WIP: Refactor Serializers for different formats and request types https://review.openstack.org/641136 | 21:56 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Implement get_or_create for the File model serializer https://review.openstack.org/641140 | 22:01 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Rely on the API server for the get_or_create methods https://review.openstack.org/641141 | 22:01 |
openstackgerrit | Merged openstack/ara-infra master: Remove roles and integration tests from ara-infra, move them to ara https://review.openstack.org/640805 | 22:03 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!