Dear Team,

Please let us know how to below issue.

Regards,
Manjunath.



________________________________
From: Devangam Manjunatha <[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 --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) 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
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://jira.onap.org/secure/ViewProfile.jspa?name=Katel34> 
added a comment - 21/Jan/20 11:45 AM

Brian Freeman<https://jira.onap.org/secure/ViewProfile.jspa?name=bdfreeman1421> 
- the code has been merged. Can you please let us know if we can close it? 
thanks

<https://jira.onap.org/browse/INT-1323#>



Please let us know how to fix this issue.


Regards,
Manjunath.

















L&T Technology Services Ltd

www.LTTS.com

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. 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 (#20240): https://lists.onap.org/g/onap-discuss/message/20240
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to