Mainline 2337:Contrail-status time out value too small

Bug #1372272 reported by Sandip Dey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Medium
Sandip Dey
R1.1
Fix Committed
Medium
Megh Bhatt

Bug Description

Contrail status sometimes shows services in initializing state, though analytics reports the processes to be up

URL: http://localhost:8084/Snh_SandeshUVECacheReq?x=NodeStatus : Timeout error : HTTPConnectionPool(host='localhost', port=8084): Request timed out. (timeout=0.01)

This timeout value seems to be too small.

logs saved at /cs-shared/bugs/<bug-id> on any blr shell server

== Contrail Control ==
supervisor-control: active
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active

== Contrail Analytics ==
supervisor-analytics: active
contrail-analytics-api initializing
contrail-analytics-nodemgr active
contrail-collector active
contrail-query-engine active

== Contrail Config ==
supervisor-config: active
contrail-api:0 initializing
contrail-config-nodemgr active
contrail-discovery:0 active
contrail-schema initializing
contrail-svc-monitor initializing
ifmap active

== Contrail Web UI ==
supervisor-webui: active
contrail-webui active
contrail-webui-middleware active
redis-webui active

URL: http://localhost:8084/Snh_SandeshUVECacheReq?x=NodeStatus : Timeout error : HTTPConnectionPool(host='localhost', port=8084): Request timed out. (timeout=0.01)

This timeout value seems to be too small.

== Contrail Config ==
supervisor-config: active
supervisor-config: ['contrail-api:0 active pid 6112, uptime 13:16:15', 'contrail-config-nodemgr active pid 6105, uptime 13:16:16', 'contrail-discovery:0 active pid 6109, uptime 13:16:15', 'contrail-schema active pid 25806, uptime 0:26:51', 'contrail-svc-monitor active pid 13976, uptime 0:14:43', 'ifmap active pid 6106, uptime 13:16:15', '']
contrail-api:0: Could not read filename /etc/contrail/contrail-api:0.conf
URL: http://localhost:8084/Snh_SandeshUVECacheReq?x=NodeStatus : Timeout error : HTTPConnectionPool(host='localhost', port=8084): Request timed out. (timeout=0.01)
UVE: Snh_SandeshUVECacheReq?x=NodeStatus : not found
contrail-api:0: NodeStatusUVE not found
contrail-api:0 initializing
contrail-config-nodemgr active
contrail-discovery:0 active
contrail-schema: DEFAULT/S.http_server_port not present
contrail-schema active
contrail-svc-monitor: Could not read filename /etc/contrail/contrail-svc-monitor.conf
contrail-svc-monitor active
ifmap active

== Contrail Web UI ==
supervisor-webui: active
supervisor-webui: ['contrail-webui active pid 7065, uptime 13:16:13', 'contrail-webui-middleware active pid 7064, uptime 13:16:13', 'redis-webui active pid 7063, uptime 13:16:13', '']
contrail-webui active
contrail-webui-middleware active
redis-webui active

Tags: config
Revision history for this message
Sundaresan Rajangam (srajanga) wrote :

Issue was fixed upon changing the timeout to 0.1 sec

Changed in juniperopenstack:
importance: Undecided → Medium
assignee: nobody → Megh Bhatt (meghb)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

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

commit ecfcd108f2ae15a62632308b423888841f25cdbe
Author: Megh Bhatt <email address hidden>
Date: Mon Sep 22 18:52:55 2014 -0700

Increase timeout used for HTTP introspect connection to daemons
in contrail-status to 0.1 sec to prevent unnecessary timeouts
under load
Closes-Bug: #1372272
Change-Id: I5f36eed73f3ff24a817b5fd3628f8adf6fa7c1c0

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

This fix needs to be ported to R1.10 branch as well

information type: Proprietary → Public
Megh Bhatt (meghb)
Changed in juniperopenstack:
status: New → Fix Committed
assignee: Megh Bhatt (meghb) → Sandip Dey (sandipd)
description: updated
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.