14:00:47 #startmeeting kuryr 14:00:48 Meeting started Mon Sep 26 14:00:47 2016 UTC and is due to finish in 60 minutes. The chair is apuimedo. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:00:49 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:00:51 The meeting name has been set to 'kuryr' 14:01:04 Hello and welcome all to another kuryr meeting 14:01:08 o/ 14:01:14 who's here for the meeting? 14:01:18 o/ 14:01:20 o/ 14:01:42 irenab: banix: are you in there? 14:01:54 o/ 14:02:11 o/ 14:02:20 0/ 14:02:35 #info vikasc limao_ lmdaly banix yedongcan tonanhngo apuimedo present 14:02:43 Thank you all for joining today! 14:02:58 #topic kuryr: rest/rpc 14:03:17 i am sorry, could not update the patches. 14:03:27 tagetting this week 14:03:35 #info A deployment configuration patch from vikasc got merged https://review.openstack.org/362023 14:03:49 vikasc: no worries, I just cherry-picked what was ready to be merged 14:03:57 o/ 14:04:00 apuimedo, thanks 14:04:03 looking forward to review new versions of the other ones 14:04:23 #action vikasc to rework the other patches 14:04:32 #link https://review.openstack.org/362023 14:04:33 o/ 14:04:42 #link https://review.openstack.org/361993 14:04:49 welcome mchiappero and ivc_ 14:05:13 vikasc: is there anything about the rest/rpc you want to bring up? 14:05:41 apuimedo, nothing specific. 14:06:11 reminder to others: this is about having the kuryr daemons that run in instances communicate with a kuryr server outside of the nova instances to perform the neutron/keystone actions 14:06:16 vikasc: ok 14:06:30 #topic kuryr: port binding 14:07:28 #info lmdaly contributed a PoC patch for ipvlan based kuryr networking in the mailing list http://lists.openstack.org/pipermail/openstack-dev/2016-September/104166.html 14:08:14 #info apuimedo took the ipvlan part of it, added macvlan too and submitted a WiP patch againts opentack/kuryr https://review.openstack.org/375864 14:08:25 lmdaly: did you have time to take a look at the WIP patch? 14:08:51 yeah I had a quick look - not too in depth look yet 14:08:52 The idea is that if we add the ipvlan/macvlan code to kuryr-lib we'll be able to leverage it for both kuryr-libnetwork and kuryr-kubernetes 14:09:21 so I took the liberty of doing that with part of what I saw on your patch 14:09:33 I wonder if it would be usable for Ironic 14:09:39 * apuimedo has no idea, never tried ironic 14:10:04 lmdaly: quick question, why do you set the L2_Mode for ipvlan instead of the L3_mode 14:10:25 I am not familiar with the distinction between the modes in the kernel driver 14:12:14 well, we can get back to it in a moment :-) 14:12:15 L2 should allow brodcast frames to be received by the containers 14:12:41 oh, that's interesting 14:12:49 I can't tell about Ironc, but I guess it might work (to be verified) 14:13:02 #topic kuryr-libnetwork: dropping netaddr 14:13:58 #info we are dropping netaddr as ipaddress is part of the core standard library in python3 and it has a backport in python2. The change has already landed in kuryr-lib and it is under review for kuryr-libnetwork. Please use ipaddress in new code 14:15:02 if there is any question on that, let me know. I'm now verifying it's operation 14:16:06 #topic kuryr-libnetwork: container-in-vm 14:17:00 #info Part of the PoC lmdaly submitted should be incorporated into the kuryr-libnetwork codebase http://lists.openstack.org/pipermail/openstack-dev/2016-September/104166.html 14:17:28 #action apuimedo to find a way to pass the instance neutron port + the newly allocated IP for port-binding to happen 14:18:23 lmdaly: limao_: does updating the neutron port with the extra addresses make the new addresses count as allocated, if you ask Neutron IPAM? 14:18:48 no 14:19:06 +1 14:19:53 you should have the new ip address in create_or_update_port so should be able to pass to binding from there? 14:19:54 :) in my mind, you have to create port to allocate ip 14:19:57 alright, so in that case, I guess, in the patch to kuryr-libnetwork, we should create a Neutron port which we'll not really bind, and pass it as nested_neutron_port 14:20:05 to kuryr-lib port binding method 14:20:14 Yes, +1 14:20:41 would it be possible? 14:20:47 apuimedo: is this somehow related to the idea I proposed you the other day regarding enabling plugins for the CNIDriver? 14:21:04 does that mean we'll never see that port as 'ACTIVE' in neutron? 14:21:04 pablochacin: no, no, we'll get to that later :P 14:21:23 ivc_: that's the unfortunate side effect, yes 14:21:45 ivc_: limao_ mchiappero lmdaly: is there a way to interface directly with Neutron's IPAM? 14:21:56 Yes, it will be never ACTIVE, because we never "bind" this port in neutron 14:22:01 so we are using neutron port but neutron does not know about it ... can't say i like that idea 14:22:17 IMHO it could be argued with Neutron folks that updating allowed_address_pairs could warrant an IPAM update on the neutron side 14:22:32 briefly investigated but found that creating a port was the only way (that I could find) to reserve IP 14:22:58 so how about we do two things in parallel: 14:23:31 apuimedo that would be a much cleaner approach imho. also are you sure that security groups / iptables work correctly? 14:23:42 a) in kuryr-libnetwork for now we Create the ipam reservation port and pass it to kuryr-lib's port binding. Then update the instance port allowed address pairs 14:24:00 b) Submit to Neutron the request to update the IPAM with allowed address pairs 14:25:04 ivc_: IIRC, allowed address pairs cleans the iptables that would kill the communication 14:25:11 s/cleans/tweaks/ 14:25:39 ivc_: security groups wise it won't matter, because all communication is allowed within a security group 14:25:53 apuimedo, how 'b' would be done? 14:26:18 and since the instance port and the reservation port have the same security group, it should probably work 14:26:32 vikasc: I'll start by asking some neutron folks if they think the idea is crazy 14:26:38 then I'll update the ml 14:26:40 There is also an issue with updating the allowed-address-pairs as the longer the list of IPs the longer it takes to update port - it would be much easier if it the list could be appended to when updating the instance port 14:26:46 #action apuimedo to update the mailing list 14:26:54 apuimedo, got it, thanks 14:27:17 I believe b) will not be accepted neutron in my mind, as allowed address pairs is to add exception for anti-ip-spoofing... 14:27:22 lmdaly: that's why I want to propose that updating the instance port triggers the ipam reservation 14:27:49 limao_: I was hoping for some flag 14:28:07 OK, let's have a try ~ 14:28:10 lmdaly: as I agree that paying iptables price plus an extra roundtrip is not a good price 14:29:04 Is there possible to have option 3), disable port security when create network 14:29:23 limao_: I'm not sure that would be acceptable in the Magnum context 14:29:36 also, the 10 IPs limits is a bit annoying, unless can be overridden programmatically 14:29:39 o/ 14:29:58 mchiappero: I think it is reasonable to ask for configuration changes 14:30:26 apuimedo: but I presume the limit is there for a reason 14:31:00 I'm not sure how to use security group since all the containers on the vms will share the vm port security group 14:31:01 mchiappero: I can only imagine it is to prevent abuse 14:31:17 apuimedo: overriding is usually not great, and can be confusing when troubleshooting, but in this use case it's definitely too low 14:31:52 limao_: this ipvlan proposal assumes all the containers are on the same network as the instance, so it feels right that they implicitly receive the same security group policing as the instance port 14:32:03 mchiappero: agreed 14:32:05 apuimedo: it would be interesting to hear from the neutron folks 14:32:38 limao_: I guess it is OK, since security group is openstack-specific. Docker users won't care the security group too much 14:32:43 mchiappero: in the future, ocata/pike, I hope we can use the "vlan" aware VMs with IP/mac segmentation instead of Vlans 14:32:58 which will allow us to have containers in different nets than the instances 14:33:28 but I feel like this proposal from lmdaly's team is a good short term compromise while we get there 14:33:41 limao_, sorry, i think i missed context somewhere. Why do we want to disable security groups? 14:33:41 and it will provide us with a lot of information about the path forward 14:34:24 hongbin: limao_: you'd have to disable port security for the instance port too, I'm afraid 14:34:29 not just the containers 14:35:06 vikasc: port security is not only security group, but also anti-ip-spoofing , anti-arp-spoofing, anti-mac-spoofing 14:35:28 apuimedo: how about to have all containers to share a security group 14:35:30 allowed address pair is to add exception for anti-ip-spoofing 14:35:40 hongbin: that's what the proposal says 14:35:46 apuimedo: ok 14:35:58 hongbin: as I said, I think it is a good first step 14:36:13 but it definitely has its caveats as you can see 14:36:23 apuimedo: port-security can be done in port level and network level I believe 14:36:46 limao_: can you elaborate on the network level? 14:36:58 (we should take this to #openstack-kuryr after the meeting) 14:37:05 (other topics to tackle) 14:37:10 limao_, is it like undoing the effects of creating neutron port? 14:37:56 Let's discuss after meeting vikasc, apuimedo 14:38:01 agreed 14:38:04 thanks limao_ 14:38:07 limao_, sure +1 14:38:40 #action discuss port creation/security group in container-in-vm at #openstack-kuryr 14:38:52 #topic kuryr-libnetwork: outstanding bugs 14:39:23 #info yedongcan has done some much needed bug scrubbing on the kuryr-libnetwork project 14:40:07 I would request active contributors who have reported bugs to check if their open bugs are still unaddressed, if so, please, mark them as triaged, otherwise mark them as resolved 14:40:48 in case it's not clear, please, bring it up on IRC or on the mailing list, we have a long list of bugs and we need to do a better job at cleaning up the queue 14:41:15 I would like to propose that each week somebody takes the new bug triaging duty 14:41:43 #info apuimedo proposes "weekly new bug triaging" rotating duty 14:42:16 +1 14:42:19 #action apuimedo to review latest comments on https://launchpad.net/bugs/1626011 14:42:30 apuimedo: Error: Could not gather data from Launchpad for bug #1626011 (https://launchpad.net/bugs/1626011). The error has been logged 14:42:41 yedongcan: sorry I didn't get to your comments yet :( 14:43:23 #topic kuryr-kubernetes 14:44:16 #info We now have a kuryr-kubernetes devstack plugin. It should give you a nice setup for the integration work with the OSt pieces in the host and the unmodified Kubernetes pieces in containers 14:44:30 let me know if you encounter any issues with it 14:44:56 We should definitely use this to add fullstack tests as we contribute new code 14:45:41 any questions about the devstack plugin? 14:46:10 alright, moving on 14:46:35 #topic kuryr-kubernetes: python3 asyncio 14:47:42 #info pablochacin proposed on IRC a pluggable CNI approach so that if the CNI driver sees some specific annotations, it can execute scripts 14:48:11 this would allow vendors and other integrations to be properly timed with the kuryr binding 14:48:34 #info we'd allow plugin scripts before and after binding 14:49:30 what would the script api look like? what/how info would be pushed to them? 14:49:45 and do we have an actual use case for it? 14:50:02 pablochacin: can elaborate on the example use cases 14:50:10 (but i like the idea in general) 14:51:02 The idea is to allow third-party components to be informed about bindings 14:51:03 the api would be basically adding annotation to the pod resource 14:51:14 if the pod resource has an annotation like 14:51:25 before_nic_binding 14:52:03 {'my_extension': {..}} 14:52:09 you'd go to the /usr/libexec/kuryr/before_nic_binding/my_extension 14:52:10 why could not 3rd party components watch the resources the same way we do? 14:52:15 apuigmedo: I if you are talking about my proposal, i wasn't thinking about using pod annotations 14:52:30 and pass it the data in {...} 14:52:50 pablochacin: oh, sorry, I was projecting a bit of what I thought about it 14:53:00 no problem. 14:53:04 we should probably discuss it on #openstack-kuryr after meeting 14:53:13 pablochacin: I think the best is we do a mailing thread about it 14:53:16 ivc_: ^^ 14:53:20 Ok, better 14:53:33 we can then catch each other on IRC to bounce ideas off in real time too 14:53:42 pablochacin: anything else from your side? 14:53:58 #action pablochacin to send the CNI plug scripts proposal to the mailing list 14:55:03 #topic kuryr-kubernetes: python2/3 eventlet 14:55:30 #info ivc_ sent quite a few patches for his PoC to the kuryr-kubernetes gerrit queue 14:55:35 but most importantly 14:55:45 for its repercussions on the rest of the project 14:56:15 #info ivc_ proposes adopting Oslo versioned objects for communication to the binding side of Kuryr 14:56:48 so kuryr-libnetwork would use them when talking to the rest/rpc 14:57:02 kuryr-lib port-binding should probably know about them 14:57:22 and kuryr-lib CNI (which I'm doing) should definitely know about it 14:57:29 we can start with ovo for annotations now and translate to neutron port dict when passing to port-binding 14:57:42 ivc_: yes, that's the easiest way 14:57:57 kuryr-lib CNI translates to current port form for the current port-binding code 14:58:35 but eventually i see kuryr-lib binding using ovo 14:59:06 #action apuimedo work oslo versioned objects into the kuryr-lib CNI driver 14:59:23 ivc_: anything else you'd want to share? 14:59:43 (two minutes remaining, sorry) 14:59:50 not really :) 15:00:04 oh just that ha works with eventlet :) 15:00:16 is there a minimum linux kernel version we require? 15:00:42 * banix jumps the gun 15:00:51 #topic general 15:00:57 hi, we are waiting on our #craton meeting to start 15:01:03 o/ 15:01:08 banix: Do not think so, but generally el7 is the oldest 15:01:15 jimbaker: syed_ closing, sorry 15:01:22 thx 15:01:27 np 15:01:30 #info devvesa presented kuryr in openstack nordic 15:01:33 #endmeeting