tacker/tacker
Yi Feng 9e13a55aba Modify processing of _heal_grant and _scale_grant
In NFV-SOL003 V2.6.1, the add_resources'id in grant should be
same as the vnfc_resource_info'id. However, at present, if
you execute heal_grant and scale_grant request, the add_resources's
resource_definition_id in grantResponse cannot match the
vnfc_resource_info.id.

In _scale_grant, to fix this bug, we changed the processing
of _scale_grant in openstack._get_grant_resource_scale_out method.
Firstly initialize the data of vnfc_resource_info according
to the input parameters and the vnfd file, then initialize
the add_resources data of grant according to the
vnfc_resource_info data. After scaling out, store the data
in the stack into vnfc_resource_info in the
openstack.scale_resource_update method.

In addition, in openstack._get_grant_resource_scale_out, there is
also a problem with the placement_constraint rule setting, which
is also corrected in this patch.

In _heal_grant, if heal entire vnf_instance, we initialize
remove_resources used old vnf_instance's info, and then
reinitialize vnf_instance's info and use them to initialize
add_resources. If heal partial vnf_instance, we just use
update_resources in grant.

For instantiate, if you need to use the data obtained by
instantiate_grant in instantiate_end, the process should
execute the post_instantiate_vnf method before instantiate_end,
so the vnflcm_driver._instantiate_vnf method has also been
modified.

Closes-Bug: #1930782
Change-Id: I1008472f5a7104324b61a413052dc44bc84c7ade
2021-09-16 04:57:47 +00:00
..
agent from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00
api Merge "Fix status code for invalid filter conditions" 2021-09-15 09:18:00 +00:00
cmd [goal] Deprecate the JSON formatted policy file 2021-01-22 04:18:31 +00:00
common Retaining permission of VNF package files 2021-07-17 15:32:53 +00:00
conductor Modify processing of _heal_grant and _scale_grant 2021-09-16 04:57:47 +00:00
conf Support Client Notification Endpoint Test 2021-03-26 14:19:53 +09:00
db Update zuul environment to support helm chart 2021-09-06 02:36:06 +00:00
extensions Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
glance_store Introduce py39 for unittests 2020-11-08 06:11:48 +00:00
hacking Update hacking for Python3 2020-04-24 13:48:53 +02:00
keymgr Drop most of six importings 2020-10-19 12:10:05 +00:00
locale Imported Translations from Zanata 2020-10-24 08:58:53 +00:00
mistral Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-18 14:00:58 +00:00
nfvo Adapt to python-mistralclient v4.2.0 for PingVIM 2021-02-10 04:51:17 +00:00
objects Fix status code for invalid filter conditions 2021-09-13 15:30:52 +09:00
plugins Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
policies Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
releasenotes/notes Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
services Drop most of six importings 2020-10-19 12:10:05 +00:00
sol_refactored/objects Object definitions of multi version API support 2021-09-16 01:09:36 +00:00
tests Modify processing of _heal_grant and _scale_grant 2021-09-16 04:57:47 +00:00
tosca Fix UT and FT VNFD yaml because lack of properties 2021-04-01 13:32:28 +09:00
vnflcm Modify processing of _heal_grant and _scale_grant 2021-09-16 04:57:47 +00:00
vnfm Modify processing of _heal_grant and _scale_grant 2021-09-16 04:57:47 +00:00
__init__.py Drop most of six importings 2020-10-19 12:10:05 +00:00
_i18n.py Remove i18n.enable_lazy() call from tacker.cmd 2018-11-14 14:56:52 +05:30
alarm_receiver.py Fix to encrypt password print in debug logs 2020-11-17 02:17:02 +00:00
auth.py Support of Server/Basic certification in OAuth2.0 2020-10-05 07:18:14 +00:00
context.py Remove deprecation warning messages 2019-09-20 12:27:06 +05:30
manager.py Sychronize vnf action tasks 2020-04-22 07:43:50 +00:00
policy.py Replace deprecated import of ABCs from collections 2021-08-31 13:59:17 +00:00
service.py Fix two-stage process launcher in tacker-server 2021-04-23 09:33:49 +09:00
version.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
wsgi.py Fix required attributes when error happened 2021-07-30 16:16:02 +09:00