Commit Graph

16 Commits

Author SHA1 Message Date
Ghanshyam Mann c51a506f57 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I62d60bf7419decc35193ce1aa9a652a3c8bbf80d
2022-08-26 17:14:56 +09:00
Yasufumi Ogawa 65dfa754e2 Fix unittest for auto scaling
This update is to fix failures in unittests below.

* `custom_def` in Policy class was changed from str to dict in
  tosca-parser. This arg isn't interested in the test, so it's replaced
  with empty dict.

* Fix unsafe yaml loader with `yamf.safe_load`.

It also removes nouse pip packages which cause failures while
resovlving dependencies, and some tiny refactoring.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I8ae60a4ae9f139073f05ec0f99fa82c8bb24ee50
2022-03-16 01:01:23 +09:00
Manpreet Kaur 615c76b900 Remove depreciated file babel.cfg
The file babel.cfg is not used anymore.

This patch removes the depreciated file and the translation
sections in setup.cfg (extract_messages, compile_catalog and
update_catalog) as these not needed anymore,
Babel can generate translation files without them.

Change-Id: I86a0ce342ae695c9529d3cf5bd4ac3779f9a9205
2021-02-12 06:50:56 +05:30
Yasufumi Ogawa 4809045ed5 Remove six support
This update is to remove six support for dropping python2 from
heat-translator. Only the example of dockerfile is remained in which
it's expected libs are installed under `/usr/local/lib/python2.7`, so
it should also be considered to be updated later.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: Iafbd1588674c95d6b6ec6b5429f2d34fb23081d0
2020-12-11 17:07:14 +00:00
Ghanshyam Mann 828ede5d67 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40186

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal>

Change-Id: I482ac98bc56f0e3cfb8b767f47649da11ed1afab
2020-08-17 14:19:50 +00:00
Hervé Beraud bfb642eb44 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: Ic435375ea64e5a2d50a208208c4729046cb49e23
2020-06-09 01:14:00 +02:00
Andreas Jaeger 92efac6413 Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

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: Ia9d81ddc1f3234af352787363e2963f808dbbad0
2020-05-30 17:10:51 +02:00
Andreas Jaeger 98e848606f Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I36cc496d9374169b0eafdf8d66747b07f2b2cabb
2020-04-07 17:35:28 +02:00
Andreas Jaeger 2ceec3b348 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Increase requests lower requirement since oslo.config needs 2.18.0.
Fix idna lower-constraint to satisfy requests.

Change-Id: I753e09613b50e099060e2c85eb80d06d8b257858
2020-02-04 21:02:09 +01:00
Hiroyuki JO 4833eb5e92 ETSI-NFV SOL 001 translation: VNF, Compute
Currently heat-translator supports translation of TOSCA Simple Profile
for YAML[1] and TOSCA Simple Profile for NFV[2] only.
This commit enables to translation of the follwoing type defined in
ETSI NFV-SOL 001[3].
- tosca.nodes.nfv.VNF
- tosca.nodes.nfv.Vdu.Compute

[1] http://docs.oasis-open.org/tosca/tosca-nfv/v1.0/tosca-nfv-v1.0.html
[2] http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/TOSCA-Simple-Profile-YAML-v1.0.html
[3] https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/001/02.06.01_60/gs_NFV-SOL001v020601p.pdf

Story: 2006372
Task: 36161

Change-Id: I69263dce88bab5413a2d6f74f8d0c920dd454bf3
2020-01-22 03:35:40 +00:00
pengyuesheng 25945f4363 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Iaad0471ba92a01494dca3c60522358fbbd3ceb86
2019-08-16 09:16:42 +08:00
nirajsingh 30f4d2ff83 Support reservation policy in heat-translator
Implementation of reservation policy in heat-translator

Tacker Blueprint: https://blueprints.launchpad.net/tacker/+spec/reservation-vnfm
Tacker Spec: https://review.openstack.org/#/c/561840/
Depends-On: Ic5d790df938b40d75bc50252e1e688e9c09eb568
Change-Id: I2b989a49ac3447995a82ddb7193bf478bb847b73
2019-01-09 06:28:27 +00:00
Alvaro Lopez Garcia ef32ac6991 Use oslo.log for osc plugin
If we do not use oslo.log for logging in the openstackclient plugin, all
the errors and messages that are generated by other parts of the client
(cliff, openstackclient) may be lost.

Change-Id: Ie9aec900e477f3f319ee34873018c15e10dafb4a
2018-10-26 11:43:16 +02:00
Nguyen Hai 060361fb11 Switch from oslosphinx to openstackdocstheme
- Change to openstackdocstheme which is a theme and extension
support for Sphinx documentation that is published to
docs.openstack.org and developer.openstack.org.
- This patch also updates README.rst

Change-Id: I5922eb9b0f5835be65a5ba3eead78bdf92458452
2018-05-29 19:43:49 +09:00
hoangphuocbk 9e3a6157f0 Move usage from deprecated Ceilometer API to Gnocchi API
This removes usage of deprecated Ceilometer API

1. Changing trigger type from "OS::Ceilometer::Alarm"
to "OS::Aodh::GnocchiAggregationByResourcesAlarm"
2. Add "resource_type" fixed with value "instance"
3. Change some paramters (meter_name-> metric,
statistic ->aggregation_method, period-> granularity)
4. Change value from "average" to "mean" in method to
compare to the threshold

Change-Id: I66f8e4c76a918494df26b4af277453e24421b917
2018-05-16 01:26:51 +09:00
Doug Hellmann 783848b6ef add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Ib54727bef315518ebcb6e5554911f3e76651e4c7
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 13:21:44 -04:00