tacker/tacker/tests/functional
Yi Feng fa73e438cc 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-23 04:44:52 +00:00
..
common Support Scale and Rollback function of FT 2020-12-22 18:33:10 +09:00
legacy Skip some FTs failed due to heat bug 2021-09-02 16:47:20 +00:00
sol Fix occasional multinode-sol job FT error 2021-09-23 04:42:03 +00:00
sol_kubernetes Support Helm chart as interface for Kubernetes VIM 2021-09-23 04:43:42 +00:00
sol_separated_nfvo Modify processing of _heal_grant and _scale_grant 2021-09-23 04:44:52 +00:00
sol_v2 Multi version API support 2021-09-23 04:44:41 +00:00
__init__.py Enable hacking check H104 2015-04-09 18:45:52 -07:00
base.py Support TOSCA route for ChgExternalConnectivity 2021-09-23 03:40:26 +00:00
clients.py Move to use only kestone v3 api 2019-03-06 05:09:13 +00:00
keystone.py Introduce FT keystone client initialization retry 2020-10-29 12:48:08 +09:00