13 Discover Stack

It is an N/B LCM Discover Rest Interface. The orchestrator can use this information to scale out the stack. Before discovering the stack, ensure that you have the following information available:

  • The Stack ID of the previously created stack.
  • Details about the OpenStack instance where the stack will be discovered:
    • OpenStack Controller URI
    • User Domain Name
    • Project Domain Id
    • Username
    • Password
    • Project name
  • The Interface discovers the stack and performs the following operations:
    • Downloads the parameter file of the discovered stack.
    • Creates the Instance file of the discovered stack.
    • These files are saved in the /var/vnfm/instances/<autoDiscovery InstanceId>/ directory.
    • Generates a VNFD file 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"
            }
        }
    },
    "vnfSoftwareVersion": "DSR-9.0.2.2.0_99.16.0"
 }
 

Sample Response for Discover Interface

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

Note:

  • The Discover VNF Stack feature supports stacks created by the VNFM GUI and recovers from a double failure of the active VNFM and its persistent volume.
  • The vnfSoftwareVersion parameter is optional. If provided with a DSR version, the same version is displayed in the Query VNF API response.
  • This feature ensures VNFM backward compatibility. Upgraded DSR versions are supported with newly installed compatible VNFM versions.