Sirisha, Policy is looking for model_invariant_id and model_customization_id of the module to scale in order to pass this information to SO when triggering a scale out operation. One limitation today is that this info needs to be in AAI for Policy to get it (improvements to remove this limitation are planned for the next releases). This means that at least one non-base VF module must be already present in AAI, under that specific VNF. This can be achieved in 2 ways:
1. Run a manual scale out first 2. Add a dummy VF module to AAI, without running manual scale out first As a consequence of 1 or 2, AAI will provide info about the non-base module and Policy will reuse that info for new scaling operations. I typically create a dummy VF module like this: curl -X PUT \ https://135.197.220.117:30233/aai/v11/network/generic-vnfs/generic-vnf/47b38b39-5d36-4e39-92d9-fe371a907055/vf-modules/vf-module/dummy_47b38b39-5d36-4e39-92d9-fe371a907056 \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Postman-Token: 2dc70bcd-bf7c-459f-bb40-dc54f9a10897' \ -H 'X-FromAppId: AAI' \ -H 'X-TransactionId: get_aai_subscr' \ -H 'cache-control: no-cache' \ -d '{ "is-base-vf-module": false, "model-invariant-id": "4ac47915-2329-4e53-8e2d-82da1d5d9865", "model-version-id": "56eb5e30-94cd-44dd-8b88-25dfe52fac28", "model-customization-id": "b8d8f8e9-990a-4870-a815-4049f79c16e2", "vf-module-id": "dummy_47b38b39-5d36-4e39-92d9-fe371a907056", "vf-module-name": "vLoadBalancerMS-Vnf-1115-1_0" }' Of course, IDs need to match those in your model. In particular, model-invariant-id, model-version-id, and model-customization-id appear in the TOSCA model in the CSAR file, under …dnsscaling..module-1. I think that should solve your issue. Thanks, Marco From: "sirisha.gopigiri via lists.onap.org" <[email protected]> Reply-To: "Gopigiri, Sirisha" <[email protected]> Date: Tuesday, January 8, 2019 at 9:19 AM To: "PLATANIA, MARCO (MARCO)" <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [onap-discuss] [E][onap-discuss] Scale-out Usecase {"inventory-response-item":[{"vserver":{"vserver-id":"9bc6f68e-7039-457c-ae45-76a7f890b61d","vserver-name":"vlb-ms-1123-1","vserver-name2":"vlb-ms-1123-1","prov-status":"ACTIVE","vserver-selflink":"http://xxxxxx:xxxx/v2.1/servers/9bc6f68e-7039-457c-ae45-76a7f890b61d","in-maint":false,"is-closed-loop-disabled":false,"resource-version":"1546945446967"},"extra-properties":{},"inventory-response-items":{"inventory-response-item":[{"model-name":"vLoadBalancerMS","generic-vnf":{"vnf-id":"65bf6828-6839-4c83-91e7-861555bdc585","vnf-name":"vLoadBalancerMS-Vnf-1123-1","vnf-type":"vLoadBalancerMS/vLoadBalancerMS<https://urldefense.proofpoint.com/v2/url?u=http-3A__xxxxxx-3Axxxx_v2.1_servers_9bc6f68e-2D7039-2D457c-2Dae45-2D76a7f890b61d-2522-2C-2522in-2Dmaint-2522-3Afalse-2C-2522is-2Dclosed-2Dloop-2Ddisabled-2522-3Afalse-2C-2522resource-2Dversion-2522-3A-25221546945446967-2522-257D-2C-2522extra-2Dproperties-2522-3A-257B-257D-2C-2522inventory-2Dresponse-2Ditems-2522-3A-257B-2522inventory-2Dresponse-2Ditem-2522-3A-5B-257B-2522model-2Dname-2522-3A-2522vLoadBalancerMS-2522-2C-2522generic-2Dvnf-2522-3A-257B-2522vnf-2Did-2522-3A-252265bf6828-2D6839-2D4c83-2D91e7-2D861555bdc585-2522-2C-2522vnf-2Dname-2522-3A-2522vLoadBalancerMS-2DVnf-2D1123-2D1-2522-2C-2522vnf-2Dtype-2522-3A-2522vLoadBalancerMS_vLoadBalancerMS&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=oAHSABojPQPMFw8AXZSo1yc-pz5MI21yZc2JMlfQpRA&s=MkauCoocEWTT8LIx18cFAQCW_YhBiMiVC2e1N6Cy2xQ&e=> 0","prov-status":"ACTIVE","equipment-role":"vLB","orchestration-status":"Active","ipv4-oam-address":"xxxxxx","in-maint":true,"is-closed-loop-disabled":false,"resource-version":"1546955655952","model-invariant-id":"cd4487ad-0da9-43aa-9a31-f404b3343c01","model-version-id":"ec2d4775-3587-4388-bc1a-171e188e9a96","model-customization-id":"fc8bf9ec-c435-4d0a-9002-610e5e04ae33","nf-type":"ONAP-LOADBALANCER","nf-function":"LOADBALANCER","nf-role":"vLB","nf-naming-code":"vlb","selflink":"restconf/config/GENERIC-RESOURCE-API:services/service/879b7191-d9ef-4ec9-bd3e-7e05b9fb8da0/service-data/vnfs/vnf/65bf6828-6839-4c83-91e7-861555bdc585/vnf-data/vnf-topology/"},"extra-properties":{"extra-property":[{"property-name":"model-ver.model-version-id","property-value":"ec2d4775-3587-4388-bc1a-171e188e9a96"},{"property-name":"model-ver.model-name","property-value":"vLoadBalancerMS"},{"property-name":"model.model-type","property-value":"resource"},{"property-name":"model.model-invariant-id","property-value":"cd4487ad-0da9-43aa-9a31-f404b3343c01"},{"property-name":"model-ver.model-version","property-value":"1.0"}]},"inventory-response-items":{"inventory-response-item":[{"model-name":"vLoadBalancerMS","service-instance":{"service-instance-id":"879b7191-d9ef-4ec9-bd3e-7e05b9fb8da0","service-instance-name":"vLoadBalancerMS-Service-1123-1","environment-context":"General_Revenue-Bearing","workload-context":"Production","model-invariant-id":"67b2c628-cee4-487b-8a0e-0c0eccf3a1f1","model-version-id":"e6267305-5106-45db-a0be-8af7df4c9993","resource-version":"1546944876808","selflink":"restconf/config/GENERIC-RESOURCE-API:services/service/879b7191-d9ef-4ec9-bd3e-7e05b9fb8da0/service-data/service-topology/","orchestration-status":"Active"},"extra-properties":{"extra-property":[{"property-name":"model-ver.model-version-id","property-value":"e6267305-5106-45db-a0be-8af7df4c9993"},{"property-name":"model-ver.model-name","property-value":"vLoadBalancerMS"},{"property-name":"model.model-type","property-value":"service"},{"property-name":"model.model-invariant-id","property-value":"67b2c628-cee4-487b-8a0e-0c0eccf3a1f1"},{"property-name":"model-ver.model-version","property-value":"1.0"}]}},{"model-name":"Vloadbalancerms..base_vlb..module-0","vf-module":{"vf-module-id":"6e569319-239c-4b75-997c-971b91ae73fa","vf-module-name":"vLoadBalancerMS-1123-1","heat-stack-id":"vLoadBalancerMS-1123-1/ac2c8388-fa33-4cbd-8bca-3f58fe57f7cf","orchestration-status":"Active","is-base-vf-module":true,"automated-assignment":false,"resource-version":"1546945277213","model-invariant-id":"1610529b-3419-47b1-a797-ca3d1022a10e","model-version-id":"24b2a828-4553-4b40-b1b1-0b1eb6189cee","model-customization-id":"153fd285-d029-4281-9deb-3c40d4e237d8","selflink":"restconf/config/GENERIC-RESOURCE-API:services/service/879b7191-d9ef-4ec9-bd3e-7e05b9fb8da0/service-data/vnfs/vnf/65bf6828-6839-4c83-91e7-861555bdc585/vnf-data/vf-modules/vf-module/6e569319-239c-4b75-997c-971b91ae73fa/vf-module-data/vf-module-topology/"},"extra-properties":{"extra-property":[{"property-name":"model-ver.model-version-id","property-value":"24b2a828-4553-4b40-b1b1-0b1eb6189cee"},{"property-name":"model-ver.model-name","property-value":"Vloadbalancerms..base_vlb..module-0"},{"property-name":"model.model-type","property-value":"resource"},{"property-name":"model.model-invariant-id","property-value":"1610529b-3419-47b1-a797-ca3d1022a10e"},{"property-name":"model-ver.model-version","property-value":"1"}]}}]}},{"tenant":{"tenant-id":"5b8f3d1ff09c40ae890811ddc44cca23","tenant-name":"xxxxxxxx","resource-version":"1546852037400"},"extra-properties":{},"inventory-response-items":{"inventory-response-item":[{"cloud-region":{"cloud-owner":"CloudOwner","cloud-region-id":"RegionOne","cloud-type":"SharedNode","owner-defined-type":"OwnerType","cloud-region-version":"v1","cloud-zone":"CloudZone","resource-version":"1546852037060"},"extra-properties":{}}]}}]}}]} -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14858): https://lists.onap.org/g/onap-discuss/message/14858 Mute This Topic: https://lists.onap.org/mt/28811190/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
