tacker/tacker/tests
Yi Feng 71fbed8bf4 Fix retry operation after LCM failure
The LCM retry operation of CNF and MgmtDriver(k8s-cluster)
was verified.

To fix these errors, the following things is done in this patch:
1. When executing retry, if the status of vnf is ERROR, change ERROR to
the status of the corresponding lifecycle.
2. In the scale operation, the judgment condition is added. When vim is
not kubernetes, the `scaleGroupDict` assignment will be used.
3. When an exception occurs in terminate, the task_state in
vnf_instance is changed to None.
4. In the scale operation, add an else branch. If before_error_point is
greater than 4, get resource_changes from vnf_info first. If
resource_changes does not exist, get it by calling the
self._scale_resource_update method.
5. At the beginning of instantiate/heal/terminate, when modifying the
status of vnf, add the judgment condition. When the status is not
ERROR, it can be modified.
6. In the heal/scale operation, add a judgment condition to judge
whether the node exists, and only when the node exists, the delete node
command will be executed.
7. In the instantiate operation, before creating the stack, add to
determine whether the stack already exists.
8. (1) When installing the k8s node with MgmtDriver, add to determine
   whether the node already exists in the cluster. If it exists, skip
   the node and install the next node.
   (2) After installing the k8s cluster, when registering VIM, add to
   determine whether the VIM already exists, and if it exists, use it
   directly.

Closes-Bug: #1942277
Change-Id: If4e695120eb432155499a2e866ae651a18a320ab
2022-01-20 17:12:18 +09:00
..
common Remove test helpers for Python2 2020-10-19 12:11:40 +00:00
contrib Support for grant request with Synchronous response 2020-10-07 13:57:24 +09:00
etc Merge "Modify Network Resource Information used by FT" 2021-09-29 08:58:28 +00:00
functional Revise FT of V2-API 2022-01-06 06:36:21 +00:00
unit Fix retry operation after LCM failure 2022-01-20 17:12:18 +09:00
var rename neutron/tests to tacker/tests 2014-07-04 18:20:50 +09:00
__init__.py Enable hacking check H104 2015-04-09 18:45:52 -07:00
base.py Update references to sys.version_info 2021-07-26 18:18:22 +05:30
constants.py Support feature to attach the existing volume 2021-01-28 13:11:03 +05:30
fake_notifier.py Move unit tests dir to tacker/tests/unit 2017-02-24 16:38:18 +08:00
post_mortem_debug.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
tools.py Update hacking 2016-01-02 17:30:55 +01:00
utils.py Implementation Artifacts support in Tacker 2020-09-21 03:27:17 -04:00
uuidsentinel.py Improve code coverage of openstack module 2019-06-12 11:20:00 +00:00