[AAA-2] Concurrent REST calls failing Created: 01/Aug/14  Updated: 21/Mar/19  Resolved: 17/Jun/15

Status: Resolved
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Deepa v Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 1464

 Description   

In Opendaylight Hydrogen Release, basic edition and SP edition, tried to send 10 REST calls in parallel for fetching node properties. All the requests are configured to send HTTPBasicAuthentication with appropriate user name and password (admin/admin). The requests are failing randomly with following response for the failed requests

<html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

H2

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

H3

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

BODY

{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

B

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

P

{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

A

{color : black;}

A.name

{color : black;}

HR

{color : #525D76;}

--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP authentication.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.32</h3></body></html>

Following are the tomcat_server.xml configuration we are using

<Server>
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase=""
unpackWARs="false" autoDeploy="false"
deployOnStartup="false" createDirs="false">
<Realm className="org.opendaylight.controller.security.ControllerCustomRealm" />
<Valve className="org.apache.catalina.authenticator.SingleSignOn" cookieDomain="10.200.8.14"/>

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="web_access_log_" suffix=".txt" resolveHosts="false"
rotatable="true" fileDateFormat="yyyy-MM"
pattern="%

{yyyy-MM-dd HH:mm:ss.SSS z}

t - [%a] - %r"/>
</Host>
</Engine>
</Service>
</Server>

As suggested here we also tried reusing the cookie that is passed in response to the first request. But it does not seem to work.



 Comments   
Comment by Deepa v [ 01/Aug/14 ]

(In reply to Deepa v from comment #0)
> In Opendaylight Hydrogen Release, basic edition and SP edition, tried to
> send 10 REST calls in parallel for fetching node properties. All the
> requests are configured to send HTTPBasicAuthentication with appropriate
> user name and password (admin/admin). The requests are failing randomly
> with following response for the failed requests
>
> <html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1
>

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76; > font-size:22px;}

H2
>

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76; > font-size:16px;}

H3
>

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76; > font-size:14px;}

BODY
>

{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

B
>

{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

> P
>

{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: > 12px;}

A

{color : black;}

A.name

{color : black;}

HR

{color : > #525D76;}

--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
> <u></u></p><p><b>description</b> <u>This request requires HTTP
> authentication.</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/7.0.32</h3></body></html>
>
> Following are the tomcat_server.xml configuration we are using
>
>
> <Server>
> <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" />
> <Listener className="org.apache.catalina.core.JasperListener" />
> <Listener
> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
> <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> <Listener
> className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
>
> <Service name="Catalina">
> <Connector port="8080" protocol="HTTP/1.1"
> connectionTimeout="20000"
> redirectPort="8443" />
>
> <Engine name="Catalina" defaultHost="localhost">
> <Host name="localhost" appBase=""
> unpackWARs="false" autoDeploy="false"
> deployOnStartup="false" createDirs="false">
> <Realm
> className="org.opendaylight.controller.security.ControllerCustomRealm" />
> <Valve
> className="org.apache.catalina.authenticator.SingleSignOn"
> cookieDomain="10.200.8.14"/>
>
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"
> prefix="web_access_log_" suffix=".txt"
> resolveHosts="false"
> rotatable="true" fileDateFormat="yyyy-MM"
> pattern="%

{yyyy-MM-dd HH:mm:ss.SSS z}

t - [%a] - %r"/>
> </Host>
> </Engine>
> </Service>
> </Server>
>
> As suggested here(http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Single Sign On) we also tried reusing the cookie that is passed in
> response to the first request. But it does not seem to work.

Comment by Wojciech Dec [ 20/Mar/15 ]

Couldn't reproduce on Helium.

Comment by Tony Tkacik [ 17/Jun/15 ]

Changed to worksforme.

Generated at Wed Feb 07 19:08:22 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.