Thursday, 2017-03-16

*** tready has quit IRC00:29
*** leifmadsen has quit IRC03:26
*** leifmadsen has joined #ara03:27
*** tready has joined #ara05:26
*** tready has quit IRC05:31
*** tready has joined #ara07:27
*** tready has quit IRC07:31
*** karimb has joined #ara09:24
*** tready has joined #ara09:27
*** tready has quit IRC09:32
-openstackstatus- NOTICE: paste.openstack.org is down, due to connectivity issues with backend database. support ticket has been created.10:56
*** ChanServ changes topic to "paste.openstack.org is down, due to connectivity issues with backend database. support ticket has been created."10:56
*** tready has joined #ara11:29
*** ChanServ changes topic to "ARA - Ansible Run Analysis: Making playbook runs easier to visualize, understand and troubleshoot | Git: https://github.com/openstack/ara - Docs: https://ara.readthedocs.io/en/latest/ - Latest version: 0.12.3: https://dmsimard.com/2017/03/12/an-even-better-ansible-reporting-interface-with-ara-0-12 | This channel is logged: http://eavesdrop.openstack.org/irclogs/%23ara/"11:43
-openstackstatus- NOTICE: paste.openstack.org service is back up - turns out it was a networking issue, not a database issue. yay networks!11:43
*** tready has quit IRC12:19
*** karimb has quit IRC12:28
*** Maximus86 has joined #ara12:47
Maximus86@dmsimard12:47
Maximus86dmsimard: I updated the bug12:48
Maximus86dmsimard: was able to reproduce the datatables issue on a sparkling clean install of ara12:48
dmsimardMaximus86: ok, looking12:51
openstackgerritMerged openstack/ansible-role-ara master: Clean up ansible-role-ara  https://review.openstack.org/44598412:54
dmsimardMaximus86: there's something that doesn't work in your procedure to reproduce12:56
Maximus86tell me?12:56
dmsimardwhere's the creation of the ara mysql user ?12:57
Maximus86ah wow sorry I copied the wrong scripty12:57
Maximus86CREATE USER 'ara' identified by 'arapass';12:57
Maximus86GRANT ara_role_rw TO ara; SET DEFAULT ROLE ara_role_rw FOR ara; flush privileges;12:57
Maximus86I will edit my comment12:57
Maximus86done12:58
dmsimardMaximus86: what version of mysql are you running ?12:59
dmsimardmariadb 10.1.20 right ?12:59
Maximus86[root@localhost ~]# rpm -qa | grep Mar12:59
Maximus86MariaDB-common-10.1.22-1.el7.centos.x86_6412:59
Maximus86MariaDB-server-10.1.22-1.el7.centos.x86_6412:59
Maximus86MariaDB-shared-10.1.22-1.el7.centos.x86_6412:59
Maximus86MariaDB-client-10.1.22-1.el7.centos.x86_6412:59
dmsimardok12:59
dmsimardDid you set any particular permissions on /etc/ansible ?13:00
Maximus86[root@localhost ~]# ls -lahtr /etc/ansible/13:01
Maximus86total 20K13:01
Maximus86drwxr-xr-x.  2 root root    6 11. Nov 14:37 roles13:01
Maximus86drwxr-xr-x.  2 root root   27 16. Mär 11:04 facts.d13:01
Maximus86-rw-r--r--.  1 root root  531 16. Mär 12:28 ansible.cfg13:01
Maximus86-rw-r--r--.  1 root root   47 16. Mär 12:33 hosts13:01
Maximus86drwxr-xr-x.  4 root root   62 16. Mär 12:33 .13:01
Maximus86drwxr-xr-x. 77 root root 8,0K 16. Mär 12:33 ..13:01
Maximus86+13:01
Maximus86no acls13:01
dmsimardMaximus86: pymysql installed from where ? pip ?13:04
Maximus86[root@localhost ~]# pip install pymysql13:05
Maximus86Collecting pymysql13:05
Maximus86  Downloading PyMySQL-0.7.10-py2.py3-none-any.whl (78kB)13:05
Maximus86    100% |████████████████████████████████| 81kB 1.3MB/s13:05
Maximus86Installing collected packages: pymysql13:05
Maximus86Successfully installed pymysql-0.7.1013:05
dmsimardMaximus86: so that mysql script is still not working for me, seeing failure to authenticate -- at first glance it looks like it's because the user is not named "ara@localhost"13:09
dmsimardsqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, u"Access denied for user 'ara'@'localhost' (using password: YES)")13:09
Maximus86if it could not connect to the db. it should not be able to show stuff in the ui, right?13:11
dmsimardI could eventually go beyond what you're telling me to make things work but I really want to do the same thing you're doing13:11
dmsimardthe home page probably wouldn't work at all, no13:12
Maximus86well everything worked here13:12
Maximus86as I described13:12
Maximus86so erm..13:12
Maximus86maybe I should automate it13:12
Maximus86or export my vagrant box13:12
dmsimardIt's on a fresh installation of centos ? I'm trying to reproduce out of a fresh VM here13:12
Maximus86need to go now, I'll be back in ~ one hour13:13
dmsimardif you could perhaps make a bash script to reproduce the issue, it'd probably be what is the most straightforward without any ambiguity13:13
Maximus86fresh install, but with a kickstart of my own13:13
Maximus86ok I'll do my best to provide that13:13
Maximus86can take some time :)13:13
dmsimardsorry for being such a pain, I really can't reproduce this but there's obviously an issue and I want to fix it13:13
dmsimardMaximus86: btw you can use https://gist.github.com/dmsimard/e24d147e0b74f7e25c3efd82a8bf9a77 as a base if it can help13:20
dmsimardthat one was using sqlite, so missing mysql bits13:20
*** tbielawa has joined #ara13:29
*** tbielawa is now known as tbielawa|mtg13:29
*** karimb has joined #ara13:30
dmsimarddougbtv, leifmadsen: so you know what sucks about ansible and containers13:34
dmsimardsystemd or lack thereof13:34
leifmadsenyep....13:34
dougbtvsiiigh, yeah13:35
dmsimardthat example I linked yesterday ? It was exactly that13:35
leifmadsensystemd is everywhere! except containers. definitely not in containers. But everywhere else!13:35
dmsimardso my idea to leverage the ansible role for both native and containerized installs is pretty much out the window unless we make it pretty pretty ugly13:36
dmsimardit'd be it's own ansible-container thing13:36
dmsimardnot to say it wouldn't work, just that it'd be different13:36
dougbtvrandom thought, but, I really love running containers from systemd units, it's really cute. They log to the foreground and get picked up by the journal, you can create dependencies, etc13:36
* dmsimard wanted to hit two stones with one bird13:36
dougbtvlol13:36
dmsimard(yes, two stones with one bird)13:36
dmsimarddougbtv: you know, I didn't know that was a thing until I googled some stuff just now13:37
dmsimardIt's sort of bastardizing if you ask me but eh13:37
dmsimardit considers the docker container as a service13:37
dmsimardsure13:37
dmsimard¯\_(ツ)_/¯13:37
dougbtvdepends on use case, but, for something simple it feels cute. it's like petting a bird, it's not as good as petting a dog or cat, but, you can do it.13:38
dmsimarddougbtv: you're talking to the wrong guy I have two birds13:38
leifmadsendmsimard: can you use tags with ansible-container?13:38
dougbtvI actually really like birds :)13:38
dmsimardhence ara and the bird logo :P13:38
leifmadsenwe could just use the same role, then filter out the non-containerizable bits with a tag13:38
dougbtvhad cockatiels growing up, they were awesome13:38
dougbtvbut... I'm a cat guy :) (to the chagrin of most, haha)13:38
leifmadsenI have cocktails all the time13:39
dougbtvhaha13:39
dougbtvpretty sure the way I spelled that it looks like I've been having cocktails all morning13:40
leifmadsenall. day. long.13:46
leifmadsenwait, that's tomorrow13:46
leifmadsenit's taking me forever to write this simple README13:47
leifmadsennot enough coffe13:47
dmsimardoh hey there's an "official" centos docker image with systemd enabled already https://hub.docker.com/r/centos/systemd/13:48
dmsimardso you don't need to jump through the systemd hoops documented in https://hub.docker.com/_/centos/13:49
dmsimard70MB too, pretty good13:50
* dmsimard looks13:50
leifmadsenoh nice13:52
leifmadsenI think I'd rather use another image than python:2 anyways in the long term13:52
leifmadsenbecause it's HUGE13:53
leifmadsen(twss?)13:53
dmsimarda fellow twss'er13:55
dmsimardI restrain myself so much to be politically correct in public :(13:56
dmsimardoh god13:57
dmsimardansible-container will run ara13:57
dmsimardso we'll get an ara report of ansible-container running ara13:57
dmsimard>_<13:57
dmsimardwell, I'm trying13:57
leifmadsenlol13:58
dmsimardINCEPTIONS13:59
dmsimardthe ansible-container container is huge..13:59
leifmadsenhow huge is huge?14:00
leifmadsenoh you mean a container that containers the contents of ansible-container? :)14:00
dmsimardyeah14:00
dmsimardansible/ansible-container-builder   0.2                 6a0481cdff24        5 months ago        710.6 MB14:01
leifmadsenoh that's not bad14:01
dmsimardleifmadsen: oh, hey, almost there http://paste.openstack.org/show/602971/14:06
dmsimardturns out "which" is not installed in the centos systemd docker image T_T14:06
leifmadsenso you're going to get ansible-container done by the time I finish this bloody README :D14:06
leifmadsenamazing14:06
dmsimarddamn centos14:06
dmsimardfirst they don't include wget14:06
dmsimardnow they don't include which14:06
leifmadsenyou don't need wget, only curl :)14:06
dmsimardwget4lyfe14:06
dougbtvi hate having to install which, that bugs me14:08
leifmadsenI hate having to write rst14:09
leifmadsen:)14:09
leifmadsenbecause I don't do it enough... md4lyfe14:09
dougbtvmd++14:10
dmsimarddougbtv: try to get pypi to read markdown14:10
dmsimardgood luck14:10
leifmadsenI got it working fine yesterday :)14:10
leifmadsenhttp://toad.rtfd.io14:10
dmsimardrtfd != pypi14:11
dmsimardi.e, https://pypi.python.org/pypi/ara/0.12.314:11
dmsimardpeople resort to "translators" md -> rst lol https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-python-modules14:11
dmsimardpypandoc.convert('README.md', 'rst')14:12
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: Alphabetically sort required packages, don't assume which is installed  https://review.openstack.org/44653014:13
dmsimard^ this makes me sad14:13
openstackgerritMerged openstack/ansible-role-ara master: Alphabetically sort required packages, don't assume which is installed  https://review.openstack.org/44653014:13
leifmadsenso sad14:14
leifmadsenis there a good editor for looking at RST?14:14
leifmadsenwould that just be atom.io or something?14:14
*** tbielawa|mtg has quit IRC14:14
*** tbielawa has joined #ara14:14
leifmadsenI want to validate I have the right syntax. I normally just use remarkable, but that's for MD14:14
dmsimardhum I have vscode that has a plugin for live rst preview14:14
dmsimardI believe pycharm also has a rst preview thing14:15
leifmadsenI have no idea what any of that is lol14:15
dmsimardvscode is like atom14:15
dmsimardbut from microsoft14:15
leifmadseno.O14:15
dmsimardit's faster and better :/14:15
dmsimardif all else fails I use http://rst.ninjs.org/14:15
leifmadsenmy Windows desktop is actually i3wm :)14:15
leifmadsenthx!14:15
dmsimardhmm, next hurdle14:16
dmsimardansible-container_1  | fatal: [ara]: FAILED! => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.015422", "end": "2017-03-16 14:16:18.889690", "failed": true, "rc": 1, "start": "2017-03-16 14:16:18.874268", "stderr": "Failed to get D-Bus connection: Operation not permitted", "stdout": "", "stdout_lines": [], "warnings": []}14:16
leifmadsenah looks like I have atom.io in a container and it has rst preview plugin14:17
leifmadsenfixed14:17
leifmadsenincoming contrib14:17
*** tready has joined #ara14:18
openstackgerritLeif Madsen proposed openstack/ara master: Add Dockerfile for building ARA  https://review.openstack.org/44505814:18
*** tbielawa is now known as tbielawa|mtg14:23
*** tbielawa|mtg is now known as tbielawa14:59
*** karimb has quit IRC15:02
*** karimb has joined #ara15:04
tready\quit15:45
*** tready has quit IRC15:45
-openstackstatus- NOTICE: The Gerrit service on review.openstack.org is being restarted to address hung remote replication tasks, and should return to an operable state momentarily15:56
*** karimb has quit IRC16:00
*** karimb has joined #ara16:02
*** Maximus86 has left #ara16:10
*** karimb has quit IRC16:12
*** karimb has joined #ara16:17
*** karimb has quit IRC16:38
dmsimardleifmadsen: so I can't figure it out17:00
leifmadsenoh?17:00
leifmadsenansible-container?17:00
leifmadsendid you read dougbtv's blog post? :)17:00
leifmadsenhttp://dougbtv.com/nfvpe/2017/03/16/ansible-container/17:01
dougbtvyeah after talking about it yesterday I was like "hrmm, it'd be nice to put this in the bag-o-tricks" so, made a recipe for it17:01
dmsimardleifmadsen: https://github.com/ansible/ansible-container/issues/39917:01
leifmadsenugh17:02
dougbtvannoying17:02
dougbtvdid you try entrypoint for kicks?17:02
dmsimardso, say I install httpd and do systemctl enable httpd17:03
dmsimardthat'll work17:03
dmsimarddaemon-reload, though, nope17:03
*** tbielawa is now known as tbielawa|brb17:15
*** tbielawa|brb is now known as tbielawa17:44
*** tbielawa is now known as tbielawa|lunch18:44
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a project manifesto  https://review.openstack.org/44670919:33
dmsimardGoing to ping a few people here, this is sort of important, please have a look if you have a chance and let me know what you think19:33
dmsimardandymccr, berendt, boxrick1, hughsaunders, larsks, leifmadsen, mnaser, tbielawa|lunch ^19:34
* mnaser reads19:34
leifmadsenlooking19:34
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a project manifesto  https://review.openstack.org/44670919:35
* larsks reads19:35
leifmadsencommented19:43
leifmadsen+1 though, only changes are around grammar from my viewpoint19:43
leifmadsenit's is not possessive :)19:43
leifmadsen(I hate English)19:44
leifmadsenThe cobbler's kids have no shoes (cobbler's is possessive)19:44
leifmadsenIt's is "it is", and not possessive...19:44
leifmadsen:facepalm:19:44
*** tbielawa|lunch is now known as tbielawa19:52
* tbielawa peeps19:53
tbielawadmsimard: i love that you reference existing ideals (re:Zen); Also +1 to unix philosophy, but you'd need to define ARA in separate components to really adhere to that value. ara records the data, ara-<whatever shows it> makes the recorded data available as intuitively....19:58
tbielawai should put this into an official comment thing shouldn't I? I should register for this service...19:58
dmsimardleifmadsen: I'm french so grammar comments are okay :)19:58
leifmadsendmsimard: don't worry, english folks get it wrong too :)19:59
dmsimardtbielawa: I agree with that statement19:59
dmsimardit's a good comment19:59
tbielawadmsimard: you just got an achievement for adhering to value #2, being receptive to user feedback!20:00
tbielawaachievement unlocked: Value 320:00
dmsimardlol20:00
tbielawahaha20:00
tbielawaderp, typoed that first line20:00
dmsimardtbielawa: so, yes, technically ARA is actually several components. The callback, the web application, the ara_record/ara_read modules.20:01
tbielawaeach following that principle20:01
tbielawaal?20:01
dmsimardthe CLI, etc.20:01
dmsimardI wanted to put something along the lines of "the right tool for the right job" somewhere in there too but it sort of folded back into unix philosophy's do one thing and do it well :)20:02
tbielawayeah, ESR talks about how things like 'postfix' (I forget which exactly he maintained) are broken into components and each follows that value. it does one thing, does it well. furthermore, they graciously expect invalid input and strictly produce valid output to hook into other programs (see more: The Cathedral and the Bazaar)20:02
tbielawadmsimard: you're not trying to rush merging this are you? I want to contribute feedbacks through the proper tracking system but don't have the free time right now.20:05
dmsimardtbielawa: no, not in a rush -- there's a tl;dr on how to get started with reviews/contributions here http://ara.readthedocs.io/en/latest/contributing.html20:06
tbielawaackackack20:06
dmsimardI can help you get started if you'd like, just ping me20:06
tbielawaack20:06
tbielawayeah, there is this other idea that keeps popping into my head but I never sign up for the idea board.20:07
tbielawajust something that MAY output during an ansible run that says that ARA has loaded. basically so I have an extra queue to ensure I have my settings configured right.20:07
tbielawaheh20:07
tbielawa*que20:08
tbielawa? english.....20:08
dmsimardtbielawa: yeah, sure. Easy :)20:11
dmsimardtbielawa: regarding your comment20:11
dmsimardIt would go like this, towards the top20:11
dmsimardIts purpose is to provide a way to simply and easily understand what happens throughout playbook runs at any scale.20:12
dmsimardARA itself is composed of several components to achieve that purpose. The project as well as those components adhere to some important core values.20:12
dmsimardThis manifesto exists to explain the different core values incorporated in the project's development and roadmap for users, contributors and developers alike.20:12
dmsimard(then the thing continues)20:12
tbielawadmsimard++20:15
tbielawa:+1:20:15
dmsimardthere is no karma bot or github emojis here friend20:16
dmsimard:P20:16
tbielawait will live on in my perpetual irc logs.20:16
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a project manifesto  https://review.openstack.org/44670920:17
dmsimardnow with grammar and components20:17
tbielawalol20:17
tbielawanow with 100% more grammar20:17
dmsimardfrench grammar is so much more complicated than english too and it's something my brain never figured out yet I got good grades on written exams20:17
dmsimard¯\_(ツ)_/¯20:18
dmsimardone of my kids is learning to read right now and I'm helping her with homework and stuff and she asks me daddy why is there so many silent letters20:18
dmsimardI don't know, kid, I don't know20:19
tbielawahaha20:19
tbielawa'see that "x" letter? if it's at the end, just forget it exists.'20:19
tbielawaalso, h's are a joke we use to trick americans into sounding silly20:20
tbielawadmsimard: i assumed you were talking about French language homework, not english.20:20
dmsimardtbielawa: yeah :p20:20
dmsimardtbielawa: for french speakers, hard things are "th" and "ed" sounds20:20
dmsimardlike three != tree20:20
dmsimardand disturbed != disturb bed20:21
tbielawathreadded20:21
tbielawamulti-threaded20:21
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a project manifesto  https://review.openstack.org/44670920:24
tbielawaoh yeha good update20:26
dmsimardthanks berendt :)20:26
tbielawathat part got me thinking earlier, say I'm running ara on a group of hosts. i was imagining dumping daters from all of them and then manually imnporting it into a secondary aggregation system20:26
tbielawajust thinking out loud20:27
dmsimardsomething I eventually want to do but I haven't got the time (or the logstash-ish knowledge) is to feed data from ARA into elasticsearch so that you can easily search things like patterns, make dashboards and stuff.20:27
tbielawayeah.20:28
dmsimardlike, I tried this one ELK container and I just couldn't figure out how to send data to it :p20:28
tbielawaI know some companies would love to be able to import this into splunk easily, too. I've done some basic splunk integration in the past, but not enough to know how to even start enabling that w/ ARA20:28
dmsimardI mean, you can just export stuff to JSON so it's pre-chewed/indexed/grok'd20:29
dmsimardIt's just how to get that pre-chewed data to the actual system20:29
tbielawaactually, another team I know would probably lose their minds and it would completely replate that ansible-tailer thing we're probably still using. or at least improve the data they can extra from splunk right now20:29
tbielawayeah, it would be more of a 'recommended splunk integration procedure' type document rather than any actual thing. probably....20:29
tbielawathat sounds corporate20:30
* dmsimard nods20:30
tbielawaplease forget i said that20:30
*** tbielawa has quit IRC20:40
*** karimb has joined #ara21:41
*** rattboi is now known as quartermaster21:48
*** quartermaster is now known as rattboi21:57
*** karimb has quit IRC22:46

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