cisco-open / cisco-catalyst-wan-sdk

Cisco Catalyst WAN SDK
Apache License 2.0
18 stars 3 forks source link

Failed relogin on Provider As Tenant View #68

Open JimOverholt opened 7 months ago

JimOverholt commented 7 months ago

Summary

More info TBD.

Logs and external information

{'request': {'method': 'GET',
             'url': '***/dataservice/template/feature?summary=False',
             'headers': {'User-Agent': 'python-requests/2.31.0',
                         'Accept-Encoding': 'gzip, deflate',
                         'Accept': '*/*',
                         'Connection': 'keep-alive',
                         'VSessionId': 'MzYyNzQ5MDYtODI0Yi00NjgyLWE4MzgtNWE3NWU5MzNjMjM2',
                         'Cookie': 'JSESSIONID=wse3krUt4i0XHNTo4DeKyn1t0OqrHK3KG-GBv7ah.35d59d83-bc35-4591-9958-5399371dde0f',
                         'x-xsrf-token': '90B8435D0244B67FF0CD304CC049640D56BEC56DABB15690379B37D81C814174D7A17418BFBA4DF1C45590D0A3875D639E88'}},
 'response': {'status': 200,
              'reason': 'OK',
              'elapsed-seconds': 0.893,
              'headers': {'content-encoding': 'gzip',
                          'expires': '0',
                          'cache-control': 'no-cache, no-store, '
                                           'must-revalidate,no-cache, '
                                           'no-store, must-revalidate',
                          'set-cookie': 'JSESSIONID=uyZlTUeuC5Qt8bv6XCi6HBMfRq8H0reOxJgBMMd1.35d59d83-bc35-4591-9958-5399371dde0f; '
                                        'path=/; secure; HttpOnly; Max-Age=0; '
                                        'Expires=Thu, 01-Jan-1970 00:00:00 GMT',
                          'x-xss-protection': '1; mode=block',
                          'pragma': 'no-cache, no-cache',
                          'x-frame-options': 'DENY',
                          'date': 'Wed, 06 Sep 2023 07:17:16 GMT',
                          'vary': 'Accept-Encoding',
                          'strict-transport-security': 'max-age=31536000; '
                                                       'includeSubDomains',
                          'x-content-type-options': 'nosniff',
                          'content-type': 'text/html;charset=UTF-8',
                          'content-length': '1762',
                          'server': 'svcproxy'},
              'text(trimmed)': '<html>\n'
                               '<head>\n'
                               '    <meta charset="utf-8">\n'
                               '    <title>Cisco Catalyst SD-WAN</title>\n'
                               '    <link rel="stylesheet" type="text/css" '
                               'href="/styles/login.css">\n'
                               '    <link rel="stylesheet" type="text/css" '
                               'href="/fonts/font-awesome-4.2.0/css/font-awesome.min.css">\n'
                               '    <link rel="icon" type="image/ico" '
                               'href="/images/favicon.ico"/>\n'
                               '</head>\n'
                               '<body onload="init()">\n'
                               '<div name="Login" class="loginContainer">\n'
                               '    <div class="loginInnerContainer">\n'
                               '        <!-- <div '
                               'class="productCategory">Cisco SD-WAN</div> '
                               '-->\n'
                               '        <form class="loginFormStyle" '
                               'name="loginForm" id="loginForm" '
                               'action="j_security_check" autocomplete="off">\n'
                               '            <div name="logoMainContainer"  '
                               'class="logoMainContainer"></div>\n'
                               '            <!-- <div '
                               'class="brand-logo-text"><span>Cisco '
                               'vManage</span></div> -->\n'
                               '            <img src="/images/sdwan_logo.svg" '
                               'alt="Cisco Catalyst SD-WAN" class="center">\n'
                               '            <div id="login-check-consent">\n'
                               '                <!-- show the notice message '
                               'here -->\n'
                               '            </div>\n'
                               '            <div id="error-info-container">\n'
                               '    '}}
2023-09-06 09:13:42 - vmngclient.session - WARNING - MainThread - Logging to session again. Reason: JSESSIONID cookie updated by response
2023-09-06 09:13:44 - vmngclient.vmanage_auth - DEBUG - MainThread - <_MainProcess name='MainProcess' parent=None started> 
Authenticating: admin POST ***/j_security_check <200>
2023-09-06 09:13:45 - vmngclient.vmanage_auth - DEBUG - MainThread - <_MainProcess name='MainProcess' parent=None started>
Authenticating: admin GET https://10.195.163.123:10100/dataservice/client/token <200>
2023-09-06 09:13:45 - vmngclient.session - DEBUG - MainThread - <_MainProcess name='MainProcess' parent=None started> 
{'request': {'method': 'GET',
             'url': '***/dataservice/template/feature?summary=False',
             'headers': {'User-Agent': 'python-requests/2.31.0',
                         'Accept-Encoding': 'gzip, deflate',
                         'Accept': '*/*',
                         'Connection': 'keep-alive',
                         'VSessionId': 'MzYyNzQ5MDYtODI0Yi00NjgyLWE4MzgtNWE3NWU5MzNjMjM2',
                         'Cookie': 'JSESSIONID=9FThyL8Gl8qxMhDUowtK1lnurz9Kh2OoapWs2jyF.35d59d83-bc35-4591-9958-5399371dde0f',
                         'x-xsrf-token': 'A9B980BE66B8D66390BF668EC571D582C183C706A69A53924B565946E71E69CBB0F28A597707E4DA1CB4842ACE1699DD2EDD'}},
 'response': {'status': 409,
              'reason': 'Conflict',
              'elapsed-seconds': 0.212,
              'headers': {'content-encoding': 'gzip',
                          'cache-control': 'no-cache, no-store, '
                                           'must-revalidate',
                          'x-xss-protection': '1; mode=block',
                          'pragma': 'no-cache',
                          'x-frame-options': 'DENY',
                          'date': 'Wed, 06 Sep 2023 07:17:19 GMT',
                          'vary': 'Accept-Encoding',
                          'strict-transport-security': 'max-age=31536000; '
                                                       'includeSubDomains',
                          'x-content-type-options': 'nosniff',
                          'content-type': 'text/html;charset=UTF-8',
                          'content-length': '72',
                          'server': 'svcproxy'},
              'text': '<html><head><title>Error</title></head><body>Conflict</body></html>'}}
2023-09-06 09:13:45 - vmngclient.session - DEBUG - MainThread - 409 Client Error: Conflict for url: https://10.195.163.123:10100/dataservice/template/feature?summary=False

Reproduction script

idle-timeout

On what platform(s) does it occur?

Not Applicable

Issue Severity

Medium: There is a workaround

JimOverholt commented 7 months ago

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/issues/364