Tuesday, 2019-01-22

*** herald85 has joined #ara08:22
*** gnupyx has quit IRC12:23
dmsimardapollo13: first shot at basic security things http://logs.openstack.org/81/632181/2/check/build-openstack-sphinx-docs/4cbb1bc/html/security.html13:52
dmsimardit doesn't contain the remote_user things13:53
dmsimardbut if it's good enough, it's something we can iterate on13:53
*** Pilou has joined #ara13:55
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: First iteration of authentication and security docs  https://review.openstack.org/63218113:58
dmsimardPilou: it's working for me right now with devel against master of ara-server, ara-clients and ara-plugins14:01
apollo13dmsimard: still fighting with my VMs and xslt :D14:03
dmsimardPilou: http://paste.openstack.org/show/743086/14:03
apollo13you don't think that one could just export an OVA from virtualbox and import in VMWare14:03
apollo13I currently have a 50 lines xslt transforming the format so VMWare can actually read it14:03
dmsimardapollo13: qemu-img doesn't have something to convert from a format to the other ?14:03
apollo13for ovf itself? doubt it14:04
apollo13that is for disk images14:04
dmsimardinterestingly docs from openstack https://docs.openstack.org/image-guide/convert-images.html14:04
dmsimardoh, OVA is what ? the VM manifest ?14:04
apollo13yeah that is disks, not the metadata file14:04
dmsimardgotcha14:04
apollo13ova is a tar of ovf + manifest + disks14:04
apollo13and ovf is an xml describing the machine config14:05
dmsimardyeah like libvirt.xml :p14:05
apollo13just worse :รพ14:05
dmsimardI still remember when openstack got rid of xml14:06
dmsimardeveryone wanted to kill it with fire14:06
dmsimardbecause supporting both json and xml simultaneously was a pita14:07
dmsimardapollo13: do you have an opinion on how this mechanic might work in practice ? https://github.com/openstack/ara-clients/blob/master/ara/clients/utils.py#L22-L3414:08
dmsimardThat code is probably wrongly instanciating both clients as Pilou pointed out, my fault14:08
dmsimardIt was more or less an experiment of how we might cleanly provide a client or another14:09
dmsimardAnother question would be -- do we return an instance of the class or the class itself ?14:09
Piloudmsimard: with this patch https://paste.fedoraproject.org/paste/8DDR1jxV5MZpKOFslgFQqw , i got this error: https://paste.fedoraproject.org/paste/rjV2wAw2YVjE0L2LPJ2oZA14:10
dmsimardPilou: yeah that patch was a PoC -- api.demo.recordsansible.org isn't actually open for POSTs14:12
dmsimardPilou: if you set the API_CLIENT to offline instead of http with api.demo, it might actually work14:13
dmsimardI had the integration test runner work locally14:14
dmsimardWe need to improve a bit how the client handles errors like those14:14
openstackgerritMerged openstack/ara-server master: Docs: SECRET_KEY is now randomly generated if it's not set  https://review.openstack.org/63211914:15
dmsimardoh nice14:16
dmsimardsince zuul knows about github.com/ansible/ansible, we can use depends-on on PRs :D14:17
apollo13dmsimard: yes it will instantiate both14:20
apollo13though you could wrap it into a partial object and then call () afterwards again14:20
dmsimardmeh, I don't have a strong opinion14:21
dmsimardI wrote it like that because that's how I do switch cases in python14:21
apollo13https://dpaste.de/CZiZ14:21
dmsimardI don't know yet what the other client implementations will look like14:21
apollo13this would fix it14:21
apollo13if you could figure out how to handle the kwargs14:21
dmsimardI could just go back to the old if/else14:22
dmsimardeh14:22
apollo13hehe, yeah14:22
dmsimardhttps://github.com/openstack/ara-clients/blob/b1dc3a0944d15d4c6db995d39b90e78abfd3578f/ara/clients/utils.py#L22-L2814:22
dmsimardit doesn't need to be complicated14:22
apollo13that said, if all clients supported **kwargs in __init__ you wouldn't have a problem14:22
apollo13right, I was 1 second to late :)14:23
dmsimardI think I'd rather us return an instanciated client instead of the class -- it's sort of the entire point of the method14:23
dmsimardotherwise people can just import AraHttpClient or AraOfflineClient if they want14:24
apollo13you didn't read what I wrote14:24
apollo13you can do that, you just need to move () after the switch14:24
apollo13like my link had14:24
dmsimardI read what you wrote, sorry14:24
dmsimardsort of replying out of context14:24
apollo13that said the if is better than the switch14:24
dmsimardyeah I'll change it14:25
apollo13the switch hides errors from the constructor14:25
openstackgerritDavid Moreau Simard proposed openstack/ara-clients master: Use an if/else for returning the client in get_client  https://review.openstack.org/63247414:27
dmsimard Pilou: ^14:28
dmsimardPilou: was there a particular reason you mentioned we might want to return the class instead of an instance ?14:28
dmsimardPilou: like I mentioned a bit earlier above, the point of get_client is sort of to return the instance -- otherwise people that know what they're doing can import AraHttpClient or AraOfflineClient directly14:29
Piloudmsimard: nope, this way seems good :)14:29
dmsimardok, cool14:29
dmsimardPilou: btw 1.0 isn't tested against devel yet -- I caught that issue with 0.x integration tests14:29
dmsimardI'm going to add devel coverage soon.14:30
Pilouunrelated, is ARA compatible with Python 3.6 only ?14:30
dmsimardPilou: f-strings are pretty nice and they landed in >=3.614:31
dmsimardI'm not sure if we use other >=3.6 exclusive features14:31
PilouFor the Ansible integration tests, there are not many docker containers which provides Python > 3.514:32
Pilou(ubuntu1804, fedora28 and fedora29)14:35
dmsimardreally ? all of those most definitely ship with >3.514:35
dmsimardunless you mean only those are >3.514:35
dmsimardf29 ships with at least 3.7, f28 3.614:36
dmsimard1804 is probably 3.614:36
dmsimardPilou: thanks for spending some time to do these tests btw :)14:38
dmsimardapollo13: easy +2 on https://review.openstack.org/#/c/632474/ :p14:38
Pilouyes, those are >3.514:38
dmsimardok, thanks14:39
dmsimardFWIW, support for <3.6 will likely come in the form of the callback and client14:39
dmsimardI can't commit to fully supporting py2 but in theory there could be a py2 compatible callback and client implementation14:39
apollo13??14:40
apollo13I somewhat doubt that14:40
dmsimardapollo13: what do you mean ?14:40
apollo13not for the offline client though14:40
dmsimardapollo13: yes, it would be just http14:40
dmsimardit would probably not be too much work to make the http client work with py214:41
apollo13it is currently impossible14:41
apollo13since we are using namespaces which are py3 only14:41
dmsimardgood point14:42
dmsimardwe can figure something out14:42
dmsimardI am very much wondering if we should merge everything back into openstack/ara at some point14:42
dmsimardthere's pros and cons to each approach14:43
dmsimardmanaging issues/bugs/triage/patches across more than one repo is a con :p14:44
openstackgerritMerged openstack/ara-clients master: Use an if/else for returning the client in get_client  https://review.openstack.org/63247414:44
dmsimardI guess I am left mostly wondering how long 0.x will go for14:45
dmsimardIt's already been mostly in maintenance mode for >1 year without a lot of new development14:46
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: WIP: New ARA 1.0 integration jobs  https://review.openstack.org/63030315:45
dmsimardThis is cool: https://github.com/NotAProfessionalDeveloper/ansible-tools/tree/master/ara_host_history15:49
dmsimardbut it's also one of the reasons why the new API is so important15:49
*** openstackgerrit has quit IRC15:51
*** openstackgerrit has joined #ara16:17
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: WIP: New ARA 1.0 integration jobs  https://review.openstack.org/63030316:17
dmsimardMaybe we should have a version of https://docs.ansible.com/ansible/latest/community/other_tools_and_programs.html to point out community projects around ara16:34
dmsimardlike the one I linked above16:34
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: WIP: New ARA 1.0 integration jobs  https://review.openstack.org/63030316:36
*** herald85 has quit IRC17:15
*** ssbarnea|rover has joined #ara18:03
*** ssbarnea|bkp2 has quit IRC18:04
*** mgariepy has quit IRC21:06
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: WIP: New ARA 1.0 integration jobs  https://review.openstack.org/63030322:08
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: WIP: New ARA 1.0 integration jobs  https://review.openstack.org/63030322:15
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Fix typo when ara_record retrieves options from the callback  https://review.openstack.org/63257922:35
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: WIP: New ARA 1.0 integration jobs  https://review.openstack.org/63030322:37
ara-slackmrz: anyone have ARA working with an RDS-backed postgres instance?22:43
ara-slackjneville: @jneville has joined the channel22:47
*** mmercer has quit IRC22:50
dmsimard@mrz I've seen users of postgre before but not RDS22:53
dmsimardI believe someone attempted to use the mysql variant (aurora?) but it ended up being less expensive to run it on a VM -- something about the amount of max connections if I remember correctly22:54
dmsimardPilou: just got the first successful integration job of 1.0 against devel :)22:57
dmsimardhttp://logs.openstack.org/03/630303/17/check/ara-integration-fedora-devel/b01e308/ara-report/22:58
openstackgerritMerged openstack/ara-plugins master: Fix typo when ara_record retrieves options from the callback  https://review.openstack.org/63257923:05

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