Tuesday, 2016-08-30

SridarKi will let u know if i see some other issue00:00
yushirothank you so much00:06
*** SridarK has quit IRC00:57
*** vishwanathj has quit IRC01:02
*** vishwanathj has joined #openstack-fwaas01:02
*** yamamoto has quit IRC01:15
*** yamamoto has joined #openstack-fwaas01:21
*** vishwanathj has quit IRC02:03
*** vishwanathj has joined #openstack-fwaas02:03
*** yamamoto has quit IRC02:05
*** vishwanathj has quit IRC02:55
*** vishwanathj has joined #openstack-fwaas02:55
*** vishwanathj has quit IRC03:04
*** vishwanathj has joined #openstack-fwaas03:04
*** yamamoto has joined #openstack-fwaas03:05
*** vishwanathj has quit IRC03:08
*** vishwanathj has joined #openstack-fwaas03:08
*** yamamoto has quit IRC03:10
*** vishwanathj is now known as vishwanathj_zzz03:19
*** SarathMekala has joined #openstack-fwaas03:19
*** _SarathMekala_ has joined #openstack-fwaas03:23
*** mickeys has quit IRC03:28
*** chandanc_ has joined #openstack-fwaas03:28
*** vishwanathj_zzz has quit IRC03:29
*** vishwanathj_zzz has joined #openstack-fwaas03:29
*** yamamoto has joined #openstack-fwaas03:39
*** yushiro is now known as yushiro_lunch03:43
*** vishwanathj_zzz has quit IRC03:44
*** vishwanathj_zzz has joined #openstack-fwaas03:44
*** yamamoto has quit IRC03:45
*** SridarK_ has joined #openstack-fwaas03:48
*** vishwanathj_zzz has quit IRC03:53
*** vishwanathj_zzz has joined #openstack-fwaas03:53
*** vishwanathj_zzz has quit IRC03:55
*** vishwanathj_zzz has joined #openstack-fwaas03:55
*** chandanc_ has quit IRC04:00
*** yamamoto has joined #openstack-fwaas04:04
*** yamamoto has quit IRC04:18
*** chandanc_ has joined #openstack-fwaas04:19
chandanc_Hello All04:19
SridarK_chandanc_: Hi04:24
chandanc_Hello SridarK_04:25
SridarK_chandanc_: quick check can u tell me the version of distutils and setuptools on ur setup04:26
chandanc_Can I pull the new PS and start testing ?04:26
chandanc_sure04:26
SridarK_chandanc_: yes i think u can04:26
SridarK_chandanc_: there is one other thing04:26
SridarK_was discussing with njohnston on the fwaas l3 ext patch04:27
chandanc_ubuntu@devstack4:~$ pip list|grep setup04:27
chandanc_setuptools (26.0.0)04:27
chandanc_sure04:28
*** yushiro_lunch is now known as yushiro04:28
SridarK_we may want to look to see if it is easy to call into the driver to clear all iptable rules for a particular port04:28
chandanc_ok, I am not have the context04:29
chandanc_but sure i can look at it04:29
SridarK_https://review.openstack.org/#/c/355576/16/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py L#23904:30
chandanc_distutils is the standard one in python 2.704:31
chandanc_ok04:31
SridarK_chandanc_: also if u have a few mins we can do a quick call04:31
SridarK_ok my setuptools is 26.1.004:32
chandanc_sure04:32
chandanc_SridarK_, which PS should this change be done on04:35
chandanc_the original l3 iptables driver is merged04:35
*** vishwanathj_zzz has quit IRC04:38
*** vishwanathj_zzz has joined #openstack-fwaas04:38
*** yamamoto has joined #openstack-fwaas04:40
*** vishwanathj_zzz has quit IRC04:47
*** vishwanathj_zzz has joined #openstack-fwaas04:47
*** vishwanathj_zzz has quit IRC04:50
*** vishwanathj_zzz has joined #openstack-fwaas04:50
*** yamamoto has quit IRC05:00
*** vishwanathj_zzz has quit IRC05:06
*** vishwanathj_zzz has joined #openstack-fwaas05:07
*** vishwanathj_zzz has quit IRC05:11
*** vishwanathj_zzz has joined #openstack-fwaas05:11
*** vishwanathj_zzz has quit IRC05:15
*** vishwanathj_zzz has joined #openstack-fwaas05:15
*** vishwanathj_zzz has quit IRC05:17
*** vishwanathj_zzz has joined #openstack-fwaas05:17
*** vishwanathj_zzz has quit IRC05:26
*** vishwanathj_zzz has joined #openstack-fwaas05:26
*** vishwanathj_zzz has quit IRC05:38
*** vishwanathj_zzz has joined #openstack-fwaas05:38
*** vishwanathj_zzz has quit IRC05:40
*** vishwanathj_zzz has joined #openstack-fwaas05:40
*** yamamoto has joined #openstack-fwaas05:41
*** _SarathMekala_ has quit IRC05:44
*** _SarathMekala_ has joined #openstack-fwaas05:44
*** SarathMekala_ has joined #openstack-fwaas05:44
*** SarathMekala has quit IRC05:47
*** yushiro has quit IRC06:40
*** chandanc_ has quit IRC06:51
*** chandanc_ has joined #openstack-fwaas06:57
*** yushiro has joined #openstack-fwaas07:07
*** mickeys has joined #openstack-fwaas07:59
*** chandanc_ has quit IRC08:02
*** mickeys has quit IRC08:04
*** chandanc_ has joined #openstack-fwaas08:31
*** yamamoto has quit IRC09:48
*** yamamoto has joined #openstack-fwaas10:42
*** yamamoto_ has joined #openstack-fwaas10:59
*** chandanc_ has quit IRC10:59
*** yamamoto has quit IRC11:02
*** _SarathMekala_ has quit IRC11:04
*** SarathMekala_ has quit IRC11:04
*** yamamoto_ has quit IRC11:08
*** yamamoto has joined #openstack-fwaas11:16
*** yamamoto has quit IRC11:17
*** yamamoto has joined #openstack-fwaas11:29
*** yamamoto has quit IRC11:33
*** yamamoto has joined #openstack-fwaas12:22
*** xdcc has joined #openstack-fwaas13:21
*** chandanc_ has joined #openstack-fwaas13:22
njohnstongood morning all13:40
chandanc_Hello njohnston13:41
njohnstonHow is it going, chandanc_?13:42
chandanc_njohnston, i could not get too much done today. Had some stuff at office13:43
njohnstonI understand. :-)13:43
chandanc_SridarK_, told me about the driver API for handling router port delete13:43
chandanc_was working a on that13:44
SridarK_hi all13:47
chandanc_One issue is that, the delete port is called in context of router delete, so it will be easy to get the router_info but difficult to get the firewall_group context13:47
chandanc_*router port delete13:47
SridarK_ok we will be in the context of the agent ext notification here13:48
SridarK_https://review.openstack.org/#/c/355576/16/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py L#23113:51
SridarK_njohnston: did u get a chance to look at my email i sent last night13:52
SridarK_i wanted to understand if we are getting a BEFORE_ & AFTER_ notification  - so we can glean the port_id13:53
chandanc_SridarK_, yes what i mean is the data that you get will be for a router update, but will have to figure out the firewall group for the port13:54
SridarK_chandanc_: since this is the port going away, if we find a redirect to the fw chain on this port - can we just clean that up13:56
SridarK_so wondering if this can be done without worrying abt fwg association13:56
chandanc_SridarK_, here is a sample of the test output of iptables I captured, http://paste.openstack.org/show/554078/13:58
chandanc_L6013:58
njohnstonSridarK_: Do you mean the one titled "Re: Testing the fwaas L3 extension"?13:58
SridarK_njohnston: yes13:59
SridarK_chandanc_: looking14:00
chandanc_the target name is based on fwid14:01
SridarK_chandanc_: qr-e2d7c3b0-49 - this is the port14:04
chandanc_ya14:04
chandanc_neutron-l3-agent-iv4adff2b8714:04
SridarK_and if this port is going away can we use that to knock off that rule14:04
SridarK_that will send the pkt into the fwg chain14:05
SridarK_that will be the only clean up needed14:05
mfranc213morning everyone14:05
chandanc_actually the API for rule delete seems to require the full definition14:06
chandanc_still looking into it14:06
SridarK_chandanc_: yes i think we may not be able to piggy back on the rule delete14:07
SridarK_we will need an api where given the port-id going away - the driver can go thru the rules and knock off any entry corresponding to the port14:08
SridarK_irrespective of the fwg14:08
chandanc_let me look into it14:10
SridarK_chandanc_: thx14:11
SridarK_mfranc213: GM14:14
mfranc213good morning SridarK_14:14
mfranc213you are up early; you were up late.14:15
SridarK_fears of FFE :-)14:15
mfranc213understandable!14:15
SridarK_looks like we may have until Sep114:16
SridarK_thankfully Aug has 31 days :-)14:16
njohnstonindeed; I am on the neutron team meeting as well (#openstack-meeting for those who are interested)14:16
mfranc213SridarK_ what if it were February!!?14:18
SridarK_:-)14:18
njohnstonthen we'd have tons of days before Sept 1st.14:27
njohnston:-P14:27
SridarK_oh yes, where is that time machine when we need it14:29
*** chandanc_ is now known as chandanc_afk14:32
mfranc213time machine as a service14:34
SridarK_yushiro: hi - pls let us know once u are comfortable on the CLI PS - can review that and hopefully have it ready for core reviewers by tomorrow14:36
SridarK_or late evening US time14:36
yushiroSridarK_: Thanks for your information.  I update soon..14:39
yushiroSridarK_: However, UT hasn't finished yet.14:39
mfranc213thank you yushiro.  i'll review that too once it's ready.14:41
yushiromfranc213: thank you too :)14:41
*** SridarK_ has quit IRC14:41
*** diogogmt has joined #openstack-fwaas14:45
njohnstonxgerman: Do you have the ability to edit the 'implementation' field in https://blueprints.launchpad.net/neutron/+spec/fwaas-api-2.0 perhaps?15:01
xgermanlet me check15:02
xgermanyes, I can15:02
njohnstonGreat!  Perhaps 'good progress' is a better fit than 'deferred' at this point15:02
xgermanchanged it15:02
njohnstonthanks!15:03
xgermananytime15:03
*** diogogmt has quit IRC15:06
*** diogogmt has joined #openstack-fwaas15:08
*** chandanc_afk has quit IRC15:15
*** mickeys has joined #openstack-fwaas15:32
yushiroHi, I updated CLI PS but please wait 1 minutes!15:34
yushiroI forgot to fix pep8.15:34
mfranc213:)15:35
mfranc213looking now.  thank you yushiro!15:36
yushiromfranc213: you're welcome.  I'll go home now :)15:37
yushiroI'm sorry for late.  See you tomorrow's IRC meeting :)15:37
yushirobye15:37
*** yushiro has quit IRC15:39
*** vishwanathj_zzz is now known as vishwanathj15:56
*** chandanc_afk has joined #openstack-fwaas16:06
*** chandanc_afk is now known as chandanc_16:09
*** SridarK_ has joined #openstack-fwaas16:11
*** yamamoto has quit IRC16:15
njohnstonhttps://github.com/openstack/neutron/blob/master/neutron/agent/l3/router_info.py#L490-L50216:27
njohnstonlunch; biab16:29
*** vishwanathj_ has joined #openstack-fwaas16:44
*** diogogmt has quit IRC16:52
*** diogogmt has joined #openstack-fwaas17:07
*** SridarK_ has quit IRC17:11
*** yamamoto has joined #openstack-fwaas17:16
*** yamamoto has quit IRC17:22
chandanc_njohnston, i am getting the loading error17:32
chandanc_2016-08-30 16:20:30.082 ERROR stevedore.extension [req-efb6c939-46e0-48de-90c5-fdb3f4eb911e None None] Could not load 'fwaas': object.__init__() takes no parameters17:32
njohnstonshouldn't it be trying to load fwaasv2?17:33
chandanc_ya17:33
njohnstonactually, not even that, it should be trying to load 'firewall_v2' looking at setup.cfg17:35
njohnstonI am looking for where that 'fwaas' string is coming from17:35
chandanc_oh ok, sorry i dint catch you first17:36
mfranc213chandanc_ could you post the entire traceback?17:36
chandanc_i dont get a traceback, just that in the log file17:36
njohnstonhmm17:37
mfranc213what precedes that in the log file?17:38
*** chandanc__ has joined #openstack-fwaas17:40
*** chandanc_ has quit IRC17:40
*** xdcc has quit IRC17:40
mfranc213chandanc_ and chandanc__ : ) also, which log file is that?17:42
chandanc__tail -f /opt/stack/logs/q-l3.log |grep -i extension17:43
chandanc__2016-08-30 17:25:36.965 ERROR stevedore.extension [req-b99143be-d621-4fed-9f04-09d28a3dbd36 None None] Could not load 'firewall_v2': object.__init__() takes no parameters17:43
chandanc__2016-08-30 17:25:36.965 INFO neutron.agent.agent_extension17:43
chandanc__sorry njohnston , the fwaas was due to my env17:43
njohnstonok17:44
chandanc__i think it is due to the host=host parameter we discussed yday17:44
njohnstonthe one that we removed?17:45
mfranc213i think you're right chandanc__17:46
mfranc213that one went back and forth, and i had to add it in to get my UTs to work.17:46
chandanc__yes looks like its still there17:46
chandanc__oh ok17:46
mfranc213something about my env was different17:46
mfranc213can you remove it locally just to verify that that in fact is the source of the trace you're getting?17:47
chandanc__ok17:47
mfranc213thank you.17:47
mfranc213(and sorry.)17:47
chandanc__no probs17:48
chandanc__2016-08-30 17:30:51.783 CRITICAL neutron [req-f981493a-2118-4edd-a9a3-aa30c2b2f673 None None] AttributeError: 'L3WithFWaaS' object has no attribute '_register_rpc_consumers'17:49
mfranc213thinking17:49
njohnstonOK, that may be a stevedore thing since I don't see _register_rpc_customers in the fwaas repo at all.17:50
njohnstonnor in the neutron repo17:51
mfranc213hmmm17:51
njohnstonlet's add this to FWaaSL3AgentExtension:17:52
njohnston    def _register_rpc_customers(self):17:52
njohnston        pass17:52
njohnstonand see what happens17:52
*** SridarK_ has joined #openstack-fwaas17:52
mfranc213https://github.com/openstack/neutron/blob/master/neutron/agent/l2/extensions/qos.py#L20217:54
mfranc213this one: https://github.com/openstack/neutron/blob/master/neutron/agent/l2/extensions/qos.py#L21017:54
njohnstonI didn't think we would be loading anything in L2 at this point, would we?17:55
mfranc213no, sorry, my point is that we need to add a _register_rpc_consumers method in the fwaas agent extension.17:55
njohnstonSo it seems, though I don't see why17:56
chandanc__diff --git a/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py b/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_a17:56
chandanc__index 4556e6f..640a3f2 10064417:56
chandanc__--- a/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py17:56
chandanc__+++ b/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py17:56
chandanc__@@ -82,6 +82,9 @@ class FWaaSL3AgentExtension(l3_agent_extension.L3AgentCoreResourceExtension):17:56
chandanc__         self.agent_api = agent_api17:56
chandanc__         self.fwaas_driver.consume_api(self.agent_api)17:56
chandanc__17:56
chandanc__+    def _register_rpc_consumers(self, connection):17:56
chandanc__+        pass17:56
chandanc__+17:56
chandanc__     def __init__(self, host, conf):17:56
chandanc__         LOG.debug("Initializing firewall group agent")17:56
chandanc__         self.agent_api = None17:56
chandanc__@@ -111,7 +114,8 @@ class FWaaSL3AgentExtension(l3_agent_extension.L3AgentCoreResourceExtension):17:56
chandanc__         self.services_sync_needed = False17:56
chandanc__         self.fwplugin_rpc = FWaaSL3PluginApi(f_const.FIREWALL_PLUGIN,17:56
chandanc__                                              host)17:57
chandanc__-        super(FWaaSL3AgentExtension, self).__init__(host=host)17:57
chandanc__+        #super(FWaaSL3AgentExtension, self).__init__(host=host)17:57
chandanc__+        super(FWaaSL3AgentExtension, self).__init__()17:57
chandanc__17:57
chandanc__with this in i am getting the following error17:57
chandanc__error17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent Traceback (most recent call last):17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 498, in _process_router_update17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent     self._process_router_if_compatible(router)17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 435, in _process_router_if_compatible17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent     self._process_updated_router(router)17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 452, in _process_updated_router17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent     self.l3_ext_manager.update_router(self.context, router)17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/l3_agent_extensions_manager.py", line 54, in update_router17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent     extension.obj.update_router(context, data)17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron-fwaas/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py", line 275, in update_router17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent     updated_router.router['id'])17:57
chandanc__2016-08-30 17:38:06.042 TRACE neutron.agent.l3.agent AttributeError: 'dict' object has no attribute 'router'17:57
mfranc213the _register_rpc_consumers method was removed from that changeset somewhere along the way: https://review.openstack.org/#/c/355576/4..18/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py17:59
mfranc213@11417:59
mfranc213chandanc__ would you be able to past the git diff and the traceback in a pastebin?17:59
chandanc__http://paste.openstack.org/show/564876/18:01
njohnstonThanks chandanc__, re-pull 355576 and give it another try; I incorporated your edits.18:01
chandanc__njohnston, holdon i have some more18:02
njohnstonok18:02
mfranc213thank you njohnston.18:03
mfranc213njohnston: do your UTs still work?18:03
njohnstonmfranc213: Running them now, they take their sweet time18:03
mfranc213oh boy yeah18:04
chandanc__http://paste.openstack.org/show/564877/18:05
chandanc__with this i get the following error18:05
chandanc__error18:05
chandanc__2016-08-30 17:45:50.851 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v2 AttributeError: 'L3AgentExtensionAPI' object has no attribute 'router_in_ns'18:05
njohnstondoes your neutron have the most recent patchset of https://review.openstack.org/35750318:06
chandanc__I am not sure if all these changes are compatible with the RPC and ext APIs18:06
chandanc__let me check18:07
chandanc__hmm looks like i have a older version of that18:11
mfranc213so many moving parts :(18:12
chandanc__sorry for that18:12
chandanc__trying to pull it18:12
mfranc213no apologies necessary!! you are doing the heavy lifting for us now.18:13
SridarK_+118:13
chandanc__:) thanks18:13
mfranc213fyi we know we'll have at least one more PS for the v2 l3 agent extension fixing an issue with an edge case that i just saw and talked to nate about.  this won't affect current testing though.18:18
njohnstonchandanc__: I also just updated https://review.openstack.org/355576 with a minor fix18:20
SridarK_njohnston:, mfranc213: do we also need to refactor to using a different rpc topic - we talked some abt this18:21
njohnstonyes.  question is, should that be a part of this patch?18:21
mfranc213njohnston: i still believe that self.fwaas_driver.consume_api(self.agent_api) must be there, just only if fwaas is enabled.18:22
njohnstonbut the driver doesn't use the agent_api at all18:22
mfranc213yes, but that's THIS driver.18:22
mfranc213i think this is an abc abstract method that the driver must implement even if just to pass?  can't remember actually.18:23
njohnstonif in the future we have a driver that needs it then we'll solve that issue at that time18:23
SridarK_not sure on that, if it is just a change on the topic we can pick this up18:23
mfranc213njohnston: this is technical debt we can easily avoid though.18:23
njohnstonSridarK_: Let's make it a separate change - we don't want to confuse resolution of this loading issue18:24
SridarK_njohnston: that is fine18:24
*** chandanc_ has joined #openstack-fwaas18:24
SridarK_i am for getting this basic integration done - so agreed18:25
mfranc213well i see that consume_api i see was removed from the driver also somewhere along the way.  i do think that this should be an abc abstract class18:25
mfranc213but it is the 11th hour.18:25
njohnstonmfranc213: I think it is creating technical debt if we leave it in.  We don't know, really, what the requirements of a future driver will be.  We might imagine we do, but we don't.  So we would be leaving in code that is currently useless and may always be so, which to me is definitely technical debt.  Let's cross that bridge when we get to it.18:25
SridarK_so now the plugin - agent will use the current rpc topic18:25
mfranc213i disagree but let's move along :)18:26
*** chandanc__ has quit IRC18:26
njohnstonSridarK_: Also, if we can get in a topic change before the cutoff and feel sure that it works, so much the better.  But if not, then it's not the end of the world. :-)18:26
SridarK_njohnston: yes - i want to be able to test that well - so lets get this done first18:27
mfranc213njohnston: with the latest PS, my UTs no longer trace.  thank you!18:29
njohnstonSure thing!  I have a TODO left in there to figure out why host is a required argument, but that is a Topic For Further Student Research, as my secondary school math teacher would say.18:30
*** mickeys has quit IRC18:32
njohnstonHow is it going chandanc_?18:33
*** chandanc__ has joined #openstack-fwaas18:33
*** chandanc_ has quit IRC18:36
*** chandanc_ has joined #openstack-fwaas18:37
*** chandanc__ has quit IRC18:38
chandanc_njohnston, mfranc213 : i am still getting similar errors18:39
chandanc_2016-08-30 18:20:56.835 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v2   File "/opt/stack/neutron-fwaas/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py", line 258, in add_router18:39
chandanc_2016-08-30 18:20:56.835 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v2     self._process_router_update(new_router)18:39
chandanc_2016-08-30 18:20:56.835 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v2   File "/opt/stack/neutron-fwaas/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py", line 236, in _process_router_update18:39
chandanc_2016-08-30 18:20:56.835 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v2     ctx = context.Context('', updated_router.router['tenant_id'])18:39
chandanc_2016-08-30 18:20:56.835 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v2 AttributeError: 'dict' object has no attribute 'router'18:39
chandanc_2016-08-30 18:20:56.835 TRACE neutron_fwaas.services.firewall.agents.l3reference.firewall_l3_agent_v218:39
njohnstonooh, can you put that in a paste?18:40
njohnstonhard to read in my IRC client18:40
chandanc_sure18:40
chandanc_http://paste.openstack.org/show/564880/18:40
chandanc_basically dict/object issue18:41
mfranc213looking now.  thank you chandanc_18:41
mfranc213is that the entirety of the trace?18:41
mfranc213usually you get more18:41
chandanc_here is one more change that was different18:41
chandanc_CC229         #if router_id not in self.agent_api.router_in_ns(router_id):18:41
chandanc_  230         if not self.agent_api.router_in_ns(router_id):18:41
mfranc213yes, the uncommented line is correct.  njohnston: ^^ (that is my fault and nate will be the one fixing it!)18:43
mfranc213looking further at the trace back now.18:43
mfranc213nvm don't need more of the traceback, chandanc_18:44
chandanc_i think you are getting a dict for the router arg18:44
chandanc_sure18:44
njohnstonchandanc_: Here's the thing - your error occurs at line 236, where `updated_router.router['tenant_id']` is referenced.18:45
mfranc213njohnston: i find this traceback strange.  why wouldn't line 229 have traced?18:45
njohnstonthat is the question I was just about to ask! :-D18:46
mfranc213something is goofy18:46
njohnstonlines 227-229 should have traced18:46
njohnston229 is:         router_id = updated_router.router['id']18:46
mfranc213yep18:46
mfranc213and there's no conditional.  it's funky!18:46
chandanc_ 227                   updated_router['id'])18:47
chandanc_  228         router_id = updated_router['id']18:47
chandanc_CC229         #if router_id not in self.agent_api.router_in_ns(router_id):18:47
chandanc_  230         if not self.agent_api.router_in_ns(router_id):18:47
mfranc213hmmm18:48
mfranc213your is different from ours18:48
njohnstonchandanc_: OK, so your code is different from outs18:48
chandanc_i would have corrected during the local changes18:48
njohnstonso let's shift to just doing a straight dict here, we can adjust the UTs later18:48
mfranc213yeah, but njohnston, do you see how to fix now?18:48
mfranc213yes njohnston18:49
mfranc213you still have the baton, right?18:49
njohnstonyes mfranc21318:49
mfranc213groovy18:49
njohnstonand line 240 becomes this, right?         for port in updated_router['internal_ports']:18:49
mfranc213chandanc_ do you want to paste a git diff?18:49
mfranc213yes njohnston18:50
chandanc_sure18:50
mfranc213njohnston you'll see a few occurrences of update_router.router18:51
njohnstonhttp://paste.openstack.org/show/564882/18:51
mfranc213but also njohnston you'll need to fix line 26118:51
*** mestery has quit IRC18:52
chandanc_http://paste.openstack.org/show/564883/18:52
njohnstonand line 15318:52
mfranc213njohnston, not sure yet about 153... thinking18:53
mfranc213still not sure, actually.18:53
njohnstonIf that data structure doesn't exist, I would think it never existed18:53
mfranc213think your prob right, just not sure.18:54
mfranc213but i'm good with changing that.  we can change it back if needed :)18:54
njohnstonopenstackgerrit Nate Johnston proposed openstack/neutron-fwaas: FWaaS v2 utilize L3 Agent Extension framework  https://review.openstack.org/35557618:55
mfranc213this is the ultimate in pair programming! :)18:56
*** mestery has joined #openstack-fwaas18:57
mfranc213and it's not even pair programming!  it's triplet programming!18:58
*** chandanc__ has joined #openstack-fwaas18:58
mfranc213njohnston: i'm running another UT and then am going to check out that line 153 thing.  i'm sure you're right though.18:59
*** chandanc_ has quit IRC19:00
mfranc213UTs check out.19:00
SridarK_so now we are getting a router_info, as per the companion change in neutron19:00
SridarK_^^^ single router_info corresponding to the router19:00
njohnstonexcellent!19:01
mfranc213sweet!19:01
mfranc213njohnston: i think we need to revert @153.  check it out: https://review.openstack.org/#/c/357503/16/neutron/agent/l3/l3_agent_extension_api.py19:04
mfranc213am i getting that right?19:04
mfranc213the line in the link is @5019:04
njohnstonhmm, yes, it seems that is ripe for reversion19:05
mfranc213so, to clarify, i believe that because of https://review.openstack.org/#/c/357503/16/neutron/agent/l3/l3_agent_extension_api.py@50, we need to revert https://review.openstack.org/#/c/355576/21/neutron_fwaas/services/firewall/agents/l3reference/firewall_l3_agent_v2.py@15319:05
njohnstonI have the change staged for the next PS19:06
chandanc__I will logout now, will catch up in the morning19:06
mfranc213thank you chandanc__19:06
mfranc213SridarK_ are you still able to test?19:06
chandanc__no probs19:06
chandanc__awaiting ext patch update, will catch up in the morning19:07
mfranc213thank you so much chandanc__  i hope you have a good night.19:07
SridarK_mfranc213: let me pick this up19:07
mfranc213thank you SridarK_19:08
SridarK_chandanc__: thx19:08
SridarK_so we will take the latest PS19:08
mfranc213let's let njohnston make the @153 fix first19:08
SridarK_chandanc__: b4 u sign off19:08
mfranc213since we know that needs to be done.19:08
SridarK_ok good19:08
njohnstondone19:08
SridarK_chandanc__: did u get to the point with a l3 agent restart things were good19:09
chandanc__the patch loads but needs some more code changes, njohnston, mfranc213 are updating the patch19:09
SridarK_chandanc__: ok19:10
SridarK_i pulling in the latest PS19:11
chandanc__ok19:11
chandanc__drop me a mail, i will take it up in the morning19:11
SridarK_ok chandanc__ GN19:12
chandanc__GN SridarK_19:13
njohnstonthanks much chandanc__!!19:15
*** vishwanathj_ has quit IRC19:16
*** chandanc__ has quit IRC19:17
SridarK_ok now my devstack misbehaves19:25
SridarK_restacking19:25
*** mickeys has joined #openstack-fwaas19:33
*** mickeys has quit IRC19:39
*** mickeys has joined #openstack-fwaas20:36
*** mickeys has quit IRC20:41
njohnstonSridarK_: How's it going?20:45
*** mickeys has joined #openstack-fwaas20:46
njohnstonIn my devstack I am back to the 'ImportError: Plugin 'firewall_v2' not found.' error that Chandan worked around.  I figured it out before, but it's been a while and I have forgotten what I did.20:54
mfranc213SridarK_: i am heading out soon but will be checking in periodically.20:58
SridarK_mfranc213: njohnston: finally got my devstack up with the patches20:59
SridarK_ DEBUG neutron.wsgi [-] agent.extensions               = ['fwaas'] from (pid=30466) log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:262620:59
mfranc213that is most excellent20:59
njohnstonexcellent!  I am about to relocate home, but I will hop on from there21:00
SridarK_so i think it is loaded21:00
SridarK_let me try the curl cmds21:00
mfranc213i am available too sridar, throughout the night.21:00
mfranc213well, the evening :)21:00
SridarK_mfranc213: ok :-)21:00
SridarK_yes lets hash this out21:00
SridarK_and have it up by night21:00
SridarK_thx21:01
mfranc213i'm leaving to bring my son to the orthodontist in 1/2 hour but will be back i think by 4 pm your time.  SridarK_ did you get my telephone number?21:02
SridarK_mfranc213: ok got it many thx21:27
*** diogogmt has quit IRC22:20
*** diogogmt has joined #openstack-fwaas22:32
SridarK_njohnston: , mfranc213: i think we will need to look into the rpc init23:03
SridarK_mfranc213: http://paste.openstack.org/show/564918/23:38
*** yushiro has joined #openstack-fwaas23:41
mfranc213ping Sridark_23:48
SridarK_mfranc213: hi23:51
mfranc213hi there.23:52
SridarK_mfranc213: pls go ahead23:52
mfranc213so it may seem obvious, but can you tell me exactly what you were doing: a curl call, etc.?23:52
SridarK_oh yes23:53
mfranc213can you send me the curl call you were making?  i just need to situate myself.23:53
SridarK_i did a curl call to create a fwg with a port23:53
SridarK_yes sure23:53
mfranc213cause that command is everywhere, plugin, etc.23:53
SridarK_curl -X POST -H "x-auth-token:$TOKEN" -H "Content-type: application/json" -d '{"firewall_group": {"name": "fwaas-test", "ports": ["abac7784-30b0-4726-98a2-d10914815f76"], "ingress_firewall_policy_id": "7eb74342-2628-465a-8552-415ec0359f8e", "egress_firewall_policy_id": "7eb74342-2628-465a-8552-415ec0359f8e"}}' 172.29.87.168:9696/v2.0/fwaas/firewall_groups23:53
SridarK_yes i verified that the db entries were created correctly23:54
mfranc213aha that is good to know.23:54
mfranc213have you been able to do any other actions: update or delete?23:54
mfranc213do all creates fail?23:54
SridarK_ah, the rules and policies do not message to the agent23:55
SridarK_so for our integ test - we really need to use the create fwg23:55
SridarK_my initial thought was that agent was not loaded properly23:56
mfranc213yeah, you said in text that it was, and that you thought it was a wiring issue.23:56
mfranc213can you put the breakpoint lower down in the stack?23:57
SridarK_but with it is getting loaded - as verified with a breakpoint in __init__23:57
SridarK_ok in the rpc - ok let me look at that23:57
SridarK_For the plugin to Agent we use the L3Agent topic23:58
SridarK_so with the switch to the L3 Agent ext framework - we will need to see if there is something more needed - may be u can look at that23:59
SridarK_let me see if i can dig up some info from rpc23:59
mfranc213yes, looking at that now23:59

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