Wednesday, 2017-08-23

*** yamamoto_ has joined #openstack-fwaas00:15
*** yamamoto_ has quit IRC00:20
*** yamamoto_ has joined #openstack-fwaas01:16
*** yamamoto_ has quit IRC01:23
*** TuanVu has joined #openstack-fwaas01:32
*** TuanVu has quit IRC02:15
*** yamamoto has joined #openstack-fwaas02:19
*** yamamoto has quit IRC02:25
*** hoangcx has quit IRC03:09
openstackgerritMerged openstack/neutron-fwaas master: FW rule applied incorrectly if port specified is a range  https://review.openstack.org/44338503:16
*** hoangcx has joined #openstack-fwaas03:21
*** yamamoto has joined #openstack-fwaas03:21
*** yamamoto has quit IRC03:27
*** SarathMekala has joined #openstack-fwaas03:48
reedipo/03:58
*** yamamoto has joined #openstack-fwaas03:59
openstackgerritYushiro FURUKAWA proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584004:01
SarathMekalathanks yushiro04:25
yushiroSarathMekala, NP. but error with pep8 ;( sorry this is my mistake.04:26
yushiroSarathMekala, As I sent e-mail for you, I still cannot open 'create firewall group' and 'add policy' window.04:28
yushiroSarathMekala, How about you?04:28
*** yamamoto has quit IRC04:34
*** yamamoto has joined #openstack-fwaas04:35
*** yamamoto has quit IRC04:38
openstackgerritYushiro FURUKAWA proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584004:44
*** SridarK has joined #openstack-fwaas04:51
SridarKyushiro: hi04:51
yushiroSridarK, hi04:51
SridarKthx for the revised PS04:52
SridarKi just tried it quickly04:52
yushiroSridarK, NP :)04:52
SridarKsame issue with create FWG04:52
SarathMekalayushiro, I have a cust demo from 10:30 to 11:30. I will sync up with you after that04:52
SridarKmay be i made some mistake04:52
SridarKSarathMekala: no worries04:52
SridarKSarathMekala: thx for the diff04:52
yushiroSarathMekala, OK, I see. thank you.04:52
SarathMekalanp SridarK04:52
SridarKSarathMekala: pls focus on ur Customer demo - ignore us for a while - then if u can work thru with yushiro - i will check again in my morn04:53
SridarKi will sync with yushiro now04:53
SarathMekalasure SridarK04:54
SarathMekalathanks yushiro for pitchin in04:54
yushiroSarathMekala, OK. :)04:55
yushiroSridarK, now, I found 1 issue regarding create/update firewall rule.  It sends all of attributes even if we don't change from initial value.04:55
yushiroIt has already been fixed in case of firewall group and firewall policy.04:56
*** sarathmekala_ has joined #openstack-fwaas05:00
SridarKyushiro: i tested Rule insert and delete on Policy05:00
SridarKthat looks good05:00
SridarKyushiro: But Create FWG does not work for me05:00
SridarKPreviously insert Rule on Policy had the issue with duplicates05:01
SridarKso that is definitely fixed05:01
*** sarathmekala__ has joined #openstack-fwaas05:01
openstackgerritReedip proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584005:01
yushiroSridarK, oops yes, you're right.  firewall group is only success when 'UPDATE'.05:01
*** njohnston has quit IRC05:02
*** afranc has quit IRC05:02
reedipModified the devstack RST a bit05:02
reedipand uploaded my initial comments05:02
*** SarathMekala has quit IRC05:02
yushirothanks05:03
*** sarathmekala_ has quit IRC05:04
SridarKreedip: ok i am not pulling that now since it is RST only05:04
yushiroSridarK, Could you tell me what is 'duplicate' ?  Insert rule list?05:04
*** afranc has joined #openstack-fwaas05:04
*** njohnston has joined #openstack-fwaas05:04
reedipNP :)05:05
SridarKyushiro: when i tried to do an insert Rule in Policy tab - i would get the drop box displaying Rule1Rule1 instead of Rule105:05
SridarKthat is fixed05:05
yushiroSridarK, Oh, OK.05:05
SridarKyushiro: on update FWG05:06
SridarKon the Edit Dropdown i only see option for Ports05:07
*** yushiro has quit IRC05:12
*** yushiro has joined #openstack-fwaas05:18
yushiroSridarK, sorry I was suddenly logged out from IRC.05:19
reedip<SridarK> yushiro: on update FWG05:25
reedip on the Edit Dropdown i only see option for Ports05:25
reedip^^ that was the log05:25
yushiroreedip, thanks05:25
yushiroSridarK, OK, so 'Edit Firewall Group' button.05:26
yushiroSridarK, I can see 'name', 'description', 'ingress polich', 'egress policy',  'enableAdmin State' and 'shared'05:29
SridarKyushiro: hmm05:29
yushiroIf I click 'Add port' button, I can see only 'Ports'.05:30
SridarKyushiro: yes thx05:30
SridarKthat works05:30
SridarKmy bad05:30
yushiroNP05:30
SridarKI rarely use dashboard :-)05:31
*** amotoki has joined #openstack-fwaas05:34
*** yamamoto has joined #openstack-fwaas05:38
SridarKyushiro: some minor issues with FWG policy update (removing has an issue)05:41
yushiroSridarK, sure.05:43
yushiroI and amotoki commented https://review.openstack.org/#/c/475840/17/neutron_fwaas_dashboard/dashboards/project/firewalls_v2/forms.py@18105:44
yushirothis includes a bug.05:44
*** yamamoto has quit IRC05:44
amotokiyushiro: SridarK: who is now taking care of it?05:46
yushiroI'm fixing !!05:46
amotokifwaas dahboard patch set 20 from reedip looks noisy... it is completely unrelated..05:46
reedip??05:46
amotokireedip: you changed devstack/README.rst05:47
yushiroreedip, I think we should update only critical bug fix in this term.05:47
reedipyushiro , amotoki : Okay , sorry05:47
amotokireedip: in addition, your change is completely unnecessary from POV of documentation too.05:48
amotokireedip: no need to change from neutron to Neutron (the docs team guidelines suggests 'neutron')05:48
reedipamotoki : ok, didnt know that05:48
SridarKamotoki: also sarathmekala__ should be back online after his presentation in a bit05:48
amotokireedip: in addition the line length becomes too long. it should be <80chars05:48
reedipok05:49
amotokiso i said the change is noisy from these three reasons05:49
amotokiat now, yushiro is the owner of improving it05:49
SridarKamotoki: yes, i think with yushiro's fix for Create - the Patch is in decent shape - there could still be issues with more testing but basic workflows shd be ok05:50
amotokiyushiro: do you have any topic I can help?05:51
SridarKwe can evaluate more for a decision05:51
reedipamotoki : thanks, and sorry for the change05:51
*** sarathmekala__ has quit IRC05:57
*** sarathmekala__ has joined #openstack-fwaas05:57
sarathmekala__hi team06:01
sarathmekala__I am back from my meeting.. went through the discussion06:02
yushiroamotoki, I need your help  why we clicked 'Create firewall group' or 'Add policy' and not displayed...06:02
sarathmekala__yushiro, are you getting an error when you click on create firewall group?06:03
sarathmekala__and create policy?06:04
yushirosarathmekala__, No error at any log ( apache, q-xxx )06:04
yushirosarathmekala__, keep on looping "Loading...."06:04
sarathmekala__the UI should pop up an error message06:04
sarathmekala__ok.. then its stuck some where.. I will take a look06:05
SridarKsarathmekala__: yes same thing as yushiro mentions observed by me06:07
amotokiyushiro: ack. I am trying to run fwaas-v2 in my devstack. This need to take some time to switch from fwaas v1.06:07
yushiroamotoki, thank you so much.06:07
SridarKsarathmekala__: quick summary: other things looking much better than PS1706:08
sarathmekala__cool :)06:08
amotokiyushiro: re "Create firewall group" , I see two "addfirewallgroup" entries in urls.py.06:12
amotokihttps://review.openstack.org/#/c/475840/20/neutron_fwaas_dashboard/dashboards/project/firewalls_v2/urls.py06:12
amotokiL.30 and L.3206:12
amotokiI think create firewall group does not require a policy ID as a parameter, so L.32 looks what we need.06:12
amotokiyushiro: thought?06:13
yushiroamotoki,  yes.06:13
yushiroah ,sorry  I leave my desk now.  will turn back.06:13
amotokicould you test after removing L.30-31 ?06:13
*** yushiro is now known as yushiro_afk06:13
yushiro_afknot tested!06:13
*** vishwana_ has joined #openstack-fwaas06:15
*** vishwanathj has quit IRC06:18
reediphow do we deploy the Fwaas Dashboard06:19
reedipI checked yushiro_afk06:20
reediphis email , but I couldnt get it to work06:21
sarathmekala__follow the steps in yushiros email/etherpad06:22
reedipChecking06:22
sarathmekala__ok.. am looking as well06:23
reedipSteps arent there06:23
yushiro_afkhmm, amotoki , not changed  even if I deleted L30-3106:25
sarathmekala__steps:06:26
sarathmekala__ $ git clone https://github.com/openstack/neutron-fwaas-dashboard06:26
amotokiso there still seems another cause06:26
sarathmekala__ $ cd neutron-fwaas-dashboard06:26
sarathmekala__"git review -d 475840"06:26
sarathmekala__ sudo pip install .06:26
reedipgot it :)06:26
reedipPutting the same on the etherpad06:27
sarathmekala__cp neutron_fwaas_dashboard/enabled/_1461_project_firewalls_v2_panel.py /opt/stack/horizon/openstack_dashboard/local/enabled/06:27
sarathmekala__ sudo service apache2 restart06:27
reedipsarathmekala__ : Ok, the FirewallGroup does the LOADING bit with chrome. Thats expected, right?06:29
sarathmekala__is it showing you the FWG creation form?06:29
sarathmekala__its a workflow.. it has two steps06:29
*** eezhova has joined #openstack-fwaas06:30
sarathmekala__Step1 : create FWG + add ingress/egress policy06:30
sarathmekala__Step2: add the ports06:30
sarathmekala__then submit06:30
sarathmekala__are you able to test till here06:30
reedipThis is what I am getting06:31
sarathmekala__oops.. can you send the screenshot again06:31
reedipThat is from Chrome06:31
SridarKreedip: create fwg has an issue06:31
reedipSridarK : The Loading is stuck, right?06:32
yushiro_afk'Create firewall group' button jumps http://localhost:20080/dashboard/project/firewalls_v2/addfirewallgroup06:32
SridarKreedip: yes06:32
SridarKcreate a fwg from osc06:32
SridarKthen u can test the update operation06:32
SridarKthat is what i did06:32
reedipSridarK : ok, updating fwg-6 then06:32
reedipwith this information06:32
sarathmekala__SridarK, are you able to see the workflow forms06:33
sarathmekala__or nothing happens when you click 'Create FWG'06:34
reedipsarathmekala__ : nothing happens06:34
SridarKsarathmekala__: yes nothing happens06:34
sarathmekala__ok06:35
SridarKjust spinning and stuck as yushiro_afk also mentioned06:35
reedipOne more thing ( minor ) sarathmekala__ , SridarK : There is no HELP message in Create FirewallRules Form, but there are help strings in Update Firewall Rules.06:35
reedipSridarK : I am facing the same issue of FWG in FWP. Are you also facing that issue?06:40
*** yamamoto has joined #openstack-fwaas06:40
*** yamamoto has quit IRC06:46
SridarKreedip: yes and this is what folks are debugging06:46
amotokihmm.... in my test env, "Create FWG" and "Add Policy" are displayed expectedly06:47
reedipSridarK : Ok, thanks06:48
amotokiRule and Port selection form looks weird though...06:49
reedipSridarK : the html redirection isnt working there :( But If you add the complete link, you can view the page06:49
reedipfor example : http://IP-ADDR/dashboard/project/firewalls_v2/addpolicy06:49
amotokimy env is a bit different as I am running django debug server (runserver)06:51
SridarKreedip: yes indeed06:51
amotokii will try with apache2 httpd06:51
SridarKreedip: i am able to add a policy06:52
reedip:)06:52
SridarKamotoki: possibly06:52
amotokifrom my experience so far, no difference happens by using runserver or apache2 httpd. tricky06:53
SridarKwith addfirewallgroup - unable to create a fwg with None for either ingress or egress06:55
*** yamamoto has joined #openstack-fwaas06:55
reedipSridarK : Yes, I just checked it now .... UUID is invalid06:56
SridarKbut other wise looks good (with complete link)06:56
reedipSridarK : we are sending "" as Ingress/Egress is nothing is specified. We need to send None06:56
reediphttps://github.com/openstack/neutron-lib/blob/master/neutron_lib/api/definitions/firewall_v2.py#L14206:57
amotokiin my env, it works well with apache2 httpd. when I clicked "Create Firewall Group" the form appeared expectedly06:57
amotokidid you all run the final two steps in here? https://docs.openstack.org/neutron-fwaas-dashboard/latest/install/index.html06:57
amotokicollectstatic and compress06:57
amotokiwhen I shared the steps with yushiro, the steps were included06:58
amotokiSridarK: I confirmed your point (None for ingress/egress for FWG)06:59
SridarKamotoki: ah yes - i did not - i just followed the email - i think i missed these06:59
amotokiSridarK: could you try them and then restart apache2?07:00
amotokiI am not sure it affects but it might be related.07:00
yushiro_afkamotoki, SridarK If we specify 'ingress_firewall_policy_id' None, context is as follows:07:02
yushiro_afk{'ingress_firewall_policy_id': u07:02
yushiro_afk''}07:02
reedipSridarK : We also cannot modify the ports on which FWG has been created once ( mentioned in the etherpad )07:03
SridarKamotoki: just tried - but i still have an issue with Create07:04
SridarKyushiro_afk: ok07:06
yushiro_afkSo, I think it's better to replace https://review.openstack.org/#/c/475840/20/neutron_fwaas_dashboard/dashboards/project/firewalls_v2/forms.py@166  and 16707:11
yushiro_afkegress_policy_id_choices.append((None, _('None')))07:12
yushiro_afkah, sorry. This fix it not good.07:12
yushiro_afkah, it's OK07:13
yushiro_afkjust fixed.07:13
SridarKyushiro_afk: yes i think that should do it07:13
*** sarathmekala__ has quit IRC07:18
SridarKyushiro_afk: i will step away now and check back in the morn, i think if sarathmekala_ fixes any pending UT issues - we have a chance to make it07:19
yushiro_afkI'll update once with some critical issues.07:19
yushiro_afkSridarK, OK, I see.07:19
*** sarathmekala__ has joined #openstack-fwaas07:20
*** eezhova has quit IRC07:21
SridarKyushiro_afk: thx07:21
amotokiI might find a problem of the cause of Create Firewall Group loading forever07:25
amotokicoudl you add the following to /opt/stack/horizon/openstack_dashboard/local/enabled/_1461_project_firewalls_v2_panel.py ?07:26
-amotoki- ADD_INSTALLED_APPS = ['neutron_fwaas_dashboard']07:26
-amotoki- AUTO_DISCOVER_STATIC_FILES = True07:26
amotokithen run collectstatic, compress and restart apache207:26
amotokithis is what we have for fwaas v1 stuff and they are required for horizon plugins. when I tested last, I also had 'enabled' file for fwaas v1 dashboard.07:27
amotokiyushiro_afk and others: ^^ might help you07:29
yushiro_afkthanks ! I'll try it07:31
yushiro_afkamotoki, yes, I copied /opt/stack/horizon/openstack_dashboard/local/enabled/_1461_project_firewalls_v2_panel.py07:33
amotokiyushiro_afk: also http://paste.openstack.org/show/619131/ pehaps will fix an issue when creating a firewall group without ingress/egress_firwall_policy_id07:33
amotokiwill be afk around up to 30mins07:35
reedipamotoki ;07:40
reedipamotoki ; where would the clean be called from? ? Just curious07:41
amotokireedip: you can read the django form document :)    workflows.Step inherits django.forms.Form07:47
amotokireedip: the document is https://docs.djangoproject.com/en/1.11/ref/forms/validation/07:47
reedipThanks amotoki , will do :)07:47
yushiro_afkI can see create firewall group and 'add policy' view after executed amotoki 's procedure :)07:48
*** eezhova has joined #openstack-fwaas07:49
amotokiyushiro_afk: could you upload a new version after updating 'enabled' file and clean() one?07:51
amotokiyushiro_afk: I think it is good time to sync the code base07:51
yushiro_afkOK.  but clean() doen's work correctly...07:51
amotokimmm07:52
*** yushiro_afk is now known as yushiro07:55
*** openstackgerrit has quit IRC08:03
amotokiyushiro: how did not clean() work correctly?08:15
yushiroif ingress_policy None, then error occurred.  '' is not valid UUID.08:20
sarathmekala__yushiro, on the plugin side do you accept None for egress_policy_id/ingress_policy_id?08:20
yushirosarathmekala__, yes.  Problem is request body generated as follows:   {'ingress_firewall_policy_id': ''}08:21
sarathmekala__amotoki, clean logic should set it to None right?08:22
amotokisarathmekala__: I believe so08:22
amotokiyushiro: could you add some debug log to neutron_fwaas_dashboard/dashboards/project/firewalls_v2/workflows.py AddFirewallGroup:handle()08:23
yushiroYeees, just a moment08:23
amotokisomething like LOG.info('#### context = %s', context) before calling firewall_group_create08:23
sarathmekala__yushiro, you can try pdb as well.. it works with tox08:23
amotokiperhaps in your default settings, LOG.debug will be ignored.08:23
amotokisarathmekala__: we are debugging in the real env under apache208:24
sarathmekala__ok08:24
amotokiI am not sure we can attach the apache2 horizon code from pdb08:24
amotokihonestly I've never used pdb :)08:24
yushirowow !08:25
sarathmekala__:) .. we can give it a shot and see08:25
yushiroamotoki, sarathmekala__ FPFP: context = {'name': u'admin', 'admin_state_up': True, 'ingress_firewall_policy_id': u'None', 'shared': False, 'egress_firewall_policy_id': u'None', 'description': u''}08:28
yushiroI changed 'ingress_firewall_policy_id' None08:28
amotokiyushiro: ah, got it. my clean() assume 'ingress_firewall_policy_id' = ''.08:29
amotokiI think that's the reason  http://paste.openstack.org/show/619131/08:30
*** openstackgerrit has joined #openstack-fwaas08:30
openstackgerritElena Ezhova proposed openstack/neutron-fwaas master: Fix router update on L3 agent restart  https://review.openstack.org/49565708:30
amotokisee L.347 of the paste08:30
sarathmekala__^^ one more thing 'None' is a string... should it not be NOne08:30
amotokiIf you want to use 'None', replace "if not cleaned_data[field]" to "if cleaned_data[field] == 'None'"08:31
amotokianyway a string 'None' cannot be passed to the neutron server.08:31
yushiroamotoki, aaa!! sorry.  I changed default value  '' to 'None' in my local.08:32
yushiroHowever, self.initial stores as follows: FPFP: self.initial = {u'status': u'INACTIVE', 'ingress_policy': None, 'firewallgroup_id': u'b169d282-9b14-4b608:33
yushiro3-93b4-fcbd450105dc', u'description': u'', u'admin_state_up': True, u'tenant_id': u'30c26e78d3b3495da18f36cbc0c897fe', u'ingress_firewall_policy_id': None, u'ports': [], 'egress_policy': <Policy: {u'desc08:33
yushiroription': u'', u'firewall_rules': [u'0871f043-e569-4316-81c3-a520dc3658d0'], u'tenant_id': u'b85e682ce25e4b079c01da1da9970c6e', u'audited': False, u'shared': True, u'project_id': u'b85e682ce25e4b079c01da08:33
yushiro1da9970c6e', u'id': u'497281dd-0adb-4792-bcfd-041fef0d1144', u'name': u'policy'}>, 'admin_state': 'UP', u'shared': False, u'project_id': u'30c26e78d3b3495da18f36cbc0c897fe', u'id': u'b169d282-9b14-4b63-908:33
yushiro3b4-fcbd450105dc', u'egress_firewall_policy_id': u'497281dd-0adb-4792-bcfd-041fef0d1144', u'name': u'fwgaaaaaaaaaaaaaaa'}08:33
*** SridarK has quit IRC08:34
yushiroSo,  initial value: None,   chose value 'None': '',   expected to convert: None08:34
amotokiyushiro: self.initial has pure python representation so you see None as a primitive08:34
amotokiyushiro: on the other hand, if field values are post from the form, they are all strings08:35
*** yamamoto has quit IRC08:35
amotokiPython None will be converted into a string "None"08:35
yushiroamotoki, Indeed.08:35
sarathmekala__amotoki, right08:35
amotokiso clean() or clean_<field>() needs to take care of them08:35
yushiroamotoki, quick question. __init__  handles ingress_policy_id_choices.append(('', _('None')))08:36
yushiroif clean() is called after __init__,  should we convert ingress_policy_id_choices.append((None, _('None'))) ?08:36
amotokiyushiro: no, the code in __init__() populates the drop-down menu.08:37
amotokiyushiro: it is called both when GET and POST are called08:37
amotokiyushiro: on the other hand, clean() is called only when POST is called.08:38
amotokiingress_policy_id_choices.append(('', _('None'))) means that '' is sent back to the web server if _("None") is selected08:38
yushiroamotoki, I see.08:38
yushiroSo, I'd like to judge initial value(None) and selected 'None' ('')08:39
yushiroIf initial value is None and selected value is 'None',  I think there is 'NO CHN08:40
yushiroNO CHANGE08:40
sarathmekala__yes08:44
*** njohnston has quit IRC08:47
reedip* too much info *08:47
*** njohnston has joined #openstack-fwaas08:47
yushiroIf clean() works correctly,  no need to conver in handle(), right?08:53
sarathmekala__i think clean() is called before handle(), amotoki can confirm08:56
amotokiclean() is called before handle() is called.08:57
yushiroamotoki, call() is not called... Maybe I'm wrong with nest.08:59
amotokicall?08:59
yushiroaaa08:59
yushiroclean(08:59
*** yamamoto has joined #openstack-fwaas08:59
amotokieven when POST?09:00
yushirojust a moment09:02
amotokido we need some kind of video conf like appear.io to share a screen?09:02
yushiroamotoki, OK!!, it called and work successfully09:03
amotokinice!09:03
yushirosorry I tried PUT  not POST ...09:03
yushiroOK, I'll update current version.09:03
amotokiyushiro: do you send http request manually??09:04
yushirono, I tried  using 'update firewall group' button09:04
amotokii see09:07
sarathmekala__super09:08
amotokii think we need similar fix in other places like update firewall group too09:08
amotokibut it looks better to sync our code once09:09
amotokiit is important to use a single code base09:09
yushiroyes,09:09
openstackgerritYushiro FURUKAWA proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584009:15
yushiroSorry for late!!!!09:15
yushiroSorry, I have to go out my office some task....  will turn back at night ;(09:16
sarathmekala__yushiro, np.. I will jump in once I reach back home09:18
amotokiyushiro: what is the current status of the above?09:19
amotokiI will update the patch based on patch set 21.09:22
amotokiat least 'enabled' file needs to be updated.09:22
amotokimmm.... devstack/plugins.sh disappears....09:23
amotokiwhat happened?09:23
yushiroamotoki, ohhhhhh, am I missing something.09:24
amotokiyushiro: no. it seems to happen in some older patch set09:25
yushiroso sorry,  it seems to be reverted enabled file. _7010_project_firewalls_panel.py is the latest09:26
amotokinp. will cover it09:26
yushiro_7010 includes ADD_INSTALLED_APPS = ['neutron_fwaas_dashboard']09:26
yushiro and AUTO_DISCOVER_STATIC_FILES = True  So, no need to add new file I think.09:26
amotokiactually v1 and v2 panels check neutron extension availability, so we can enable both :)09:27
amotokiit is okay to copy all enabled files09:27
yushiroaha :) OK.09:29
yushiroOK, see you guys!!  I'll be back!!!09:29
openstackgerritAkihiro Motoki proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584009:52
amotokiANNOUNCE on neutron-fwaas-dashboard: I updated 'enabled' file. from now on, copy all _70* enabled files under neutron_fwaas_dashboard/enabled to /opt/stack/horizon/openstack_dashboard/local/enabled09:53
amotoki_1461_project_firewalls_v2_panel.py is also need to be removed.09:53
amotokii have no plan to touch the dashboard code in next couple of hours. feel free to try/fix/improve it, folks!09:56
reedipGuys, do update the etherpad as well, thanks :)09:59
amotokireedip: about which points?10:00
reedipamotoki like fwg#6 and #7 ?10:01
amotokireedip: i see10:01
reedipamotoki : I commented on some of the issues where I can see that the stuff is working now. But I am not removing it , so that the points can be cross-verified before removing them10:02
reedipThere were certain minor issue(s) like fwr#6 and fwr#7 , but maybe they can be checked later10:02
amotokireedip: some information on which patch set you used would be helpful10:03
reedipPatch set #21.10:04
reedipI also have snapshots10:04
amotokilike L.110 as well. is it from you?10:04
amotokiIMHO still in question for a release...10:05
amotokiis anyone wokring on UT fix?10:06
reedipamotoki : added the PS for L:#110 and L#104 in the etherpad10:07
amotokias long as UT fails, we cannot merge it :)10:27
*** hoangcx has quit IRC10:29
amotokisarathmekala__: do you have time to fix UT failures?10:31
amotokiIn JP side, normal office hours were over and we don't think we have enough to work on it.10:31
*** sarathmekala__ has quit IRC10:35
*** sarathmekala__ has joined #openstack-fwaas10:35
*** hoangcx has joined #openstack-fwaas10:35
*** hoangcx has quit IRC10:39
reedipamotoki: is the release cut tomorrow morning JP side?10:42
amotokireedip: it is not decided exactly, but the release timing affects several folks out side of fwaas team10:43
amotokiso it should be done with enough time margin10:43
amotoki(including members of the release team, neutron-release team)10:44
reedipamotoki : I am not proficient in Horizon , so I will check the UT failures as much as I can , but I do hope other members come up soon :)10:44
amotokiI have no plan to coordinate the exact timing. if the deadline is gone, that's all.10:44
reedipamotoki : ok, thanks ...10:45
amotokitest_data for FWaaS v2 looks like contain unrelated feilds.....10:45
amotokisome v1 specific attribute.....10:45
amotokiI tend to give up checking such details.10:46
amotokireedip: hopefully you can check API data here is correct first https://review.openstack.org/#/c/475840/22/neutron_fwaas_dashboard/test/test_data/fwaas_data_v2.py10:46
amotokireedip: i am checking but i need to go soon10:47
amotokialso I noticed ingress/egress_firewall_policy_id is missing in firewall group data10:48
amotokisome cross check and comments on gerrit would be helpful10:48
amotokiif you want to dump API responses, oscurl is useful.10:53
amotokioscurl -f json -s network -p /v2.0/fwaas/firewall_rules/660f0134-b4b0-4c3d-b6d3-b7ce4e1358c010:53
*** sarathmekala__ has quit IRC11:05
*** yamamoto has quit IRC11:11
*** yamamoto has joined #openstack-fwaas11:18
*** yamamoto has quit IRC11:36
*** yamamoto has joined #openstack-fwaas11:40
openstackgerritOpenStack Proposal Bot proposed openstack/neutron-fwaas master: Updated from global requirements  https://review.openstack.org/49605112:14
openstackgerritOpenStack Proposal Bot proposed openstack/neutron-fwaas-dashboard master: Updated from global requirements  https://review.openstack.org/49485512:14
amotokiUpdateFirewallGroup failure is caused by _get_request_body() introduced in PS2112:19
amotoki_get_request_body() normalizes an empty string to None, but it applies to string fields like name or description.12:20
amotokiIt tries to send None (JSON null) as name/description and neutron server returns an exception.12:20
amotokithat's all from me.12:23
amotokimy current vote is to defer the v2 dashboard to Queens12:24
amotokiif this is proposed to horizon, considering the current maturity of the code, FFE would be rejected with 100%.12:32
openstackgerritAkihiro Motoki proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584012:56
openstackgerritAkihiro Motoki proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584012:58
openstackgerritAkihiro Motoki proposed openstack/neutron-fwaas-dashboard master: FWaaS V2 Horizon Dashboard  https://review.openstack.org/47584013:01
amotokiI posted all I have now. good luck13:03
*** reedip_ has joined #openstack-fwaas13:45
*** sarathmekala__ has joined #openstack-fwaas13:56
reedip_o/13:58
xgerman_o/14:03
sarathmekala__o/14:04
*** yushiro2 has joined #openstack-fwaas14:10
yushiro2I'm home.14:11
yushiro2sarathmekala__, ping :)14:11
*** reedip_ has quit IRC14:11
sarathmekala__hi yushiro214:11
yushiro2sarathmekala__, Hi.  sorry for late.14:11
sarathmekala__np.. I too just reached home14:12
yushiro2sarathmekala__, wow, I saw the patch set 25 :)14:12
yushiro2I just applied PS25 in my local env now.14:12
yushiro2will test more.14:12
*** eezhova has quit IRC14:12
sarathmekala__sure.. I too will mark the issue i am working on in the etherpad14:13
sarathmekala__yushiro2, when you pull in a new patch, does pip install update the old files?14:15
yushiro2sarathmekala__, ah yes.  I always do as following steps:14:16
yushiro21. git checkout master14:16
yushiro22. git review -d <your_owesome_patch>14:16
amotokiyushiro2: master of what?14:16
yushiro2amotoki, neutron-fwaas-dashboard repos14:16
sarathmekala__ok.. do you repeat the same in the next rounds as well14:17
amotokiyushiro2: okay. actually git checkout master is optional14:17
yushiro2sarathmekala__, yes.14:18
sarathmekala__hmm.. how are you patching your horizon then?14:18
sarathmekala__pip install?14:18
amotokithe etherpad instruction says "pip install .", so you need to install fwaas dashboard again14:19
amotokiif you use pip install -e . you don't need to install fwaas-dashboard again.14:19
yushiro2sarathmekala__, I'm executing 'git review -d <change-id>' and 'sudo pip install .' in neutron-fwaas-dashboard14:19
amotokigit review -d <xxx>14:19
amotokiis enough if so.14:20
yushiro2sarathmekala__,  I think amotoki is always true :)14:20
sarathmekala__yushiro2, got it14:20
sarathmekala__amotoki, knows tricks of the trade ;)14:20
amotokiit is not a tricky. it is a well-known behavior of pip install.14:21
sarathmekala__ok... lets take a quick consensus.. on the testing so far14:22
sarathmekala__1. Rules have been tested fully14:22
sarathmekala__2. Policy CRUD is tested as well14:22
sarathmekala__is the issue related to policy creation solved?14:23
sarathmekala__or it is the same as FWG (showing a spinner and waiting infinitely)14:23
amotokiif we specify rules when creating a policy, the rule specified are ignored completely. I see this problem14:24
amotokiso Policy create has some problem I think14:24
yushiro2amotoki, sarathmekala__ what is problem while creating policy?14:25
amotokiI would suggest you all check the etherpad page from top to bottom to check what have been addressed and what not.14:25
amotokiI don't think it is a good idea to create another list like above14:25
sarathmekala__amotoki, sure.. but we need to have a clear checklist at the top14:26
sarathmekala__will add it to the etherpad to tick off things14:26
yushiro2amotoki, yes, I would have I made test cases for each resources....14:26
amotokihow to summarize the situations are all up to you14:27
yushiro2amotoki, sarathmekala__ well, now I attached PS25, I'm verifying all of etherpad cases now.14:27
sarathmekala__ok.. thanks yushiro214:28
amotokiyushiro2: sarathmekala__: a problem while creating a policy I mean: we see 'Rules' tab in the creating policy form. I can select some rule(s), but I see no rules are associated with the created policy....14:28
sarathmekala__amotoki, ok.. I will check this functionality14:29
yushiro2amotoki, OK, that seems generated request body is wrong..14:29
amotokiperhaps so. I've investigated nothing on it.14:29
sarathmekala__ok14:30
*** SridarK has joined #openstack-fwaas14:30
SridarKyushiro: sarathmekala__ how are things ?14:31
amotokiit is good to check the current work items, but we need to remember what the criteria are for the release. is it clear?14:31
SridarKI have some mtgs early but then i can pick up the latest patch14:31
yushiro2SridarK, Now are PS25.  It has still some issues.  Now I'm checking each cases on etherpad.14:32
SridarKamotoki: thx i see u have multiple updates too14:32
amotokiThe release is not for developers. It is for end-users (which is the targets)14:32
*** eezhova has joined #openstack-fwaas14:32
sarathmekala__SridarK, I have created a checklist in the etherpad.. if yushiro/amotoki/redeep/you can mark the areas you verified we will have a consice overview14:32
SridarKyushiro2: ok14:32
SridarKsarathmekala__: ok14:32
amotokiso if we deliver a release, it needs to be a quality where end-users can use it14:33
amotokiI cannot work on the dashboard more until Friday afternoon.14:33
amotokiI would like to delegate the final decision and the responsibility of taking care of the release patch  https://review.openstack.org/#/c/496307/ to yushiro2/SridarK/xgerman_14:34
SridarKamotoki: +114:35
SridarKamotoki: thx for all the help14:35
sarathmekala__+114:35
xgerman_+114:35
SridarKsarathmekala__: i think the checklist is good first pass on basic workflow - i think i have gone thru these with PS 1914:36
yushiro2amotoki, Thank you so much for your help.14:36
amotokithanks. I have various schedules tomorrow14:36
amotokiI am here so feel free to ask me if there are questions14:36
SridarKThe Create on FWG and policy were the issues i ran into14:37
SridarKI will repeat with PS2514:37
sarathmekala__SridarK, ok14:37
amotokiSome ANNOUNCEMETN again: you need to update 'enabled' files for horizon plugin. see L.189-190 of the etherpad for more detail when you try PS23 or later (including PS25)14:38
amotokiIt will address an issue on clicking Create FWG and policy button14:39
amotokiat least it worked for me and yushiro14:39
SridarKamotoki: thx - i will try that in a bit as well14:45
*** SarathMekala has joined #openstack-fwaas14:54
*** sarathmekala__ has quit IRC14:54
amotokixgerman, SridarK, yushiro: can some of you put -W on https://review.openstack.org/#/c/496307/ ?14:59
amotokiI can remove my -W and you can make decision anytime you want without clearing my -W.15:00
*** yamamoto has quit IRC15:09
xgerman_hu, only have +/-1 powers15:11
xgerman_probably not part of OpenStacj releases15:12
amotokixgerman_: ah, i see. totally forgot it15:18
amotokiI will be in the channel tomorrow too, so I can clear -W15:19
xgerman_ok15:21
xgerman_thanks15:21
*** yamamoto has joined #openstack-fwaas15:21
SarathMekalaafter applying amotoki suggestion I am able to see the create FWG and create policy popup windows.. hope its working for all15:25
*** yamamoto has quit IRC15:32
*** yamamoto has joined #openstack-fwaas15:33
*** yushiro2 has quit IRC15:41
*** sarathmekala_ has joined #openstack-fwaas15:47
*** SarathMekala has quit IRC15:48
*** reedip has quit IRC15:50
*** yamamoto has quit IRC15:57
*** SarathMekala has joined #openstack-fwaas16:00
*** sarathmekala_ has quit IRC16:02
*** reedip has joined #openstack-fwaas16:02
*** sarathmekala_ has joined #openstack-fwaas16:04
*** SarathMekala has quit IRC16:06
*** eezhova has quit IRC16:24
openstackgerritMerged openstack/neutron-fwaas master: Don't return 404 when deleting a non-existant FWG  https://review.openstack.org/49403417:28
sarathmekala_yushiro, u around?17:33
*** sarathmekala_ has quit IRC17:39
*** sarathmekala_ has joined #openstack-fwaas17:40
sarathmekala_guys... I see one issue17:40
sarathmekala_the class FirewallRuleV2 in the plugin db does not have the 'description' field17:40
sarathmekala_so when we send {"description":None} from the UI, the backend is rejecting it as not valid17:41
amotokisarathmekala_: it is actually not correct. as you see, you can set description when creating a resource and see the value in the detail page17:44
amotokisarathmekala_: did you check my comment on the gerrit review? https://review.openstack.org/#/c/475840/22/neutron_fwaas_dashboard/dashboards/project/firewalls_v2/forms.py@39517:45
amotokisarathmekala_: this describes why17:45
sarathmekala_exactly..17:47
sarathmekala_for name and description should an empty value be ''17:47
amotokisarathmekala_: i think yushiro introduced it to handle all fields in the same way but it does a bit too much.17:48
amotokisarathmekala_: yeah, exactly17:48
sarathmekala_ok... rule update is also failing because of it17:48
sarathmekala_when i have description blank or clear out the description17:48
amotokisarathmekala_: perhaps I think it is better to add an argument to _get_request_body which specifies which fields should be treated specially (i.e., an empty value should be converted into None)17:49
sarathmekala_or the other way..17:51
sarathmekala_i think we will have a smaller set17:51
amotokiyeah, any way works17:51
sarathmekala_for ex: name, description17:52
amotokiLook at https://developer.openstack.org/api-ref/networking/v2/index.html?expanded=id284-detail#id28417:53
amotokiyou can see several updatable fields, but fields which accepts None is not so many17:53
amotokiI see only four such fields: destination_ip_address, destination_port, source_ip_address, source_port17:54
amotokianother way is to normalize them in clean() method in the form. this is more beautiful and straight-forward to me, but it needs some django knowledge from its doc17:55
sarathmekala_actually the logic in the handle method takes care of these 417:56
sarathmekala_and sets them to None if not specified17:56
sarathmekala_for ex: look at forms.py UpdateRules handle method17:57
amotokiyeah, it works.17:58
amotokiIMHO basically handle() should focus on the logic and clean() / clean_<field>() is responsible for data format/type, but you can do all in handle().17:59
sarathmekala_ok.. we can clean this up going forward in the next cycle :)17:59
amotokihowever, it is the implementation approach discussion and at now what we need is the working code17:59
amotokiso I am okay with either18:00
sarathmekala_right18:00
sarathmekala_i think the purpose of _get_request_body shoudl be to reduce the payload by removing unmodified attributes18:00
amotokiexactly18:01
amotokiconverting '' to None is not the main purpose18:01
sarathmekala_after doing this change:18:06
sarathmekala_def _get_request_body(context, initial_values):18:06
sarathmekala_    body = {}18:06
sarathmekala_    for key, value in context.items():18:06
sarathmekala_        if value != initial_values[key]:18:06
sarathmekala_            body[key] = value18:06
sarathmekala_    return body18:06
sarathmekala_rule updation is working18:07
sarathmekala_i will check the other flows18:07
sarathmekala_^^ this modification is in forms.py18:07
sarathmekala_existing method updated18:07
*** eezhova has joined #openstack-fwaas18:42
*** eezhova has quit IRC18:45
*** sarathmekala_ has quit IRC19:05
*** SridarK has quit IRC19:07
*** eezhova has joined #openstack-fwaas19:56
*** eezhova has quit IRC20:33
*** sarathmekala_ has joined #openstack-fwaas22:01
openstackgerritOpenStack Proposal Bot proposed openstack/neutron-fwaas master: Updated from global requirements  https://review.openstack.org/49605123:29
*** yushiro2 has joined #openstack-fwaas23:47
yushiro2morning.  sarathmekala_ Sorry for yesterday.  I took care of my wife and fall asleep last night.23:48
yushiro2team, today I leave my office and am in another office.  If you ask me something, please reach out me in IRC or e-mail(y.furukawa8@gmail.com)23:49
yushiro2I cannot see company e-mail..23:50

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