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 <
[email protected]> 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:* [email protected] <[email protected]> *On
> Behalf Of *Rajendra Prasad Mishra via Lists.Onap.Org
> *Sent:* Tuesday, August 13, 2019 3:40 PM
> *To:* CHO, TAKAMUNE <[email protected]>
> *Cc:* [email protected]
> *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 <[email protected]> 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:* [email protected] <[email protected]> *On
> Behalf Of *Rajendra Prasad Mishra
> *Sent:* Monday, August 12, 2019 12:07 PM
> *To:* [email protected]
> *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 (#18547): https://lists.onap.org/g/onap-discuss/message/18547
Mute This Topic: https://lists.onap.org/mt/32842361/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to