Commit Graph

26 Commits

Author SHA1 Message Date
Takashi Kajinami 25146d215c Remove lower-constraints job/tripleo job
During the last PTG, TC agreed to remove the lower-constraints job[1].
Because the job is currently broken, this change removes the job
according to the decision.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2022-April/028104.html

This change also removes TripleO job because TripleO no longer uses
Zaqar.

Change-Id: I480ce9304a51fb2fa1818a0f6ea36116230ff506
2022-04-13 10:51:36 +09:00
wanghao db6a6b4908 Update swift client in Zaqar
Change-Id: I5af660388509f716adbe9e2ed9246b8dccdc6fd5
2021-05-18 15:39:31 +08:00
wanghao 8e17ad34fd Update the requirement of oslo db
Change-Id: I97baabf273991f2221e0c97816432eb751b5f48f
2021-03-26 08:57:45 +08:00
Ghanshyam Mann 948e88c268 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I595b8c7cad7bb02486c8f0dd29fdc40789fc8e50
2021-02-17 00:58:28 +00:00
wu.shiming 656b93733e requirements: Drop os-testr
We've switched to stestr.

Change-Id: I28a966caa01e42ca86f1f740cf3c23e7a433dd8b
2021-01-13 05:22:27 +00:00
Sean McGinnis d949c970ad Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I5f86837c601eb64dff3c370decd2670f2a6276b6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-01-13 09:05:59 +08:00
wanghao bf086eb753 update lower constraints
Because autobahn 20.7.1 depends on cryptography>=2.7, we
need to update the version of cryptography.

Change-Id: Ib89beed50f5d6e63fe6d75bdd24a4c879bd4834a
2021-01-08 08:45:55 +08:00
melissaml 772db810a0 [Part1] Remove six
We don't need this in a Python 3-only world.
Remove six in follows:
1. zaqar/common/transport/wsgi/helpers.py
2. zaqar/common/urls.py
3. zaqar/common/utils.py
4. zaqar/notification/notifier.py
5. zaqar/notification/tasks/mailto.py

Change-Id: Iae6d4f415b215b9fdf675a0fcf00282fc98d58b7
2020-10-24 15:47:52 +08:00
Zuul bd4e5b62fc Merge "[goal] Migrate testing to ubuntu focal" 2020-09-19 05:41:10 +00:00
Ghanshyam Mann e35f9ad8d3 [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#1885825
Fix user creation with GRANT in MySQL 8.0(Ubuntu Focal)
Ubuntu Focal (20.04) has mysql 8.0 and with mysql 8.0 there
is no implicit user creation with GRANT. We need to
create the user first before using GRANT command.

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

Co-Author: wanghao <sxmatch1986@gmail.com>

Story: #2007865
Task: #40229

Closes-Bug: #1885825

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

Change-Id: Ic15dfe480e4d34c3ba102b65153fab1af787bd67
2020-09-18 11:28:46 -05:00
Zuul 854da437e8 Merge "Cap jsonschema 3.2.0 as the minimal version" 2020-08-27 01:48:50 +00:00
ZijianGuo 8baa824b85 Fix the issue that the function unpackb has no encoding option
Package msgpack has Removed the encoding option. Please refer to [1].

And the default encoding of python3 is 'utf-8', So there is no need to specify
the encoding as 'utf-8'.

[1] https://github.com/msgpack/msgpack-python/pull/380/files

Change-Id: Ibb92e983a79e5c1608f6a603816e1b88283e34c9
Closes-Bug: #1891008
Signed-off-by: ZijianGuo <guozijn@gmail.com>
2020-08-17 11:19:10 +08:00
wanghao e12c65a369 Encrypted Messages in Queue
The queue in Zaqar will support to encrypt
messages before storing them into storage backends,
also could support to decrypt messages when those
are claimed by consumer. This feature will enhance
the security of messaging service.

Implements: blueprint encrypted-messages-in-queue
Signed-off-by: wanghao <sxmatch1986@gmail.com>
Change-Id: Icecfb9a232cfeefc2f9603934696bb2dcd56bc9c
2020-07-23 14:07:54 +08:00
Zuul b5936860a2 Merge "Update hacking for Python3" 2020-06-09 02:30:58 +00:00
Hervé Beraud bf863c5e3a Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Id7e0f5b9c2c54ec0d5f1f7b0cd8199bc60718971
2020-05-26 22:15:51 +02:00
melissaml e195c8112b Switch to newer openstackdocstheme and reno versions
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_auto_name to use 'project' as name.

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: Ie623e7a2389c292ffc71a285f0fc2d4bb9820c3f
2020-05-26 14:03:34 +08:00
Andreas Jaeger b6e1688b24 Doc cleanups
Switch to newer openstackdocstheme and remove settings that
are default now.

Change-Id: I27895a6fb91ba3be37831a697098718082eec00f
2020-05-13 17:49:28 +08:00
Andreas Jaeger 1d9a681b83 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.

Change-Id: I602e3f3dd3f158799f910d73ac9c759efe15fcc0
2020-04-02 10:18:47 +02:00
Sean McGinnis a0aba998f7
Switch to using stestr directly
ostestr is deprecated and projects should now be using stestr directly
for running tests.

Change-Id: Iad8911d6eb352c6e5b3b9fdcda6e9280b7efb5de
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-29 10:48:28 -05:00
Sean McGinnis 1af2c91e41
Unblock gate failures
There are a few issues causing all gate runs to fail that are addressed
in this patch.

Update constraints to match global requirements:

There are a few local requirements that conflict with what is now in
upstream global-requirements. This updates sphinx to match the
constrained versions due to incompatibility with py2 and uncaps
jsonschema.

Update handling for falcon 2.0.0 behavior changes:

The 2.0.0 release of falcon changed the default values for two request
query parsing options that would cause failures due to unexpected
results. This sets those options to their previous defaults to maintain
compatibility across 2.0.0 and pre-2.0.0 versions of the package.
Lower constraint version raised to 1.1.0 where the options were
introduced.

There are additional integration test failures with Falcon 2.0.0 that
were due to changes in the subscription URL path.

Closes-bug: #1830903

Requirements and upper constraints not enforced in some tox targets:

The docs and api-ref tox targets were not setting the right dependencies
or the upper constraints to use for pip installs. Also updates the
constraints to the newer preferred static redirect URL maintained by the
release team.

Co-authored-by: wanghao <sxmatch1986@gmail.com>
Change-Id: I19c5363878c629a04e1be902c865ee7cea92dcd9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-29 09:31:18 -05:00
whoami-rajat 37fc134d11 Add zaqar-status upgrade check command framework
This adds basic framework for zaqar-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: I855b4b72284df308c3bb250fd3a3f0fc643b4abf
Story: 2003657
Task: 26165
2018-12-12 06:08:06 +00:00
xywang 3641f28cc6 Fix redis CI job
Change-Id: Ia59ad6f5ce6311eda92cf033a72df9c94e1ffb18
2018-12-11 15:50:38 +08:00
xywang b926235153 Fix lower constraints job
Change-Id: Id1d406442f1a59474cfa6c96eb99bddecfe1c163
2018-09-13 14:38:06 +08:00
xywang fd5b3a3123 Remove some unused lib
Change-Id: I9f65b4d12239fc5812b018c4f0caa77f8919a9a3
2018-06-29 16:51:58 +08:00
xywang cab8a15a41 Update the lower-constrainsts
The low-constrainsts is totally wrong, it contains
the upper ones. This patch copy the right ones from
openstack/requirements to fix the issue

Change-Id: Ic4f90ffc609d871a918091d93ee14896dc876be9
2018-05-09 06:30:50 +00:00
Doug Hellmann 2958cc198a 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: I9bd440a026578846d570cf750728c01e6f4b7e36
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 19:15:34 -04:00