This library is designed for leaf applications (services, CLI). For
libraries it's enough to use the generic logging.
Unit tests needed adjustment since LOG.exception is implemented via
LOG.error internally.
Change-Id: I943e1f07a23e76354966acae5e4594e41dd4822b
The lower-constraints test was removed because of an issue where pip
could not correctly determine the required packages versions to install,
ending in an almost infinite loop that would end up in timeout, failure,
and general mayhem.
Recently the issue has been fixed and, if properly configured, the
lower-constraints test can provide good indication of which minimum
versions are required to support the current code.
This patch adds the test back to the current development branch, and it
runs only on master.
The lower-constraints file will stay in the future stable branches.
Fix olso.utils min requirement and remove doc8 from test-requirements
as it's already included in tox.ini config.
Change-Id: Ic0174f59b95a878539ab17f659f1663548e94ed7
This code used to be shared between the iSCSI and the direct deploy
interfaces. Now that iSCSI is gone, this code has been moved to IPA:
24951b1029
Change-Id: Ia879595d00501f3f06ae5dc2a9dca9c5ea234501
Instead of using a loop, we use the tenacity library to provide
correct retry feature to the convert_image function.
Change-Id: I0ddef614be55b0f6365a952a906197e7a219ef65
It's not allowed to return None from WSGI applications, eventlet fails
with TypeError: 'NoneType' object is not iterable.
Use WebOb to build and provide a correct response.
Change-Id: Idf4c6782730549378c03416a118b3b69fa53ca65
This middleware is added to ironic-lib so that it can eventually be
used by ironic and ironic-inspector as an alternative to noauth in
standalone environments.
This middleware is passed a path to a file which supports the
Apache htpasswd syntax[1]. This file is read for every request, so no
service restart is required when changes are made.
The only password digest supported is bcrypt, and the ``bcrypt``
python library is used for password checks since it supports ``$2y$``
prefixed bcrypt passwords as generated by the Apache htpasswd utility.
[1] https://httpd.apache.org/docs/current/misc/password_encryptions.html
Needed-By: https://review.opendev.org/727467
Needed-By: https://review.opendev.org/729463
Change-Id: I874783b8ece0eedf27a94dfed5163d0c82f8b9de
Story: 2007656
Task: 39740
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to apidoc instead of autodoc for API docs, use sphinx-build.
Change-Id: Ie6107bc80961a7306957b17ac2eda44417b53d3e
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.
Change-Id: I4bf885bc7d1ccdf46dde3e0b10a8dbec304aaf9b
Updates the zeroconf requirement to 0.24.0, breaking compatibility
with Python 2 (dropped in an earlier patch).
Change-Id: Ib77720c3223074e89705f019848e1e4d19ebfdba
To simplify standalone configuration, we need an ability for IPA
to discovery ironic and ironic-inspector on the local network.
This change adds the support code for using multicast DNS (RFC 6762)
with DNS service discovery (RFC 6763) to publish and discover
OpenStack services as proposed in the API SIG guideline
https://review.opendev.org/651222.
Change-Id: Iaf3422331238884412ce608c0667de7891945f98
Story: #2005393
Task: #30432
This patch replaces python standard base64 library call to
oslo_serialization.base64 to follow OpenStack Python3 porting
standard [1].
Use base64 encoding takes 8-bit binary byte data and encodes it. On
Python3, A string is a sequence of Unicode characters thus base64 has
no idea what to do with Unicode data, it's not 8-bit[2]. We use
oslo_serialization.base64 for python2 and python3.
[1] https://wiki.openstack.org/wiki/Python3
[2] http://stackoverflow.com/questions/8908287/base64-encoding-in-python-3
Change-Id: I9d453ab6ebc826cad60c89d2a74c5764626eba01