osc-lib 4.x introduced a change that removed support for legacy
callable functions used as formatters in CLI output.
The python-tackerclient code still uses such deprecated formatters,
which leads to the Invalid Formatter Provided error when used with
osc-lib>=4.0.0.
Replace these legacy callable formatters with compatible formatter
classes provided by osc_lib.cli.format_columns.
Closes-Bug: https://bugs.launchpad.net/tacker/+bug/2118585
Change-Id: Idc2a3be9fe709942904f472b7728e095ded92b19
Signed-off-by: Shivam Shukla <shivam.shukla3@india.nec.com>
This patch fixes the output of v2 Tacker so that vnfPkgId of
VnfInstance that are only used in v1 Tacker are not displayed
as CLI output.
This is because it is confusing for v2 users that unused vnfPkgId
(VNF Package ID) is always displayed as empty.
The vnfPkgId (VNF Package ID) remain displayed in the v1 Tacker
CLI output.
Change-Id: I4adea34e9c2c7fc51e087d2a00f47db77d67fe4a
Tacker API add VNF Package ID to the Tacker V1 VNFLCM API.
This patch adds `VNF Package ID` to the output of
`openstack vnflcm show` command.
Fixes-bug: #2078757
Change-Id: I6edd3b5c080aff350cc6e1c8cab4f25bafe02890
According to SOL003, "authentication" should not appear
in the PmJobModifications response.
Therefore, it has been removed from the output obtained
when running "openstack vnfpm job update".
Closes-Bug: #2054420
Change-Id: I14b415a161983e682a4415d11d1fdad5792be3f8
This patch obsoletes CLI for Legacy APIs excluding VIM feature.
Implements: blueprint deprecate-legacy-apis
Change-Id: I9be376a660c6f7c34c0abe7e327dec7a91d49ee2
Add the Performance Management Threshold CLI to support AutoScale.
The Performance Management Threshold API is based on ETSI NFV-SOL
002 v3.3.1 and ETSI NFV-SOL 003 v3.3.1, which is Version "2.0.0"
API of Tacker.
Implements: blueprint support-auto-lcm
Change-Id: Idd313d6abe47dfa41fc86ddc614d00f99f3fc3b2
This patch deprecates CLI for Legacy APIs excluding VIM feature.
Implements: blueprint deprecate-legacy-apis
Change-Id: Ib74db43b4a3de4676e61f4f9ce6d3d2095a11ddf
Support container based VNF AutoHeal and AutoScale operation with
External Monitoring Tools.
Add the Fault Management interfaces and CLI to support AutoHeal.
Add the Performance Management interfaces and CLI to support
AutoScale. The Fault Management and Performance Management
interfaces are based on ETSI NFV-SOL 002 v3.3.1 and ETSI NFV-SOL
003 v3.3.1, which are Version "2.0.0" API of Tacker. Add the
Prometheus Plugin that has a interface between tacker and the
External Monitoring Tool.
Implements: blueprint support-auto-lcm
Change-Id: I7023a72b73f17f3746c74d311919497c7c4e8b3f
This patch supports CLI of vnflcm subscriptions APIs.
They are as follows.
* vnflcm subsc create
* vnflcm subsc delete
* vnflcm subsc list
* vnflcm subsc show
The output message of "vnflcm delete" was also modified
to match "vnflcm subsc delete".
Implements: blueprint support-nfv-solv3-subscriptions
Implements: blueprint support-etsi-nfv-specs
Change-Id: I9a839a3d131afc80fec0c2bbaa30443798117e0d
This patch supports CLI of vnflcm v2 APIs which are added in Yoga
release.
They are as follows.
* vnflcm update
* vnflcm scale
* vnflcm heal
* vnflcm change-ext-conn
* vnflcm op fail
* vnflcm op retry
* vnflcm op rollback
They are common with v1 except heal. An optional parameter
'--additional-param-file' is added to heal CLI.
Implements: blueprint support-nfv-solv3-heal-vnf
Implements: blueprint support-nfv-solv3-change-external-connectivity
Implements: blueprint support-nfv-solv3-modify-vnf
Implements: blueprint support-nfv-solv3-scale-vnf
Implements: blueprint support-nfv-solv3-error-handling
Change-Id: If4acd9c4d35ce7a5bf6c23db1a8238654d536c87
Usage message of all cli commands of tacker is constructed by
argument parser by default. It includes optional parameter
first and insert mandatory parameter at end.
All cli commands are implemented with this design only
except heal cli.
Heal cli is a special case in which optional parameter is
coming at end and mandatory parameter is coming before optional.
To fix this issue usage parameter of argument parser is set
in heal cli.
Closes-Bug: #1954744
Change-Id: I3b1d04df210ad07d4b9a99f300017d49e2b56f0b
"vnflcm op list" with "--exclude-fields" is not
excluding parameters from CLI result.
Closes-Bug: 1953377
Change-Id: If47beccfbab4b85173bbe159905d0605e721cedd
Add version '2' for support version of --os-tacker-api-version to
'openstack vnflcm' CLI.
If '--os-tacker-api-version 2' is specified, REST API url
'/vnflcm/v2' is used instead of '/vnflcm/v1'.
New CLI 'openstack vnflcm versions' is added too.
Implements: blueprint multi-version-api
Change-Id: I256a4010043d0b84ffe43b055c6a6a67a2d5d661
The use of `yaml.load` without Loader is deprecated and
considered unsafe.
The warning notice:
/opt/stack/python-tackerclient/tackerclient/tacker/v1_0/nfvo/vim.py:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
as the default Loader is unsafe.
Please read https://msg.pyyaml.org/load for full details.
config_param = yaml.load(config_yaml)
This change adds (Loader=yaml.SafeLoader) to remove the warning.
Change-Id: Idc77d855b41801777d57cfe92d1c448b6e72feaa
This patch will resolve this issue and display the parameter
vnfConfigurableProperties in Query VNF. This parameter will be visible
in output of CLI like "openstack vnflcm show".
Closes-Bug: #1930571
Change-Id: I67b9bf854000ae52d2e1df40e4edf437713162b5
Add ``openstack vnflcm op list`` to python-tackerclient.
This command can execute getting the list of VNF LCM
Operation Occurrences. User can specify filters for more
specific results.
Note:
- Filtering for the following attributes:
operationParams, error, resourceChanges and
changedInfo is only limited to the parent
attribute. Currently, child attributes/nested
attributes are not searchable.
Implements: blueprint support-fundamental-lcm
Spec: https://specs.openstack.org/openstack/tacker-specs/specs/wallaby/support-fundamental-vnf-lcm-based-on-ETSI-NFV.html
Change-Id: Ie0b3399946d2a705011269025102d9380102ca92
In python 3, all strings are considered as unicode string.
This patch drops the explicit unicode literal (u'...')
or (u"..") appearances from the unicode strings.
Note: The scope of the patch is to drop unicode literal prefix
from python source code files, documentation and comment are overlook.
Co-Authored-By: Manpreet Kaur kaurmanpreet2620@gmail.com
Change-Id: I5316037871109838a03ff4561b7b38dcc56bc447
Scale command cannot be executed without '--additional-param-file'
option, because there is a problem with branch process. Modify branch
process when using this parameter.
And, I uniform cardinality mismatches of specification definition [1]
in some arguments are resolved. This change has no impact of the order
of setting.
[1]https://specs.openstack.org/openstack/tacker-specs/specs/victoria/support-scale-api-based-on-etsi-nfv-sol.html
Closes-Bug: #1903280
Change-Id: I1dd2c71760112982abd2b4b7da6dbaafd7077614
The description of the "openstack vnf package artifact download --help"
command is incorrect.Modify VNF Package or VNFD data to VNF Package
artifact file data.
Change-Id: Ib70efb7eefdb6eacea24dec67bb4ff996b6178d3
Closes-Bug: #1901103
Currently in tacker, updating the VNFFG that already exist
has a problem like below Closes-Bug #1894945. To fix it,
add argument of '--param-file' and it works properly
Change-Id: I3f71c187fade9cd8b69a7131f274872975adf17c
Closes-Bug: #1894945
Fix some exception messages because some exception messages are not
outputed as expected.
In addition, the codes that seems to improve readability by explicitly
specifying the arguments are also modified.
Change-Id: I425d15ea9f5a3d0b6132ffd03cb577e583239c3a
Closes-Bug: #1881510
To fix the issue because of using deprecated method in python3, replace
iteritems() with items().
Change-Id: If3136a5ba471d2cd7ea9420b599567a2fa532cad
Partial-Bug: 1872120
If user list vnf packages with --exclude_default option, it should
display all attributes except default set of complex.
$ openstack vnf package list --exclude_default
Expected fields:
'id', 'vnfProductName', 'onboardingState', 'usageState',
'operationalState', '_links', 'vnfdVersion', 'vnfProvider',
'vnfSoftwareVersion', 'vnfdId'
Actual fields displayed are:
'id', 'vnfProductName', 'onboardingState', 'usageState',
'operationalState'
Fixed this issue and now it will display fields as mentioned above in
expected fields.
Closes-Bug: 1875330
Change-Id: I61da40d2e6e7e42999b7ab2d2441cddde64118d9
Display show command data in human_readable format for better
readability for complex attributes of vnf instance like
'vimConnectionInfo', 'instantiatedVnfInfo', '_links'.
Please checkout below link to see the difference in vnflcm show
response data before and after resolving the issue.
http://paste.openstack.org/show/792866
Change-Id: I52684618f7042f5566ea3bed7255d17d2fd61df2
Display show command data in human_readable format for better
readability for complex attributes of vnf package like 'softwareImages',
'checksum', '_links' and 'useDefinedData'.
Please checkout below link to see the difference in vnf package show
response data before and after resolving the issue.
http://paste.openstack.org/show/792305/
Change-Id: I4827437461fd42b4da8a90d7f8ef703625c78cf5
Added command support for downloading csar vnf package contents.
Change-Id: I6371ebdf0dd9d127ca88bcd721a31036d11ea5fc
Implements: bp enhance-vnf-package-support-part1
Added command support for fetching VNFD of the vnf package.
Please see results here:-
http://paste.openstack.org/show/789212/
Change-Id: Ifa15ddf7ff306ed2705cf7a170d9e9f512491fba
Implements: bp enhance-vnf-package-support-part1
Added command support for updating vnf package.
Please see results here:-
http://paste.openstack.org/show/788463
Change-Id: I0cd32d531db569b7013332fcfaaaefde403e7aed
Implements: bp enhance-vnf-package-support-part1