Hi Shubhra,

http://127.0.0.1:30223/ecomp/mso/infra/orchestrationRequests/v2/
This API is to get the request information in SO not any specific service / VNF 
/ VF instance details.

Please note that SO does not store any Instance Information, i.e, SO is 
stateless. To be able to get the details of any service / vnf / vf, you need to 
query AAI.

Service-instance:
https://{{aai_ip}}:{{aai_port}}/aai/v11/business/customers/customer/{{aai_global-customer-id}}/service-subscriptions/service-subscription/{{aai_subscription-service-type-prefix}}/service-instances<https://%7b%7baai_ip%7d%7d:%7b%7baai_port%7d%7d/aai/v11/business/customers/customer/%7b%7baai_global-customer-id%7d%7d/service-subscriptions/service-subscription/%7b%7baai_subscription-service-type-prefix%7d%7d/service-instances>

Generic VNF (VF Module as well)
https://{{aai_ip}}:{{aai_port}}/aai/v11/network/generic-vnfs?depth=2<https://%7b%7baai_ip%7d%7d:%7b%7baai_port%7d%7d/aai/v11/network/generic-vnfs?depth=2>

Thanks
Abhishek Shekhar

From: onap-discuss-boun...@lists.onap.org 
[mailto:onap-discuss-boun...@lists.onap.org] On Behalf Of shubhra garg
Sent: Saturday, February 10, 2018 8:27 PM
To: onap-...@lists.onap.org; onap-discuss@lists.onap.org
Cc: shubhra.g...@infosys.com
Subject: [onap-discuss] querying MSO still shows the deleted VNF , VF module 
and service instance details

Hi Team,

We created service instance , VNF, VF module. Still, we got stuck at VF module 
creation part, we deleted the complete set ( service instance, VNF and VF 
module)

We re-created a new service instance over the same service model in VID, by 
clicking on deploy button.

But, the MSO shows the details of the previous deleted service instance.

The complete MSO query ( with deleted and new service instance details ) has 
been attached for your reference. PFA

IMO, MSO must not show the previous details ( service instance,  VNF, VF module 
) etc.
It should show only the newly created service instance, VNF , VF module details.



Deleted service instance details:

root@ubuntu:/home/infy_user# curl -X GET 
http://127.0.0.1:30223/ecomp/mso/infra/orchestrationRequests/v2/ -H 'Accept: 
application/json' -H 'Authorization: Basic 
SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' -H 'Content-Type: application/json' 
-H 'X-FromAppId: Postman' | python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17596    0 17596    0     0  13702      0 --:--:--  0:00:01 --:--:-- 13714
{
    "requestList": [
        {
            "request": {
                "instanceReferences": {
                    "requestorId": "demo",
                    "serviceInstanceId": "955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                    "serviceInstanceName": "vFW-vSINK-service-instance1"
                },
                "requestDetails": {
                    "modelInfo": {
                        "modelInvariantId": 
"fc742f77-955d-4ebb-bb02-3322929eaa17",
                        "modelName": "vFW-vSINK-service",
                        "modelType": "service",
                        "modelVersion": "1.0",
                        "modelVersionId": "df599415-6ed3-480b-b48c-6f5b83ddaf7b"
                    },
                    "requestInfo": {
                        "instanceName": "vFW-vSINK-service-instance1",
                        "requestorId": "demo",
                        "source": "VID",
                        "suppressRollback": false
                    },
                    "requestParameters": {
                        "aLaCarte": true,
                        "autoBuildVfModules": false,
                        "cascadeDelete": false,
                        "rebuildVolumeGroups": false,
                        "subscriptionServiceType": "vFWCL",
                        "usePreload": true
                    },
                    "subscriberInfo": {
                        "globalSubscriberId": "Demonstration"
                    }
                },
                "requestId": "6d11958f-27da-44e1-8390-53ea04a1bde5",
                "requestScope": "service",
                "requestStatus": {
                    "finishTime": "Thu, 01 Feb 2018 13:01:00 GMT",
                    "percentProgress": 100,
                    "requestState": "COMPLETE",
                    "statusMessage": "Service Instance was created 
successfully."
                },
                "requestType": "createInstance",
                "startTime": "Thu, 01 Feb 2018 13:00:35 GMT"
            }
        },
        {
            "request": {
                "instanceReferences": {
                    "requestorId": "demo",
                    "serviceInstanceId": "955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                    "vnfInstanceId": "46aa2fcb-bddd-442c-a4a7-b2b843e8161b",
                    "vnfInstanceName": "vFW-vSINK-VNF-instance"
                },
                "requestDetails": {
                    "cloudConfiguration": {
                        "lcpCloudRegionId": "RegionOne",
                        "tenantId": "d626273afd214d0b85ba991ef7131768"
                    },
                    "modelInfo": {
                        "modelCustomizationId": 
"f93ad831-6215-4a3b-ac55-42928fa2d573",
                        "modelCustomizationName": "vFW-vSINK 0",
                        "modelInvariantId": 
"e8417b7a-4913-43af-923e-eb6881a76451",
                        "modelName": "vFW-vSINK",
                        "modelType": "vnf",
                        "modelVersion": "1.0",
                        "modelVersionId": "48db00d6-b5a8-4ab0-8669-4cf87c71692b"
                    },
                    "relatedInstanceList": [
                        {
                            "relatedInstance": {
                                "instanceId": 
"955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                                "modelInfo": {
                                    "modelInvariantId": 
"fc742f77-955d-4ebb-bb02-3322929eaa17",
                                    "modelName": "vFW-vSINK-service",
                                    "modelType": "service",
                                    "modelVersion": "1.0",
                                    "modelVersionId": 
"df599415-6ed3-480b-b48c-6f5b83ddaf7b"
                                }
                            }
                        }
                    ],
                    "requestInfo": {
                        "instanceName": "vFW-vSINK-VNF-instance",
                        "productFamilyId": 
"b600d155-4b59-4c26-97ac-b03258b27f31",
                        "requestorId": "demo",
                        "source": "VID",
                        "suppressRollback": false
                    },
                    "requestParameters": {
                        "aLaCarte": false,
                        "autoBuildVfModules": false,
                        "cascadeDelete": false,
                        "rebuildVolumeGroups": false,
                        "usePreload": true
                    }
                },
                "requestId": "0e79a4d9-e860-4b9d-bc52-fb101142a87e",
                "requestScope": "vnf",
                "requestStatus": {
                    "finishTime": "Thu, 01 Feb 2018 13:03:01 GMT",
                    "percentProgress": 100,
                    "requestState": "COMPLETE",
                    "statusMessage": "Vnf has been created successfully."
                },
                "requestType": "createInstance",
                "startTime": "Thu, 01 Feb 2018 13:02:50 GMT"
            }
        },
        {
            "request": {
                "instanceReferences": {
                    "requestorId": "demo",
                    "serviceInstanceId": "955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                    "vnfInstanceId": "a219c5fb-bf1f-4874-8876-30a16cb17122",
                    "vnfInstanceName": "vFW-vPG-VNF-instance1"
                },
                "requestDetails": {
                    "cloudConfiguration": {
                        "lcpCloudRegionId": "RegionOne",
                        "tenantId": "d626273afd214d0b85ba991ef7131768"
                    },
                    "modelInfo": {
                        "modelCustomizationId": 
"a5873a17-0d45-4525-bf16-2c3c228f89a3",
                        "modelCustomizationName": "vPG 0",
                        "modelInvariantId": 
"93c5c215-8b08-4e8b-aa35-955dc4d4efae",
                        "modelName": "vPG",
                        "modelType": "vnf",
                        "modelVersion": "1.0",
                        "modelVersionId": "d8b7ad2c-69f4-47ed-91d9-0571d3daa3af"
                    },
                    "relatedInstanceList": [
                        {
                            "relatedInstance": {
                                "instanceId": 
"955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                                "modelInfo": {
                                    "modelInvariantId": 
"fc742f77-955d-4ebb-bb02-3322929eaa17",
                                    "modelName": "vFW-vSINK-service",
                                    "modelType": "service",
                                    "modelVersion": "1.0",
                                    "modelVersionId": 
"df599415-6ed3-480b-b48c-6f5b83ddaf7b"
                                }
                            }
                        }
                    ],
                    "requestInfo": {
                        "instanceName": "vFW-vPG-VNF-instance1",
                        "productFamilyId": 
"b600d155-4b59-4c26-97ac-b03258b27f31",
                        "requestorId": "demo",
                        "source": "VID",
                        "suppressRollback": false
                    },
                    "requestParameters": {
                        "aLaCarte": false,
                        "autoBuildVfModules": false,
                        "cascadeDelete": false,
                        "rebuildVolumeGroups": false,
                        "usePreload": true
                    }
                },
                "requestId": "96f4b017-462d-420e-9c48-2e719cfa273c",
                "requestScope": "vnf",
                "requestStatus": {
                    "finishTime": "Thu, 01 Feb 2018 13:04:14 GMT",
                    "percentProgress": 100,
                    "requestState": "COMPLETE",
                    "statusMessage": "Vnf has been created successfully."
                },
                "requestType": "createInstance",
                "startTime": "Thu, 01 Feb 2018 13:04:11 GMT"
            }
        },
        {
            "request": {
                "instanceReferences": {
                    "requestorId": "demo",
                    "serviceInstanceId": "955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                    "vfModuleInstanceName": "SINK_VF_Module1",
                    "vnfInstanceId": "a219c5fb-bf1f-4874-8876-30a16cb17122"
                },
                "requestDetails": {
                    "cloudConfiguration": {
                        "lcpCloudRegionId": "RegionOne",
                        "tenantId": "d626273afd214d0b85ba991ef7131768"
                    },
                    "modelInfo": {
                        "modelCustomizationId": 
"af428b65-5c9c-4832-9e8a-e532b9ba45d5",
                        "modelCustomizationName": "Vpg..base_vpkg..module-0",
                        "modelInvariantId": 
"9b631048-3f86-40ea-a063-79fcc975b80b",
                        "modelName": "Vpg..base_vpkg..module-0",
                        "modelType": "vfModule",
                        "modelVersion": "1",
                        "modelVersionId": "dd30392f-db62-45c9-a342-46316e48dcb6"
                    },
                    "relatedInstanceList": [
                        {
                            "relatedInstance": {
                                "instanceId": 
"955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                                "modelInfo": {
                                    "modelInvariantId": 
"fc742f77-955d-4ebb-bb02-3322929eaa17",
                                    "modelName": "vFW-vSINK-service",
                                    "modelType": "service",
                                    "modelVersion": "1.0",
                                    "modelVersionId": 
"df599415-6ed3-480b-b48c-6f5b83ddaf7b"
                                }
                            }
                        },
                        {
                            "relatedInstance": {
                                "instanceId": 
"a219c5fb-bf1f-4874-8876-30a16cb17122",
                                "modelInfo": {
                                    "modelCustomizationId": 
"a5873a17-0d45-4525-bf16-2c3c228f89a3",
                                    "modelCustomizationName": "vPG 0",
                                    "modelInvariantId": 
"93c5c215-8b08-4e8b-aa35-955dc4d4efae",
                                    "modelName": "vPG",
                                    "modelType": "vnf",
                                    "modelVersion": "1.0",
                                    "modelVersionId": 
"d8b7ad2c-69f4-47ed-91d9-0571d3daa3af"
                                }
                            }
                        }
                    ],
                    "requestInfo": {
                        "instanceName": "SINK_VF_Module1",
                        "requestorId": "demo",
                        "source": "VID",
                        "suppressRollback": false
                    },
                    "requestParameters": {
                        "aLaCarte": false,
                        "autoBuildVfModules": false,
                        "cascadeDelete": false,
                        "rebuildVolumeGroups": false,
                        "usePreload": true
                    }
                },
                "requestId": "293a12f6-e3dc-4600-9a56-a31a313d4d4f",
                "requestScope": "vfModule",
                "requestStatus": {
                    "finishTime": "Thu, 01 Feb 2018 14:24:31 GMT",
                    "percentProgress": 100,
                    "requestState": "FAILED",
                    "statusMessage": "Received error from SDN-C: No preload 
data found to match vnf-name"
                },
                "requestType": "createInstance",
                "startTime": "Thu, 01 Feb 2018 14:24:18 GMT"
            }
        },
        {
            "request": {
                "instanceReferences": {
                    "requestorId": "demo",
                    "serviceInstanceId": "955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                    "vfModuleInstanceName": "vFW_SINK_VF_Module1",
                    "vnfInstanceId": "46aa2fcb-bddd-442c-a4a7-b2b843e8161b"
                },
                "requestDetails": {
                    "cloudConfiguration": {
                        "lcpCloudRegionId": "RegionOne",
                        "tenantId": "d626273afd214d0b85ba991ef7131768"
                    },
                    "modelInfo": {
                        "modelCustomizationId": 
"558cb6ff-8a50-4f96-beea-867e86c5f66a",
                        "modelCustomizationName": 
"VfwVsink..base_vfw..module-0",
                        "modelInvariantId": 
"069a1526-5e92-44d2-ad47-4387f989ab98",
                        "modelName": "VfwVsink..base_vfw..module-0",
                        "modelType": "vfModule",
                        "modelVersion": "1",
                        "modelVersionId": "170cc48d-5c2c-4f67-919a-490e54f2a30d"
                    },
                    "relatedInstanceList": [
                        {
                            "relatedInstance": {
                                "instanceId": 
"955f5d8a-0e6d-4605-8efc-19c4dac1c921",
                                "modelInfo": {
                                    "modelInvariantId": 
"fc742f77-955d-4ebb-bb02-3322929eaa17",
                                    "modelName": "vFW-vSINK-service",
                                    "modelType": "service",
                                    "modelVersion": "1.0",
                                    "modelVersionId": 
"df599415-6ed3-480b-b48c-6f5b83ddaf7b"
                                }
                            }
                        },
                        {
                            "relatedInstance": {
                                "instanceId": 
"46aa2fcb-bddd-442c-a4a7-b2b843e8161b",
                                "modelInfo": {
                                    "modelCustomizationId": 
"f93ad831-6215-4a3b-ac55-42928fa2d573",
                                    "modelCustomizationName": "vFW-vSINK 0",
                                    "modelInvariantId": 
"e8417b7a-4913-43af-923e-eb6881a76451",
                                    "modelName": "vFW-vSINK",
                                    "modelType": "vnf",
                                    "modelVersion": "1.0",
                                    "modelVersionId": 
"48db00d6-b5a8-4ab0-8669-4cf87c71692b"
                                }
                            }
                        }
                    ],
                    "requestInfo": {
                        "instanceName": "vFW_SINK_VF_Module1",
                        "requestorId": "demo",
                        "source": "VID",
                        "suppressRollback": false
                    },
                    "requestParameters": {
                        "aLaCarte": false,
                        "autoBuildVfModules": false,
                        "cascadeDelete": false,
                        "rebuildVolumeGroups": false,
                        "usePreload": true
                    }
                },
                "requestId": "e4417d17-6818-4821-9aed-356f28670f4c",
                "requestScope": "vfModule",
                "requestStatus": {
                    "finishTime": "Thu, 01 Feb 2018 14:34:19 GMT",
                    "percentProgress": 100,
                    "requestState": "FAILED",
                    "statusMessage": "Received vfModuleException from 
VnfAdapter: category='INTERNAL' message='Exception during create VF 400 Bad 
Request: The server could not comply with the request since it is either 
malformed or otherwise incorrect., error.type=StackValidationFailed, 
error.message=Property error: : 
resources.vsn_private_1_port.properties.network: : Multiple network matches 
found for name '', use an ID to be more specific.' rolledBack='true'"
                },
                "requestType": "createInstance",
                "startTime": "Thu, 01 Feb 2018 14:29:11 GMT"
            }
        },




Best Regards,
Shubhra :)
This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer 
<https://www.amdocs.com/about/email-disclaimer>
_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to