Hi krantthi,

Could you please share the CURL query to delete VF module from AAI ?

Will the below query will work ?

DELETE 
/network/generic-vnfs/generic-vnf/{vnf-id}/vf-modules/vf-module/{vf-module-id}<file:///C:/Users/shubhra.garg/Downloads/openecomp_aai_api_index%20(5).html#operation--network-generic-vnfs-generic-vnf--vnf-id--vf-modules-vf-module--vf-module-id--delete>

Best Regards,
Shubhra
________________________________
From: Kranthi Guttikonda <[email protected]>
Sent: Thursday, February 1, 2018 9:17 PM
To: Shubhra Garg; [email protected]; [email protected]
Subject: Re: [onap-discuss] Delete a VF module , if two VF modules have been 
created!


This message was identified as a phishing<http://aka.ms/LearnAboutPhishing> 
scam.
        Feedback<http://aka.ms/SafetyTipsFeedback>

Delete from AAI and that should delete the entry from VID



Thanks,
Kranthi



From: <[email protected]> on behalf of Shubhra Garg 
<[email protected]>
Date: Thursday, February 1, 2018 at 10:45 AM
To: "[email protected]" <[email protected]>, 
"[email protected]" <[email protected]>
Subject: Re: [onap-discuss] Delete a VF module , if two VF modules have been 
created!



Hi Team,



Basically, I am looking for a cleaned delete of VF module from the main ONAP 
component.

Rather than an unfinished delete ( VF module got deleted from one component, 
still the data is present with another module ).

Kindly help!



Best Regards,

Shubhra

________________________________

From: Shubhra Garg
Sent: Thursday, February 1, 2018 9:11 PM
To: [email protected]; [email protected]
Subject: Delete a VF module , if two VF modules have been created!



Hi Team,

I was trying to create a VF module after performing SDNC preload operation 
operation for SINK.

But, I entered the wrong vnf ID and performed the preload operation for SINK 
again and tried to create another/second vf module.

On onap wiki, I somewhere read that only one VF module is supported as of now.

I ran a curl query to check in MSO, it shows both the VF modules and the 
respective errors for the same.

But, now If I have to delete one VF module , then should I delete it from AAI 
or MSO or VID or all three?

Could you please help in picking the right component ( MSO, AAI , VID , SDC ) 
and the right DELETE curl query for the same.



I am not sure what I should put for resource path.

Trying to formulate a curl query for deleting a VF module:

GET 
/network/generic-vnfs/generic-vnf/{vnf-id}/vf-modules/vf-module/{vf-module-id}



GET 
/network/generic-vnfs/generic-vnf/46aa2fcb-bddd-442c-a4a7-b2b843e8161b/vf-modules/vf-module/a219c5fb-bf1f-4874-8876-30a16cb17122







DELETE 
/network/generic-vnfs/generic-vnf/46aa2fcb-bddd-442c-a4a7-b2b843e8161b/vf-modules/vf-module/a219c5fb-bf1f-4874-8876-30a16cb17122





serverRoot = https://{FQDN}:{Port}/ecomp/mso/infra/{resourcePath}





DELETE 
https://{FQDN}:{Port}/ecomp/mso/infra/{resourcePath}/serviceInstances/v2/{serviceInstanceId}/vnfs/{vnfInstanceId}/vfModules/{vfmoduleinstance-id}



Curl query to MSO ( shows two VF modules):

root@ubuntu:/home/infy_user/curl_queries_json# 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  7856    0  7856    0     0  68323      0 --:--:-- --:--:-- --:--:-- 68912

{

    "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": {

                    "percentProgress": 20,

                    "requestState": "IN_PROGRESS"

                },

                "requestType": "createInstance",

                "startTime": "Thu, 01 Feb 2018 14:29:11 GMT"

            }

        }

    ]

}




_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to