Commit Graph

78 Commits

Author SHA1 Message Date
OpenDev Sysadmins f7502c8693 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:40:48 +00:00
OpenStack Release Bot 4eed91067b Update UPPER_CONSTRAINTS_FILE for stable/rocky
The new stable upper-constraints file is only available
after the openstack/requirements repository is branched.
This will happen around the RC1 timeframe.

Recheck and merge this change once the requirements
repository has been branched.

The CI system will work with this patch before the requirements
repository is branched because zuul configues the job to run
with a local copy of the file and defaults to the master branch.
However, accepting the patch will break the test configuration
on developers' local systems, so please wait until after the
requirements repository is branched to merge the patch.

Change-Id: I3a23e8bce371332b4ddee015d6c6adc315769453
2018-10-30 00:24:15 +00:00
OpenStack Release Bot 4c914b72d0 Update .gitreview for stable/rocky
Change-Id: I058e43d7986ba763865c0f9bb70fbaf61c390765
2018-10-30 00:24:13 +00:00
Corey Bryant 7734b7f45d PY3: switch to using unicode text values
In Python 3, python-ldap no longer allows bytes for DN/RDN/field
names. Instead, text values are represented as str, the Unicode
text type.

This patch updates the code to adhere to this behavior.

More details about byte/str usage in python-ldap can be found at:
http://www.python-ldap.org/en/latest/bytes_mode.html#bytes-mode

Change-Id: I9ef10432229aaffe4ac9bd733d608098cdae3b9a
Partial-Bug: #1798184
2018-10-19 09:53:41 -04:00
qingszhao 3c1ce2d830 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: If4b47cb1a4bdd7c92ce438548defd8bf552dc170
2018-09-29 16:30:04 +08:00
Doug Hellmann 24ee84bc74 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ia96142fae1115f0e2ae76025e3e03c923b411e65
Story: #2002586
Task: #24304
2018-08-29 16:04:56 -04:00
Doug Hellmann 12eddb0536 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I0f42d5863e6ca26cce8ce760df6f780dccaff9b6
Story: #2002586
Task: #24304
2018-08-29 16:04:24 -04:00
Zuul e6b3d7e10f Merge "fix tox python3 overrides" 2018-08-17 09:45:56 +00:00
huang.zhiping cd9f5ec71a fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I0bfdf108da6dc819debe29b4998d507b86e343a4
2018-08-15 06:55:47 +00:00
Nick Wilburn 459000d7aa fix ldappool bad password retry logic
This patch fixes a bug in ldappool which causes a bind attempt
utilizing a bad password to be retried until the retry limit has been
reached. Instead ldappool will now break out of the retry loop if the
ldap connection try block catches a ldap.INVALID_PASSWORD exception.

Previously ldappool would attempt to catch ldap.LDAPError which is
the base exception class for all ldap errors in the python-ldap
library. This is an issue because Keystone by default enables
ldappool and configures the default retry value to be 3. An LDAP
server with a password lockout threshold of 3 bad passwords will
lock out a user after a single bad password attempt through Keystone.

Change-Id: I2a9b850ce977260d4df1e9edf86417b8042a6fb8
Closes-Bug: #1785898
2018-08-13 17:26:13 -07:00
Colleen Murphy 459e1b1399 Add author email to setup.cfg
The release linter checks for this.

Change-Id: I5d4fdf7edc086f78a44f702e5b40a102a01e80b2
2018-07-19 18:21:21 +02:00
Dirk Mueller f1d30bce9b Switch to python-ldap again
pyldap is meanwhile an outdated and deprecated fork, and the
Python 3.x compatibility fixes have been merged back to python-ldap.

Change-Id: I4b793a9a72b84005a57cc1e3f6f89a483d7eda5c
2018-07-18 20:25:01 +00:00
Dirk Mueller 71bd15c83c Bump to hacking 1.1.x
This doesn't seem to cause any new linting failures, and newer
is obviously better.

Change-Id: I020192cd92a3d19178d742555b2b9fe47ec2c2a0
2018-07-17 10:52:49 +02:00
Vu Cong Tuan eaa81ffdfc Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ieca57f7c2e6b2ff5c95f8643985ad760c71e0fc3
2018-07-17 08:17:25 +07:00
Zuul 5454ce5922 Merge "add lower-constraints job" 2018-04-06 13:20:40 +00:00
Doug Hellmann b6e6290d79 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: Ia0df9d71a43832405bb408967349ad84a6f73d5c
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-06 09:02:34 -04:00
OpenStack Proposal Bot 67f650c458 Updated from global requirements
Change-Id: Iacab84adb905e299fcfe55fff2efc6e115a008e6
2018-03-15 07:07:04 +00:00
OpenStack Proposal Bot e9adc6fd03 Updated from global requirements
Change-Id: I7f56debc119649f3cca4c212d7d7e2798315f4f5
2018-01-27 17:48:01 +00:00
OpenStack Proposal Bot 90aaa0831e Updated from global requirements
Change-Id: Ia9561ffa4711336679b8e5b46aa0dfa5c5ead499
2018-01-24 01:58:27 +00:00
Andreas Jaeger a25dcd45f7 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Icd931f97b8a11c9aa07ff7eecf2616ed4eacf420
2017-12-02 17:05:06 +00:00
OpenStack Proposal Bot 1b962ba7e7 Updated from global requirements
Change-Id: I755d8e29fdc3fa28a98f217d482c1264391952fb
2017-11-16 11:08:50 +00:00
OpenStack Proposal Bot ac73691d23 Updated from global requirements
Change-Id: I2ab0bef5f01b213c1a4784c3215e860c3f3868de
2017-09-22 12:52:55 +00:00
OpenStack Proposal Bot 6e592fe1b4 Updated from global requirements
Change-Id: I58e26ba2a75cc120ae42220cdd9f8f995769aaa4
2017-07-27 19:11:41 +00:00
Samriddhi Jain a47bcb6b73 Turn on warning-is-error for sphinx build
The doc-migration spec requires all projects to treat warnings
as errors during sphinx build. This patches turns that function
on.

Change-Id: I3b57177cc1dfa34dea57e62bbc93fafa40899899
2017-07-15 23:42:17 +05:30
Van Hung Pham bdfa6d59cc 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: I47d858fafd5d57f00cab9d7a4b87950320febf70
2017-06-30 15:37:13 +07:00
pallavi 68d46529c6 Fix html_last_updated_fmt for Python3.
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Change-Id: I896d6d962e4c7f932bc7e0a566a3b47205be61fb
Closes-Bug:#1693670
2017-06-09 15:05:07 +05:30
OpenStack Proposal Bot 62e08434f8 Updated from global requirements
Change-Id: I66a3cce10c25d92877a9735bd022f3591678c023
2017-05-17 03:49:40 +00:00
OpenStack Proposal Bot 89666baf13 Updated from global requirements
Change-Id: I126f84d400113cd6961ebc50630cc189069a8fe6
2017-04-20 16:18:53 +00:00
Jenkins a607f72dc2 Merge "[Fix gate]Update test requirement" 2017-04-19 21:35:56 +00:00
OpenStack Proposal Bot 3be5ce5bfb Updated from global requirements
Change-Id: I46c49cb556869e99abaf3022858c56cc6d4e8d1d
2017-03-10 03:31:33 +00:00
Colleen Murphy 53565dfd97 Don't call start_tls_s() twice
pyldap's start_tls_s function calls ldap_start_tls_s[1] which, if called
twice, returns LDAP_LOCAL_ERROR which causes a LDAP queries to fail with
the traceback:

 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/ldappool/__init__.py", line 258, in _create_connector
     self._bind(conn, bind, passwd)
   File "/usr/lib/python2.7/site-packages/ldappool/__init__.py", line 227, in _bind
     conn.start_tls_s()
   File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 1095, in start_tls_s
     res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs)
   File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 1071, in _apply_method_s
     return func(self,*args,**kwargs)
   File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 780, in start_tls_s
     return self._ldap_call(self._l.start_tls_s)
   File "/usr/lib64/python2.7/site-packages/ldap/ldapobject.py", line 263, in _ldap_call
     result = func(*args,**kwargs)
 LOCAL_ERROR: {'desc': u'Local error'}

This means that currently keystone's [ldap]/use_pool and [ldap]/use_tls
options are incompatible. This patch fixes the problem by removing the
unnecessary call.

[1] https://linux.die.net/man/3/ldap_start_tls_s

Change-Id: I6baff12bcbd3b110e62f4bcdfb97c561d7ee5fe9
2017-03-08 22:43:01 +01:00
ricolin 8a41011918 [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: I2ff5ed75751f3448ff47c4f598d91f65b21ac84d
2017-03-02 19:53:28 +08:00
Tony Breeds 0016814c3d Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove .

Change-Id: I41c6b3a2c4875128679b2dd8177425dd9f515ebc
2016-12-21 11:45:22 +11:00
Jenkins bef66c354e Merge "update README to reflect actual ldap dependency" 2016-11-23 04:53:11 +00:00
Steve Martinelli 2cee10d1f7 update README to reflect actual ldap dependency
remove references of python-ldap in favor of pyldap.

Change-Id: Id8cba94a4cf76880f785b2b471ed723927cde433
2016-11-12 21:51:00 -05:00
Colleen Murphy 5d69b3fed7 Expose SERVER_DOWN if connection fails
Without this change, ldappool might fail to bind to an LDAP server for
any number of reasons, but eats most of them and instead raises its own
not-very-descriptive error. A network failure or the LDAP server being
down is useful information that a user might be able to do something
with (see this related patch[1]) so let's add that to the list of
exceptions ldappool raises directly.

[1] https://review.openstack.org/#/c/390948

Change-Id: Iebb58f9046707a044ed86d8ce940e4c230ffd2aa
2016-11-08 16:04:23 +01:00
OpenStack Proposal Bot 38003f190c Updated from global requirements
Change-Id: I5145ef99197f11461d1db0d0fc37f030d1b5305d
2016-10-22 01:20:24 +00:00
OpenStack Proposal Bot 99e1a06b0c Updated from global requirements
Change-Id: I6272cb835dc3b55a1b3b9a7b852fc069ba8b94d2
2016-09-30 19:59:55 +00:00
OpenStack Proposal Bot b5935fe318 Updated from global requirements
Change-Id: Iaa8b0de37c735f286052a49808fc6ee49c8607c5
2016-09-28 16:54:07 +00:00
OpenStack Proposal Bot 0bcd0b1cc5 Updated from global requirements
Change-Id: Ia29f6c373f2d37b8ca7af22547662c1301698d4f
2016-06-21 18:00:17 +00:00
OpenStack Proposal Bot 4ce78d2332 Updated from global requirements
Change-Id: I16cefcc471afc6c385da68e84bf27b7ff39911d8
2016-05-30 00:34:32 +00:00
OpenStack Proposal Bot 26766b509d Updated from global requirements
Change-Id: Ifac3a5b2fd0964eb9cfa4a5877433367cbbe1d2c
2016-05-18 02:35:37 +00:00
Jenkins a1a5e5bd09 Merge "Add py3 info to setup.cfg" 2016-05-18 00:55:55 +00:00
Jenkins 4235456eea Merge "Updated from global requirements" 2016-05-18 00:24:13 +00:00
Morgan Fainberg 62b14c6320 Add py3 info to setup.cfg
Add the python 3 classifiers to setup.cfg and proper envs to
tox.ini.

Change-Id: I771c148ee8d246a5a3ac45e3a2e45c1fe3a691b1
2016-05-17 16:51:19 -07:00
Jenkins 902e47efa5 Merge "Raise an explicit BackendError on TLS failures" 2016-05-17 23:43:49 +00:00
OpenStack Proposal Bot 18d77299c6 Updated from global requirements
Change-Id: I09512326aaaee909ce1a204a23ae948f4f2a45d9
2016-05-17 23:35:40 +00:00
Steve Martinelli 5f6748212b make ldappool py3 compatible
* properly utf8 encode password
* switch to pyldap, the drop in replacement for python-ldap

Change-Id: Ic0fc838b8e015d90c946c3d161d096afe0bb7a21
Depends-On: I9cf13a5be63a0abc964c5a6e29c92d16365d89d8
Depends-On: I330b9b8fd3b53a588f0a1ae0c7de16cf03adb3cd
2016-05-17 21:52:23 +00:00
Steve Martinelli cee42d218e use standard docstring convention for parameters
switch from using "Args" to "params" so the generated API docs
look cleaner.

Change-Id: I82b65638e7c758a0dda7d35a1255738ef8c9158a
2016-05-12 21:57:20 -07:00
Jenkins c05f1cf608 Merge "Use standard-library logging to record errors" 2016-05-13 04:02:25 +00:00