2585 Commits

Author SHA1 Message Date
Yasufumi Ogawa
9922d94c26 Add prelude section for Zed releasenote
This update is to add a summary of changes focusing on major updates
in Zed release.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I0b256cc7bbec45f28f4ca79971dd2407d2d3958f
2022-09-12 04:01:18 +00:00
Zuul
bff12b4cfb Merge "Fix Desired Capacity for heat is not updated" 2022-09-05 01:50:43 +00:00
Zuul
0e6c4bd796 Merge "Fixed some bugs for Mgmt Driver" 2022-09-05 01:50:10 +00:00
Zuul
c3d55fcf8f Merge "Revert python-tackerclient installation" 2022-09-02 10:13:26 +00:00
Zuul
fb92d7f9d9 Merge "Fix external link port id of instantiatedVnfInfo" 2022-09-02 06:12:50 +00:00
Yasufumi Ogawa
6597bc2448 Revert python-tackerclient installation
This update is to revert a previous temporary fix for a problem of
tackerclient installation via pip while running function tests.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I0d1e18c5a40449a9a5bd2eefb58f97c596a1cbab
2022-09-02 06:05:30 +00:00
Zuul
a3b5fc83e2 Merge "Update API doc and CLI doc" 2022-09-02 01:16:40 +00:00
Zuul
8e420afd09 Merge "Error log generated after instantiation fails" 2022-09-02 00:32:24 +00:00
Zuul
7eeba89aea Merge "Fix SSL certificate setting error" 2022-09-01 08:59:30 +00:00
Yi Feng
9d5a84c2fd Fixed some bugs for Mgmt Driver
Tested the Mgmt Driver in the Yoga version and found some bugs.

To fix these bugs, the following things have been done in this
patch:

1. When checking whether the node has k8s installed, since the
   value of result.get_stderr() is a list, an error will occur
   in the if branch, and the value needs to be modified.
2. Use the _init_commander_and_send_install_scripts function
   instead of the RemoteCommandExecutor function to prevent the
   VM from getting an error when the connection fails during
   the startup phase.
3. Added the type of exceptions caught by the
   _init_commander_and_send_install_scripts function.
4. Change the scale_stack_id to scale_out_id_list uniformly to
   solve the parameter mismatch between the input values for
   mgmt_drvier in vnflcm_driver and mgmt_driver.
5. Add modify_information_start and modify_information_end to
   Mgmt Driver.
6. When using the Mgmt Driver to modify the content of the
   haproxy configuration file, use the exact match of grep to
   find the corresponding line number.

Closes-Bug: #1976440
Change-Id: I94f011fd5061b04dff0840bf90ca10ae2a677874
2022-08-31 11:10:32 +09:00
Hiroo Kitamura
c995228d7d Update API doc and CLI doc
This patch makes the following updates to the API and CLI docs.

API doc:
* Fix "vnfState" which is Response Parameters of List/Show VNF instance
  is incorrectly set to option
* Add "maxScaleLevels" and "scaleStatus" which are Response Parameters
  of List/Show VNF instance

CLI doc:
* Add subscription commands such as Create, Delete, List and Show
* Fix typo about "Change External VNF Connectivity"
* Minor fixes such as indentation correction and typo correction

Co-Author: Ai Hamano <ai.hamano@ntt-at.co.jp>
Change-Id: I4c643c542deed6b459da4f53bfe4ce90eca96d74
2022-08-30 14:36:28 +09:00
Pooja Singla
d4ff8e02ae Error log generated after instantiation fails
Error logs were not generated when an error
occurred in the process of Instantiation.

Implemented logging in exception block of
instantiation process.

Closes-Bug: #1981183
Change-Id: I8a3240e4b3d4e454f07c4609d28c9dce2bb5e2c2
2022-08-29 12:09:41 +00:00
Zuul
25cc5640d1 Merge "make getting vnf package tenant aware" 2022-08-28 17:54:49 +00:00
Zuul
cb08ef501c Merge "Refactor change_vnfpkg v2 API" 2022-08-26 01:11:39 +00:00
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
Zuul
8a82d758f1 Merge "Imported Translations from Zanata" 2022-08-23 02:03:31 +00:00
Zuul
cc64601ba9 Merge "Revert gawk installation" 2022-08-23 00:50:38 +00:00
Zuul
9cb3347296 Merge "Add doc of Using OAuth2.0 for Tacker" 2022-08-23 00:39:44 +00:00
OpenStack Proposal Bot
5014b5192f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I31a66c116b01475381693ead3384d8d6c02492f6
2022-08-14 04:24:47 +00:00
Itsuro Oda
acb231d7e1 Refactor change_vnfpkg v2 API
This patch refactors the implementation of change_vnfpkg v2 API.

Because the original implementation of change_vnfpkg does not obey
the rules that other operations obey, it makes hard to enhance
the function that related to whole operations such as the HOT format
change. This patch corrects it.

This patch also changes some specifications of the API and fixes
some bugs (described in bug #1981533).

Specification changes:
* image to volume translation (or vice versa) is not supported.
  Note that it did not work property by a bug.
* parameters to the coordinate script are changed.
* property name for images in the definition of AutoScalingGroup is
  changed.
* unnecessary parameters of additionalParams,
  'lcm-operation-coordinate-old-vnf-class' and
  'lcm-operation-coordinate-new-vnf-class' are removed.
* 'lcm-operation-coordinate-old-vnf' and
  'lcm-operation-coordinate-new-vnf' in additionalParams are option
   now.

Detail of bug fiexes are omitted.

Note that the object of this patch is common part and openstack VIM part.
k8s VIM part will be fixed by another patch.

Closes-Bug: #1981533
Change-Id: I9f6d103d66e6904704ca467d68c4ebfbcbd8a1f8
2022-08-12 02:43:11 +00:00
Pooja Singla
b8c1f9daa2 Fixed 'storageResourceIds' after SCALE-OUT
This patch fixes
".instantiatedVnfInfo.vnfcResourceInfo[].storageResourceIds"
has same id as "id" shown in
".instantiatedVnfInfo.virtualStorageResourceInfo[]".

Closes-Bug: #1960194
Change-Id: I39416afd21295daf3c5d0e57c9195ac20e7e55e7
2022-08-09 08:08:35 +00:00
Itsuro Oda
1b3facbb68 make getting vnf package tenant aware
Previously since the method used to get vnf package when creating
vnf instance in v2 API is not tenant aware, it fails when a user
who does not have admin role executes the API.

This patch fixes to use the method that is tenant aware to get
vnf package.

Closes-Bug: #1981771
Change-Id: I0de5323fc1dc58f52ea2e3d3d72fa4c0c41f0acd
2022-08-09 02:08:57 +00:00
Itsuro Oda
18662b139d Fix external link port id of instantiatedVnfInfo
This patch makes extVirtualLinkInfo.extLinkPorts.id of
instantiatedVnfInfo of V2 api same as cpConfig.linkPortId of
extVirtualLinkInfo.currentVnfExtCpData to comply with the ETSI
NFV SOL specification.

Closes-Bug: #1981661
Change-Id: I0cd1e610143bc994da30d0afba50e6a4520cf363
2022-08-09 02:08:28 +00:00
Zuul
e86f44627e Merge "Fix IPv4 check failure in UT" 2022-08-09 01:21:35 +00:00
Yi Feng
40e895657b Fix IPv4 check failure in UT
Since the version of jsonschema has been updated from 3.2.0 to 4.7.2,
when tox executes UT, it reports an error when checking IPv4, and now
the invalid IP address is fixed.

Due to FT failure caused by ceilometer, the installation of Ceilometer
was commented out in `.zuul.yaml`.
Note that this is only a temporary change and will need to be changed
back when the ceilometer issue is resolved.

Closes-Bug: #1983067
Change-Id: Ice9be4d71ee1689b57add263be5fadd77a7f5ccd
2022-08-08 07:22:11 +00:00
OpenStack Proposal Bot
3a7fa3d947 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If6dba04300f0c0d95970a20234e01262bbb2204d
2022-08-02 04:37:21 +00:00
Zuul
a018a5fcbb Merge "Update config in tacker installer" 2022-07-19 01:21:21 +00:00
Naoaki Horie
6b35077372 Fix Desired Capacity for heat is not updated
For v1 API, heal doesn't delete original VM after running
scale-out unexpectedly because `desired_capacity` for
stack update for heat is not updated while heal operation.
This update is for the fix.

Closes-Bug: #1980329
Change-Id: I61ee8b6e08a6af54f04cf09c8a0123332946ccb5
2022-07-13 04:52:45 +00:00
Zuul
c9842ff16d Merge "Implemented number format in additional params" 2022-07-07 07:31:14 +00:00
Zuul
95a075d534 Merge "Fix k8s init error when file contains special key" 2022-07-07 02:56:08 +00:00
Yasufumi Ogawa
fc73097874 Update config in tacker installer
For a limitation of IP address range of hostonly network which was
added in the recent update in VirtualBox [1], allowed only
192.168.56.0/21, the installer is terminated without you give
appropriate IP addresses to your VMs.

Forwarding port `10080` for HTTP is also invalid in security for some
browsers. `20080` is valid for the restriction.

This update is to update default values of IP address and port to be
allowed.

[1] https://www.virtualbox.org/manual/ch06.html#network_hostonly

Closes-Bug: #1980312
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I7fbce874ce2445ea72e627e0ad6309062fac9292
2022-07-07 01:19:48 +00:00
Pooja Singla
d8f16acd8a Implemented number format in additional params
Number format value was giving error when passed in
additional param section of instantiation json file.

Added number type in keyvalue_pairs in parameter_types.py.

Closes-Bug: #1978563
Change-Id: I4d87615ff106abf0e59ef45f0ff322d75fea0038
2022-07-05 05:05:05 +00:00
Zuul
ceaee165f6 Merge "Improve API Documentation for v2 API" 2022-07-04 13:01:00 +00:00
OpenStack Proposal Bot
e1a4666fe6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I52057441aeaefc358013a6d5e26925def7ab0b3c
2022-07-03 04:24:33 +00:00
Shuwen Cai
6441914c5f Fix k8s init error when file contains special key
When executing CNF lifcycle operations, if the manifest file
contains the following parameters:
  `exec`, `not`, `except`, `continue`, `from`
the initialization of Kubernetes resources will fail.

To fix this issue, this patch makes changes to the `_init_k8s_obj`
method in the `translate_outputs.py` file. When the manifest file
contains the above parameters, it is first converted into
parameters that can be recognized by the k8s client module and
then initialized.

Closes-Bug: #1978071
Change-Id: I392e1b07152b260de775754dbe4606995f658d8d
2022-06-30 16:44:00 +09:00
Ai Hamano
0e3793b1a2 Improve API Documentation for v2 API
This patch modifies the following for the API Documentation for v2 API:
 [1] Added 400 code
   - All APIs return "400 Bad Request" if the validation check in the
     Version header fails.
 [2] Added 406 code
   - All APIs except api_versions return "406 Not Acceptable" if an
     unsupported version is set in the Version header.
 [3] Removed 422 code
   - It is not necessary to describe the "422 Unprocessable Entity"
     error that occurs after returning "202 Accepted" in the response.

Change-Id: I8565c12a69ca75f6c7934e351b5f76ca093ffb02
2022-06-30 11:29:12 +09:00
Yusuke Niimi
f957dd6857 Add doc of Using OAuth2.0 for Tacker
This patch provides user guide for OAuth2.0 client authorization
through keystone identity servers.

Implement: blueprint oauth2-client-credentials-ext
Change-Id: I9a1f976faee631282691f2d70032c546c6c3b53f
2022-06-29 07:46:50 +00:00
Ayumu Ueha
a89d5b284d Enable multiple VNFs creation from one package
This patch removes the restriction that only one VNF can be created from
a single VNF package when deploying CNFs.
The process of associating the `VDU.properties.name` in VNFD with the
actual resource name has changed by adding the `vdu_mapping` parameter
to InstantiateVnfRequest.additionalParams.

The patch also updates the documentation to remove the restriction and
add how to instantiate with `vdu_mapping` parameter.

Implements: blueprint remove-cnf-restriction
Change-Id: I32c041b8fd996b9b338fe97eb1604567fd6b6aaf
2022-06-29 00:42:38 +00:00
Zuul
3ce72ac65f Merge "Change to not convert additionalParams of V1 API" 2022-06-28 15:38:58 +00:00
Zuul
9787ac508a Merge "Imported Translations from Zanata" 2022-06-28 09:32:55 +00:00
Zuul
36f53d270a Merge "Remove deprecated attributes from context" 2022-06-28 05:03:43 +00:00
OpenStack Proposal Bot
b4fc03f8dc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I12b60b4d62258c30486b96378aef9a8098aa786a
2022-06-28 04:30:43 +00:00
Zuul
b22de1eb92 Merge "Add doc of Change Current VNF Package" 2022-06-28 00:08:53 +00:00
Zuul
77eac3bc6d Merge "Add doc of container update" 2022-06-27 21:00:26 +00:00
Zuul
e434706726 Merge "Improve VNF Package for v2 API FT" 2022-06-21 04:54:25 +00:00
Zuul
6e082a742e Merge "affectedVirtualStorages should not be set" 2022-06-21 01:05:26 +00:00
Pooja Singla
0984f29fb1 affectedVirtualStorages should not be set
affectedVirtualStorages should be absent in
notification when VNFD does not contain virtual
storage

Implemented a check during populating
affectedVirtualStorages, affectedVirtualLinks,
affectedVnfcs in notification

Closes-Bug: #1973372
Change-Id: Ic83359553fb256de83f8cf1578656f842945b6d0
2022-06-15 09:18:52 +00:00
Zuul
8a7d3e70c1 Merge "Update API doc for paging large query results" 2022-06-13 01:25:53 +00:00
Yi Feng
9b0b7d3b75 Add doc of container update
Usage guide for how to use Mgmt Driver to update ConfigMap and
Secret, as well as Pod and Deployment, while updating CNF.

Change-Id: Ia79b6317d441b3430010b0e4adc5bedd952f428a
2022-06-07 15:06:03 +09:00
Yi Feng
f7e241eca2 Add doc of Change Current VNF Package
This patch provides Tacker documents for change current vnf package
in V2-API. The specification about new API is added to API Reference.
Also, change current vnf package operation is added to
Tacker Use Cases Guide and CLI Reference.

This patch also adds change current vnf package restrictions to
error_handling user guide.

Implements: blueprint upgrade-vnf-package
Change-Id: I3f18bbab17c67e717dc0a9d36e92f812a40862e5
2022-06-07 10:01:29 +09:00