Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
absoluteUrltrue

Admin guide

Installation

Install the latest VTP by using script https:/github.com/onap/vnfsdk-refrepo/blob/master/vnfmarket-be/deployment/install/vtp_install.sh

...

Last step (verify) would check the health of VTP components and TOSCA VNF compliance and validation test cases.

Check available test cases

Compliance Test cases

VTP supports to check the compliance of VNF and PNF based on ONAP VNFREQS.

...

Code Block
languagepowershell
themeEclipse
oclip:open-cli>use onap-dublin
oclip:onap-dublin>csar-validate-r54356 --help
usage: oclip csar-validate-r54356

Data types used by NFV node and is based on TOSCA/YAML constructs specified in draft GS NFV-SOL 001.
The node data definitions/attributes used in VNFD MUST comply.


......

oclip:onap-dublin>

Validation test cases

To check:

  1. Go to command console
  2. Run command oclip

...

NOTE: vnf-tosca-lcm would be used in place of vnf-tosca-provision some time.

Configure ONAP with required VNFM and cloud details.


1.Setup the OCOMP profile onap-dublin 

  • Run following command to configure the ONAP service URL and creadentials as given below, which will be used by VTP while executing the test cases

...

Code Block
languagebash
themeEclipse
oclip:onap-dublin> exit

2. Setup SDC consumer

SDC uses consumer concept to configure required VN model and service model artifacts. So following commands required to run, which will create consumer named ocomp, which is already configured in onap-dublin profile created in above steps.

...

NOTE: command oclip could be used in scripting mode as above or in interactive mode as used in earlier steps

3. Update the cloud and vnfm driver details

In the configuration file /opt/oclip/conf/vnf-tosca-provision.json, update the cloud and VNFM details.

Code Block
languageyml
....
"cloud": {
        "identity-url": "http://10.12.11.1:5000/v3",
        "username": "admin",
        "password": "password",
        "region": "RegionOVP",
        "version": "ocata",
        "tenant": "ocomp"
    },
    "vnfm":{
        "hwvnfmdriver":{
            "version": "v1.0",
            "url": "http://159.138.8.8:38088",
            "username": "admin",
            "password": "xxxx"
        },
        "gvnfmdriver":{
            "version": "v1.0",
            "url": "http://159.138.8.8:30280"
        }
    }
....

4.Configure the decided VNFRES (optional)

VTP allows to configure the set of VNFREQS to be considered while running the VNF compliance test cases in the configuration file /opt/oclip/conf/vnfreqs.properties.

...

This completes the required installation and configuration required for running compliance and validation test cases for TOSCA VNF. Now its ready for executing the test cases

VNF test environment:

Image Added

As pre-requestiests steps, Its assumed that, successful ONAP, Vendor VNFM and OpenStack cloud are already available. 

And above steps help to setup VTP components and CLI

NOTE: For OVP badging, Test cases can be triggered using CLI.

User guide

Every test provided in VTP is given with guidelines on how to use it. On every execution of test cases, use the following additional arguments based on requirements

...

Code Block
languagepowershell
themeEclipse
oclip --product onap-dublin <test case name> --help

To Run compliance Test case

Run compliance test as below with given CSAR file

...

Each error block, will be given with error code and error details. Error code would be very useful to provide the troubleshooting guide in future.


NOTE: To generate the test result in OVP format, its recommended to run this compliance test with request-id similar to running validation test as below.

To Run validationTest case

VTP provides validation test case with following modes:

...

Code Block
languagexml
{
  "output": {
    "ns-id": null,
    "vnf-id": "",
    "vnfm-driver": "hwvnfmdriver",
    "vnf-vendor-name": "huawei",
    "onap-objects": {
      "ns_instance_id": null,
      "tenant_version": null,
      "service_type_id": null,
      "tenant_id": null,
      "subscription_version": null,
      "esr_vnfm_id": null,
      "location_id": null,
      "ns_version": null,
      "vnf_status": "active",
      "entitlement_id": null,
      "ns_id": null,
      "cloud_version": null,
      "cloud_id": null,
      "vlm_version": null,
      "esr_vnfm_version": null,
      "vlm_id": null,
      "vsp_id": null,
      "vf_id": null,
      "ns_instance_status": "active",
      "service_type_version": null,
      "ns_uuid": null,
      "location_version": null,
      "feature_group_id": null,
      "vf_version": null,
      "vsp_version": null,
      "agreement_id": null,
      "vf_uuid": null,
      "ns_vf_resource_id": null,
      "vsp_version_id": null,
      "customer_version": null,
      "vf_inputs": null,
      "customer_id": null,
      "key_group_id": null,
    },
    "vnf-status": "active",
    "vnf-name": "vgw",
    "ns-status": "active"
  },
  "input": {
    "mode": "validate",
    "vsp": "/tmp/data/vtp-tmp-files/1568731645518.csar",
    "vnfm-driver": "hwvnfmdriver",
    "config-json": "/opt/oclip/conf/vnf-tosca-provision.json",
    "vnf-vendor-name": "huawei",
    "ns-csar": "/tmp/data/vtp-tmp-files/1568731660745.csar",
    "onap-objects": "{}",
    "timeout": "600000",
    "vnf-name": "vgw",
    "vnf-csar": "/tmp/data/vtp-tmp-files/1568731655310.csar"
  },
  "product": "onap-dublin",
  "start-time": "2019-09-17T14:47:58.000",
  "service": "vnf-validation",
  "end-time": "2019-09-17T14:53:46.000",
  "request-id": "WkVVu9fD-1568731678753",
  "command": "vnf-tosca-provision",
  "status": "completed"
}


How to submit the results to OVP Portal 

...

VTP provides translation tool to migrate the VTP result into OVP format and generates the tar file for the given test case execution.

Please refer https://github.com/onap/vnfsdk-refrepo/tree/master/vnfmarket-be/deployment/vtp2ovp for more details.

Once tar is generated, it can be used to submit into OVP portal https://vnf-verified.lfnetworking.org/TBD