16:00:47 #startmeeting Ansible VMware Working Group Meeting 16:00:47 Meeting started Mon Aug 7 16:00:47 2017 UTC. The chair is akasurde. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:00:47 Useful Commands: #action #agreed #halp #info #idea #link #topic. 16:00:47 The meeting name has been set to 'ansible_vmware_working_group_meeting' 16:00:59 o/ 16:01:13 #chair dag 16:01:13 Current chairs: akasurde dag 16:01:18 dag, hi 16:01:35 * dag notices we are using "ansible_vmware_working_group_meeting" for this WG, so I will have to change the link in the WG README.md 16:01:57 ok 16:02:22 hello 16:02:25 Where are we meeting today? 16:02:26 #chair jtanner 16:02:26 Current chairs: akasurde dag jtanner 16:02:31 #chair dahr 16:02:31 Current chairs: akasurde dag dahr jtanner 16:02:42 dahr, here :) 16:03:29 o/ 16:03:36 don't have to talk about this now, but the simulator has been unstable for some tests https://app.shippable.com/github/ansible/ansible/runs/30778/39/tests 16:03:37 #chair pdellaert 16:03:37 Current chairs: akasurde dag dahr jtanner pdellaert 16:04:00 hi 16:04:04 jtanner: good to know 16:04:14 #chair dericcrago 16:04:14 Current chairs: akasurde dag dahr dericcrago jtanner pdellaert 16:04:28 jtanner: sometimes it would be nice to have a CI status overview, so that when CI is going haywire, we don't have to guess :-) 16:04:39 *shrug* 16:04:53 ci_verified was the first step towards that iirc 16:05:07 we've started to at least have some data about who's at fault 16:05:12 right 16:05:43 mattclay is the head honcho for that sort of thing though 16:05:49 what do we have on today's agenda 16:05:55 #chair jdatx 16:05:55 Current chairs: akasurde dag dahr dericcrago jdatx jtanner pdellaert 16:06:42 jtanner: I'll put it on the agenda of the Test WG 16:06:50 cool 16:07:00 I'm currently in transit to Toronto but myself and Jake are here to answer any questions and provide input. 16:07:20 #action dag To put VMware + ci_verified related to stuff to Test WG 16:07:45 dahr, sure thanks 16:07:52 were there other topics? 16:08:06 I don't see any 16:08:10 k 16:08:18 well, i have some thoughts about the simulator issues 16:08:32 #topic govcsim simulator issues 16:08:40 jtanner, go ahead 16:08:54 i suspect there might be some conflicts with spinning up the contain for multiple concurrent tests 16:09:18 we need to confirm if each test run gets it's own instance of the container or if it's shared among all 16:09:48 second, we need to have the spawn route do better validation on startup and return an error code if not sucess 16:10:11 and tests to fail earlier instead of using the error message as a value for module inputs 16:10:40 ok 16:10:50 stuff i should have done on initial implementation but got overwhelmed with $WORK 16:11:11 akasurde: there were various PR's raised in the agenda, maybe refresh the agenda issue ? 16:11:17 (sorry on two calls at once, i'll read , but ping me if important) 16:12:09 dag, ok 16:13:06 jtanner, what do you suggest for simulator issue then ? 16:13:26 exactly what i said above i guess 16:13:39 Aside from our initial call, how would you like us (vmware) to assist in your iniatives? 16:14:32 akasurde: I see a lot of entries in the agenda that are not fully struck (strikken, stroke?), which means they are not completed. Apart from the new-modules review (which we always should review to see if there's anything that is stuck 16:14:42 dahr: if you guys are really offering time, it would help to start with review on PRs and/or triage on open issues 16:15:10 #action jtanner Look into running separate container for govcsim 16:15:16 dahr: There are a lot of GPL3+ modules that look quite interesting in your Github repository 16:15:30 dahr: I wonder if there is a plan to get those upstream ? 16:15:33 dag, yes there are pending due to code-review 16:15:53 they == PR* 16:16:06 wouldnt that be 'downstream'? 16:16:15 #chair bcoca 16:16:15 Current chairs: akasurde bcoca dag dahr dericcrago jdatx jtanner pdellaert 16:16:41 bcoca: depends, for people using Ansible I'd say Ansible is upstream and VMware github is 3rd party 16:16:41 yes, I'm currently looking at removing any overlap on whats currently in our GPL3 and other module repos 16:17:51 dahr, There is also a need of "magic" method to find objects 16:18:07 Understood. I'm not sure how much time we can commit to but once we scope the needs, we can start putting some time in. This is helpful. Do we have a contact point? 16:18:36 contact in what context? 16:18:47 ^ thaumos? 16:18:58 i'm almost always available via email, but #ansible-vmware is the goto spot 16:19:13 jtanner@redhat.com 16:19:21 normally one or more core team here or in other irc channels 16:19:39 ok, so who would "scope the needs" and make a proposal plan 16:20:03 seems like something that the whole group should devise 16:20:29 devise/design/deliberate 16:20:32 jtanner: what would the modus operandi then be ? During special meetings, one-by-one reviewins ? 16:20:54 Lol, every time I start to type, you guys already get the conversation going. 16:21:08 first priority will be making existing modules robust and finish with existing issues 16:21:08 dahr: welcome to IRC ;-) 16:21:26 then 'feature completeness' 16:21:46 I think we have pretty much load of things on plate right now 16:21:47 dag: i dunno ... i hate meetings. i prefer tickets and working through them adhoc 16:21:56 Agreed. 16:21:58 yes, feature completeness is also priority 16:22:10 + 1 @jtanner ^^ 16:22:19 vsphere_guest -> vmware_guest priority 16:22:25 akasurde: sure, but I picked up that if there is a plan, we'd have extra resources 16:22:48 akasurde: if you propose we first do the stuff we are doing, this is being blocked to a point that is undefined and may never happen 16:22:51 #link https://github.com/ansible/community/wiki/VMware%3A-vsphere_guest_deprecation 16:23:02 * dag prefers unblocking people in this case 16:23:20 maybe it means "only do the stuff that does not overlap" 16:23:32 https://github.com/ansible/community/wiki/VMware%3A-action-list looks like a "plan" to me 16:23:34 The issue on our side is that we have so much going on (i.e. repo tracking on our end, engagements, etc...) that I want to be sure we have visibility to your needs. 16:24:08 jtanner: well, that plan is updated all the time, so we could add individual tasks for the VMware people 16:24:15 we also lack reviewers which make PR submission and merge process slow 16:24:16 jtanner: my question is, what would those tasks be 16:24:34 dunno, everything depends on time commitment 16:24:47 review requests may be a good initial phase 16:24:55 jtanner: and time commitment is hard if there's no scope and no requirements 16:25:06 dag, same here 16:25:22 yeah, so that's not how the community works (even we all want it to work like this) 16:25:42 "you can only work on the stuff *you* would like to do, if you first emerge yourself in the stuff *we* want to get done" 16:25:51 heh 16:25:52 For context, we are not solely dedicated to development as we are also PSO. Therefore, we'll need to plan some time around collab with you guys. 16:26:28 bugfixes / review can be done with limited commitment X hours a week 16:26:41 dahr: most people are in the same boat 16:26:44 having a development plan for rest can still be done in p;arallel 16:27:21 so my proposal is that we first set the scope (e.g. make a list of modules that do not overlap with existing modules), get those submitted and reviewed 16:27:33 Perfect. I just want to set expectations to limit disappointment. 16:27:39 dahr: maybe we could start with getting your github nicks added to the wiki, so akasurde/dag/etc could request your reviews on PRs? 16:27:46 (if the reviews go too slow, you can help out reviewing other stuff so others can help with your stuff) 16:27:58 Jake, are you catching this? 16:28:03 yes sir 16:28:55 #action akasurde add nick wise PR for review request 16:29:19 in the process of submitting these PRs and the reviews, I am sure new decisions and library updates will happen, and people will get to know processes and people 16:29:25 @jtanner - my todo is to remove anything in the vmware module repos that ansible currently supports and look to get non overlapping modules into upsteam 16:29:42 Perfect. I'll make some notes, circle up with Jake and Tom Scanlan and them put a plan together. 16:29:52 we can track the progress of this "project" from: https://github.com/ansible/community/wiki/VMware%3A-progress-tracker 16:30:10 oh ... i just remembered something 16:30:16 and it would help if vmware contributed 16:30:17 #action jdatx to remove anything in the vmware module repos that ansible currently supports and look to get non overlapping modules into upsteam 16:30:19 just add a new section, list the modules one-by-one, add the PR numbers in there 16:30:40 we need an FAQ on why we don't have tagging support in vmware_inventory.py or vmware_*.py 16:30:59 something to explain how the soap api doesn't deliever tags 16:31:02 deliver* 16:31:39 i get pinged on that at least once a month 16:32:34 jtanner, Do you think a wiki page will help ? 16:32:42 I think it would. 16:32:48 yes, should be okay 16:33:06 official docs doesn't do "FAQs" imo 16:33:21 Ok I will start a page in wiki, dahr/jdatx can work on it 16:33:27 cool 16:33:52 #action akasurde add a wiki page for FAQs to discuss issues like tagging support 16:33:53 i can also add some stuff about how to perf tune vmware_inventory.py 16:34:00 which is another thing i get pinged about 16:34:27 Perf == magic method to find objects :) 16:34:35 heh, no 16:34:38 Guys, I'm sorry but I gotta run. Need to eat lunch before my flight. If you can, please send a summary email to dahr@vmware.com and jdupuy@vmware.com 16:35:11 dahr, Ok, sure. 16:35:33 If you guys feel the need for it, I can set up a recurring webex (monthly, bi-weekly) to discuss. 16:35:39 perf == limiting the properties collected instead of serializing everything 16:36:03 I hate meetings but I see a need for them....from time to time. 16:36:09 dahr: let's continue on with this meeting for a bit long (we're still new at it) 16:36:18 a bit longer* 16:36:21 dahr: I think we all prefer these weekly IRC meetings to track progress, or unblock things 16:36:37 No worries. Just let me know. You guys take care and we'll start working towards a tighter collabe. 16:36:40 *collab 16:37:07 but you can always ask here for advice 16:37:52 ok, that was useful ! (closes one of the questions on the wiki I had wrt. the VMware modules, I'll write up a brief summary) 16:38:01 can we go to the normal agenda now ? :-) 16:38:15 if wee don't have anything else we can start with dag's requests 16:39:41 #link https://github.com/ansible/ansible/pull/25140 16:40:01 need a second shipit on this ^^ 16:40:04 dahr, jdatx, Tom Scalan, if you want to raise a topic to this meeting, you can do that here: https://github.com/ansible/community/issues/206 16:40:23 Also please add your name/github id at: https://github.com/ansible/community/blob/master/group-vmware/README.md 16:41:05 akasurde: so I would like to get that merged 16:41:59 akasurde: I already regretted making that PR, but not pushing through would make it all an ever bigger waste of time 16:42:12 it's going to remain needs_revision until that version_added error is fixed 16:42:24 jtanner: that version_added is not an error 16:42:33 jtanner: the parameter was undocumented 16:42:47 state was undocumented 16:42:54 (and it's always a hassle to get those things fixed because everyone believes the CI more than me :-)) 16:43:06 we still have to make the test pass 16:43:07 hehe 16:43:15 version_added: legacy ... iirc 16:43:32 jtanner: no mattclay told me it should just be merged 16:43:49 oh 16:44:08 he always signs off on these things 16:44:09 https://github.com/ansible/ansible/pull/25140#issuecomment-311494205 16:44:31 merged 16:44:39 so here we come back to my biggest ansibot complaint, nobody reads the whole history because of old CI errors (noise) messing with the real content (signal) 16:44:54 ansibot is lowering the signal-to-noise ratio 16:45:09 it does not help the review process, and it does not help stuff to be merged quicker 16:45:18 i don't want to delete those messages 16:45:25 (especially not when you actually need CI for testing stuff you cannot test beforehand) 16:45:27 i may be willing to turn them into invisible comments 16:45:32 16:45:50 yeah, you told me, but people miss the real information (because of old CI issues) 16:46:00 and that's worse IMO 16:46:04 the bot has no facility for editing/deleting old comments right now 16:46:29 it would not be a quick implementation 16:46:31 I understand, but that feature request was denied (to add it) as denied, so it wilml never get that :-) 16:47:08 if anything, that test should get "smarter" 16:47:29 anyway, some of the things that PR was supposed to do was already done in other PRs (talking about waste of existing resources there) 16:47:31 also we need more reviewers 16:47:41 as a busy person, i don't want to have to keep a mental map of what tests can be ignored 16:48:24 #link https://github.com/ansible/ansible/pull/25143 16:48:32 jtanner, thanks for merge 16:49:36 25143 merged 16:49:40 jtanner: agreed 16:49:57 we're on a roll :-D 16:50:02 jtanner, thanks 16:50:04 * jtanner has hope that vcsim will support license soon 16:50:18 PR 27005 needs integration tests, I was planning to do that before this meeting, but alas 16:50:44 dag, it needs rebase too 16:51:10 dag, are you planning to address my review requests ? 16:51:22 akasurde: not again :-( 16:51:41 akasurde: I didn't see the review requests :-( 16:51:53 that's why i don't like touching changelog in PRs 16:51:53 dag, ah 16:52:00 akasurde: probably because when I got out of vacancies new CI tests added new errors 16:52:24 yup and also some refactor thingy 16:52:27 jtanner: I don't mind if we make that a rule (although it's nice for others to see what's coming in the next release) 16:52:48 dag, jtanner - i suggest having changelog changes in a separate PR 16:52:50 vacancies ? I meant vacation :) 16:52:55 we have ways of figuring out what modules are missing from the changelog 16:53:01 after the main PR is merged 16:53:22 https://github.com/jctanner/ansible-tools/blob/master/modules_changelog.py 16:53:22 pdellaert: if that PR takes ages to get merged, the same hell IMO 16:53:27 same for BOTMETA 16:53:34 pdellaert: the real issue here is that PRs stay open for months 16:53:53 dag: in my (one) experience, the changelog/BOTMETA PR was merged an hour or 2 after i created it 16:53:56 botmeta shouldn't need update, if "authors" is filled out properly in the module 16:54:11 jtanner: is that active ? nice ! 16:54:25 was part of botmeta implementation 16:54:39 jtanner: ah, i was informed by someone i had to :), good to hear 16:54:39 allowed the initial file to be much smaller 16:54:56 #link https://github.com/ansible/ansible/pull/27236 16:55:02 pdellaert: it was needed when we had MAINTAINERS.txt 16:55:23 yep, things are a bit different now 16:55:26 easier to keep track of 16:55:40 akasurde: just want to know if there's anything that needs to happen on 27236 16:55:50 is 27236 a fact module? 16:55:57 oh, a wait_for? 16:56:07 no, it is a module to wait for the vmware tools to become available 16:56:16 pdellaert, I am OK with PR 27236 16:56:23 main use casE: wait until a command can be pushed through the tools 16:56:25 nah ... 16:56:41 if it's primary goal is to wait for something, it should have "wait" in the name ... imo 16:56:54 yeah, but the goal is to expand with tools installation 16:56:58 (trigger it) 16:57:29 pdellaert: the examples still call it vmware_guest_tools_wait BTW 16:57:35 well, i'll only say that this is a topic the working group needs to deliberate and hopefully vote on 16:57:44 oh, dag thanks, i'll update 16:57:57 sure, and i can always rename/refactor of course :) 16:58:26 you can have module that does lots of things and users need to read the docstrings to understand fully, or you can have separate modules with less guessing 16:58:55 pdellaert: I would also separate it into two modules, one for installing/updating vmware-tools, and one for waiting 16:59:34 pdellaert: I wonder if the waiting could be done with a loop over vmware facts instead 16:59:58 that way people can wait for anything actually, not just the availability (or the availability of a specific version) of vmware_guest tools 17:00:12 dag, potentially yes, but that would require more work in the playbook itself? 17:00:28 pdellaert: true, but also a lot more versatile solution 17:01:03 pdellaert: it would be one of the examples of such facts module, and could be part of the VMware-specific documentation we could add 17:01:33 Can we move on to https://github.com/ansible/community/issues/206#issuecomment-318256386 17:01:36 ? 17:01:37 why not offer both? A simple solution for something that is a typical use case (sending commands over vmware tools), and provide examples for facts to wait for other stuff? 17:01:45 akasurde: i need to know what to do :) 17:02:05 pdellaert, Ok 17:02:15 pdellaert: I'll let others decide, I stated my view ;-) 17:02:26 gonna have to be democratic 17:02:45 i'm ok with rename, i do think the module still has purpose 17:02:52 I am OK with two separate module - as it is more managable and robust 17:03:05 yes, module definitely has purpose ... i think we all agree on that 17:03:32 #action pdellaert rename module in 27236 17:03:37 ok, so rename it it, `vmware_tools_wait` to keep it simple? 17:04:25 it's long, but ... vmware_guest_tools_wait 17:04:28 is my vote 17:05:03 +1 for vmware_guest_tools_wait 17:05:07 ok, done 17:05:10 thanks! 17:05:19 (well, done as in decided ;)) 17:06:39 #link https://github.com/ansible/ansible/pull/25944 17:08:01 people ignoring bot message about template =( 17:08:02 There is something wrong, ha-datacenter only works for the ESXi host, while the username is administrator@vsphere.local, which is vCenter based 17:08:23 we're at the top of the hour, so we should end the meeting before starting a new PR 17:08:53 don't have to though 17:09:12 i need to go eat before 2pm est meeting 17:09:19 i'll add my comment as a review 17:10:05 jtanner: what is the right way to define author so that BOTMETA picks it up? Is it github handle? 17:10:32 one sec, i'll look at code 17:10:51 thx 17:11:16 https://github.com/ansible/ansibullbot/blob/master/ansibullbot/utils/moduletools.py#L588 17:11:26 Name (@handle) 17:11:44 pdellaert, dag should we close and continue in the next meeting ? 17:12:07 jtanner: why isn't that processed as yaml ? ;-) 17:12:21 it isn't? 17:12:38 akasurde: I don't mind stretching it a bit if we can get some more things nublocked 17:12:45 akasurde: same 17:12:49 the data is sent to yaml.load 17:12:57 ok 17:13:24 ah, a lot lower than I expected 17:13:33 pdellaert: this should be a valid example https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest.py#L25-L27 17:13:34 I saw a lot of data-mangling 17:13:55 jtanner: so the question has to be, why the data-mangling to only pass the author-lines ? :) 17:14:00 yes, datamanagling is a an unfortunate necessity for what most of the bot has to do 17:14:21 dag: what is the alternative? 17:14:39 can't you just give it the whole documentation-string, and just get author out of it ? 17:14:41 i can't just put the whole .py into yaml.load 17:14:56 the datamangling is looking for the docstrings 17:15:08 no, true, but import the module and get DOCUMENTATION ? 17:15:20 isn't that the purpose for putting it in a variable ? 17:15:41 that would be a lot of importing for a long running process 17:15:42 (if you don't have time for this now, just tell me ;-)) 17:15:50 ah, ok 17:15:54 can we continue with the PRs? ;) 17:15:56 if it were sandboxed, maybe 17:16:04 pdellaert: sure 17:16:08 thx for the example, jtanner :) 17:16:09 https://github.com/ansible/ansible/pull/25857 17:16:10 * jtanner has to relocate ... bbiaf 17:16:22 #link https://github.com/ansible/ansible/pull/25857 17:16:29 pdellaert: you asked the question that got use sidetracked :-p 17:16:38 dag, not that it's not interesting, just want to continue the meeting ;) 17:16:50 dag: sure, i'll take the blame! I'm used to that :D 17:17:23 akasurde: I see a few things I would do differently, but unrelated to the patch 17:17:36 dag, shoot 17:17:48 (description needs a trailing dot, required=False is unwanted, etc.) 17:17:58 the usual cosmetic stuff 17:18:09 author should be a list 17:18:11 dag, I am planning for new PR (let us get this one merged first) 17:18:25 sure 17:18:33 ah, it's yours ! 17:18:57 #action akasurde file PR for cosmetic changes in vmware_vswitch 17:19:22 dag, I am also maintainer of this module :) 17:19:52 I don't have the time to test it myself (with v2.4 around the corner and plenty of PRs I have to maintain because they don't get merged :-/) 17:20:42 can't test, but looks ok to me 17:22:07 OK anything else on my side to do 17:22:33 version_added needs to be a string 17:23:07 you don't have to do any special handling for string vs list 17:23:24 since you set it to be a list from the argument_spec, it will always be a list 17:23:36 (if someone puts a string there, it will be converted into a one-item list) 17:23:46 so actually, the change is even smaller 17:24:02 (remove the square brackets) 17:25:06 dag, ok 17:25:10 I would also rename that parameter from 'nic_name' to 'nics' (and keep the alias) 17:25:43 noted 17:25:52 and personally I would use 'switch' instead of 'switch_name', but that's not that important 17:26:14 can add as alias though 17:26:34 that's just personal preference (or consistency throughout Ansible) 17:26:49 but Ansible is not very consistent, that ship has sailed a long time ago :p 17:27:14 it would be nice to have at least consistency for the vmware modules 17:27:19 I think that is more important 17:27:26 (we are doing the same thing for Windows modules BTW) 17:27:43 ok 17:27:47 you often see things like user_name vs user vs username :-/ 17:28:24 can we do some more PRs ? 17:29:28 akasurde: we can always do a VMware sprint, which is basically what we are doing, but maybe we a more focused scope, and issue/PR owners are invited 17:29:59 (if you wonder why my sentences are missing stuff, I only slept 3 hours) 17:30:02 sure, sounds interesting 17:30:23 dag, np, got the sense of sentence 17:30:31 it can help to get more people involved (because we involve the issue/PR owners, and we ask other contributors to join) 17:30:47 sounds like a good plan, indeed 17:31:05 for Windows we looked at the modules with the most issues, made a list and gets those reviewed 17:31:34 dag, link please ? 17:31:48 we're focusing on issues here, because we want those to get fixed before looking at the open PRs 17:31:49 https://github.com/ansible/community/wiki/Windows%3A-sprints#sprint-1 17:32:20 you can see that most of them got resolved,not always immediately, but the additional attention caused some extra effort afterwards 17:32:44 and by working per-module, some of the context is already there, so it becomes easier to refactor things and fix more than one issue in the same effort 17:33:10 (it becomes clear when an approach, or implementation was in need of an overhaul) 17:33:28 Cool 17:33:50 for vmware the number of open tickets is still manageable 17:33:54 dag, can you please add same page for vmware ? 17:33:59 sure 17:34:12 #action dag Add sprint page for VMware efforts 17:34:25 we also picked the modules that were easy to test ourselves (not requiring specific infrastructure) 17:35:26 the original idea was that we would do that stuff in parallel, but it proved more valuable (and enjoyable) to do it together 17:35:41 especially since some of the stuff requires a discussion or decision 17:35:48 ok 17:36:04 so do we want to do some more PRs ? 17:36:20 or do we want to discuss e.g. what to do by v2.4 ? 17:36:41 I saw the meeting minutes, but that basically said "let's stick to the plan" 17:36:45 do we still have much time to do more? 17:36:46 I am Ok for some more PRs maybe 2 or 3 17:37:09 but the question I wanted to ask was, do we want to add stuff to the plan :-) 17:37:19 things that have more merit than other stuff 17:37:29 like adding integration tests, or better coverage support 17:37:40 dag we have enough for 2.4 17:37:43 rather than adding more stuff, make the existing stuff better 17:38:03 yes, lets make exisiting stuff more better 17:38:07 akasurde: the idea is not "with the resources we have" but "how can we find more resources" 17:38:25 welcome to my life =) 17:38:30 if you make a project and add focus, new outside people can start working on it 17:38:51 that's why i prioritize bot work 17:38:57 make the spice flow 17:39:01 for Windows we are seeing improvement and acceleration, albeit not as much as I had hoped 17:39:09 jtanner: yes, that's important 17:40:06 akasurde: a lot of people have joined the VMware WG after I asked who wanted to join 17:40:25 dag, yes indeed 17:40:27 akasurde: and those people are currently not activated (while they did spoke out the wish to become more involved) 17:40:46 so I think we are missing out on a real opportunity 17:40:56 (for Windows, nobody signed up :p) 17:41:05 can you blame them 17:41:06 =P 17:41:09 the difference could not be bigger 17:41:24 ;) 17:41:34 the exact same message, to the same people (prior contributors, existing PR owners) 17:41:57 and there were 3x more Windows people than VMware people 17:42:12 anyway, how can we activate them ? 17:42:20 what is situation now 17:42:23 finding more volunteers/maintainers is a larger problem for the entirety of the ansible project 17:42:37 it's an issue we haven't solved 17:42:42 ask for reviews would be a simple request, but I am afraid that may not trigger people 17:43:10 maybe the sprints could work here better 17:43:31 Do you think the time is the issue ? 17:43:35 and merge things while we're doing it 17:43:44 finding people who know vmware, know the soap api, know pyvmomi, know ansible, know how to dev ansible is a difficult set of qualities to find 17:43:56 akasurde: I think most people wonder what they're contribution could be 17:44:03 their 17:44:13 ah 17:44:19 again, a problem for all of ansible 17:45:03 and I think the solution is to get them into it step-by-step (so a sprint, or making integration tests together) 17:45:42 that's what i started with filament 17:45:53 or tried 17:45:58 jtanner: the question is if we need all SOAP api/pyvmomi experts, for testing modules we don't 17:46:03 and, as jtanner says, in case of vmware, finding the combination is not easy. However, of one or two are missing, they could learn those 17:46:21 the people that signed up at least are interested 17:46:39 either to be in the loop (notified) or to contribute (because they depend on it) 17:46:53 they can learn the ansible side via https://tannerjc.net/wiki/index.php?title=Ansible_Developer_Filament 17:47:41 jtanner: right, but that's already a big scary commitment 17:48:01 jtanner: if you look at that, you think "a few hours work" and you do something else 17:48:16 *shrug* ... i they can't do level 1 from that, they're probably not ready for python development 17:48:25 hehe 17:48:55 maybe I look at it from a different point of view 17:49:04 I don't think they all of have to be jtanner's 17:49:08 I am not a jtanner 17:49:14 i'm not a dag 17:49:27 :-) 17:49:55 you answered so quick, I am actually wondering if you're scripted :) 17:50:12 ok, let's do some PRs now 17:50:21 and I'll see if we can prepare a sprint 17:50:41 the whole feel-good story behind sprints are here: https://github.com/ansible/community/blob/master/SPRINTS.md 17:52:27 #link https://github.com/ansible/ansible/pull/26323 17:54:50 dag: i might be a script ... that would be the ultimate career goal for people like us, right? 17:55:11 ansibot == jtanner 17:55:15 hehe 17:55:30 i LOVE to label 17:55:40 akasure: I would change the logic a bit 17:55:43 I am sure jtanner is a script now 17:56:07 AI maybe 17:56:21 akasurde: I would set sslContext to None by default, change it if 'not validate_certs', and call SmartConnect only once 17:56:35 that simplifies the code a bit, since sslContext is None by default if not specified 17:57:08 then you can add the try/except directly around the SmartConnect line, so that's preferred as well 17:57:20 dag, OK, I don't remember why kept it apart 17:58:26 there's still the issue with the second SmartConnect call in the except block, that could be improved I guess (since an new exception will cause an improper module failure) 17:59:17 there is no smartconnect in except block 17:59:20 ah, sorry 17:59:23 you already removed it 17:59:25 damned :) 17:59:33 dag you need sleep 17:59:40 so that's perfect ! 18:00:03 yeah, and tonight another all-nighter (Pacific Time) 18:00:36 personally I would catch all the various exception as 'e' 18:00:43 and use 'e' in all the messages 18:01:24 I don't see a good reason to have unique exception names in an exception-cascade (I find it more confusing even) 18:01:46 ok 18:02:57 akasurde; if you do it now, we can merge it ! 18:03:20 just sslContext, right ? 18:06:14 yeah, so: 18:06:15 sslContext = None 18:06:15 if not validate_certs: 18:06:15 sslContext = ... 18:06:15 try: 18:06:15 service_instance = connect.SmartConnect(..., sslContext=sslContext) 18:06:15 except SomeException as e: 18:06:16 module.fail_json(... % e) 18:06:16 except AnotherException as e: 18:06:17 module.fail_json(... % e) 18:06:37 sorry, that was ssl_context 18:07:05 ok 18:07:34 I am also wondering why we have that apierror result value 18:07:44 I would prefer we add the error to the msg-string 18:08:01 otherwise different error messages look exactly the same without the additional context 18:08:30 ok 18:08:31 and apierror is not something people would want to check for anyhow, so there's no real benefit of having another custom error-marker in the output 18:09:43 and then you don't have to add the error_msg string at the top, just repeat it twice with %s in it 18:09:56 I always prefer to have the error-string at the location where it is raised 18:10:31 so you can easily grep for it (and if it is in the code more than once, you can tell straight away) 18:11:00 dag, have a look 18:11:06 we're not optimizing for memory efficiency (or at least leave that up to the compiler ;-)) 18:11:46 yup, I would move the error_msg directly into module.fail_json() though 18:12:23 even if it is the same string (but it doesn't have to be the same string, you could actually indicate a connection error, or an invalid login error in that message 18:12:44 Unable to connect is very broad, especially if we now the login was invalid 18:12:54 ok 18:13:23 I will close the meeting and then we can take the discussion to ansible-vmware, OK ? 18:13:23 So "Failed to login to vCenter or ESXi API. %s" % e.msg 18:13:33 yeah :-) 18:13:48 BTW we could have a bot in ansible-vmware and do meetings there 18:14:03 we don't have to, but it does make it easier to list the meeting logs/minutes by channel 18:14:21 bot has resource limits that is why we dont have it on all channels 18:14:26 and people only interested in vmware are automatically involved 18:14:33 bcoca: the resource limits have been lifted 18:14:43 #endmeeting