Versions Compared

Key

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

vCPE Use Case - Customer Service Instantiation - 171103.pdf

...

  1. vCpeResCust custom workflow: 
    1. Use the following to add the custom workflow into the recipe table:

      Code Block
      titleinsert into recipe
      collapsetrue
      INSERT INTO `service_recipe` (`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `CREATION_TIMESTAMP`, `SERVICE_MODEL_UUID`) VALUES ('createInstance','1','vCpeRestCust110301','/mso/async/services/CreateVcpeResCustService',NULL,181,NULL,'2017-11-03 13:48:00','b12d36da-459f-41be-aadc-7034568690eb');
      
      
    2. Successfully invoked the custom workflow from SO NBI using curl (note that VID currently only support a la carte so cannot invoke this flow). 

      Code Block
      titleinvoke vCpeResCust workflow
      collapsetrue
      curl -X POST \
        http://so:8080/ecomp/mso/infra/serviceInstances/v5 \
        -H 'accept: application/json' \
        -H 'authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' \
        -H 'cache-control: no-cache' \
        -H 'content-type: application/json' \
        -H 'postman-token: 0c4f0ea7-736f-4999-3399-982de75ceecf' \
        -d '{
         "requestDetails" : {
            "requestInfo" : {
               "productFamilyId" : "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
               "suppressRollback" : "false",
               "instanceName" : "vcperescust-102404",
               "requestorId": "demo",
               "source" : "VID"
            },
            "requestParameters" : {
               "subscriptionServiceType" : "123456789",
               "userParams" : [{
                  "name":"BRG_WAN_MAC_Address",
                  "value":"brgmac"
               }],
               "aLaCarte" : "false"
            },
            "subscriberInfo" : {
               "subscriberName" : "Kaneohe",
               "globalSubscriberId" : "SDN-ETHERNET-INTERNET"
            },
            "cloudConfiguration" : {
               "lcpCloudRegionId" : "RegionOne",
               "tenantId" : "466979b815b5415ba14ada713e6e1846"
            },
            "modelInfo" : {
               "modelType" : "service",
               "modelVersionId" : "ASDC_TOSCA_UUID",
               "modelName" : "vCpeResCust",
               "modelVersion" : "1.0",
               "modelInvariantId" : "1963dd8b-9375-4cab-aa59-0ee06e8333fa"
            }
         }
      }
      '
    3. A bug is discovered for the workflow and is being worked on (tracked by 
      Jira Legacy
      serverSystem Jira
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
      keySO-262
      .
  2. Genera Infrastructure: With the following manual fix we are able to distribute the service to SO.
    1. The generic neutron network HEAT template is missing from the SO DB. Brian found a way to manually fix it. SO will include this in the repo. It is tracked by 

      Jira Legacy
      serverSystem Jira
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
      keySO-265
      . The scipt and heat template are given below (updated on 10/25 based on Brian Freeman's comments to 
      Jira Legacy
      serverSystem Jira
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
      keySO-265
      ).

      Code Block
      titleinsert HEAT into SO DB
      collapsetrue
      INSERT INTO `heat_template_params` (`HEAT_TEMPLATE_ARTIFACT_UUID`,`PARAM_NAME`,`IS_REQUIRED`,`PARAM_TYPE`,`PARAM_ALIAS` ) VALUES ('efee1d84-b8ec-11e7-abc4-cec278b6b50a','network_name',1 ,'string', NULL);
      INSERT INTO `heat_template_params` (`HEAT_TEMPLATE_ARTIFACT_UUID`,`PARAM_NAME`,`IS_REQUIRED`,`PARAM_TYPE`,`PARAM_ALIAS` ) VALUES ('efee1d84-b8ec-11e7-abc4-cec278b6b50a','shared',0 ,'string', NULL);
      INSERT INTO `heat_template` (`ARTIFACT_UUID`, `NAME`,`VERSION` , `BODY`, `TIMEOUT_MINUTES`,`DESCRIPTION`, `CREATION_TIMESTAMP`, `ARTIFACT_CHECKSUM` ) VALUES ('efee1d84-b8ec-11e7-abc4-cec278b6b50a', 'GenericNeutronNetGeneric NeutronNet', '1', LOAD_FILE('/tmp/generic_neutron.yaml') , 10 ,'Generic Neutron Template',NOW(), 'MANUAL RECORD');
       
      heat_template_version: 2013-05-23
      description: A simple Neutron network
      parameters:
        network_name:
          type: string
          description: Name of the Neutron Network
          default: ONAP-NW1
        shared:
           type: boolean
           description: Shared amongst tenants
           default: True
      outputs:
        network_id:
          description: Openstack network identifier
          value: { get_resource: network }
      resources:
        network:
          type: OS::Neutron::Net
          properties:
            name: { get_param: network_name }
            shared: { get_param: shared }
      
      
      
      
    2. network_resource table model_invariant_uuid was too short (20 instead of at least 36). Manually increased to 120. It is tracked by 
      Jira Legacy
      serverSystem Jira
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
      keySO-266
  3. Genera Infrastructure: Instantiation
    1. Need to run "/opt/demo.sh init" in the robot VM first.
    2. A service was created using VID.
    3. Tried to add a neutron network to it. SO received an error from SDNC. This is tracked by 
      Jira Legacy
      serverSystem Jira
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
      keySDNC-143
    4. The 404 error in VID on deploy is due to missing zone data in AAI. Preload AAI with the following:

      Code Block
      titlePreload AAI with zone data
      collapsetrue
      PUT https://{{aai}}:8443/aai/v11/network/zones/zone/nova1
      {
          "zone-id": "nova1",
          "zone-name": "nova",
          "design-type": "integration",
          "zone-context": "labs",
          "status": "Active"
      }
  4. VNFs:
    1. Updated doc is available: ONAP vCPE VPP-based VNF Installation and Usage Information
  5. Closed loop: APPC-MultiCloud:
    1. The team is debugging the API request from APPC to MultiCloud. It is tracked by 
      Jira Legacy
      serverSystem Jira
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
      keyMULTICLOUD-119

...

  1. VNF Doc: ONAP vCPE VPP-based VNF Installation and Usage Information
  2. DCAE mS Deployment (Standalone instantiation)
  3. SNIRO Emulator


export MULTICLOUD_PLUGIN_ENDPOINT=http://10.0.14.1:9005/api/multicloud-titanium_cloud/v0/pod25_RegionOne

 

export TOKEN=$(curl -v -s -H "Content-Type: application/json" -X POST -d '{ }'  $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/auth/tokens 2>&1 | grep X-Subject-Token | sed "s/^.*: //")

 

export PROJECT_ID=466979b815b5415ba14ada713e6e1846

 

curl -v -s  -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/compute/v2.1/$PROJECT_ID/servers

 

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X POST -d '{"os-stop":null}'  $MULTICLOUD_PLUGIN_ENDPOINT/compute/v2.1/$PROJECT_ID/servers/0a06842a-4ec4-4918-b046-399f6b38f5f9/action

 

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X POST -d '{"os-start":null}'  $MULTICLOUD_PLUGIN_ENDPOINT/compute/v2.1/$PROJECT_ID/servers/0a06842a-4ec4-4918-b046-399f6b38f5f9/action