13 Discover Stack
- It is an 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
- Tenant 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.
Sample Request for Discover Interface
Request URL: POST:
https://<<VNFM HOST IP>>:8443/vnflcm/v1/discover/<<discover stack id>>
For example:
https://localhost:8443/vnflcm/v1/discover/b30ac203-5fe1-4007-a3ba-078f3422708b
Accept: application/json
Content-Type: application/json
X-Token: Token generated after login
Request Body:
{
"vimConnectionInfo": [
{
"id": "vimid",
"vimType": "OpenStack",
"interfaceInfo": {
"controllerUri": "https://oortcloud.us.oracle.com:5000/v3"
},
"accessInfo": {
"username": "dsrat.user",
"password": "xxxx",
“userDomain”: “Default”,
"projectDomain": "default",
"tenant": "DSR AT Dev 1"
}
}
]
}
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.