Commit Graph

117 Commits

Author SHA1 Message Date
Takashi Kajinami a45f70e938 redis: Add username
Redis introduced ACL feature in 4.0.0, and this feature is supported by
redis-py since 3.4.0[1]. When ACL is enabled, authentication requires
username in addition to password.

This also fixes how password is parsed from uri string. The parameter
description has saied that password should be passed in the following
format
 redis://[:<password>]<host>...
but the actual format current code expects is
 redis://[<password>]<host>...
which is not compliant with standard URL format.

[1] 8df8cd54d1

Change-Id: I55f268eea13c7b45dceae85cfac86f3fb1562f1a
2024-04-19 22:16:45 +00:00
Takashi Kajinami 5c900d4ab5 Bump hacking
hacking 3.0.x is too old.

Also remove the note about very old pip's behavior.

Change-Id: I6d2d180a9ec80664efae498f86a4d1f734aacfa5
2024-02-02 12:42:02 +00:00
wanghao db6a6b4908 Update swift client in Zaqar
Change-Id: I5af660388509f716adbe9e2ed9246b8dccdc6fd5
2021-05-18 15:39:31 +08: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
wu.shiming 0c7e97bdac Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I081e83e15b0e31955f1c8bf3ed702d903f82025d
2021-01-12 09:17:15 +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
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
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
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
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
Nguyen Van Trung 5d26144664 Remove ignore D000 in validation code
This commit going to remove --ignore D000 which had raised
alot of issues, such as:
- "D000 Cannot analyze code. Pygments package not found."
- Cannot check LOG which have '_' symbol in code-base.

And they also fixed in https://review.openstack.org/#/c/568729/

Change-Id: Ic5258e0262c11b9f878d867a3354aa7d1f6e67b4
2018-05-30 10:33:36 +07:00
xywang 17ef71a482 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I444cdaad0d83d9d8795dc03793aefe2fa3a51203
2018-05-22 06:12:22 +00:00
OpenStack Proposal Bot 8c112f1794 Updated from global requirements
Change-Id: Iab4cb51ddfb1a1b36532b80632f726e1cd11f32c
2018-03-22 10:16:17 +00:00
OpenStack Proposal Bot d49f19d919 Updated from global requirements
Change-Id: I57dfe1cade07fb14514461e0cc13140b56c45610
2018-03-15 09:40:49 +00:00
OpenStack Proposal Bot e66ca5c7c9 Updated from global requirements
Change-Id: Id387f5550072f0538e57274bd1408743734302d7
2018-03-14 06:14:17 +00:00
OpenStack Proposal Bot 88f341bc17 Updated from global requirements
Change-Id: I2cc3b8b58d787b5599745d73d03dfcff41bd75b1
2018-01-24 02:31:32 +00:00
OpenStack Proposal Bot df9e5ac0a7 Updated from global requirements
Change-Id: Ia5ffe0e5cf147faf533e13c3f2b93778bfe6c78e
2018-01-16 04:38:49 +00:00
OpenStack Proposal Bot 764bbb97dd Updated from global requirements
Change-Id: I3475399c2bb2b477b07382359f23ed441963f84d
2017-12-23 14:58:27 +00:00
OpenStack Proposal Bot 62de6ff103 Updated from global requirements
Change-Id: I3f22c1c1fa177b471da410cfbc433c708a756abf
2017-11-16 11:31:46 +00:00
Zuul 416baa1a76 Merge "Cleanup test-requirements" 2017-11-11 01:52:42 +00:00
luke.li 54057f1ccd Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository and os-testr
(probably was used by some tox wrapper script before)

Change-Id: Id173fa300f7528748148896b7a8f2c3cb042ad7d
2017-11-02 14:30:39 +08:00
Chandan Kumar bceb83d1fe Remove bundled intree tempest plugin from Zaqar
The plugin has been split into its own repository[1] in accordance with
Queens Goal "Split Tempest Plugins into Separate Repos/Projects[2]".
This patch removes the local copy as well as the setuptools entry point.
We can also now remove the autodoc_tree_excludes pbr option since
there's no more plugin to exclude and it defaults to [setup.py].

[1] http://git.openstack.org/cgit/openstack/zaqar-tempest-plugin
[2] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html

Implements: blueprint zaqar-tempest-plugin

Change-Id: Ia52d7f0a18e4b55260dc994f0802a96109280e24
2017-10-26 13:03:23 +05:30
OpenStack Proposal Bot 618c2d6605 Updated from global requirements
Change-Id: Ie4ce0724937a3c24ff2b42fbadd64c43696dd3f9
2017-10-09 17:46:51 +00:00
OpenStack Proposal Bot 5c80a20af7 Updated from global requirements
Change-Id: Iedf0b0aad4e2aaddabe4123b08037717e8b25fea
2017-09-21 03:52:57 +00:00
liuyamin 49a397ebfb Use doc8 check
doc8 is a linter for documents and used in openstack-manuals. It is better to
enforce document linters for simple checking.

The current rules are really simple like:
- line length check (80 chars)
- new line at the end of file
- Trailing whitespace

Change-Id: I328e2b2b82739696b95eca4a4130ca347893b0dc
2017-08-10 09:07:41 +08:00
OpenStack Proposal Bot 470c021a9e Updated from global requirements
Change-Id: I52a51deb8d512b6a7414b8afc5c6750d4208e688
2017-07-29 02:44:31 +00:00
OpenStack Proposal Bot 68e58d66dc Updated from global requirements
Change-Id: I33718495852b50521c44a811c0e26fa91db579ce
2017-07-17 22:14:35 +00:00
Van Hung Pham b0f96a6e12 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: Id4399e3c8c30716d7622dc7ed8ab91433cad813b
2017-07-03 09:01:07 +07:00
OpenStack Proposal Bot 68eac5ab64 Updated from global requirements
Change-Id: I060fa16a3765b118c1785079d07238badbf2df43
2017-06-22 21:41:10 +00:00
OpenStack Proposal Bot 896a388a49 Updated from global requirements
Change-Id: I8523b3feebc1920fc00acbead693e58120c2dd20
2017-06-14 00:42:32 +00:00
OpenStack Proposal Bot 2afc370b4c Updated from global requirements
Change-Id: I7f52b65d001b2733fdb01cf5844000fc804ed53e
2017-05-24 03:48:00 +00:00
OpenStack Proposal Bot af3b2178d8 Updated from global requirements
Change-Id: Iec73dd7b7b9af6ca807b296d49d8ab15a416bb04
2017-04-07 07:03:16 +00:00
OpenStack Proposal Bot a4844f2540 Updated from global requirements
Change-Id: I918c063140a904c605795046b0f3ee9de0468d4b
2017-03-10 03:40:58 +00:00
ricolin 517dfa90c0 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I740630508c696c1d87a88e37f76515f85892ae78
2017-03-02 18:07:57 +08:00
OpenStack Proposal Bot 03990eb3f7 Updated from global requirements
Change-Id: I64ac7611ccd7550b5414a1023c7d37f48232e70c
2017-02-16 01:30:30 +00:00
Jenkins cd40b75f0c Merge "Using os-testr to get better report" 2017-02-09 01:29:55 +00:00
Fei Long Wang d3f69d93c0 Using os-testr to get better report
As a wrapper of testr, os-testr can provide subunit-trace for output
which is useful for debug.

Change-Id: I99f3a01ea85cbbf2b9a970b75bff19c63f7e44eb
2017-02-08 22:45:40 +00:00
Jenkins bbf4738e8e Merge "Fix sqlalchemy migration" 2017-02-03 04:03:45 +00:00
Fei Long Wang 1ddd9ca5c0 Fix sqlalchemy migration
1. Fix the case of table names
2. Fix the sqlalchemy migration tests

NOTE: The sqlalchemy migrations test depends on oslo_db's migration
test which requires mysql user 'openstack_citest' with password
'openstack_citest' otherwise the test will be skipped.

Closes-Bug: #1654105

Change-Id: Ia672440a948fa4784f6dd1aa6d5fed0bc3915663
2017-02-02 20:20:29 +13:00
OpenStack Proposal Bot 83bbd7bd5d Updated from global requirements
Change-Id: I836efb52ec2ae0c9a8f16baa1fc32f6b4fcefa3d
2017-01-30 21:44:55 +00:00
Ryan S. Brown 40083a720c Swift storage
Implement storing of queues, messages, subscriptions in Swift.

Change-Id: I94e158b35b069ea1fbf8dde17c89ff9b9c758ab4
2017-01-05 09:21:21 +01:00
OpenStack Proposal Bot 874fd85114 Updated from global requirements
Change-Id: Ie6901828718a3ce6105ea185070df4248c6c79f7
2017-01-03 14:56:43 +00:00
wangxiyuan ca1501a8dd Fix CI failure
the migration tests raised error:
ImportError: No module named testscenarios

Add testscenarios to test-requirements.txt

Change-Id: Ife2013cba5fb071bebead7e841decc53184fe57a
2016-12-24 10:50:47 +08:00
Jenkins 5612e13b44 Merge "Add support for sqlalchemy migration based on alembic" 2016-12-13 07:38:27 +00:00
Fei Long Wang fb8da5d535 Add support for sqlalchemy migration based on alembic
Implement blueprint: sqlalchemy-migration

Change-Id: Ifd0d5186299611907a388f8ab8b27e312a3cb60d
2016-12-13 02:28:10 +00:00
Zhi Yan Liu 47324171d4 Integrate OSprofiler with Zaqar
*) Add osprofiler wsgi middleware
This middleware is used for 2 things:
1) It checks that person who want to trace is trusted and knows
secret HMAC key.
2) It start tracing in case of proper trace headers
and add first wsgi trace point, with info about HTTP request.

*) Add initialization of osprofiler at start of server
Initialize and set an oslo.messaging based notifier instance
to osprofiler which be used to send notifications to Ceilometer.

*) Enable profile on existing useful storage backends
Change controller creation logic of data and control panel for
mongodb, redis and sqlalchemy storage backends, as well as
an aggregative pooling driver.

*) Add options to allow operator control profiles separately

NOTE to test this:
1) You have to enable necessary profiler option(s) base on your needed.
2) You need to enable follow services in localrc for devstack:
  CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler
  ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral
  ENABLED_SERVICES+=,ceilometer-anotification,ceilometer-collector
  ENABLED_SERVICES+=,ceilometer-alarm-evaluator,ceilometer-alarm-notifier
  ENABLED_SERVICES+=,ceilometer-api
3) You should use python-zaqarclient with this change:
  I880c003511e9e4ef99806ba5b19d0ef6996be80b

Run any command with --os-profile <SECRET_KEY>
  $ openstack --os-profile <SECRET_KEY> queue list
  # it will print <Trace ID>
Get pretty HTML with traces:
  $ osprofiler trace show --html <Trace ID>
note that osprofiler should be run from admin user name & tenant.

DocImpact

Partially-implements BP: osprofiler
Change-Id: I32565de6c447cd5e95a0ef54a9fbd4e571c2d820
Co-Authored-By: wangxiyuan <wangxiyuan@huawei.com>
2016-11-18 08:33:31 +00:00
OpenStack Proposal Bot de075b89f1 Updated from global requirements
Change-Id: I11244497412f4ec862f4d46143c3fc97f52b80af
2016-11-06 02:09:23 +00:00