tacker/tacker/vnfm
Yi Feng 17fed56583 Sample script for healing k8s with kubespray
This patch and "Sample script for deploying k8s with kubespray",
"Sample script for scaling k8s with kubespray" are actually the
same one. For the convenience of review, they
were submitted separately.

This patch is only about the content of heal k8s nodes. However,
since the processing of scale_start is similar to heal_start,
and the processing of scale_end is similar to the processing of
heal_end, the code of scale has been refactored and the common
processing is extracted as a common method. At the same time,
when CNF needs to perform `heal_entire`, the configuration file
of Load Balancer needs to be re-modified, so heal-related
processing is added to the example MgmtDriver of CNF's `NodePort`.

Because the input parameter of terminate and heal is limited,
the type of this parameter is also modified. In
`NFV-SOL003 v2.6.1`[1], the `additionalParams`'s type is
`KeyValuePairs`, so we changed the additionalParams's type from
`list` to `dict` in heal_vnf_request. In order not to affect
the original function, we modified the original additional_params
to legacy_additional_params and retained the original processing,
and revised the UT code.

[1] https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.06.01_60/gs_NFV-SOL003v020601p.pdf

Implements: blueprint k8s-mgmtdriver-kubespray
Change-Id: Ibf8b56904b1326f5c7d323c9295d10e303f4b4b8
2021-09-23 04:46:11 +00:00
..
infra_drivers Sample script for healing k8s with kubespray 2021-09-23 04:46:11 +00:00
lcm_user_data Enhancement IpOverEthernet in API Parameter 2021-03-26 03:04:13 +00:00
mgmt_drivers Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
monitor_drivers Drop most of six importings 2020-10-19 12:10:05 +00:00
policy_actions Sample script for healing k8s with kubespray 2021-09-23 04:46:11 +00:00
__init__.py Device refactor Part3: Rename device in codes 2016-08-26 16:26:57 +08:00
keystone.py Move to use only kestone v3 api 2019-03-06 05:09:13 +00:00
monitor.py Fix python3 utf-8 decode issue and typo while creating app_monitor 2020-10-06 05:34:43 +00:00
nfvo_client.py Fix for multiple failures in VNF lifecycle 2020-12-18 11:50:28 +09:00
plugin.py Drop most of six importings 2020-10-19 12:10:05 +00:00
utils.py Add new policy action: vdu_autoheal 2019-01-24 09:55:30 +09:00
vim_client.py Support Helm chart as interface for Kubernetes VIM 2021-09-23 04:43:42 +00:00