2996 Commits

Author SHA1 Message Date
Vu Cong Tuan
66ed951a77 Use assertRegex instead of assertRegexpMatches
In Python3, assertRegexpMatches & assertNotRegexpMatches
are deprecated in favor of assertRegex and assertNotRegex

Change-Id: I5966bf52b86e3b7ce7fb0f75c662af15a50c122e
2017-11-07 13:28:00 +07:00
Zuul
96b82139bb Merge "Zuul: add file extension to playbook path" 2017-11-02 03:58:48 +00:00
Zuul
6af5f72fe9 Merge "Migrate to Zuul v3" 2017-11-01 19:25:10 +00:00
Andreas Jaeger
cabf864d1b Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated.  Update references
to include the extension.

Change-Id: Ib6213593f87b6fce2059e01123348d4951ecccd6
2017-11-01 19:20:42 +01:00
Zuul
47ffdfac58 Merge "Dynamically determine SSL version in unit tests" 2017-10-30 18:10:32 +00:00
Zuul
28485327f7 Merge "Database session need to rollback after duplication" 2017-10-30 12:38:30 +00:00
Nam Nguyen Hoai
a61105bd55 Migrate to Zuul v3
Migrate all functional jobs and gate to zuul v3.
We will have to migrate all other legacy jobs too later.
This patch do step 1 in the docs: Move Legacy Jobs to Projects.

Co-Authored-By: Dai Dang Van <daidv@vn.fujitsu.com>
Needed-By: If7dfc17ccc93cd5d99cc899abf7c7cbe08a738dd
Needed-By: I18b026fbfc1741ca397f36c8cbf24aa02c03f4b5

Change-Id: I5c230a5cdd9ee42eee218f84e678d4f155dfc953
2017-10-30 05:37:24 +00:00
Zuul
7725fa182c Merge "writing convention: do not use “-y” for package install" 2017-10-28 11:18:54 +00:00
melissaml
f060da55d7 writing convention: do not use “-y” for package install
refer to:
https://docs.openstack.org/doc-contrib-guide/writing-style/ \
code-conventions.html

Change-Id: I92de0bfcbff95671d6fdf3e74e1239019e094b40
2017-10-27 18:04:32 +00:00
OpenStack Proposal Bot
35e5043b83 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2ae70a3f2dcadc60493a0be5a657a655a6be5c3d
2017-10-27 06:04:41 +00:00
Zuul
4c4d78426c Merge "Updated from global requirements" 2017-10-26 09:52:48 +00:00
Jeremy Liu
3bea711f15 Database session need to rollback after duplication
When a session is first used for accessing database but fails, it
need to rollback before being used again.

Change-Id: I82065e4add3a9a5d0906734bb124617658491c31
Closes-bug: #1727667
2017-10-26 17:43:44 +08:00
OpenStack Proposal Bot
94693c7545 Updated from global requirements
Change-Id: I3460c7eae52ca7c3040759be95ba4c85cefa4aba
2017-10-26 05:21:33 +00:00
OpenStack Proposal Bot
13d1c137f4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6a228860e28866b7e31c4ae1fa0adb2b8585bd29
2017-10-25 07:25:34 +00:00
Zuul
81fc0554d3 Merge "Fix Race Condition in get_or_create_project()" 2017-10-23 09:10:41 +00:00
Dave McCowan
71829664b2 Fix Race Condition in get_or_create_project()
get_or_create_project() first calls a get (query of the database).
If that fails, then it calls create.  The issues is when
there are two threads and both fail the original get, then
each will call create.  One of those creates will fail, resulting
in the traceback.

One way to protect this critical region is to call create first,
then if that fails, call get.

In this case, get_or_create_project() is called for every
Barbican API operation.  The create action (which is slow), happens
once per project for the life of the cloud.  The get action happens
every other time.  For performance gains, I left call get first,
since that call succeeds almost always.

Change-Id: I2f13b495a6b45e226e0742291f76ee88dbcf52df
Closes-bug: #1726203
2017-10-22 22:19:26 -04:00
Zuul
ccc6843967 Merge "Imported Translations from Zanata" 2017-10-17 21:48:57 +00:00
Zuul
b2ed81097d Merge "Cleanup test-requirements" 2017-10-17 15:43:25 +00:00
OpenStack Proposal Bot
4ae0e4cb53 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic3e7b01423c1b9b43ac0fde6cbbc3e5511f6f2f7
2017-10-15 10:25:59 +00:00
chenxing
2a58454289 Update the documentation link for doc migration
These links need to be updated due to the doc migration. Current
links are no longer effective.

Change-Id: I218995d5c8cde34286e2133a53bd7d19ae46c75d
2017-10-11 18:11:17 +08:00
Jenkins
d2ab56c61c Merge "Revert "Revert "Use devstack functions for deploying barbican-svc""" 2017-10-07 19:10:33 +00:00
Nam Nguyen Hoai
11391d4873 Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr

Change-Id: I3e17805d35dbf961ca154e14a34248f0504f1b71
2017-10-07 16:11:14 +07:00
OpenStack Proposal Bot
80f17e8de0 Updated from global requirements
Change-Id: Ib464e3b5324a60d690ef805b47ddf4a9d24143a2
2017-10-05 13:39:08 +00:00
Kaitlin Farr
b8d2ee315f Dynamically determine SSL version in unit tests
KMIP by default tries to use PROTOCOL_TLSv1_2, but not all systems that
run the unit tests necessarily have this.

Dynamically determine the version to use.

Change-Id: Ia13841b3547332d6d5044b446b073dc2394bb8fb
2017-09-29 11:15:22 -04:00
zhuzeyu
622df49a2c Delete python bytecode including pyo
TrivialFix

Change-Id: Id05035c791c8ce10e0db3ed3eef059c61a059b2b
2017-09-27 17:14:51 +08:00
Kaitlin Farr
cc5858c9ae Use Castellan's backend option instead of api_class
This is a mostely complete solution.  Ideally we could use the stevedore
entry point name 'barbican' instead of the full class name for cinder, but
I87926d6c95ac82b6f74c263c7441614f80348c1e needs to merge first.

Change-Id: I32ed528f585e790bc771473504ab7e4bfeb63de9
2017-09-26 12:42:06 -04:00
Jenkins
6da6b0a0aa Merge "Pick up general URI when constructing barbican endpoint" 2017-09-22 02:55:55 +00:00
Jesse Pretorius
5d162ebdda Add default configuration files to data_files
In order to make it simpler to use the default
configuration files when deploying services
from source, the files are added to pbr's
data_files section so that the files are
included in the built wheels and therefore
deployed with the code. Packaging and deployment
tools can then more easily use the default files
if they wish to.

This pattern is already established with similar
files for neutron and the glance metadefs as has
been mentioned in the related bug report.

Change-Id: Iacb17585a3235e95faa109ff11f1b039429ff770
Closes-Bug: #1718356
2017-09-21 15:01:08 +01:00
OpenStack Proposal Bot
4b3f66535e Updated from global requirements
Change-Id: I4162774392873fd379a2e9004753382d33323d3a
2017-09-16 23:10:08 +00:00
Jenkins
0b41b8e05d Merge "Updated from global requirements" 2017-09-14 10:23:18 +00:00
Jenkins
ff654bc33f Merge "Use PortOpt for port options" 2017-09-14 08:04:59 +00:00
Jenkins
4b91cf1a77 Merge "Use PortOpt for KMIP port" 2017-09-14 08:01:37 +00:00
Jenkins
0d97a16428 Merge "Add flag to allow devstack to run on f26 in gate" 2017-09-14 03:08:09 +00:00
OpenStack Proposal Bot
73dc46cf30 Updated from global requirements
Change-Id: I244559863daf77b8e69a6d6db4bf837e060aa7af
2017-09-14 00:29:26 +00:00
Jenkins
1d20294b99 Merge "Add extra time in functional test that fails intermittently" 2017-09-14 00:18:49 +00:00
Dave McCowan
4ad06c1182 Add flag to allow devstack to run on f26 in gate
In Barbican stable branches, we run a gate job on Fedora 26.
devstack needs FORCE=yes flag to run on f26 for Pike and
earlier releases.

Change-Id: I9de812991c4476af4010cd6ecebb8e3c912abf52
2017-09-13 16:54:43 -06:00
Jenkins
6b78a702b6 Merge "Removed unnecessary setUp() calls in tests" 2017-09-13 02:56:35 +00:00
OpenStack Proposal Bot
f3bec31d42 Updated from global requirements
Change-Id: I81880d786e75b465a14c505f0df9c528576b7bf7
2017-09-12 21:46:48 +00:00
Jenkins
584caafadb Merge "Stop using deprecated 'message' attribute in Exception" 2017-09-12 20:41:57 +00:00
Kaitlin Farr
5745f4a1c3 Use PortOpt for KMIP port
oslo.config provides PortOpt to validate the range of port [1].

[1] https://github.com/openstack/oslo.config/blob/2.6.0/oslo_config/cfg.py#L1114

Change-Id: I1c72ce468f588df70fecfb704c97fa25627447fa
2017-09-12 17:51:54 +00:00
Dave McCowan
4211114c4b Add extra time in functional test that fails intermittently
The functional test that checks secret expiration fails
intermittently because sometimes, when the gate is slow,
the secret expires too quickly for the test.

This patch adds an extra 10 seconds so the test will pass
more consistently, while still maintaining the integrity
of the test.

Change-Id: I2f0df9b42dd2bf9dd600948164532fd31bb2a0d3
Closes-Bug: #1499673
2017-09-12 10:08:44 -06:00
OpenStack Proposal Bot
2a4732af4d Updated from global requirements
Change-Id: I92cf74109c3af636cd6a3868aa91e0f8a33cb1a1
2017-09-12 13:58:59 +00:00
Jenkins
d58415ab2b Merge "Put base policy rules at first" 2017-09-12 12:09:31 +00:00
yushangbin
de7478d2e8 Use PortOpt for port options
oslo.config provides PortOpt to validate the range of port [1].

[1] https://github.com/openstack/oslo.config/blob/2.6.0/oslo_config/cfg.py#L1114

Change-Id: I75a8e85e9d3102b88fd34da7355749fce2c74352
2017-09-12 15:44:53 +08:00
Jeremy Liu
a84670b8c5 Pick up general URI when constructing barbican endpoint
Seems like keystone will ask barbican for its infomation
including endpoint. So barbican should handle general endpoint
e.g., 'http://localhost:9311' or 'http://localhost/key-manager'

Change-Id: Id7230198583355a83b1ee4acef3da7cde7118794
2017-09-12 15:11:11 +08:00
Jenkins
f533c0bda4 Merge "allow redirects in .htaccess files on the static web servers" 2017-09-11 23:23:44 +00:00
Jenkins
2b975d89f5 Merge "[TrivialFix] Change container_id to right value." 2017-09-11 21:28:09 +00:00
Jenkins
3d4b589f0e Merge "Fix some reST field lists in docstrings" 2017-09-11 19:05:43 +00:00
Jenkins
914e44cc64 Merge "Remove unused policy check" 2017-09-11 19:03:53 +00:00
yushangbin
e86d57aa4e Put base policy rules at first
This will ensure base rules are generated at the beginning of
policy.yaml.sample.

Change-Id: I3a961ddb096b848a991e2dc11b3b80af83f43d74
2017-09-05 16:44:32 +08:00