You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

In this tutorial we show how to take a service design that has been distributed and create a running instance of the service.  To simplify this we are going to use scripts to create the design, pre-load customer and network information, and orchestrate parts of the virtual firewall closed loop example.  The following steps assume that you have completed and understand basic concepts from the setting up the platform and using the portal tutorials. 

Let's start by finding the IP Address of vm1-robot in the Rackspace list of servers.  Use this vm1-robot IP address, your Rackspace private key, and the PuTTY client to login to vm1-robot as root.

At the command prompt type

    cd /opt
    ./demo.sh init

Wait for all steps to complete as shown below

If you want to see the details of what ran, you can open report.html in a browser.

TODO: find html output - currently missing

1 test total, 1 passed, 0 failed

==============================================================================

Output:  /share/logs/demo/InitDemo/output.xml

Log:     /share/logs/demo/InitDemo/log.html

Report:  /share/logs/demo/InitDemo/report.html

root@vm1-robot:/opt# cat /share/logs/demo/InitDemo/report.html

cat: /share/logs/demo/InitDemo/report.html: No such file or directory



From the ONAP portal, login to the VID application using demo user, browse to locate the demo SDC Service Models, and Deploy an instance of the demoVFW.


Fill in the information for a Service Instance as shown below and press Confirm.


Wait for a response and close the window


You should now see a service instance displayed.


Add a VNF using the drop down button, complete, and enter the following information.   The tenant and LCP region drop down choices may be different for your Rackspace account.


Wait for and close the response window.

Return to the PuTTY window and type the command to load VNF configuration information


     
./demo.sh preload <vnf_name> <module_name>
example
./demo.sh preload DemoVNF DemoModule

Wait for the results as shown below


Add a VF Module using the drop down button.


Fill in information for the VF module and confirm.


Handle MSO Failure on Create VF Module

TODO: possible MSO Failure - look into it - a retry will just fail on another IP for the port

05/18/17 15:05:57 HTTP Status: OK (200)
{
  "request": {
    "requestId": "6c0afeaf-42a4-4628-9312-2305e533f673",
    "startTime": "Wed, 17 May 2017 19:04:56 GMT",
    "requestScope": "vfModule",
    "requestType": "createInstance",
    "requestDetails": {
      "modelInfo": {
        "modelCustomizationName": null,
        "modelInvariantId": "d85f73af-966f-45a1-8d40-683c4b0227dd",
        "modelType": "vfModule",
        "modelNameVersionId": "57ea5081-68ed-474b-b93c-daa2090635c1",
        "modelName": "TutorialFwlMikeYves..base_vfw..module-0",
        "modelVersion": "1"
      },
      "requestInfo": {
        "billingAccountNumber": null,
        "callbackUrl": null,
        "correlator": null,
        "orderNumber": null,
        "productFamilyId": null,
        "orderVersion": null,
        "source": "VID",
        "instanceName": "DemoModule_MY",
        "suppressRollback": false
      },
      "relatedInstanceList": [
        {
          "relatedInstance": {
            "instanceName": null,
            "instanceId": "01f7374f-d1b9-41d0-9a5c-79902f478448",
            "modelInfo": {
              "modelCustomizationName": null,
              "modelInvariantId": "9a8ea46d-30b0-47e1-8147-d3004132bec5",
              "modelType": "service",
              "modelNameVersionId": "7d76a012-91e2-4eae-9141-c2040cafaac3",
              "modelName": "tutorial service MY",
              "modelVersion": "1.0"
            }
          }
        },
        {
          "relatedInstance": {
            "instanceName": null,
            "instanceId": "e9af4faf-7fd3-4af7-a71a-a5b83cd248fa",
            "modelInfo": {
              "modelCustomizationName": "tutorial fwl mike_yves 1",
              "modelInvariantId": "b92bef5a-4f77-479d-9a26-c49064abdbd6",
              "modelType": "vnf",
              "modelNameVersionId": "7039fa3c-26ca-4857-aa93-8ba76a40b7ed",
              "modelName": "tutorial fwl mike_yves",
              "modelVersion": "1.0"
            }
          }
        }
      ],
      "subscriberInfo": null,
      "cloudConfiguration": {
        "aicNodeClli": null,
        "tenantId": "1035021",
        "lcpCloudRegionId": "IAD"
      },
      "requestParameters": {
        "subscriptionServiceType": null,
        "userParams": []
      }
    },
    "instanceReferences": {
      "serviceInstanceId": "01f7374f-d1b9-41d0-9a5c-79902f478448",
      "serviceInstanceName": null,
      "vnfInstanceId": "e9af4faf-7fd3-4af7-a71a-a5b83cd248fa",
      "vnfInstanceName": null,
      "vfModuleInstanceId": null,
      "vfModuleInstanceName": "DemoModule_MY",
      "volumeGroupInstanceId": null,
      "volumeGroupInstanceName": null,
      "networkInstanceId": null,
      "networkInstanceName": null
    },
    "requestStatus": {
      "requestState": "FAILED",
      "statusMessage": "Received vfModuleException from VnfAdapter: category='INTERNAL' message='Exception during create VF 0 : Stack error (CREATE_FAILED): Resource CREATE failed: IpAddressInUseClient: resources.vsn_private_1_port: Unable to complete operation for network 6dfab28d-183e-4ffd-8747-b360aa41b078. The IP address 10.1.0.13 is in use. - stack successfully deleted' rolledBack='true'",
      "percentProgress": 100,
      "finishTime": "Wed, 17 May 2017 19:05:48 GMT"
    }
  }
}


Wait for the response and close the window as was done in prior steps.    The VF Module creation can also be viewed as a stack in Rackspace as shown below.


To complete the service instance we will run one more script that mounts the Traffic Generator on the Application Controller to enable policy driven configuration changes.   Return to the PuTTY window, type the command and wait for the response as shown below.

     ./demo.sh appc DemoModule

The platform and virtual function interactions in the control loop are summarized here.



  • No labels