16:01:23 #startmeeting Ansible VMware Working Group Meeting 16:01:23 Meeting started Mon May 14 16:01:23 2018 UTC. 16:01:23 This meeting is logged and archived in a public location. 16:01:23 The chair is akasurde. Information about MeetBot at http://wiki.debian.org/MeetBot. 16:01:23 Useful Commands: #action #agreed #halp #info #idea #link #topic. 16:01:23 The meeting name has been set to 'ansible_vmware_working_group_meeting' 16:01:23 akasurde: Error: Can't start another meeting, one is in progress. 16:01:35 Hi akasurde 16:01:35 Hello everyone 16:01:41 #chair dericcrago 16:01:41 Current chairs: akasurde dericcrago 16:01:53 Hi dericcrago 16:03:14 dericcrago, let us wait for sometime for other people to join 16:03:59 ok, jtanner was around 16:05:06 #chair jtanner 16:05:06 Current chairs: akasurde dericcrago jtanner 16:12:40 I want to discuss - https://github.com/ansible/community/issues/233#issuecomment-388781808 16:14:29 Hi 16:14:37 #chair kaneda-fr 16:14:38 Current chairs: akasurde dericcrago jtanner kaneda-fr 16:14:41 kaneda-fr, hi 16:15:48 flying from west coast back to Europe, was working with the vmware service providers folks 16:16:22 oh, nice 16:16:45 they show python as one of their main language support for API SDK 16:17:07 and pyvcloud is high on their radar, so we can only expect more and more integration coming up 16:17:24 Cool 16:17:42 so just need to start working on integrating the new pyvcloud into ansible 16:19:01 definitely 16:22:42 I would like to discuss - https://github.com/ansible/ansible/pull/39339 16:22:54 ok 16:23:08 PR adds facts related to disk in vmware_guest_facts 16:23:46 hello 16:23:52 There is already a new module called vmware_guest_disk_facts which does the same, I am in favor of not adding this change 16:23:55 hi jtanner 16:24:06 i'm very distracted 16:24:12 np 16:24:16 would something like a module_utils version of vmware_facts be a good idea? 16:26:09 Like discussed in last meeting, we should have separate small modules instead on one big module which will do everything 16:26:23 What everyone things about this ? 16:26:29 we can do that 16:26:41 we can also continue to pursue breaking up the module_utils into a folder 16:26:42 yeah, I'm in favor of breaking into smaller modules 16:26:59 +1 for smaller modules 16:27:27 jtanner, yes definitely 16:27:47 I like that idea jtanner "breaking up the module_utils into a folder" 16:29:27 Yes, one of the step in achieving this is PyVmomi class 16:31:58 can we also discuss https://github.com/ansible/ansible/pull/19886 ? 16:33:15 sorry i missed the start, i do need to run, but keep tagging me 16:38:18 #chair pdellaert 16:38:19 Current chairs: akasurde dericcrago jtanner kaneda-fr pdellaert 16:40:01 pdellaert, hi 16:40:12 hi, akasurde 16:40:52 and yes, +1 for more small modules and less monolithic modules :) 16:41:03 kaneda-fr: what do you want to discuss on that PR? 16:41:43 akasurde: on 39339 > If there is a disks facts module and it contains all info, i feel like that should be used... 16:43:03 pdellaert, yes. Thats what I suggested, but author suggested that the vmware_guest_disk_facts returns complicated datastructure 16:43:13 but we discussed that in last meeting 16:44:31 `it would be better if they shared the same keys` > that is a valid remark 16:44:57 anyway, really have to run, sorry 16:45:46 pdellaert, np 16:46:48 kaneda-fr, I am ok with changes, I don't have setup so can't test 16:46:58 Let me know if it works for you then we can merge 16:49:25 #action akasurde Create a playbook to use vmware_guest and vmware_guest_disk_facts together and update documentation 16:49:46 #link https://github.com/ansible/ansible/pull/40075 16:50:07 We have started working on new scenario based documentation related to VMware 16:51:15 This is part of effort to demystify all options and their usage 16:51:33 yeah, I started looking at that earlier 16:51:39 good work akasurde 16:52:04 Let me know your views and comments and suggestions 16:52:06 dericcrago, thanks 16:54:15 * jtanner is about to head to airport 16:54:33 dericcrago, jtanner is also main part of this effort 16:54:48 jtanner, have a safe journey 17:03:29 Does anyone have anything else to discuss ? 17:03:36 yes 17:03:46 dericcrago, yes go ahead 17:05:13 akasurde, jtanner, mattclay - I'm been working on updating vcsim to the latest, not sure how much this needs to be coordinated, I *think* I could just submit a PR to the vcenter-test-container repo, once that's good and tagged, create a PR against ansible with the new tag in vcenter.py and the handful of changes to the tests 17:06:11 yes I think this is a correct procedure 17:06:22 probably really only needs someone to get mattclay to do the build + tag, then make sure the full set of tests run with the ansible/ansible PR 17:06:31 in the midst of preparing this, I noticed what I think is a bug around the networks vlan parameter being both a name or an id 17:07:04 this highlights what I'm talking about - https://github.com/ansible/ansible/compare/devel...dericcrago:vcsim_latest#diff-ed147163551d1eaa084b21f6bab29f96 17:07:40 it seems likely that someone passes the vlan as a name and then it tries to int("some name") which fails 17:08:35 1. vim.dvs.VmwareDistributedVirtualSwitch and vim.DistributedVirtualSwitch are both required 17:09:01 the version of vcsim in vcenter.py doesn't catch that, the new version that I was testing did catch that 17:09:49 Some version of vCenter has VmwareDistributedVirtualSwitch and others has DistributedVirtualSwitch 17:10:18 sorry akasurde - right now I'm just talking about the changes highlighted in vmware_guest.py 17:10:24 OK 17:10:55 vlan of int and str was added recently to fix "Unable to find VLAN id " error 17:11:08 I'm willing to go back and investigate VmwareDistributedVirtualSwitch vs DistributedVirtualSwitch 17:11:23 I understand what they were trying to do 17:11:38 it seems like it was only tested for the happy path 17:12:09 as if you pass a "name" instead of a 10 then it tries to int("name") which doesn't work 17:12:34 that's why I flipped it to comparing strings instead of ints 17:12:36 ohk 17:12:57 dericcrago I guess we need to blame jinja templating here 17:13:38 someone must be passing "10" even though it is referring to 10 vlanid it is passed as "10" 17:13:43 I can pull out *just* that change into a PR if we agree that it's a bug that we should fix 17:13:57 sure, in that case the original pr works 17:14:12 what happens when you pass "vlan name" ? 17:14:26 Yes, that what I thought 17:14:33 yes vlan name will fail 17:14:36 :) 17:14:38 ok 17:14:55 should I create a PR for that? 17:15:27 yes definitely 17:15:30 ok 17:15:39 thanks for bringing that up 17:15:58 no problem, I wouldn't have caught it if it wasn't for the new vcsim :) 17:16:10 so slightly improved testing is coming :) 17:16:20 Cool 17:16:49 ok, I'll create a PR for the network vlan arg 17:17:13 and I'll look into VmwareDistributedVirtualSwitch vs DistributedVirtualSwitch a bit further before I create the "update to vcsim latest" PR 17:17:42 Try will older vcenter version 17:18:01 minimum vCenter is 5.5, right? 17:18:22 yes 17:18:30 I wanted to check if it was a vCenter 5.5 or pyVmomi 5.5 17:18:48 also as part of the PyCon sprints, I'm working on contributing a VMware Connection Plugin 17:27:08 dericcrago, Before submitting PR please submit a proposal here - https://github.com/ansible/proposals/issues 17:28:07 akasurde - which things need new proprosals? 17:28:42 dericcrago, Connection plugins or any major changes 17:28:45 ok 17:29:16 thanks, I was unaware of that 17:30:03 Np 17:30:31 dericcrago, This is a good example of connection plugin proposal - https://github.com/ansible/proposals/issues/103 17:31:26 awesome, thanks akasurde 17:31:37 dericcrago, you start with proposal I will edit it 17:32:13 dericcrago, np, advantage with this proposal is we will get good and constructive suggestions 17:33:32 We are over the time for this meeting 17:33:50 I will close this meeting now. 17:33:56 #endmeeting