tacker/tacker/api
Qibin Yao 98d3f4bf31 Fix SSL certificate setting error
When initializing k8s client in InfraDriverV2, the SSL CA
certificate is set incorrectly.

To fix the issue, the following modifies are made in this patch:

* A temp file for ssl_ca_cert is created before initializing
  k8s client and the temp file path is set to k8s_config.ssl_ca_cert,
* The temp file is deleted until the lifetime of k8s client ends.
Note: This references the implementation in InfraDriverV1.

If set the ssl_ca_cert in instantiate request, the validation of
request is failed because of the length of ssl_ca_cert exceeds 1024.
For this issue, add a new type `keyvalue_pairs_no_length_limit`
which has no max length limitation to verify the request.
And the interfaceInfo, accessInfo, extra are all set to the new type
for unity.

In Zuul test environment, when registering default vim, ssl_ca_cert
is not set. So the case with ssl_ca_cert is not tested.
In this patch ssl_ca_cert is set into the default vim.

Closes-Bug: #1979413
Change-Id: I61dbd70690b737a72fc619e5a08b4bab51160a27
2022-08-23 07:39:38 +00:00
..
common Fix status code for invalid filter conditions 2021-09-13 15:30:52 +09:00
schemas Fix LCM failure 2022-02-15 19:52:59 +09:00
v1 Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
validation Fix SSL certificate setting error 2022-08-23 07:39:38 +00:00
views Add Location to responses of Create VNF Package 2021-09-30 09:36:54 +09:00
vnflcm affectedVirtualStorages should not be set 2022-06-15 09:18:52 +00:00
vnfpkgm Implemented check on range end to fetch artifact 2022-05-17 15:02:29 +00:00
__init__.py rename neutron/api to tacker/api 2014-07-04 18:20:50 +09:00
api_common.py Fix get information about multiple VNF instances 2021-08-10 13:43:08 +09:00
extensions.py Drop most of six importings 2020-10-19 12:10:05 +00:00
versions.py from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00