You understand the problem. Running from the nfs server requires the appropriate nodeport and k8 node ip's to be used. If you use vcpe.py loop per the current design then you need to be inside a k8 node so that you can use the k8 dns / reachability.
Brian From: Devangam Manjunatha <[email protected]> Sent: Wednesday, March 11, 2020 8:24 PM To: FREEMAN, BRIAN D <[email protected]>; [email protected] Cc: JOMY JOSE <[email protected]>; Velugubantla Praveen <[email protected]>; Naveen S. Sankad <[email protected]>; Deepak K <[email protected]> Subject: Re: [onap-discuss] [El-Alto][VCPE]- Error while running "vcpe.py loop" as part of "closed loop testing" Dear Team, Please let us know how to below issue. Regards, Manjunath. ________________________________ From: Devangam Manjunatha <[email protected]<mailto:[email protected]>> Sent: Wednesday, 11 March 2020, 21:17 To: FREEMAN, BRIAN D Cc: JOMY JOSE; Velugubantla Praveen; Naveen S. Sankad; Deepak K Subject: [onap-discuss] [El-Alto][VCPE]- Error while running "vcpe.py loop" as part of "closed loop testing" Hi Brian, On ONAP El-Alto, when we try to execute "vcpe.py loop" command as part of "Closed Loop Test". We are getting below error. root@elaltornd-nfs:~/integration/test/vcpe# python vcpe.py loop ---------------------------------------------------------------------------------------------------- vcpe.py: Brief info about this program vcpe.py init: Add customer service data to SDNC and SO DBs. vcpe.py infra: Deploy infrastructure, including DHCP, AAA, DNS, Web Server, vBNG, vGMUX, vBRG. vcpe.py brg: Deploy brg only (for testing after infra succeeds). vcpe.py customer: Deploy customer service, including vGW and VxLANs vcpe.py loop: Test closed loop control ---------------------------------------------------------------------------------------------------- 2020-03-11 13:03:11,379 INFO vcpecommon.__init__(): Initializing configuration 2020-03-11 13:03:11,379 DEBUG vcpecommon.get_vm_ip(): nova --os-auth-url http://192.168.9.75:5000<https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.9.75-3A5000&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=Fj56rGtGKRzMHaPWBqn-XYVxnQfCJBOaqzxOr-E6yEU&e=> --os-project-domain-name default --os-password root123 --os-region-name RegionOne --os-username admin --os-user-domain-id default --os-tenant-id 70968f3b213c4c8d81d92c06a9dddf7c --os-project-domain-id default list 2020-03-11 13:03:13,269 INFO __name__.closed_loop(): Setting up closed loop policy ############################### // This print statement we added in vcpecommon.py file 10.43.21.204 // This print statement we added in vcpecommon.py file 10.43.157.233 // This print statement we added in vcpecommon.py file {u'content': u'controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+true%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard', u'policy-id': u'operational.vcpe'} // This print statement we added in vcpecommon.py file Traceback (most recent call last): File "vcpe.py", line 249, in <module> closed_loop(22) File "vcpe.py", line 164, in closed_loop vcpecommon.set_closed_loop_policy(policy_template_file) File "/root/integration/test/vcpe/vcpecommon.py", line 361, in set_closed_loop_policy verify=False, headers=self.policy_headers) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 76, in get return request('get', url, params=params, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.43.157.233', port=6969): Max retries exceeded with url: /policy/pap/v1/pdps (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fe1f5c7b190>: Failed to establish a new connection: [Errno 110] Connection timed out',)) root@elaltornd-nfs:~/integration/test/vcpe# >From above error, it is clear that host "10.43.157.233" is not reachable. >"vcpe.py loop" we are executing from nfs vm. We noticed that there is a JIRA(i.e. https://jira.onap.org/browse/INT-1323<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_browse_INT-2D1323&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=2Uywd6GszpYTsRe-Fycl7tH92y1idUIR4GkWRlp32P8&e=>) for this issue. W.r.t above JIRA, we cross checked El-Alto , Policy-api & Policy-pap cluster details as shown below. root@elaltornd-nfs:~/integration/test/vcpe# helm ls | head -2 NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE rnd 1 Tue Mar 3 20:37:49 2020 DEPLOYED onap-5.0.0 El Alto onap root@elaltornd-nfs:~/integration/test/vcpe# root@elaltornd-nfs:~/integration/test/vcpe# root@elaltornd-nfs:~/integration/test/vcpe# kubectl get svc -n onap | egrep "policy-api|policy-pap" policy-api ClusterIP 10.43.21.204 <none> 6969/TCP 7d16h policy-pap ClusterIP 10.43.157.233 <none> 6969/TCP 7d16h root@elaltornd-nfs:~/integration/test/vcpe# Also we checked connectivity as below. root@elaltornd-nfs:~/integration/test/vcpe# curl -kI https://10.43.21.204:6969<https://urldefense.proofpoint.com/v2/url?u=https-3A__10.43.21.204-3A6969&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=aZ59ffMlIZp-37wQSDRfEw3DmvTrnqnprtINX-nlrb4&e=> curl: (7) Failed to connect to 10.43.21.204 port 6969: Connection timed out root@elaltornd-nfs:~/integration/test/vcpe# After scanning through JIRA, We came to know that, We are executing "vcpe.py loop" in nfs VM, Where as Bartek executing in k8s cluster. At the end of JIRA, I can see below comment from Catherine. Please let what are those code changes. Catherine Lefevre<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_secure_ViewProfile.jspa-3Fname-3DKatel34&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=SctPc9pLoFSxMKaVf5MYJOqNJOvVqeClhbA0MPAiBJU&e=> added a comment - 21/Jan/20 11:45 AM Brian Freeman<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_secure_ViewProfile.jspa-3Fname-3Dbdfreeman1421&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=VbnrvVHgyduX9trnwMM1R72-qUYXN-YUQ3qJCQAPBTc&e=> - the code has been merged. Can you please let us know if we can close it? thanks Please let us know how to fix this issue. Regards, Manjunath. L&T Technology Services Ltd www.LTTS.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.LTTS.com&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=t7wjZyyfD6ZWIavmr8P7H18H6RxA0PNycjvuEOznVkk&e=> L&T Technology Services Limited (LTTS) is committed to safeguard your data privacy. For more information to view our commitment towards data privacy under GDPR, please visit the privacy policy on our website www.Ltts.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.Ltts.com&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=WxkVzOU7-KXW93Yg95R24mwmQ5yMU_57zpyZ6r1IFlo&s=xR0rJDRtqMlJg96fOuBgt-gD59JTJSOXSR0ByTBymQs&e=>. This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20249): https://lists.onap.org/g/onap-discuss/message/20249 Mute This Topic: https://lists.onap.org/mt/71892755/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
