Hi Rajendra,

Your Template seems to be ok. Please check your CM request. Can you share the 
error log?

Sample CM request,

{
  "version": "2.0",
  "type": "request",
  "correlation-id": "c09ac7d1-de62-0016-2000-e63701125557-201",
  "cambria.partition": "APPC",
  "rpc-name": "config-modify",
  "body": {
  "input": {
    "common-header": {
      "timestamp": "2019-05-14T11:44:51.36Z",
      "api-ver": "2.00",
      "originator-id": "849e6c6b420",
      "request-id": "23343221",
      "sub-request-id": "1126678956",
      "flags": {
        "mode": "NORMAL",
        "force": "TRUE",
        "ttl": 36000
      }
    },
    "action": "ConfigModify",
    "action-identifiers": {
      "vnf-id": "074e192d-8704-47c8-a910-682539e2e87d"
    },
    "payload": 
"{\"request-parameters\":{\"vnf-host-ip-address\":\"10.12.6.0\"},\"configuration-parameters\":{\"status\":\"true\"}}"
  }
  }
}

In CDT you create the template with this parameters (highlighted in Yellow) and 
expect the values to be passed during runtime in CM request.

If I understand correctly, in your scenario the payload should be something 
like,

"{\"request-parameters\":{\"vnf-host-ip-address\":\"192.168.122.238\"},\"configuration-parameters\":{\"
 id_val \":\"01\",\" enabled_val \":\"true\"}}"

However I’m  not sure what ‘s the Netconf Message is. Its just a guess based on 
limited input available in the email. Thanks!

Br,
Lathish
From: Rajendra P Mishra (RP) <rpmis...@aarnanetworks.com>
Sent: Tuesday, August 13, 2019 6:48 PM
To: Lathishbabu Ganesan <lathishbabu.gane...@ericsson.com>
Cc: onap-discuss@lists.onap.org; CHO, TAKAMUNE <tc0...@att.com>
Subject: Re: [onap-discuss] [APPC] [CDT] [PNF] ConfigModify LCM command fails 
on PNF

Lathish, thank you for the detailed answers. I modified my template based on 
your description, however it still fails.

Can you share the template & request for ConfigModify if you have one.

The request that I post on DMAAP.
----
{
       "version": "2.00",
       "rpc-name": "config-modify",
       "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-10",
       "type": "request",
       "body": {
               "input": {
                       "common-header": {
                               "timestamp": "2019-08-13T15:25:00.44Z",
                               "api-ver": "2.00",
                               "originator-id": "PNF_TEST",
                               "request-id": "PNF_USER_1",
                               "sub-request-id": "cmodify",
                               "flags": {
                                       "force": "TRUE",
                                       "ttl": 60000
                               }
                       },
                       "action": "ConfigModify",
                       "action-identifiers": {
                               "vnf-id": "PNF_device01"
                       },
                       "payload": "{
                                        
\"vnf-host-ip-address\":\"192.168.122.238\",
                                       \"generic-vnf.vnf-id\": \"PNF_device01\",
                                       \"pg-streams\":{
                                               \"pg-stream\": { 
\"id\":\"fw_udp1\", \"is-enabled\": \"true\"}
                                       }
                               }"
               }
       }
}
-------

My CDT template.

------
<node xmlns="urn:TBD:params:xml:ns:yang:network-topology">
  <pg-streams>
  <pg-stream>
 <id>${id_val}</id>
 <enabled>${enabled_val}</enabled>
  </pg-stream>
</pg-streams>
</node>
---

thanks,
-RP

On Tue, Aug 13, 2019 at 8:29 PM Lathishbabu Ganesan 
<lathishbabu.gane...@ericsson.com<mailto:lathishbabu.gane...@ericsson.com>> 
wrote:
Hi RP,

For Netconf-XML, you no need URL. You need to fill in the USER_NAME, PASSWORD, 
PORT_NUMBER. APPC identifies the VNF/PNF from AAI or from the Config Modify 
Request.
This will be configured during Design time in CDT.

Please find the response below.

Br,
Lathish

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 via 
Lists.Onap.Org<https://protect2.fireeye.com/url?k=7c97eeab-201e3487-7c97ae30-0cc47ad93da2-734ed2a06d2ae253&q=1&u=http%3A%2F%2Flists.onap.org%2F>
Sent: Tuesday, August 13, 2019 3:40 PM
To: CHO, TAKAMUNE <tc0...@att.com<mailto:tc0...@att.com>>
Cc: onap-discuss@lists.onap.org<mailto: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.
[Lathish] : This is done during the design time in CDT. After you enter 
Username & Port. You have the option to define how the parameter values will be 
filled during Runtime. Either manual or from AAI. If you set it as Manual then, 
in the CM request you need to pass the vnf-host-ip-address(VNF/PNF IP) in the 
payload.

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.
[Lathish] : VNF/PNF with Netconf-xml protocol, you can do ssh to connect to the 
host and verify it. I can share the NETCONF message if you want.

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 ?
[Lathish] : It depends upon your use case. For now we have a use case where 
policy triggers CM.

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.
[Lathish] : First you need to mount the node in APPC to trigger RESTCONF. I 
haven’t tried RESTCONF from APPC LCM.


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)
[Lathish] : You get this error when APPC couldn’t establish the ssh connection 
with the node. Once you fill in the DEVICE_AUTHENTICATION with right values, it 
should work.

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://protect2.fireeye.com/url?k=0a29fba9-56a020a6-0a29bb32-0cc47ad93e1a-16770a7757e49597&q=1&u=https%3A%2F%2Fjira.onap.org%2Fbrowse%2FAPPC-1593>
 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 (#18562): https://lists.onap.org/g/onap-discuss/message/18562
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