Thursday, 2018-09-27

gvincentapollo13, for 605421 does drf-extensions exist as rpm? IIRC this is why I didn't use it. I think there is no drf-extensions rpm04:04
*** gvincent has quit IRC05:46
dmsimardapollo13: I'll review your patches this morning, meanwhile, a bit of docs I came up with: http://logs.openstack.org/29/605529/2/check/build-openstack-sphinx-docs/94a1479/html/arch.html#recording-data-from-ansible11:49
dmsimardgvincent isn't here right now but don't worry about rpm packages, I'm a packager in Fedora and CentOS :p11:50
*** pvc has joined #ara13:10
pvchi13:10
pvcis there a way that i can use a single server ara than can put all my 5 ansible nodes if ever?13:11
pvcor ara is just a stand alone server?13:11
*** tbielawa has joined #ara13:11
pvcis there a way that i can use a single server ara than can put all my 5 ansible nodes if ever?13:12
pvcor ara is just a stand alone server?13:12
pvcanyone?13:17
dmsimardpvc: hey, sorry I was grabbing breakfast :p13:23
dmsimardpvc: how are you using ansible right now ? are you using ansible on 5 machines ? like, each of these 5 machines run ansible ?13:24
pvcyes thats my scenario im running ansible on 5 machines13:25
pvcis it possible that i can use one ARA web server that contains all of the host that have my ansible13:25
pvcthen i can select which host i can view?13:25
pvcor ARA is just a stand alone?13:25
dmsimardthe default database backend is sqlite13:26
dmsimardbut you can use mysql/postgresql to aggregate data from different locations13:26
pvcso if i want another node to have in my ara, i will register it13:26
pvcthen i can view it on ara dashboard13:26
dmsimardwell it's not really how it works13:26
pvci see13:26
dmsimardara provides an ansible callback plugin which records things into a database13:26
dmsimardara needs to be installed wherever ansible is running13:27
pvcso one ara one server?13:27
dmsimardand then the callback needs to be configured to send data to a single place (mysql)13:27
dmsimardyou can host the web interface wherever you want, so long as it has access to the same database13:27
pvci see. i want to integrate ara in my company so all their ansible playbook will be saved13:27
dmsimardgreat idea :)13:27
pvcone ara web server for all ansible playbooks13:28
pvci mean all ansible nodes13:28
dmsimardI'm in meeting most of the day today but here's a few links that might help13:28
dmsimardhttps://ara.readthedocs.io/en/stable/faq.html#can-ansible-with-ara-run-on-a-different-server-than-the-web-application13:28
pvcthank you so much dmsimard13:28
pvcara so great btw :)13:28
dmsimardhttps://ara.readthedocs.io/en/stable/configuration.html and more importantly https://ara.readthedocs.io/en/stable/configuration.html#ara-database13:28
dmsimardhappy to hear about it, thanks :D13:28
pvcthank you so much13:29
*** themurph has joined #ara13:55
apollo13dmsimard: ok, gotta head home now14:15
apollo13either way, I tend to isolate my python stuff from the system as much as possible14:16
apollo13it's just not possible to install two apps which require different django versions etc…14:16
apollo13hence venvs and/or tools like pex and fpm14:16
dmsimardapollo13: oh, sure, I just meant that as a way to address gvincent's concern14:19
*** evrardjp has quit IRC14:45
*** evrardjp has joined #ara14:47
*** evrardjp has quit IRC14:58
*** themurph has quit IRC15:09
*** themurph has joined #ara15:15
*** spiette_ is now known as spiette15:21
apollo13dmsimard: that said, rpm allows for rootless installation if they are reloctable right?15:24
apollo13something I might look into one day :)15:24
dmsimardapollo13: rootless ?15:24
apollo13well you can install it into your home directory and don't need sudo rights for installing iirc15:24
apollo13ah maybe not without root if it still should end up in the rpmdb15:27
dmsimardapollo13: oh, well -- regardless of the use case, ara (0.x) is already packaged in fedora15:35
dmsimardI looked at drf quicky and it doesn't seem like a big deal15:35
dmsimardI mean, drf-extensions15:35
apollo13oh yeah, it is just a standard python thingy15:36
apollo13whatever macros rpm has should suffice15:36
dmsimardwe do a lot of python packaging in openstack :P15:36
apollo13hehe15:37
dmsimardapollo13: left a few comments in https://review.openstack.org/#/c/605421/16:13
apollo13dmsimard: is that a run of ara-server or ara-client? http://logs.openstack.org/03/605503/1/check/ara-server-ansible-integration/0a85a04/ara-report/result/0e7334be-0f66-46bf-83a3-2d6c6fed794a/16:27
apollo13mhm, probably server, let me run that locally16:28
dmsimardapollo13: ansible-integration installs ara-server, ara-client and ara-plugins and then it runs an ansible playbook command with the callback enabled16:28
apollo13Out[2]: <module 'ara' from '/home/florian/sources/ara-server/.tox/ansible-integration/lib/python3.6/site-packages/ara/__init__.py'>16:34
apollo13aha16:34
apollo13something installed an __init__.py which breaks namespacing16:34
apollo13dmsimard: oh, the issue is that ansible-integration seems to manage to also install ara 0.x16:36
apollo13ansible-integration installed: alembic==1.0.0,ansible==2.6.4,ara==0.16.1 <-- there16:36
apollo13this breaks the namespacing16:36
apollo13because ara 0.16.1 has an __init__.py in ara/ and therefor "destroys" the package I think16:36
apollo13have to figure out what excatly requires ara currently16:37
apollo13as soon as I remove that __init__.py it works as expected: https://dpaste.de/xNjM16:38
apollo13so namespacing in theory does work, but ara 0.16.1 shouldn't be installed16:38
apollo13why is it installed?16:39
dmsimardoh, because they're a namespaced package they install ara ?16:39
apollo13no16:39
apollo13should not be the case16:39
dmsimardif I had to take a guess, it's probably coming from https://github.com/openstack/ara-server/blob/master/setup.cfg#L28-L3316:39
apollo13nope16:39
apollo13wrong guess16:40
apollo13Collecting ara>=clients (from ara-plugins)16:40
apollo13now wtf is pip smoking there16:41
apollo13I want it too fwiw16:41
dmsimardhang on16:43
dmsimardwell, ara-clients also has the same setup.cfg tidbits fwiw16:43
apollo13yes, it is not about that, it is about requirements16:43
apollo13does pbr use requirements.txt as setup requirements?16:43
dmsimardit does16:44
apollo13I wonder if it missinterprets this from requirements.txt: git+https://git.openstack.org/openstack/ara-clients@master#egg=ara-clients16:44
dmsimardlet me check something16:45
apollo13jupp that's it, just no idea how I can tell it to behave16:46
apollo13jupp if I remove that line from requirements.txt pip does not install ara16:51
apollo13otherwise it installs ara>=clients16:51
dmsimardapollo13: oh, just found the issue for black16:54
dmsimardit requires py36+ and the node it ran on was a ubuntu 16.04 which ships 3.516:54
apollo13ah16:54
dmsimardlet me add a comment on the patch16:54
dmsimardthere, see my last comment on https://review.openstack.org/#/c/605439/16:57
apollo13aha pbr parses the url wrongly16:59
dmsimardThat's odd17:00
apollo13https://github.com/openstack-dev/pbr/blob/master/pbr/packaging.py#L135-L16517:01
apollo13na, regex17:01
apollo13now you got another problem17:01
apollo13also pip install -r properly installs ara and not ara>=clients17:01
dmsimardapollo13: were you trying to fix something in specific with the namespace stuff ? or was it part of the cleanup17:02
apollo13dmsimard: cleanup17:02
apollo13but as you can see it already revealed a bug in pbr :D17:02
apollo13https://github.com/openstack-dev/pbr/blob/master/pbr/packaging.py#L104-L11017:04
apollo13there we go17:04
apollo13this is the bug17:04
apollo13the egg fragment is #egg=ara-clients, but clients is not a version17:04
dmsimardapollo13: oh, it's the dash in ara-clients that's screwing things up17:06
dmsimard... nice17:06
apollo13it is a valid package name though, so imo pbr is screwing up17:06
dmsimardyeah, let me get a pbr expert :D17:07
apollo13much appreciated!17:07
apollo13arg17:08
apollo13The "project name" component of the url suffix "egg=<project name>-<version>" is used by pip in its dependency logic to identify the project prior to pip downloading and analyzing the metadata. The optional "version" component of the egg name is not functionally important. It merely provides a human-readable clue as to what version is in use.17:08
apollo13in https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support17:08
apollo13so pbr is not really doing that much wrong17:08
apollo13maybe we should normalize the package name to ara_client (for the egg link) let me try that17:08
dmsimardapollo13: yeah the underscore probably wouldn't trip the regex issue17:09
apollo13and package normalization seems to replace - with _ in pip logic, let me find the code17:10
apollo13that said I think we can safely replace ara-client with ara_clients in the egg name17:10
apollo13https://github.com/pypa/pip/blob/9.0.1/pip/_vendor/packaging/utils.py17:13
apollo13jupp, pip replaces -_. with - internally anyways; let me fix that in all three repos17:13
dmsimardnice find17:13
*** openstackgerrit has joined #ara17:15
openstackgerritFlorian Apolloner proposed openstack/ara-plugins master: Fixed namespacing to use python3 style namespace packages.  https://review.openstack.org/60581717:15
openstackgerritFlorian Apolloner proposed openstack/ara-clients master: Fixed namespacing to use python3 style namespace packages.  https://review.openstack.org/60581917:16
apollo13you probably have to trust me and just merged those two. then we can retest the integration on ansible server17:17
apollo13ara-server sorry17:17
apollo13ups, ara-plugins is wrong17:18
apollo13I made it editable17:18
apollo13shouldn't be17:18
openstackgerritFlorian Apolloner proposed openstack/ara-plugins master: Fixed namespacing to use python3 style namespace packages.  https://review.openstack.org/60581717:18
apollo13gotta leave for now, will look at ara-server tomorrow and address your comments at work. would be great if you could merge ara-plugins/clients in the meantime17:19
*** tbielawa is now known as tbielawa|lunch17:41
openstackgerritFlorian Apolloner proposed openstack/ara-server master: Added CI for black/isort.  https://review.openstack.org/60543917:45
*** sshnaidm is now known as sshnaidm|off18:03
*** tbielawa|lunch is now known as tbielawa18:52
openstackgerritMerged openstack/ara-server master: Update and improve README to be more accurate  https://review.openstack.org/60552819:10
openstackgerritMerged openstack/ara-server master: Bootstrap documentation and publish it to readthedocs  https://review.openstack.org/60552919:12
*** themurph has quit IRC21:16
*** tbielawa is now known as tbielawa|g0n321:25
*** tbielawa|g0n3 has quit IRC21:26

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