[Mainline-Build 2704]: UI- protocol based flow aging configuration issue when done with protocol number

Bug #1539411 reported by alok kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Naveen N

Bug Description

when protocol based aging timeout added in UI with protocol number, it does not get configured in agent as per agent introspect.
if we select from dropdown protocol option then it works fine.

setup info -
env.roledefs = {
    'all': [host1,host2,host3,host4],
    'cfgm': [host1],
    'openstack':[host2],
    'control': [host1,host2],
    'compute': [host3,host4],
    'collector': [host1,host2],
    'webui': [host1],
    'database': [host1],
    'build': [host_build],
}

env.hostnames = {
    'all': ['nodec64', 'nodeg18', 'nodec62', 'nodec12']
}

Tags: ui vrouter
alok kumar (kalok)
tags: added: blocker
alok kumar (kalok)
summary: - [Mainline-Build 2702]: UI- protocol based flow aging configuration issue
+ [Mainline-Build 2704]: UI- protocol based flow aging configuration issue
when done with protocol number
Rahul (rahuls)
tags: removed: blocker
Revision history for this message
Biswajit Mandal (bmandal) wrote :

I see that config is pushed correctly when configured from UI.

When specified in number in stead of specifying from dropdown, the config is pushed with the same protocol in string format as per schema.

{"flow_aging_timeout": [{"timeout_in_seconds": 89, "protocol": "1", "port": 0}, {"timeout_in_seconds": 180, "protocol": "58", "port": 78}]}

root@nodeg16:~# curl -u admin:contrail123 localhost:8095/global-vrouter-config/3bc29af9-b0b2-4c75-b429-5d40ee6ce86f
{"global-vrouter-config": {"ecmp_hashing_include_fields": {"destination_ip": true, "ip_protocol": true, "source_ip": true, "source_mac": true, "source_port": true, "destination_port": true, "destination_mac": true}, "flow_aging_timeout_list": {"flow_aging_timeout": [{"timeout_in_seconds": 89, "protocol": "1", "port": 0}, {"timeout_in_seconds": 180, "protocol": "58", "port": 78}]}, "parent_uuid": "fdd701f2-bdca-4556-9a48-04e1fabf41e3", "display_name": "default-global-vrouter-config", "parent_href": "http://localhost:8095/global-system-config/fdd701f2-bdca-4556-9a48-04e1fabf41e3", "parent_type": "global-system-config", "href": "http://localhost:8095/global-vrouter-config/3bc29af9-b0b2-4c75-b429-5d40ee6ce86f", "id_perms": {"enable": true, "uuid": {"uuid_mslong": 4306174590921624693, "uuid_lslong": 12982009934331570287}, "creator": null, "created": "2016-01-31T05:23:08.496448", "user_visible": true, "last_modified": "2016-01-31T07:39:17.070693", "permissions": {"owner": "admin", "owner_access": 7, "other_access": 7, "group": "KeystoneServiceAdmin", "group_access": 7}, "description": null}, "vxlan_network_identifier_mode": "automatic", "name": "default-global-vrouter-config", "forwarding_mode": null, "fq_name": ["default-global-system-config", "default-global-vrouter-config"], "uuid": "3bc29af9-b0b2-4c75-b429-5d40ee6ce86f", "linklocal_services": {"linklocal_service_entry": [{"linklocal_service_name": "metadata", "ip_fabric_service_ip": ["10.204.217.56"], "linklocal_service_ip": "169.254.169.254", "ip_fabric_service_port": 8775, "ip_fabric_DNS_service_name": "", "linklocal_service_port": 80}]}, "encapsulation_priorities": {"encapsulation": ["MPLSoUDP", "MPLSoGRE", "VXLAN"]}, "perms2": {"owner": "0b9b1a255b9942f2af4bc231cea5370d", "owner_access": 7, "global_access": 0, "share": []}}}

Revision history for this message
alok kumar (kalok) wrote :

I see below config in agent introspect in ifmap_agent.xml but it's not configured:

flow-aging-timeout protocol:1 port:0 timeout-in-seconds:2323

complete global vrouter config from ifmap in agent introspect:
type:global-vrouter-config name:default-global-system-config:default-global-vrouter-config ecmp-hashing-include-fields source-mac:true destination-mac:true source-ip:true destination-ip:true ip-protocol:true source-port:true destination-port:true linklocal-services linklocal-service-entry linklocal-service-name:metadata linklocal-service-ip:169.254.169.254 linklocal-service-port:80 ip-fabric-service-port:8775 ip-fabric-service-ip:10.204.217.58 encapsulation-priorities encapsulation:MPLSoUDP encapsulation:MPLSoGRE encapsulation:VXLAN vxlan-network-identifier-mode:automatic flow-aging-timeout-list flow-aging-timeout protocol:tcp port:22 timeout-in-seconds:22 flow-aging-timeout protocol:udp port:2222 timeout-in-seconds:0 flow-aging-timeout protocol:1 port:0 timeout-in-seconds:2323 id-perms permissions owner:admin owner-access:7 group:admin group-access:7 other-access:7 uuid uuid-mslong:2888048809012183822 uuid-lslong:10343136958886191463 Uuid : 28146917-1b29-430e-8f8a-344389a02167 enable:true created:2016-01-25T15:33:25 last-modified:2016-01-31T07:37:45 user-visible:true perms2 owner:119412f18bc7426f9be236ae59dcee78 owner-access:7 global-access:0 display-name:default-global-vrouter-config Adjacencies: global-system-config default-global-system-config

adding vrouter tag to have a look.

tags: added: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/16750
Submitter: Hari Prasad Killi (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/16750
Committed: http://github.org/Juniper/contrail-controller/commit/6f8ecc9d3a8976d2e52df642aa0ce6b2ebbc59b0
Submitter: Zuul
Branch: master

commit 6f8ecc9d3a8976d2e52df642aa0ce6b2ebbc59b0
Author: Hari <email address hidden>
Date: Mon Feb 1 17:02:30 2016 +0530

Take protocol value given in config string for flow protocol aging.

Change-Id: I3621ca7c81bab8d2f907c77c372802cbd522c253
closes-bug: 1539411

alok kumar (kalok)
information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.