Rajendra,

CDT gives you the option to upload parameters list and the Netconf interface of 
the device. Look at 
https://docs.onap.org/en/latest/submodules/integration.git/docs/docs_scaleout.html
 section 1.5 for an example of how to use CDT with Netconf.

Marco

From: <onap-discuss@lists.onap.org> on behalf of Rajendra Prasad Mishra 
<rpmis...@aarnanetworks.com>
Reply-To: "onap-discuss@lists.onap.org" <onap-discuss@lists.onap.org>, 
"rpmis...@aarnanetworks.com" <rpmis...@aarnanetworks.com>
Date: Tuesday, August 13, 2019 at 10:43 AM
To: "CHO, TAKAMUNE" <tc0...@att.com>
Cc: "onap-discuss@lists.onap.org" <onap-discuss@lists.onap.org>
Subject: Re: [onap-discuss] [APPC] [CDT] [PNF] ConfigModify LCM command fails 
on PNF

Thanks Taka. That was helpful.

I added the DEVICE_INTERFACE_PROTOCOL entry in the DB and it moved further.

Additionally, it was failing to identify the URL so I added the following entry 
in DEVICE_AUTHENTICATION in appc db. I hope this is correct.

update DEVICE_AUTHENTICATION set PASSWORD="netconf", URL="192.168.122.238" 
where DEVICE_AUTHENTICATION_ID=55;

MariaDB [sdnctl]>  select * from DEVICE_AUTHENTICATION ;
+--------------------------+----------+-------------+--------------+-----------+----------+-------------+-----------------+
| DEVICE_AUTHENTICATION_ID | VNF_TYPE | PROTOCOL    | ACTION       | USER_NAME 
| PASSWORD | PORT_NUMBER | URL             |
+--------------------------+----------+-------------+--------------+-----------+----------+-------------+-----------------+
|                       55 | vFW      | NETCONF-XML | ConfigModify | netconf   
| netconf  |         830 | 192.168.122.238 |

With all these changes I am able to move further. However, it still fails to 
connect to the PNF simulator.
I have a few questions.

1. How does CDT/APPC know about the URL for which we are doing the ConfigModify 
action. There is no field in CDT to fill in the info. It only asks for 
"Username" and "Port" in the CDT gui.

2. What is the expectation from the PNF/VNF for accepting the NETCONF-XML 
protocol. Is there a way to verify whether PNF/VNF is listening for our request.

3. Currently I am posting the ConfigModify request on DMAAP. However, in the 
eventual scheme who triggers the LCM configModify ? How is it used with real 
VNF's ?

4. We have tested ModifyConfig with RESTCONF and closed loop. How can we use 
RESTCONF  from CDT ? When I choose the RESTCONF protocol it fails (log says 
"Error occurred in processFlow java.lang.Exception: Don't know how to execute 
transaction ID 1). Do we need to do something different in case of RESTCONF and 
ConfigModify LCM in CDT/APPC.


Below is the snippet of the log failure when we do ConfigModify with 
NETCONF-XML (The full log is attached)

2019-08-13T14:14:24,757 | INFO  | appc-dispatcher-3 | GraphExecutor             
       | 513 - org.onap.appc.flow.controller - 1.4.4 | NEW KEY =  
input.action-identifiers.vserver-id --
2019-08-13T14:14:24,757 | INFO  | appc-dispatcher-3 | GraphExecutor             
       | 513 - org.onap.appc.flow.controller - 1.4.4 | NEW KEY =  tmp.message 
-- Download Failure : 401 : com.jcraft.jsch.JSchException: 
java.net.ConnectException: Connection refused (Connection refused)
2019-08-13T14:14:24,757 | INFO  | appc-dispatcher-3 | GraphExecutor             
       | 513 - org.onap.appc.flow.controller - 1.4.4 | NEW KEY =  
config-template.config-file-id -- 1312
2019-08-13T14:14:24,757 | INFO  | appc-dispatcher-3 | GraphExecutor             
       | 513 - org.onap.appc.flow.controller - 1.4.4 | NEW KEY =  
input.action-identifiers.vnf-id -- PNF_device01

thanks,
-RP


On Mon, Aug 12, 2019 at 11:55 PM CHO, TAKAMUNE 
<tc0...@att.com<mailto:tc0...@att.com>> wrote:
I saw:

2019-08-12T14:32:49,631 | DEBUG | appc-dispatcher-5 | CachedDataSource          
       | 219 - org.onap.ccsdk.sli.core.dblib-provider - 0.3.3 | SQL Statement: 
SELECT * FROM DEVICE_INTERFACE_PROTOCOL WHERE vnf_type = 'vFW' ;
2019-08-12T14:32:49,635 | DEBUG | appc-dispatcher-5 | CachedDataSource          
       | 219 - org.onap.ccsdk.sli.core.dblib-provider - 0.3.3 | SQL SUCCESS. 
rows returned: 0, time(ms): 4
2019-08-12T14:32:49,635 | DEBUG | appc-dispatcher-5 | DBResourceManager         
       | 219 - org.onap.ccsdk.sli.core.dblib-provider - 0.3.3 | >> getData : 
dbhost  5 miliseconds.
2019-08-12T14:32:49,636 | DEBUG | appc-dispatcher-5 | SqlResource               
       | 218 - org.onap.ccsdk.sli.adaptors.sql-resource-provider - 0.3.3 | No 
data found
2019-08-12T14:32:49,636 | ERROR | appc-dispatcher-5 | ConfigResourceNode        
       | 509 - appc-config-data-services - 1.4.4 | Failed in getCommonConfigInfo
org.onap.appc.data.services.node.QueryException: Unable to Read 
device_interface_protocol

this should be fixed at 
https://jira.onap.org/browse/APPC-1593<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_browse_APPC-2D1593&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=9MCaPSStjFBKB7i_hZ72ghwfVu04sTAvsoi_KPmvLD0&s=ZYSvPj1OEK0ptDOr6qV4iR956LbLtvbIY3JxCiW6-98&e=>
 in Dublin release.

Check the comment what Marco said in the JIRA ticket.

Hope that helps.

Taka

From: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org> 
<onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>> On Behalf Of 
Rajendra Prasad Mishra
Sent: Monday, August 12, 2019 12:07 PM
To: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Subject: [onap-discuss] [APPC] [CDT] [PNF] ConfigModify LCM command fails on PNF

Hi,
      I am trying to do ConfigModify LCM using CDT in ONAP CASABLANCA. I am 
using a "PNF simulator" instead of VNF.
When we POST the configModify command on DMAAP, APPC looks for the "vnf" 
related information from AAI.
To workaround that, we populated the PNF information in AAI.

With above changes I am able to post the ConfigModify request to DMAAP, and 
then APPC picks it up and processes it.
However, APPC fails to complete the request. Below is the snippet of the log. 
Looks like APPC failed at "GetAaiInfo"
The full log is also attached.

Taka, Marco and other members of APPC team, request your help.

---
2019-08-12T14:32:49,713 | INFO  | appc-dispatcher-5 | FlowControlNode           
       | 513 - org.onap.appc.flow.controller - 1.4.4 | Executed all the 
transaction successfully
2019-08-12T14:32:49,713 | ERROR | appc-dispatcher-5 | FlowControlNode           
       | 513 - org.onap.appc.flow.controller - 1.4.4 | Error occurred in 
processFlow
org.onap.ccsdk.sli.core.sli.SvcLogicException: DG Workflow GetAaiInfo not found
at 
org.onap.appc.flow.controller.node.FlowControlNode.processFlow(FlowControlNode.java:135)
 ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
----

I am trying to test ConfigModify LCM on a PNF using CDT. I have also attached 
the ConfigModify request json file.

thanks,
-RP






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18543): https://lists.onap.org/g/onap-discuss/message/18543
Mute This Topic: https://lists.onap.org/mt/32842361/21656
Group Owner: onap-discuss+ow...@lists.onap.org
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to