Thursday, 2016-06-30

*** mickeys has quit IRC00:43
*** mickeys has joined #openstack-net-bgpvpn00:46
*** mickeys has quit IRC00:51
*** mickeys has joined #openstack-net-bgpvpn02:12
*** mickeys has joined #openstack-net-bgpvpn02:13
*** mickeys has quit IRC02:17
*** tmorin has joined #openstack-net-bgpvpn07:27
*** enikher has joined #openstack-net-bgpvpn07:36
*** doude has quit IRC09:08
*** doude has joined #openstack-net-bgpvpn09:08
*** matrohon has joined #openstack-net-bgpvpn09:20
matrohonhi doude09:20
doudehi matrohon09:23
matrohondid you see : https://bugs.launchpad.net/bgpvpn/+bug/1596962 ?09:24
openstackLaunchpad bug 1596962 in networking-bgpvpn "opencontrail driver issue with a particular network association" [Medium,Confirmed]09:24
matrohondoude, ^09:24
doudeno, I did not09:24
matrohondoude, if you can provide us a fedback?09:25
doudematrohon: I take a look09:29
*** enikher has quit IRC09:32
doudematrohon: seems an issue with networking_bgpvpn/neutron/services/plugin.py code that checks if a network is not linked to a router which is already associated to a bgpvpn09:40
matrohondoude : an issue with net-bgpvpn.... never!  :)09:41
doudeit expects to find 'routers' attribute in bgpvpn resource but in cas a a service driver which not support the router association, that 'routers' attribut does not exist09:41
doudeso KeyError09:41
matrohonok09:43
doudematrohon: :)09:43
matrohondoude I'll have a closer look09:44
matrohondoude, sorry :)09:44
doudenp09:44
*** enikher has joined #openstack-net-bgpvpn10:03
*** enikher has left #openstack-net-bgpvpn10:08
*** enikher1 has joined #openstack-net-bgpvpn10:19
*** enikher1 has quit IRC10:23
matrohondoude, re11:36
matrohondoude, around?11:36
*** enikher has joined #openstack-net-bgpvpn11:37
matrohondoude ?12:12
enikheryes12:33
enikherno I am Nikolas Hermanns12:33
enikheroops12:33
enikherI though you ping me12:33
matrohonenikher :)12:37
matrohonnp12:37
*** mickeys has joined #openstack-net-bgpvpn13:40
*** mickeys has quit IRC13:44
doudematrohon: yes (sorry for the delay)14:28
matrohondoude, actually, I think the bug https://bugs.launchpad.net/bgpvpn/+bug/1596962 can be fixed from both sides :)14:30
openstackLaunchpad bug 1596962 in networking-bgpvpn "opencontrail driver issue with a particular network association" [Medium,Confirmed]14:30
matrohondoude  : for the contrail part, why the driver doesn't add the router if one is attached?14:32
doudematrohon: contrail driver does not support to attach router with bgpvpn14:33
matrohondoude, yep I know, however it supports having a network attached to a router14:33
doudeyes14:33
doudebut that's not the issue here, no?14:35
doudethe core plugin can list router interface on a network14:35
doudeand ontrail driver support it14:36
matrohonwell, actually I'm concerned since the signature of the get_bgpvpn depends on the used driver14:36
doudebut after, the bgpvpn driver code list all bgpvpn of the tenant and checks if one of them is already associated to the router attached to the network14:37
doudeut bgpvpn resources returned by contrail bgpvpn driver does not provide the 'routers' attribute of bgpvpn resource14:37
doudein fact, '_validate_network_has_router_assoc' method is not usefull for service driver which not support router association14:39
doudehttps://github.com/openstack/networking-bgpvpn/blob/master/networking_bgpvpn/neutron/services/plugin.py#L7114:39
matrohondoude, yep I know... but we want to host some generic in here14:39
matrohonhopefully you will implement the router assoc with contrail soon :)14:40
doudein that case, we can fix the contrail driver to return an empty list for the 'routers' attribute of bgpvpn resource14:40
doudecertainly :)14:40
matrohonusing _make_bgpvpn_dict would be awesome : https://github.com/openstack/networking-bgpvpn/blob/master/networking_bgpvpn/neutron/db/bgpvpn_db.py#L10614:41
matrohonwe already though about it I think?14:41
doudeis there an easy way to knwo if a service driver support the x association,14:42
matrohonno....14:42
doudebecause it'll be moreefficient to not call '_validate_network_has_router_assoc' if the driver does not support router association for example14:42
matrohonI understand, going through every bgpvpn is useless in this case14:43
doudefor '_validate_network_has_router_assoc', one call to read the network, one call to list the gw port of that network and then one call to list all bgpvpn of the tenant14:44
doudeperhaps we can define a list of `feature` supported by the driver14:45
doudethat permits to escape cases like this14:45
doudelike extensions in the neutron core plugin14:45
matrohonyep, but it'a diplomatic issue : what would eb the sense of the bgpvpn-api, if not every driver implement the define "common" API...14:48
matrohondoude ^14:49
*** enikher has quit IRC14:49
doudeyes, so that meens a bgpvpn driver must implement all bgpvpn API like router association or in the future port association?14:50
matrohonwe accept driver to not implement part of the API, temporarily... :)14:50
doudeok14:50
matrohondoude the idea is giving the same API from one deployment to another, regardless what sdn controller is under the hood.14:52
doudethere is no `extesnions` like for service provider14:53
doude?14:53
matrohondoude, we try to avoid extensions...14:57
doudeyou leean 'we' == 'neutron community' ?14:57
doudes/leean/mean14:58
matrohondoude, however15:00
matrohondoude, yes that's what I mean...15:00
matrohondoude, however I'm not even sure that the nuage driver support the net assoc...15:02
matrohon:)15:02
doudematrohon: ok, so do you want I propose a patch on contrail driver to return an empty list?15:02
matrohondoude, It's a patch in your driver or you want to store a dedicated value in the contrail kvs?15:07
matrohondoude the always empty value, for now :)15:07
doudematrohon: I think just patch common method 'make_bgpvpn_dict' to set 'routers' attribute15:08
doudelike it's already done for 'networks' attribute https://github.com/openstack/networking-bgpvpn/blob/master/networking_bgpvpn/neutron/services/common/utils.py#L7115:08
matrohondoude, ha! that's the part of the code I was looking for15:10
matrohonthanks15:10
matrohondoude, It's a pity taht we don't use this method in db based dirvers : https://github.com/openstack/networking-bgpvpn/blob/master/networking_bgpvpn/neutron/db/bgpvpn_db.py#L10615:18
doudedo you seen any diffrences?15:18
*** mickeys has joined #openstack-net-bgpvpn15:19
doudethat could be factorizes15:22
*** tmorin has quit IRC15:55
*** matrohon has quit IRC16:05
*** mickeys has quit IRC20:57
*** mickeys has joined #openstack-net-bgpvpn21:28

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