Friday, 2017-02-03

*** karimb has joined #ara09:27
*** jrosser has joined #ara14:35
*** Ravi has joined #ara17:26
dmsimardRavi: hey o/17:26
dmsimardRavi: I made you core on ansible-role-ara, can you see if you are able to +2 this review ? https://review.openstack.org/#/c/428275/17:27
Ravidmsimard: sure17:27
dmsimardSo you might want to subscribe to the project so you are notified about new reviews automatically, this is done in the gerrit settings at https://review.openstack.org/#/settings/projects once you're logged in17:28
dmsimardboxrick1: by the way, we created https://github.com/openstack/ansible-role-ara from the existing role that was already done, would love to implement your stuff in there17:29
boxrick1Ahh ok17:30
dmsimardright now the role has a different implementation (systemd unit that runs the dev server) but I'm sure we can have a toggle or setting that provides httpd/wsgi instead17:30
boxrick1Let me update my playbook so you can see the new stuff I did17:30
Ravidmsimard: I am not able to find the review option17:40
dmsimardRavi: need to click on "reply"17:43
dmsimardand you'll have radio buttons17:43
Ravidmsimard: Thanks, done17:44
boxrick1dmsimard: Updated https://github.com/boxrick/ara_install a little bit with some more changes I had unpushed to github.17:44
dmsimardboxrick1: cool thanks17:44
boxrick1Nothing massive, but at least its my latest working version17:45
boxrick1Does ARA only show the level of output currently set within Ansible17:45
boxrick1IE debug etc ?17:45
dmsimardRavi: cool. So, in typical openstack projects, we usually need two core reviewers to +2 a review and then the second core reviewer does a Workflow+117:45
dmsimardRavi: doing Workflow+1 is what sends the patch for a final batch of tests and then it's merged by gerrit17:46
dmsimardRavi: since we don't have that many core reviewers in ARA, it's okay to relax that unwritten rule -- if there's at least two responsive core reviewers, we should at least not self-merge our things17:46
dmsimardboxrick1: as far as I'm aware, ARA picks up everything (from the tasks) as if debug had been run, except it doesn't really pick up the ssh-related stuff17:47
Ravidmsimard: ravi nods17:48
dmsimardboxrick1: hm, maybe not in all cases17:48
dmsimardboxrick1: for example: http://logs.openstack.org/32/425932/4/check/gate-ara-integration-latest-centos-7/b23e578/logs/build/result/a71f9bd2-4df5-44ae-8a1c-5736f9ccc0b5/index.html is fairly verbose17:48
boxrick1I just seem to see reduced output when debug is off17:48
dmsimardboxrick1: but http://logs.openstack.org/32/425932/4/check/gate-ara-integration-latest-centos-7/b23e578/logs/build/result/82dfb00e-8dc2-41ef-ad39-9f12b6819a4d/index.html is not very helpful17:49
dmsimardboxrick1: so ARA is a callback, it records whatever Ansible throws at it. It's possible that the debug/verbosity level of ansible-playbook has an impact on what the different actions/modules send back as information17:50
dmsimardex, a module could have like "if debug: send a bunch of debug"17:51
dmsimardso if debug isn't enabled, ARA wouldn,t see that17:51
boxrick1Ok that makes sense17:51
dmsimardRavi: so you can go ahead and +Workflow that review17:51
dmsimardRavi: right now there are no integration jobs but I'll add some soon17:52
openstackgerritMerged openstack/ansible-role-ara master: Add .gitreview file  https://review.openstack.org/42827517:52
dmsimardwell there you go17:53
*** gundalow has quit IRC17:56
*** hiroki has quit IRC17:56
*** gundalow has joined #ara17:56
*** hiroki has joined #ara17:56
*** hiroki has quit IRC17:56
*** hiroki has joined #ara17:56
*** dmsimard has quit IRC17:56
*** dmsimard has joined #ara17:57
*** ChanServ sets mode: +o dmsimard17:57
Ravidmsimard: let me know if I can help you with integration jobs. Also we need to update role in ansible galaxy to use openstack/ansible-role-ara17:57
dmsimardRavi: I'll have you review the patches I put up for the tests :)17:58
dmsimardand yes, galaxy ought to be updated17:58
dmsimardthat'd be in openstack namespace though, right ?17:58
dmsimardI guess we don't have access to that.17:58
dmsimardWhat I do for roles that aren't in galaxy is that I use an ansible-role-requirements.yml file with a git src, like so: https://github.com/rdo-infra/weirdo/blob/master/ansible-role-requirements.yml#L9-L1217:59
Ravioh.. okay18:01
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add new ara_record types: list and dict  https://review.openstack.org/42901119:49
dmsimardlarsks: in your quick opinion, what are the odds of https://review.openstack.org/#/c/429011/1/ara/models.py biting me in the rear ?19:49
dmsimardAt first glance it looks to work okay, there's no encoding/decoding issues, even with non-ascii characters19:49
* larsks looks...19:49
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add new ara_record types: list and dict  https://review.openstack.org/42901119:50
dmsimardlarsks: the problem was when trying to compress non-string types19:51
larsksdmsimard: right, I got that.  I mean, Pickle has obvious security issues...if someone were able to modify the database, they could get you to run code when unpickling.19:51
larsksWhat sort of non-string types are you saving?19:52
dmsimardlist/dict19:52
larsksSo...just use JSON for serializing?  And compress that?19:52
dmsimardhm, json for lists?19:53
dmsimardgotta look.19:53
larsksSure...JSON does lists.  ["this", "is", "a", "list"]19:53
dmsimardinteresting, I work too much with dicts19:53
larsksAlthough...19:53
larsksYour data type is CompressedText.19:53
larsksIf you want to handle structured data,rename the data type.19:54
larsksOr make a new one that does the serialize/deserialize dance.19:54
larsksAnd leave CompressedText just for text.19:54
dmsimardgood point19:54
larsksCompressedArbitraryPythonValue19:54
dmsimard:P19:55
dmsimardhappy to have asked you a quick review as always19:55
dmsimard19:55
dmsimarder, <319:56
dmsimardlarsks: hah, nice.. we run bandit in the integration tests20:03
dmsimardand it picked up pickle as a security issue :)20:03
larsks\o/20:03
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add new ara_record types: list and dict  https://review.openstack.org/42901120:12
larsksdmsimard: left you a comment on that patch.20:21
dmsimardah I tried some variations in interpreter but didn't check that particular one, good catch.20:24
larsksdmsimard: add tests! :)20:24
dmsimardalso FWIW, I thought this'd require a migration but turns out it ends up being created as a blob regardless20:24
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add new ara_record types: list and dict  https://review.openstack.org/42901120:26
*** karimb has quit IRC20:42
*** karimb has joined #ara20:43
*** karimb has quit IRC20:48
*** Ravi has quit IRC21:38
*** themurph has quit IRC21:46
*** themurph_ has joined #ara21:58
*** themurph_ has quit IRC21:58
*** karimb has joined #ara22:14
*** karimb has quit IRC22:17
*** karimb has joined #ara22:52
*** karimb has quit IRC23:45

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