Tuesday, 2019-03-05

*** Jmainguy has quit IRC00:38
*** Jmainguy has joined #ara00:38
*** jparrill has quit IRC07:22
*** herald85 has joined #ara07:38
*** jungleslow has joined #ara09:37
*** herald85 has quit IRC10:25
*** herald85 has joined #ara10:58
*** herald85 has quit IRC11:57
*** weshay is now known as weshay|rover13:09
*** openstackgerrit has joined #ara15:35
openstackgerritMerged openstack/ara feature/1.0: Documentation updates post-merge of plugins/server/clients  https://review.openstack.org/64059615:35
*** krion has joined #ara15:37
kriono/15:37
dmsimardkrion: ohai15:40
krionHow are you dmsimard ?15:42
dmsimardI'm tired haha15:44
dmsimardsleeping for 24hrs straight would be nice, but other than that I'm ok :D15:45
Jmainguy=)15:46
dmsimardI 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
Jmainguynice15:46
dmsimardBack to basics, things were getting too complicated for nothing, etc etc15:46
dmsimardFelt I wasn't staying true to the manifesto: https://ara.readthedocs.io/en/stable/manifesto.html15:47
dmsimard"1) Simplicity is fundamental"15:47
dmsimardIf it's not simple, we need to fix it :p15:47
Jmainguydmsimard++15:49
Glandosyes, but sometimes, to make things simple from outside, you need to make it complicated inside15:57
Glandosfor example: writing a python decorator15:57
dmsimardGlandos: good point, but you also need to be able to recognize that complexity has a cost not only for users but for developers as well15:58
dmsimardit's a game of tradeoffs and compromises15:58
dmsimardis this complexity really worth it ? does it bring enough value to exist ?15:59
krionI'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 playbooks15:59
krionI don't have too much perseverance either ;-)16:00
dmsimardkrion: 1.0 is in flux right now, I would not recommend it until I'm done shifting things around.16:00
krionI copy paste the API Script Example from the doc.16:00
krionOh, you mean I can't achieve what I need with my current version ?16:01
krion(0.16.3)16:01
dmsimardkrion: the API is a feature from 1.016:01
dmsimardit does not exist in 0.x16:01
krionhum, that's probably why I've no luck then xD16:01
dmsimardyeah :)16:02
krionI need a way to extract my data though16:02
dmsimardkrion: I can help after lunch, need to focus for a bit16:03
dmsimardlook at if the CLI can do what you want16:03
krionNo worries16:03
dmsimardhttps://ara.readthedocs.io/en/stable/usage.html#querying-the-database-with-the-cli16:03
dmsimardsomething like "ara data list -f json" for example16:03
krionI 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
dmsimardthere are ways to get the data out of 0.x16:05
dmsimardtripleo (an openstack project) dump everything to json and then send that to influxdb for graphing stuff in grafana16:05
dmsimardthe CLI prints to pretty tables by default but supports output to yaml and json16:05
dmsimardit's not an API but it allows you to work with the data16:05
krionWill try thanks !16:07
krionI try to extract from the DB once, but all I was seing was blob.16:07
krionthanks for your answer, I let you focus16:07
dmsimardyes, the data is compressed in-place in the database to keep it manageable in size16:07
dmsimardthe CLI (and the API in 1.0) takes care of uncompressing that for you16:08
krionWill try, cheers.16:08
krionIf you need early test I've got ~420 hosts waiting for you ;-)16:14
Jmainguy420 eh?16:17
krionabout,  yes, why ?16:25
dmsimardlet's not go there :p16:25
dmsimardkrion: april 20th has a meaning16:26
krion412 Hosts16:27
krionIsn't the birth or death of adolf hitler ?16:27
krionanyway ;-)16:27
*** gnupyx has joined #ara16:39
krionara data list output the key, the type, but not the value associated16:49
dmsimardkrion: the value would be in "show"16:51
dmsimarddata show16:51
krionhttps://gpldr.in/v/vBR6eLgeJ5/2kPVf7ZTOuMWb5Ae16:51
krionhum... ok16:52
dmsimardkrion: ara data show b4efc452-3b25-468c-a22d-08f7724e561c16:53
krionIt works, thanks ! Not the most convenient for my use case though ;)16:54
dmsimardI know, that's why I've been working on this 1.0 thing for like two years now :p16:55
krionWow, are you on your own ?16:55
dmsimardI'm not, I threw away a lot of code I wasn't happy with, though.16:57
dmsimard1.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.016:58
dmsimardA lot of work went into that and it was a hard decision but we ended up rewriting everything from scratch on django/django-rest-framework16:58
dmsimardThere 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 :p17:00
dmsimardIf anything, it's probably taken so long because I hold the project to very high standards17:01
dmsimardOne 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
dmsimardapollo13: is there no way to get django to serve static files without "DEBUG = True" ? Even with a wsgi server ?17:11
dmsimardThe 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 purposes17:12
krionStill not that long as between two debian release so your good.17:12
dmsimardapollo13: 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-slackroberto.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-ara17:17
dmsimard@roberto.b disclaimer: it is unfortunately not well maintained right now17:18
dmsimard@roberto.b ah, actually that doesn't have a proper wsgi server implementation -- it just has nginx reverse proxy to the development server17:19
ara-slackroberto.b: @dmsimard thanks ill start with that lets see what i can do with this. :+117:20
ara-slackroberto.b: +117:20
ara-slackroberto.b: :+1:17:20
dmsimardapollo13: 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 server17:22
dmsimardyeah, that'll be for another day. I'll make the thing enable debug if there's no web server present for now.17:34
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled  https://review.openstack.org/64109618:00
dmsimardapollo13: ^ let me know if that makes sense18:00
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled  https://review.openstack.org/64109618:02
ara-slackcody_deniro: @cody_deniro has joined the channel19:10
ara-slackcody_deniro: I am testing out ARA and having an issue with UTF8  encoding for mysql when running a playbook19: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-slackcody_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 :p19:18
ara-slackcody_deniro: Is there any guide on using ARA with AWX?19:21
ara-slackdmsimard: @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/p154755112015180019:51
openstackgerritDavid 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/64112020:38
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112120:38
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112120:39
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled  https://review.openstack.org/64109620:39
openstackgerritDavid 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/64112020:39
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112120:40
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112120:42
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112120:52
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Add a route for serving static content when debug is enabled  https://review.openstack.org/64109620:55
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112121:04
openstackgerritMerged openstack/ara feature/1.0: Check the version of ara instead of ara-server for the info endpoint  https://review.openstack.org/64112021:24
openstackgerritMerged openstack/ara feature/1.0: Move Ansible role to set up ARA 1.0 from ara-infra  https://review.openstack.org/64112121:35
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Remove roles and integration tests from ara-infra, move them to ara  https://review.openstack.org/64080521:38
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Add missing relationship from result to play  https://review.openstack.org/64113321:52
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Move fields out of serializers and into fields  https://review.openstack.org/64113421:55
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Remove unused code and variables out of serializers  https://review.openstack.org/64113521:55
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Add missing relationship from result to play  https://review.openstack.org/64113321:55
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: WIP: Refactor Serializers for different formats and request types  https://review.openstack.org/64113621:56
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Implement get_or_create for the File model serializer  https://review.openstack.org/64114022:01
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Rely on the API server for the get_or_create methods  https://review.openstack.org/64114122:01
openstackgerritMerged openstack/ara-infra master: Remove roles and integration tests from ara-infra, move them to ara  https://review.openstack.org/64080522:03

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!