*** Guest45618 has joined #ara | 00:34 | |
*** Guest45618 has quit IRC | 00:41 | |
*** karimb has joined #ara | 07:42 | |
*** Maximus86 has joined #ara | 08:49 | |
Maximus86 | Hi all | 08:49 |
---|---|---|
Maximus86 | I'm playing around with the new ara version | 08:50 |
Maximus86 | looking at the webapp, I received some weird errors | 08:51 |
Maximus86 | "DataTables warning: table id=stats_5fda38fb-b26d-4dc6-bada-ab604371c199 - Ajax error. For more information about this error, please see http://datatables.net/tn/7" | 08:51 |
Maximus86 | ..combined with some stacktraces in my apache error log | 08:52 |
Maximus86 | "[Mon Mar 13 06:46:13.585698 2017] [:error] [pid 7682] [remote 192.168.7.127:80] KeyError: '004_ansible_version_py'" | 08:52 |
Maximus86 | (several key errors actually) | 08:52 |
Maximus86 | what can / should I do? Shall I report a bug? If you'd like to know more, I'll stay on this chat for the coming 6 hours or so | 08:53 |
Maximus86 | This is after upgrading from a previous version btw | 08:53 |
*** jclaret has joined #ara | 09:13 | |
*** permalac has quit IRC | 09:29 | |
*** permalac has joined #ara | 09:35 | |
*** jclaret has quit IRC | 09:58 | |
*** evrardjp has joined #ara | 11:08 | |
dmsimard | Maximus86: hmm, sounds like a sql migration that wasn't done properly | 11:37 |
dmsimard | Maximus86: did you restart apache after upgrading ? | 11:37 |
*** sebie01 has joined #ara | 11:38 | |
Maximus86 | I did | 11:59 |
Maximus86 | I did have an issue installing crypto with pip and had to install a dep | 12:00 |
Maximus86 | after which I reran the pip install --upgrade command | 12:00 |
Maximus86 | could it be the migration scripts were not triggered? | 12:00 |
*** sebie01 has quit IRC | 12:17 | |
dmsimard | Maximus86: could you do a select * from alembic_version in the database ? | 12:20 |
Maximus86 | MariaDB [ara]> select * from alembic_version \G | 13:33 |
Maximus86 | *************************** 1. row *************************** | 13:33 |
Maximus86 | version_num: 22aa8072d705 | 13:33 |
Maximus86 | using this on MariaDB 10.1.20-1 (Centos 7.2) | 13:34 |
*** DoWhatNow has joined #ara | 14:18 | |
DoWhatNow | Morning all. Could use a bit of help with a new install, red hat enviroment. | 14:19 |
DoWhatNow | Here is the error "ara generate html /var/www/html/ara/ | 14:19 |
DoWhatNow | Generating static files at /var/www/html/ara/... | 14:19 |
DoWhatNow | freezer.freeze() | 14:19 |
DoWhatNow | Done. | 14:19 |
DoWhatNow | " | 14:19 |
*** leifmadsen has joined #ara | 14:48 | |
Maximus86 | encountering a different issue after performing an upgrade of ara on my ubuntu workstation | 14:54 |
Maximus86 | meanwhile was able to reproduce the previous issue | 14:54 |
Maximus86 | sent a PM to dmsimard with details on how to contact me, so I can send logs | 14:55 |
*** Maximus86 has left #ara | 14:58 | |
leifmadsen | before I build my own, there isn't an ARA container image already being built is there? | 15:05 |
dmsimard | DoWhatNow: hey, sorry was away -- that doesn't look like an error to me, what's up ? | 15:45 |
dmsimard | leifmadsen: there isn't an "upstream" or "official" one | 15:45 |
dmsimard | leifmadsen: there is this gentleman that recently did something using docker compose, I think he eventually wanted to write about it https://twitter.com/chmod666/status/839905382487162882 | 15:46 |
DoWhatNow | Sorry, seems the one relevant line didnt copy. | 15:50 |
DoWhatNow | freezer.freeze() | 15:50 |
DoWhatNow | irc seems to be kicking it... im gonna break it up a bit. | 15:51 |
DoWhatNow | "/usr/lib/python2.7/site-packages/ara/cli/generate.py:46: MissingURLGeneratorWarning: Nothing frozen for endpoints reports.ajax_results, reports.ajax_records, file.show_file, " | 15:51 |
DoWhatNow | "reports.ajax_stats, reports.ajax_plays, result.show_result, reports.ajax_files, host.show_host. Did you forget a URL generator? freezer.freeze()" | 15:52 |
DoWhatNow | There we go. | 15:52 |
dmsimard | DoWhatNow: looks like the database would be empty -- did you run a playbook with the callback configured ? | 15:52 |
DoWhatNow | yep, let me log into my db and make sure im atleast close to sane here... | 15:53 |
dmsimard | when you use the generate command, you also need to be have the necessary configuration to point to that database -- env variables or ansible.cfg | 15:54 |
dmsimard | brb | 15:54 |
DoWhatNow | database is populated with | 15:55 |
DoWhatNow | several tables in ara i didnt put there, doing a select * from hosts ; is showind all the hosts i had in the playbook so it seems to have populated well. | 15:56 |
leifmadsen | dmsimard: ok cool, I might contribute a Dockerfile to the repo then | 15:56 |
leifmadsen | I'll see if I can do that today | 15:57 |
leifmadsen | (I'm working on breaking out ARA from our jenkins master in TOAD) | 15:57 |
DoWhatNow | echo $ARA_DATABASE | 16:01 |
DoWhatNow | mysql+pymysql://ara:password@localhost/ara | 16:01 |
karimb | dmsimard can i ask you how you set this patternfly thing, really installing npm, bower and all those things ? | 16:20 |
karimb | doesnt make too much sense for me, installing bootstrap is just a matter of referencing two urls... | 16:21 |
dmsimard | karimb: ara currently bundles the necessary compiled files from patternfly which is a few css files, a few js files and a few font files | 16:32 |
karimb | dmsimard yeah, but how did you come up with this minimal list ? | 16:32 |
dmsimard | karimb: I took only what I needed ? I'm not sure I understand the question | 16:33 |
dmsimard | DoWhatNow: ok so you have a database, you have data in it, great. When you do the generate command, you also have the database configured ? | 16:34 |
DoWhatNow | I believe i do, echo $ARA_DATABASE dumps mysql+pymysql://ara:password@localhost/ara | 16:35 |
dmsimard | DoWhatNow: what if you do "ara playbook list" does that work ? | 16:36 |
DoWhatNow | Yes, looks like a sql table, shows a single run. | 16:37 |
dmsimard | if you start the development server and browse to it, does it work ? | 16:38 |
dmsimard | "ara-manage runserver" | 16:38 |
DoWhatNow | It works, but it tells me when i run a playbook i will be able to see the contednt. | 16:38 |
dmsimard | That's odd. Do you think you could send me or let me download your database so I can have a look ? | 16:42 |
dmsimard | Unless there's confidential stuff in there or something, of course | 16:42 |
dmsimard | Otherwise what would probably be best is to have a way to reproduce the problem | 16:43 |
DoWhatNow | somewhat... let me drop it and then repopulate with a smaller dataset. | 16:45 |
dmsimard | DoWhatNow: if it's reproducible every time, just let me know how I can do it and I'll reproduce it on my end | 16:45 |
karimb | dmsimard forget it, it s just that i havent done web devellopment in way too long.... feels like a nightmare :) | 17:09 |
leifmadsen | dmsimard: am I using ARA_SQL_DEBUG wrong, or maybe I've found a bug... | 17:09 |
dmsimard | karimb: I'm not a frontend dev either, this is arcane :) | 17:09 |
leifmadsen | (incoming pastebin) | 17:09 |
leifmadsen | https://paste.fedoraproject.org/paste/h7vXmyG6YQf-nl5tzOweHF5M1UNdIGYhyRLivL9gydE= | 17:10 |
karimb | dmsimard i remember suffering with jquery and ajax stuff | 17:10 |
dmsimard | leifmadsen: looking in a few | 17:10 |
leifmadsen | kk | 17:10 |
leifmadsen | oh I think I know what I did wrong | 17:11 |
leifmadsen | this is probably a layer 8 problem, let you know in a minute | 17:12 |
DoWhatNow | dmsimard: I have a dump available for you . PM sent. | 17:13 |
DoWhatNow | I tried adding in the "sqldebug = True" and it broke ansible. | 17:15 |
DoWhatNow | File "/usr/lib64/python2.7/site-packages/sqlalchemy/log.py", line 94, in __init__ | 17:17 |
DoWhatNow | if self._echo_map[echo] <= logging.INFO \ | 17:17 |
DoWhatNow | KeyError: 'True' | 17:17 |
DoWhatNow | Is there a prefered SQLAlchemy version ? | 17:22 |
dmsimard | DoWhatNow: whatever is latest should be fine, I replied to your PM btw | 17:23 |
-openstackstatus- NOTICE: restarting gerrit to address performance problems | 17:43 | |
dmsimard | DoWhatNow: hm, I'm not able to reproduce on a fresh install of centos7 with mariadb 10.1.20 | 17:48 |
dmsimard | I don't have a fedora vm nearby so maybe there's something else I'm missing | 17:48 |
dmsimard | both the webui and the generation works | 17:49 |
dmsimard | DoWhatNow: quite literally the history of the VM: http://paste.openstack.org/show/602540/ | 17:50 |
dmsimard | (centos-release-openstack-ocata is just me cheating to get mariadb 10 on centos) | 17:51 |
dmsimard | I added a "use ara;" at the top of the dump to import it, otherwise just copy/pasted the database creation procedure from the docs | 17:52 |
DoWhatNow | does "ara playbook lis" access the DB using the same method that "ara generate html" does ? | 17:54 |
leifmadsen | dmsimard: ok so that's interesting... if I specify ARA_DATABASE and run "ara --help" | 17:54 |
leifmadsen | it can't seem to figure out how to create the database | 17:54 |
leifmadsen | but if that ENV isn't defined, it'll create it in the same path no problem | 17:54 |
dmsimard | leifmadsen: so the application will sort of aggressively attempt to bootstrap itself, even if just running ara --help.. I got rid of some of that but there's still some bits to take out to make sure it doesn't initialize needlesslyt | 17:55 |
dmsimard | DoWhatNow: everything uses the same configuration mechanism, the callback, the CLI commands, the web application | 17:56 |
leifmadsen | yea, I basically expected it to initialize the sqlite DB in the location I specified in ARA_DATABASE but it seems if I define that it won't do the bootstraping | 17:56 |
dmsimard | leifmadsen: it doesn't bootstrap for every command (well, it used to, but I want to fix it so it only initializes when necessary) .. if you do an "ara playbook list", it should initialize the database and directories | 17:57 |
dmsimard | just have to be careful, the user using the application needs read and write access to the database location | 17:58 |
dmsimard | saw a user a bit confused around permissions when using apache | 17:58 |
leifmadsen | dmsimard: yea, what i'm saying is... is if ARA_DATABASE is defined, it won't bootstrap | 17:58 |
leifmadsen | so python bombs into a traceroute | 17:59 |
dmsimard | leifmadsen: haven't seen that happen before, can you show me how to reproduce ? | 17:59 |
leifmadsen | if I unset ARA_DATABASE it'll bootstrap fine | 17:59 |
leifmadsen | dmsimard: very easy :) | 17:59 |
leifmadsen | delete ansible.sqlite file | 17:59 |
leifmadsen | * export ARA_DATABASE=sqlite:///data/ansible.sqlite | 17:59 |
leifmadsen | * ara --help | 17:59 |
leifmadsen | (or anything) | 18:00 |
* dmsimard looks | 18:00 | |
leifmadsen | basically, it seems to skip the bootstrap methods when the envvar is defined | 18:00 |
leifmadsen | at least that's what it looks like | 18:00 |
leifmadsen | this in in master fyi | 18:00 |
dmsimard | leifmadsen: wfm -- I think you're missing an extra slash in there | 18:01 |
dmsimard | (yes, it's a lot of slashes) | 18:01 |
leifmadsen | should be 3 right? | 18:01 |
dmsimard | leifmadsen: http://paste.openstack.org/show/602541/ | 18:01 |
dmsimard | 4 ? | 18:01 |
leifmadsen | oh... hrm | 18:01 |
leifmadsen | let me try! | 18:01 |
leifmadsen | oh well then | 18:02 |
dmsimard | leifmadsen: If I just put three slashes, I get sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file | 18:02 |
leifmadsen | yep | 18:02 |
leifmadsen | ok, so reproduced... layer 8 issue it seems :) | 18:02 |
dmsimard | ¯\_(ツ)_/¯ | 18:02 |
leifmadsen | with 4 slashes it works for me too | 18:02 |
leifmadsen | I thought URI was just sqlite:// | 18:03 |
leifmadsen | but I guess its.... :/// | 18:03 |
dmsimard | yeah it's a very awkward smilie | 18:03 |
dmsimard | like :/ | 18:03 |
dmsimard | but :/// | 18:03 |
leifmadsen | :D | 18:03 |
DoWhatNow | the url "sqlite:///~/.ara/ansible.sqlite" refrenced on treadthedocs gives me the errot: OperationalError: (sqlite3.OperationalError) unable to open database file | 18:03 |
dmsimard | DoWhatNow: that's sort of a documentation-specific thing, it gets expanded in python | 18:04 |
dmsimard | DoWhatNow: the "default" value is ~/.ara/ansible.sqlite but that gets expanded | 18:04 |
dmsimard | I'm not sure sqlite knows how to expand that | 18:04 |
dmsimard | DoWhatNow: doing the same in bash could be like: export ARA_DATABASE="sqlite:///${HOME}/.ara/ansible.sqlite" | 18:05 |
dmsimard | if you check "env |grep ARA" after that, the HOME should've been expanded | 18:05 |
DoWhatNow | Yep. but it looks from the readthedocs page that the config gile should contain the lines "dir = ~/.ara | 18:09 |
DoWhatNow | database = sqlite:///~/.ara/ansible.sqlite" | 18:09 |
dmsimard | DoWhatNow: I should probably make that clearer | 18:10 |
DoWhatNow | So i killed my MariaDB. and moved over to the sqlite. Reran a playbook to create the sqlite3 db, tried to generate the html and /usr/lib/python2.7/site-packages/ara/cli/generate.py:46: MissingURLGeneratorWarning: Nothing frozen for endpoints | 18:16 |
dmsimard | DoWhatNow: that's so weird :( | 18:17 |
dmsimard | if "ara playbook list" works and shows your playbook, there is no reason at all why "ara generate" wouldn't work -- they all feed on the same configuration and database | 18:18 |
DoWhatNow | Flask (0.11.1), Flask-Migrate (2.0.3), Flask-Script (2.0.5), Flask-SQLAlchemy (2.2), Frozen-Flask (0.13), These all seem like good versions to you ? | 18:21 |
dmsimard | DoWhatNow: yeah lgtm | 18:23 |
DoWhatNow | Well i am about out of ideas. | 18:28 |
dmsimard | DoWhatNow: you're doing configuration through env variables ? | 18:31 |
DoWhatNow | No, ansible.cfg I tried once to sue the env instead to see if that would help but no change. I have unset all that i set. | 18:31 |
dmsimard | DoWhatNow: did you ever set up any override ? i.e, ARA_PLAYBOOK_OVERRIDE ? | 18:32 |
DoWhatNow | no. | 18:33 |
DoWhatNow | playbook_override = None | 18:33 |
DoWhatNow | What are optopns for "loglevel" read the docs does not specify ? | 18:34 |
DoWhatNow | I think i got it. Looks like the playbook_override = None in the ansible.cfg was killing me. | 18:36 |
dmsimard | DoWhatNow: oh hey at least we found it | 18:37 |
dmsimard | loglevel are the usual python logging keywords so "INFO" "WARN" "ERROR" and "DEBUG" iirc | 18:38 |
dmsimard | however we're not doing a really good job at logging right now, we need to improve that | 18:38 |
DoWhatNow | So it seems i misunderstood the documentation. I made aan entry into ansible.cfg for each variable, and specified its Default. and this should not be done. | 18:38 |
DoWhatNow | dmsimard: Thanks for all your help | 18:39 |
dmsimard | DoWhatNow: ah, yeah, definitely just configure the things you need to override the default for | 18:39 |
dmsimard | Don't need to specify the default, the defaults are embedded and assumed in ARA :) | 18:40 |
DoWhatNow | yep. | 18:41 |
dmsimard | So anyway for context, ARA_PLAYBOOK_OVERRIDE is a way to restrict the playbooks shown in the web UI | 18:42 |
dmsimard | You can use it yourself but it's mostly an under-the-hood parameter that's passed from the "ara generate html" command -- it's to generate a report that would only contain one or many different specified playbooks | 18:42 |
dmsimard | It's useful if you have a centralized/aggregated instance and want to generate a static report for a specific playbook | 18:42 |
DoWhatNow | Yeah,, I see how that could be usefull. Ohh i am loving this. | 18:43 |
leifmadsen | ARA ftw | 18:44 |
dmsimard | leifmadsen: did you know we were getting stickers? :) | 18:44 |
leifmadsen | dmsimard: ARA_SQL_DEBUG values would be "False" or "True" ? | 18:44 |
leifmadsen | dmsimard: I did not :) my wife could print them :) | 18:44 |
leifmadsen | I got her to make me stickers for Browbeat | 18:44 |
leifmadsen | I need to get some TOAD ones made up I suppose heh | 18:45 |
dmsimard | leifmadsen: ah, getting them printed by stickermule https://twitter.com/dmsimard/status/839638143460605952 | 18:45 |
leifmadsen | ah nice nice! | 18:45 |
dmsimard | I haven't used ARA_SQL_DEBUG in a long, long time, let me look | 18:45 |
leifmadsen | I think it might hate me | 18:45 |
leifmadsen | :) | 18:45 |
leifmadsen | when I set it, the bootstrap fails | 18:45 |
leifmadsen | if I unset it, then it's fine | 18:45 |
leifmadsen | (sorry for all the weird issues... I'm working on the Dockerfile :)) | 18:46 |
dmsimard | leifmadsen: it defaults to "False" i.e, https://github.com/openstack/ara/blob/master/ara/config.py#L23 | 18:46 |
leifmadsen | https://paste.fedoraproject.org/paste/HWYirQRAipovVjOes1xQpV5M1UNdIGYhyRLivL9gydE= | 18:46 |
dmsimard | I have an idea of what the problem is | 18:46 |
leifmadsen | if I set ARA_SQL_DEBUG=False in Dockerfile, it gives me that when I run "ara --help" | 18:46 |
dmsimard | leifmadsen: let me see | 18:46 |
leifmadsen | cool | 18:46 |
dmsimard | yeah | 18:47 |
dmsimard | let me test a fix | 18:47 |
leifmadsen | rock | 18:48 |
dmsimard | leifmadsen: fixed | 18:50 |
leifmadsen | dmsimard: pulling | 18:50 |
leifmadsen | dmsimard: btw remote should be openstack/ara ? | 18:51 |
leifmadsen | in github? | 18:51 |
*** openstackgerrit has joined #ara | 18:52 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Properly use boolean Ansible types in configuration parameters https://review.openstack.org/445050 | 18:52 |
dmsimard | leifmadsen: ^ | 18:52 |
leifmadsen | ahh | 18:52 |
leifmadsen | let me patch | 18:52 |
dmsimard | github.com/openstack/ara | 18:52 |
leifmadsen | ok cool | 18:52 |
dmsimard | github.com/dmsimard/ara is sort of mirrored manually for historical purposes | 18:52 |
dmsimard | Since it's original upstream I don't really want to delete it | 18:52 |
leifmadsen | makes sense | 18:52 |
dmsimard | openstack-infra creates the repo, it doesn't move it | 18:53 |
dmsimard | leifmadsen: so anyway that patch tl;dr is | 18:53 |
leifmadsen | yea I looked at it | 18:53 |
dmsimard | overriding the default would be a string, not an actual bool | 18:53 |
leifmadsen | makes sense | 18:53 |
leifmadsen | gotcha | 18:53 |
leifmadsen | dmsimard: should have a Dockerfile soon for review | 18:56 |
leifmadsen | interested to see if you like my approach :) | 18:56 |
dmsimard | leifmadsen: that guy I linked on twitter with docker-compose thing | 18:57 |
leifmadsen | oh right, I need to check that | 18:57 |
dmsimard | he had some issues getting pymysql to work for some reason | 18:57 |
dmsimard | I think he ended up going with mysql-python driver instead | 18:57 |
dmsimard | but then again, he ran on ppc64le so it might be that | 18:57 |
leifmadsen | yea I was just noticing that | 18:57 |
dmsimard | told him to get back to me if he ended up figuring out | 18:58 |
leifmadsen | patch works! | 18:59 |
dmsimard | \o/ | 19:00 |
leifmadsen | +1'd | 19:00 |
dmsimard | now what did you need super verbose sql alchemy for ? | 19:00 |
leifmadsen | I didn't :) | 19:00 |
dmsimard | oh okay | 19:00 |
dmsimard | I mean finding and fixing bugs is cool too | 19:00 |
leifmadsen | I'm just setting the default ENV values | 19:00 |
leifmadsen | I set the default to False, I think I had just been trying values, or mistyped True for False :) | 19:00 |
leifmadsen | the truthy false is never wrong | 19:01 |
dmsimard | There's no big features in the pipe right now, kind of worn myself out with 0.11 and 0.12 -- big, big releases. Planning to just do stabilization/bugfixes for a bit :) | 19:02 |
leifmadsen | that's a good plan | 19:02 |
leifmadsen | you gotta have stabilization releases | 19:03 |
leifmadsen | always a fan of those | 19:03 |
openstackgerrit | Leif Madsen proposed openstack/ara master: [WIP] Add Dockerfile for building ARA https://review.openstack.org/445058 | 19:05 |
dmsimard | the python3 base image has all the other package requirements in it ? | 19:08 |
dmsimard | like openssl and xml and xslt and junk | 19:08 |
dmsimard | also ara is not full python3 yet :( | 19:08 |
openstackgerrit | Merged openstack/ara master: Properly use boolean Ansible types in configuration parameters https://review.openstack.org/445050 | 19:08 |
leifmadsen | dmsimard: it seems to build fine with that package | 19:09 |
leifmadsen | I can switch to python:2 if you think that would be better | 19:09 |
dmsimard | leifmadsen: yeah, unit tests aren't all passing on py3 yet, not really confident | 19:09 |
leifmadsen | I need to integrate this into TOAD now via our docker-compose and see if I can use it all | 19:09 |
leifmadsen | dmsimard: ok np, easy fix | 19:09 |
dmsimard | the py3 base image, is it based off of ubuntu? :) | 19:09 |
leifmadsen | probably... | 19:09 |
leifmadsen | I didn't look | 19:10 |
openstackgerrit | Leif Madsen proposed openstack/ara master: [WIP] Add Dockerfile for building ARA https://review.openstack.org/445058 | 19:10 |
dmsimard | leifmadsen: debian :) | 19:10 |
leifmadsen | the worst | 19:11 |
dmsimard | at least looking at https://hub.docker.com/_/python/ | 19:11 |
dmsimard | "3" currently points to https://github.com/docker-library/python/blob/7eca63adca38729424a9bab957f006f5caad870f/3.6/Dockerfile | 19:11 |
dmsimard | It installs python from source | 19:12 |
dmsimard | woah | 19:12 |
leifmadsen | I mean, the alternative is I can switch to FROM centos:7 and install from packages | 19:16 |
leifmadsen | happy to do that | 19:16 |
dmsimard | well then you'd probably have to do an ubuntu-specific one :P | 19:18 |
dmsimard | I mean ara is distro agnostic for the most part | 19:18 |
leifmadsen | pffft ubuntu :) | 19:18 |
dmsimard | let's keep it simple for now, just use the python:2 one | 19:19 |
leifmadsen | +1 | 19:19 |
dmsimard | and we can reconsider later if there's demand | 19:19 |
dmsimard | ara is all about simplicity | 19:19 |
leifmadsen | +1 | 19:19 |
*** DoWhatNow has quit IRC | 19:23 | |
openstackgerrit | Leif Madsen proposed openstack/ara master: [WIP] Add Dockerfile for building ARA https://review.openstack.org/445058 | 19:28 |
dmsimard | leifmadsen: what clones ara in your thing ? | 19:33 |
dmsimard | docker magic ? | 19:33 |
leifmadsen | nothing, just does an ADD from repo | 19:33 |
leifmadsen | that way you can build for dev purposes | 19:34 |
leifmadsen | see line 18 | 19:34 |
dmsimard | ah so it's expected that you'd clone ara and then use that dockerfile | 19:34 |
leifmadsen | yea for now | 19:34 |
leifmadsen | we can probably create some sort of build in hub as well | 19:34 |
leifmadsen | actually | 19:35 |
leifmadsen | hrmmm | 19:35 |
dmsimard | I wonder if it's better to do just "pip install ." instead of pip install -r requirements and then setup.py install | 19:35 |
leifmadsen | know what I should do, is make that an ENV | 19:35 |
leifmadsen | maybe, I'm not a python guru, so I used what I knew :D | 19:35 |
leifmadsen | there are likely better ways! :) | 19:35 |
dmsimard | from inside the git repo, you can just do pip install . | 19:35 |
dmsimard | Maybe some sort of toggle to install from pypi vs source | 19:37 |
leifmadsen | hrmmm yea | 19:37 |
dmsimard | and then do the necessary logic in the dockerfile ? | 19:37 |
dmsimard | I don't know, I'm a docker noob too. | 19:37 |
leifmadsen | all good, I'll figure something out, but I agree | 19:38 |
leifmadsen | I'll bother dougbtv who is our docker guru :) | 19:38 |
dmsimard | I have faith in him :D | 19:38 |
leifmadsen | :D | 19:39 |
dmsimard | also make sure to test some features like junit export | 19:39 |
leifmadsen | he clued me into a few things already on this Dockerfile | 19:39 |
dmsimard | I expect you'll need to install some openssl/xml/xslt libs | 19:39 |
leifmadsen | dmsimard: this is starting to sound like I should add some CI tests... | 19:39 |
leifmadsen | lol | 19:39 |
dmsimard | leifmadsen: feel free to hijack run_tests.sh for test purposes within your patch | 19:39 |
dmsimard | we can work something out later | 19:39 |
leifmadsen | junit export? | 19:40 |
leifmadsen | I don't see that command.... | 19:40 |
leifmadsen | oh generate junit export ? | 19:40 |
dmsimard | Yeah | 19:41 |
leifmadsen | nice, seems to work already | 19:42 |
leifmadsen | I haven't run it against a playbook yet though | 19:42 |
leifmadsen | but it does generate a mostly empty xml file | 19:42 |
leifmadsen | 4 lines | 19:42 |
dmsimard | ¯\_(ツ)_/¯ | 19:52 |
leifmadsen | doesn't freak out and give me a trace file :) | 19:55 |
leifmadsen | wining! | 19:55 |
dmsimard | leifmadsen: yeah it's sort of weird actually, because even ansible requires stuff like paramiko which needs some crypto libs and those usually require bindings from python-devel or libopenssl and such | 19:59 |
dmsimard | I'm surprised it works out of the box | 19:59 |
leifmadsen | same lol | 19:59 |
dmsimard | leifmadsen: ah well there you go | 20:00 |
dmsimard | leifmadsen: the python base image pulls from https://github.com/docker-library/buildpack-deps/blob/587934fb063d770d0611e94b57c9dd7a38edf928/jessie/Dockerfile | 20:00 |
dmsimard | DOCKER MAGIC | 20:00 |
leifmadsen | lol | 20:01 |
dmsimard | fwiw purpose-built distro containers would probably be smaller and contain less fat but whatever | 20:01 |
leifmadsen | yea, I just uploaded one for testing, and it was "only" 301MB | 20:01 |
leifmadsen | but I think that is the post-FROM size | 20:02 |
leifmadsen | yea, on my machine it's more like 771.8MB :) | 20:02 |
dmsimard | yeah that's probably just that one layer | 20:02 |
leifmadsen | yep | 20:02 |
leifmadsen | ah, yea python image is 688MB | 20:02 |
dmsimard | jesus | 20:02 |
leifmadsen | centos is like 192MB | 20:02 |
leifmadsen | I might see how much diff there is if I make it centos based... | 20:03 |
leifmadsen | either way, you're biased towards debian or centos pretty much :) | 20:03 |
leifmadsen | unless you use alpine | 20:03 |
dmsimard | we're in the process of doing an ansible role to install and set up ara | 20:04 |
dmsimard | planning to support fedora/centos/rhel and debian/ubuntu | 20:04 |
leifmadsen | ah nice | 20:04 |
dmsimard | safe to assume that's the majority of the market with the least effort involved | 20:04 |
leifmadsen | +1 | 20:04 |
dmsimard | diminushing returns after that ... | 20:04 |
dmsimard | bsd, osx, arch, gentoo, etc :p | 20:05 |
*** karimb has quit IRC | 23:42 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!