Bug 1043254

Summary: When the network topology page is open, horizon re-queries the network every 10 seconds
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: python-django-horizonAssignee: Julie Pichon <jpichon>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.0CC: aortega, athomas, hateya, jpichon, mrunge, ohochman, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-17 09:58:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Udi Kalifon 2013-12-15 12:53:42 UTC
Description of problem:
You can see in the horizon log that, when the network topology page is open, the activity never stops even if the user is not doing anything besides looking at the page.


How reproducible:
100%


Steps to Reproduce:
1. Create a basic network topology with an internal network, external network and a router between them.
2. Open the Network Topology page.
3. Monitor the horizon log while the Network Topology page is open with: tail -f /var/log/horizon/horizon.log


Actual results:
Every 10 seconds there is activity there


Expected results:
Since the user is not doing anything, you'd expect no activity in the log

Comment 1 Udi Kalifon 2013-12-15 13:12:47 UTC
From the log:

2013-12-15 13:07:19,803 20781 DEBUG openstack_dashboard.api.neutron neutronclient connection created using token "e2de9ee25492adab9b837602e599ddfd" and url "http://10.35.64.158:9696/"
2013-12-15 13:07:19,803 20781 DEBUG openstack_dashboard.api.neutron user_id=55edad2ad2d847ebb6fd7b326496ad03, tenant_id=55ad4997883345608f2e844c7199f1e3
2013-12-15 13:07:19,803 20781 DEBUG openstack_dashboard.api.neutron neutronclient connection created using token "e2de9ee25492adab9b837602e599ddfd" and url "http://10.35.64.158:9696/"
2013-12-15 13:07:19,803 20781 DEBUG openstack_dashboard.api.neutron user_id=55edad2ad2d847ebb6fd7b326496ad03, tenant_id=55ad4997883345608f2e844c7199f1e3
2013-12-15 13:07:19,804 20781 DEBUG neutronclient.client 
REQ: curl -i http://10.35.64.158:9696//v2.0/security-groups.json?tenant_id=55ad4997883345608f2e844c7199f1e3 -X GET -H "X-Auth-Token: e2de9ee25492adab9b837602e599ddfd" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

2013-12-15 13:07:19,812 20781 DEBUG neutronclient.client RESP:{'date': 'Sun, 15 Dec 2013 13:07:19 GMT', 'status': '200', 'content-length': '2505', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.35.64.158:9696//v2.0/security-groups.json?tenant_id=55ad4997883345608f2e844c7199f1e3'} {"security_groups": [{"tenant_id": "55ad4997883345608f2e844c7199f1e3", "name": "default", "description": "default", "security_group_rules": [{"remote_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154", "direction": "ingress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv4", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": null, "port_range_min": null, "id": "3bbec9bc-66e3-4e01-83d1-6e7e6b09dd0d", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}, {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv4", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": null, "port_range_min": null, "id": "64198e3a-4bbf-4dad-8507-cb6c8aeef4a8", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}, {"remote_group_id": null, "direction": "ingress", "remote_ip_prefix": "0.0.0.0/0", "protocol": "icmp", "ethertype": "IPv4", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": 1, "port_range_min": 1, "id": "82970f8b-2506-4a67-8b94-dd4ca27b4331", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}, {"remote_group_id": null, "direction": "ingress", "remote_ip_prefix": "0.0.0.0/0", "protocol": "tcp", "ethertype": "IPv4", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": 22, "port_range_min": 22, "id": "8ac737d0-3377-48e4-abae-221d778dde0c", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}, {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": "0.0.0.0/0", "protocol": "tcp", "ethertype": "IPv4", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": 22, "port_range_min": 22, "id": "95e0e686-aeb8-4fa3-8f21-e1d9cf9ea3fc", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}, {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv6", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": null, "port_range_min": null, "id": "c37c5cfe-22f3-4590-8bc7-9e59fa886a7d", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}, {"remote_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154", "direction": "ingress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv6", "tenant_id": "55ad4997883345608f2e844c7199f1e3", "port_range_max": null, "port_range_min": null, "id": "ca661642-0eba-4478-986c-5d5baf314955", "security_group_id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}], "id": "3346f594-f00c-4b68-8a70-9a49d9f31154"}]}

2013-12-15 13:07:19,813 20781 DEBUG openstack_dashboard.api.neutron neutronclient connection created using token "e2de9ee25492adab9b837602e599ddfd" and url "http://10.35.64.158:9696/"
2013-12-15 13:07:19,813 20781 DEBUG openstack_dashboard.api.neutron user_id=55edad2ad2d847ebb6fd7b326496ad03, tenant_id=55ad4997883345608f2e844c7199f1e3
2013-12-15 13:07:19,813 20781 DEBUG neutronclient.client 
REQ: curl -i http://10.35.64.158:9696//v2.0/quotas/55ad4997883345608f2e844c7199f1e3.json -X GET -H "X-Auth-Token: e2de9ee25492adab9b837602e599ddfd" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

2013-12-15 13:07:19,817 20781 DEBUG neutronclient.client RESP:{'date': 'Sun, 15 Dec 2013 13:07:19 GMT', 'status': '200', 'content-length': '134', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.35.64.158:9696//v2.0/quotas/55ad4997883345608f2e844c7199f1e3.json'} {"quota": {"subnet": 10, "network": 10, "floatingip": 50, "security_group_rule": 100, "security_group": 10, "router": 10, "port": 50}}

Comment 2 Julie Pichon 2013-12-17 09:58:52 UTC
Hi, thank you for the bug report. The asynchronous calls are meant to keep the topology view up to date, e.g. the status of the instances (or if a new one is created), and of the other elements visible on the view.