13 Discover Stack

  • It is an N/B LCM Discover Rest I/F. This information can be further used by the orchestrator to scale out the stack.
  • Before discovering the stack, make sure the following information is available:
    • The Stack ID of the previously created stack.
    • The following information about the OpenStack instance on which the stack must be discovered:
      • OpenStack Controller URI
      • Use Domain Name
      • Project Domain Id
      • Username
      • Password
      • Project name
    • The Interface discovers the stack and performs the following operations:
      • Download the parameter file of the discovered stack.
      • Create the Instance file of the discovered stack.
      • These two files are saved in /var/vnfm/instances/<autoDiscovery InstanceId>/ directory.
      • Vnfd file generated in the same location for V2.

Sample Request for Discover Interface

Request URL : POST:
  
https://<<VNFM HOST IP>>:8443/vnflcm/<<vnfm_version>>/discover/<<discover stack id>>
 
Accept: application/json
Content-Type: application/json
Authorization : <Token generated after login>
Request Body:
{  
  "vimConnectionInfo": {
        "MvlCloud": {
            "vimId": "vimId",
            "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_3",
            "interfaceInfo": {
                "endpoint": "https://mvl-dev1.us.oracle.com:5000/v3"
            },
            "accessInfo": {
                "project": "*****",
                "region": "RegionOne",
                "username": "******",
                "password": "******",
                "userDomain": "Default",
                "projectDomain": "default"
            }
        }
    }
 }

Sample Response for Discover Interface

Response Code: 200
{ 
"vnfInstanceId": "dsrNetworkOam-945cffa107c235bb-43d87678-756b-4f8e-a59c-d9b7d4dd95a1",
"discoverStackId": "7d861391-0ed2-4d0b-9f01-e84e186e9244"
 }

Note:

  • Discover VNF Stack supports only the stacks created on VNFM of the same release.
  • Discover VNF stack supports only the stack created by VNFM templates of the same release through CLI.
  • Discover VNF stack also supports the stack created by VNFM GUI, Double Failure of Active VNFM and its persistent volume.