Friday, 2021-07-16

opendevreviewzhangtongjian proposed openstack/neutron master: add has lock judgment for OvnNbSynchronizer  https://review.opendev.org/c/openstack/neutron/+/80075101:18
opendevreviewManu B proposed openstack/neutron-lib master: Introduce new bgp_associations API definition  https://review.opendev.org/c/openstack/neutron-lib/+/79277405:13
*** iurygregory_ is now known as iurygregory06:38
zhangtongjianralonsoh, hello07:06
ralonsoh<zhangtongjian hi (are you still there?)07:24
zhangtongjianralonsoh, yes07:27
ralonsohso please, go on07:28
zhangtongjianto the patch https://review.opendev.org/c/openstack/neutron/+/800751, i have do some tests, the set lock is asynchronously, can not has lock right now 07:29
zhangtongjianralonson, so i think there is a problem with the writing of the lock immediately obtained after the lock is added07:30
*** rpittau|afk is now known as rpittau07:31
zhangtongjianralonsoh, 07:32
zhangtongjianIs it reasonable to do some sleep times?07:32
ralonsohzhangtongjian, right, "is_lock_contended" will be set by the reply from the DB server07:34
ralonsohlet me check07:35
zhangtongjianok07:35
*** dmellado_ is now known as dmellado07:41
ralonsohzhangtongjian, what you have right now07:42
ralonsohhttps://review.opendev.org/c/openstack/neutron/+/800751/7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#33507:42
ralonsohshould work07:42
ralonsohright?07:42
ralonsohhas_lock is set when the lock is defined07:42
ralonsohis_lock_contended will be false if you are the first server requesting defining and requesting this lock07:42
zhangtongjianyes, if i set lock , and then the has_lock is false, if i sleep 1s , the has_lcok is true 07:45
ralonsohzhangtongjian, so this is why I said in https://review.opendev.org/c/openstack/neutron/+/800751/6/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#33607:47
ralonsohthat has_lock is not needed07:47
ralonsohuse only "is_lock_contended"07:47
ralonsohif false, no other server is requesting the lock07:47
ralonsohif true, there is another server accessing to the DB07:47
zhangtongjianyes 07:48
zhangtongjianbut if is_lock_contended is false,  must the current IDL get the lock? 07:49
ralonsohit will, same as in DBInconsistenciesPeriodics.has_lock07:50
ralonsoh    @property07:50
ralonsoh    def has_lock(self):07:50
ralonsoh        return not self._idl.is_lock_contended07:50
zhangtongjianso i think could this "DBInconsistenciesPeriodics.has_lock" be wrong?07:55
ralonsohwhy?07:56
zhangtongjianno other  server is requesting the lock, i am not sure if the  current IDL must has get the lock 07:58
ralonsohif no one has requested the lock07:59
ralonsoh"is_lock_contended" will be false07:59
zhangtongjianyes07:59
ralonsohwhen you check for "is_lock_contended" and other server is accessing to the DB, "is_lock_contended" will be True07:59
ralonsohthis is set directly by the DB server on the IDL instances07:59
zhangtongjiani have a question: what is the difference between the "has_lock" and "is_lock_contended"?08:01
zhangtongjianralonsoh, are you still there?08:15
ralonsohzhangtongjian, both parameters are set by the server08:15
ralonsohzhangtongjian, has_lock will tell you if you have the lock08:16
ralonsoh"is_lock_contended" will tell you if you can't get the lock08:16
ralonsohif "is_lock_contended" is False, then you can continue and access to the DB08:16
zhangtongjianso what method should use is right for me ?08:17
ralonsohyou should check only for "is_lock_contended"08:18
ralonsohif not idl.is_lock_contended: ...08:19
zhangtongjiananother a question: the set lock is asynchronously , and the "idl.is_lock_contended" can return false Immediately?08:22
zhangtongjianralonsoh, maybe i do some sleep times?08:24
ralonsohzhangtongjian, never user sleeps, in any case, active waits08:24
ralonsoh"idl.is_lock_contended" is False by default08:24
ralonsohcheck OVS code08:25
ralonsohhttps://github.com/openvswitch/ovs/blob/master/python/ovs/db/idl.py#L17108:25
zhangtongjianok, let me check 08:27
zhangtongjianyes, default is false08:28
opendevreviewRodolfo Alonso proposed openstack/neutron master: Remove ``ConfDriver`` code  https://review.opendev.org/c/openstack/neutron/+/79099908:50
opendevreviewRodolfo Alonso proposed openstack/neutron master: Add a privsep context only for link commands  https://review.opendev.org/c/openstack/neutron/+/80068609:44
opendevreviewMerged openstack/neutron-dynamic-routing stable/wallaby: Fix TypeError when formatting BGP IP address.  https://review.opendev.org/c/openstack/neutron-dynamic-routing/+/78632409:52
opendevreviewLajos Katona proposed openstack/networking-odl master: WIP: use payloads for PORT AFTER_UPDATE and SECURITY_GROUPS events  https://review.opendev.org/c/openstack/networking-odl/+/80061210:03
opendevreviewRodolfo Alonso proposed openstack/neutron master: [OVN][Placement] Drive binding by placement allocation  https://review.opendev.org/c/openstack/neutron/+/78647810:17
opendevreviewRodolfo Alonso proposed openstack/neutron master: Remove "_get_network_lock_id" compatibility method  https://review.opendev.org/c/openstack/neutron/+/80096710:58
opendevreviewLajos Katona proposed openstack/networking-odl master: WIP: use payloads for PORT AFTER_UPDATE and SECURITY_GROUPS events  https://review.opendev.org/c/openstack/networking-odl/+/80061211:24
opendevreviewChris MacNaughton proposed openstack/neutron stable/ussuri: Provide integer number to arping "-w" parameter  https://review.opendev.org/c/openstack/neutron/+/80086811:54
opendevreviewLajos Katona proposed openstack/networking-odl master: Use payloads for PORT SUBNET and SECURITY_GROUPS events  https://review.opendev.org/c/openstack/networking-odl/+/80061212:01
iceyhey ralonsoh thanks for the quick code review on that backport proposal :)12:02
ralonsohicey, yw12:02
opendevreviewMerged openstack/networking-ovn stable/train: [OVN] Fix ML2/OVN + Neutron DHCP agent use case  https://review.opendev.org/c/openstack/networking-ovn/+/80089612:20
opendevreviewLucas Alvares Gomes proposed openstack/neutron master: [OVN] Make external ports aware of network AZs  https://review.opendev.org/c/openstack/neutron/+/76255013:08
opendevreviewLucas Alvares Gomes proposed openstack/neutron master: [OVN] Document Network Availability Zones  https://review.opendev.org/c/openstack/neutron/+/78804013:08
pjakuszewJust wanted to confirm, but this value is expressed in seconds, right? https://opendev.org/openstack/neutron-vpnaas/src/branch/stable/rocky/neutron_vpnaas/services/vpn/device_drivers/ipsec.py#L58-L6013:20
pjakuszews/but//13:27
opendevreviewRodolfo Alonso proposed openstack/neutron master: Remove ``ConfDriver`` code  https://review.opendev.org/c/openstack/neutron/+/79099913:27
ygk_12345Is anyone familiar with routed networks ?13:27
ygk_12345I need some information regarding that13:27
ygk_12345What is exactly  multi-segment layer-3 network. In the context of routed  networks ?13:28
ygk_12345Is there such a thing as l3 layer segmention ?13:28
lajoskatonapjakuszew: Hi, after running through the code yes it's in seconds: https://opendev.org/openstack/oslo.service/src/branch/master/oslo_service/loopingcall.py#L11813:32
ralonsohygk_12345, did you check https://docs.openstack.org/neutron/pike/admin/config-routed-networks.html?13:34
ygk_12345I am looking to understand why we need segmentation at layer 3 when we can segment using vlans at layer 213:36
ralonsohygk_12345, you need to segment your L2 using VLAN13:37
ralonsohand the routing is done outside OpenStack13:37
pjakuszewlajoskatona: thanks, I guess it's good idea to increase that value if I have lots of VPN connections?13:37
ralonsohthat's the whole point of this feature13:37
lajoskatonapjakuszew: for that I don't have answer, I never used vpnaas...13:42
pjakuszewah ok13:42
pjakuszewI'm trying to debug this issue where I keep seeing following message in l3-agent log13:42
pjakuszewFunction 'neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.StrongSwanDriver.report_status' run outlasted interval by 12.27 sec13:42
pjakuszewI think that loopingcall.FixedIntervalLoopingCall is glitched somehow13:43
pjakuszewto be more specific, this looping call is in self.process_status_cache_check at IPsecDriver class13:44
pjakuszewI could just restart l3-agent, but I really want to avoid that because there are lots of routers on them and migrating them to another l3 nodes is something I always consider to be risky13:45
pjakuszewespecially in this situation where I'm not sure that L3 agent is functioning correctly at all three nodes I have13:45
pjakuszewI'm seeing that loopingcall message on two of them, last one does not spam it13:46
pjakuszewbecause of that stuck loopingcall, l3-agent keeps starting neutron-vpnaas-netns-wrapper (...) --cmd ipsec,status continuously13:47
pjakuszewanother way to go would be migrating only the routers that are hosting VPN connections, but that's something I consider to be risky too13:48
opendevreviewRodolfo Alonso proposed openstack/neutron master: Remove ``ConfDriver`` code  https://review.opendev.org/c/openstack/neutron/+/79099914:05
*** rpittau is now known as rpittau|afk14:08
opendevreviewPrzemyslaw Szczerbik proposed openstack/neutron master: ovs-agent: Report pkt processing info in heartbeat  https://review.opendev.org/c/openstack/neutron/+/80044414:08
opendevreviewPrzemyslaw Szczerbik proposed openstack/neutron master: Report CUSTOM_VNIC_TYPE_ traits on OVS agent RP  https://review.opendev.org/c/openstack/neutron/+/80044514:08
opendevreviewPrzemyslaw Szczerbik proposed openstack/neutron master: Report pkt processing capacity on OVS agent RP  https://review.opendev.org/c/openstack/neutron/+/80044614:09
opendevreviewPrzemyslaw Szczerbik proposed openstack/neutron master: Bump os-resource-classes lib to 1.1.0  https://review.opendev.org/c/openstack/neutron/+/80106614:09
opendevreviewRodolfo Alonso proposed openstack/neutron master: Import ABC classes from collection.abc  https://review.opendev.org/c/openstack/neutron/+/80106814:28
opendevreviewRodolfo Alonso proposed openstack/neutron master: Use explicit select condition in SQL query in "_port_filter_hook"  https://review.opendev.org/c/openstack/neutron/+/80107614:57
opendevreviewRodolfo Alonso proposed openstack/neutron master: Add a privsep context only for link commands  https://review.opendev.org/c/openstack/neutron/+/80068615:10
opendevreviewRodolfo Alonso proposed openstack/neutron master: [WIP] Remove ``ConfDriver`` code  https://review.opendev.org/c/openstack/neutron/+/79099915:22
opendevreviewRodolfo Alonso proposed openstack/neutron master: Import ABC classes from collection.abc  https://review.opendev.org/c/openstack/neutron/+/80106815:43
opendevreviewTakashi Kajinami proposed openstack/neutron-lib master: Replace deprecated import of ABCs from collections  https://review.opendev.org/c/openstack/neutron-lib/+/80108415:47
opendevreviewTakashi Kajinami proposed openstack/neutron-lib master: Replace deprecated import of ABCs from collections  https://review.opendev.org/c/openstack/neutron-lib/+/80108416:22
ygk_12345IDENTIFY16:31
opendevreviewMerged openstack/neutron stable/ussuri: Provide integer number to arping "-w" parameter  https://review.opendev.org/c/openstack/neutron/+/80086817:14
*** tbachman is now known as Guest108318:59
opendevreviewMerged openstack/neutron-tempest-plugin master: Enable tls-proxy support for test jobs  https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/79677819:05

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!