Support the latest NFV Orchestration API v2.0 listed below.
* VNF LCM v2
* VNF FM v1
* VNF PM v2
In addition, to manage VNF packages for testing purposes, also support
Orchestration API v1.0 listed below.
* VNF packages
Implements: blueprint v2-api-horizon
Change-Id: I0284cba30154cf4cc5d496be157288e2c2614ccf
horizon recently switch nodeset for a few jobs from
focal to debian-bullseye [1] as per the runtime of 2023.1
cycle but looks like 'tacker-horizon-integration-tests'
start failing because the firefox package for debian-bullseye
is missing in ``bindep.txt``. This patch updates the ``bindep.txt``
file to sync with the horizon.
[1] https://review.opendev.org/c/openstack/horizon/+/865453
Change-Id: I06e996fca4192a838233994e97611a545fa2abdb
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().
For more info. please refer [1].
https://docs.djangoproject.com/en/4.0/releases/3.0/#id3
[1] https://review.opendev.org/c/openstack/horizon/+/827092
Change-Id: Idea2712e701488575c3f418f11ecae12516fdc68
tox.ini started failing with Tox4 which had some
incompatible changes.
Remove skipsdist option as it is causes breakage
when used with usedevelop.
Change-Id: I514b6e6d4adf3ed3b7afd0690d5b5a6c6c4971b2
In 2023.1 cycle, we are testing the python 3.10
as voting job so updating the python classifier.
Currently we have python 3.8 unit test job running on
Ubuntu Focal and python 3.10 job on Ubuntu Jammy.
Change-Id: I101c88bd234eeff3642c18e4723ca6135bfe7b57
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I8414d73ee04989ef573d1d9229fa565f7c4a8f62
After creating VNF Instance using vnflcm v1 API, tacker-horizon VNF
Manager tab becomes not being able to redner the view correctly. This
happens because VNF Manager tab tries to obtain `vim_name` and fails.
The `vim_name` attribute is no longer available in vnflcm v1 API.
This patch fix this problem by simply using `get` method to obtain
`vim_name`.
Closes-bug: #1950783
Signed-off-by: Hiromu Asahina <hiromu.asahina.az@hco.ntt.co.jp>
Change-Id: If78ffe41dbe3e04cde5678a07df9f55382eb5481
This patch implements an integration framework and adds basic
test cases to verify whether tacker-horizon is installed and
could be opened.
The integration test suite "tacker-horizon-integration-tests"
is added as a gate job in non-voting mode.
Selenium exception details:
The tacker-horizon consists of panel groups "VNF Management"
and "NFV Orchestration".
The selenium reports an exception ElementNotInteractableException
while opening pages for panel group "NFV Orchestration".
This exception occurs when an element is not clickable or is not
visible yet.
By default, panel group "VNF Management" is expanded hence test
cases for pages under this panel group pass.
As per openstack-dashboard integration test case logic, the panel
group "NFV Orchestration" is never clicked hence requested pages
are not visible.
[1] comprises of modified openstack-dashboard integration test
logic to fix the above selenium exception.
[1] https://review.opendev.org/c/openstack/horizon/+/803465
Implements: blueprint tacker-horizon-integration-test
Change-Id: I6a09b945506450d9947afbd92dbab9a4a6c30de4
The VNF details are retrieved using VNF mgmt IP address
(parameter: mgmt_url) received in "show_vnf" API response.
But this functionality was failing as "mgmt_url" parameter was
missing from API response.
Reason:
Earlier in tacker, VNF mgmt IP address was assigned to parameter
named "mgmt_url". But in [1] it was changed to "mgmt_ip_address".
This patch replaces "mgmt_url" to "mgmt_ip_address" for vnf as well
as for vnffg details retrieval.
[1] https://review.opendev.org/c/openstack/tacker/+/490471
Closes-Bug: #1899740
Change-Id: I47d8cb12ae004a8b927277ee1fe222daa800214f
Cinder has dropped block storage v2 API [1].
This patch update python-cinderclient to 8.0.0 and also update its
depending packages.
- python-cinderclient 8.0.0 depends on keystoneauth1>=4.3.1
- python-cinderclient 8.0.0 depends on oslo.i18n>=5.0.1
- python-cinderclient 8.0.0 depends on oslo.utils>=4.8.0
- oslo-utils 4.8.0 depends on packaging>=20.4
- python-cinderclient 8.0.0 depends on pbr>=5.5.0
- python-cinderclient 8.0.0 depends on requests>=2.25.1
- python-cinderclient 8.0.0 depends on stevedore>=3.3.0
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018876.html
Change-Id: I1f029dc1a04d5a92e5078c3abb1c8d3d3c679bdc
In tacker horizon guide, under "Indices and tables" section,
"Module Index" refer to a broken link [1].
The documentation build does not generate module index, thus
we can remove the link [1] from page.
[1] https://docs.openstack.org/tacker-horizon/latest/py-modindex.html
Closes-Bug: #1934177
Change-Id: I85a3e74372bb47647bc873ae0c5e320e9adad5a2
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages like the following on new
enough versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: Ib8150a62dfd0e575ef90363cd5b6e15136bdf7b4
This patch bumps the minimum version of tox to 3.18.0.
Additionally fix the argument such as "whitelist_externals"
which is deprecated, it replaces whitelist_externals by
allowlist_externals option. Please refer [1] for details.
[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23
Change-Id: I03c8367614fb977b35c10f4529bbc3aaa5c8db47
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.
Change-Id: I50655850fe2d1baf34dee9938f35c92266ccab83
New rule enforcement has been enabled in the latest hacking code.
This patch bumps new version of hacking in test-requirements file,
for early detection and to avoid code breakage later when hacking
changes are released.
Additionally addresses dependencies,
flake8 3.8.4 depends on mccabe==0.6.0 and pyflakes==2.1.1.
These Dependencies mccabe==0.6.0 and pyflakes==2.1.1. are internal
requirement for hacking which is managed by hacking itself[1],
removing those from tacker-horizon so that they can be pulled by
hacking as per compatible version.
[1] https://github.com/openstack/hacking/blob/4.0.0/lower-constraints.txt
Change-Id: I4a83f8a783380475071f2e4b62e3c5b7dd9bca2b
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .
Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I00f3153dc3c1de65f6fe36fe444dd2d74c9fbd85
In `NFV` dashboard, each of panels, such as `VNF Catalog` or `VIM
Management`, has a table with pagination. However, some of tables
cannot be displayed, or have a `Next` link which doesn't work. The
reason why the tables cannot be displayed is because some table
templates in Horizon doesn't expect a pagination link which is not None
but empty filled with a white space.
Generating pagination link is defined in each of TableTab class derived
from `tabs.TableTab` in Horizon. For example, TableTab for `VNF Catalog`
is defined as `VNFCatalogTab` in
`tacker_horizon/openstack_dashboard/dashboards/nfv/vnfcatalog/tabs.py`
in tacker-horizon repository. Considering the behavior of the
pagination, it should generate `Next` link if the number of entries of
the table is larger than the maximum number of entries per page which is
defined in Horizon as `20` as default.
The problem is it always set `self._has_more = True` without checking
the number of entries, and Horizon wrongly expects it must be over the
maximum number. As a result, it generates a empty pagination link.
Closes-Bug: #1889993
Change-Id: I9dc7ebc58405048b333d1ca7dd9ec05bd692c01e
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.
This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.
Change-Id: Ia852a117466efde5f79f89c31b65388003f854c2
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.
Change-Id: I64c0f5cb0ca97a0b0d1e4e2ae4863c5b50beabf0
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I0740851043d2e323cf9a04d2e2579a9164393258
This patch update hacking version to 3.0.0[1]. In order to make code
compatible with new hacking rules E305, E117 pep8 errors are fixed
in code. It also drop flake8, hacking, django-babel, mox3, six
packages from lower-requirements.txt
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: I86bc2faed43e7df38682e23866ad4a4303e82667
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.
tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.
horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1] [2].
[1] https://review.opendev.org/#/c/700733/
[2] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin
Change-Id: Icfa76c6d916af4548059a44704972877ad457e2f
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.
This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.
Change-Id: I11a63c67adf8cd28106f750a53745f2e59d53b1b
Almost all OpenStack projects use the constraints file to install
python modules. It mitigate unexpected gate breakage.
tacker-horizon does not follow this best practice somehow.
All missing lower constraints are added.
I checked python modules installed without specific versions in
.tox/lower-constraints/log/lower-constraints-1.log and
copied such modules from horizon lower-constriants.txt if missing:
grep Collecting .tox/lower-constraints/log/lower-constraints-1.log | grep -v ==
horizon requirement is also updated to match Ussuri env.
Change-Id: I3287429d415271e1cff15c91223ab85ea320caa6
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]
[1] https://review.opendev.org/#/c/681969/
Change-Id: I186bb5edfaece73222534fbede928f0903595b04