Commit Graph

204 Commits

Author SHA1 Message Date
Dmitry Tantsur ac95888059 Drop an explicit requirement of oslo.log
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
2021-08-20 17:13:24 +02:00
Riccardo Pittau b750b74c20 Add lower-constraints job to current development branch
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
2021-08-06 10:03:03 +02:00
Dmitry Tantsur 6aa94252dd Remove the logic specific to the way deployment works
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
2021-05-10 13:02:11 +02:00
Dmitry Tantsur daa5b42580 Get rid of oslo.serialization
Not needed now that we only support Python 3.

Change-Id: I241ae6f62e5b91c253c73964ce31e0c3fcc28de1
2021-01-22 17:33:20 +01:00
Dmitry Tantsur 14d7653ce1 Drop the dependency on oslo.service loopingcall
It forces eventlet on us and can be easily replaced with tenacity.

Change-Id: I0085a3929ec27ab119884e8610b7c15f8dc62d63
2020-08-31 15:15:17 +02:00
Riccardo Pittau 718817bf7a Use tenacity to retry convert_image
Instead of using a loop, we use the tenacity library to provide
correct retry feature to the convert_image function.

Change-Id: I0ddef614be55b0f6365a952a906197e7a219ef65
2020-08-17 11:59:25 +02:00
Dmitry Tantsur c080681df9 Return correct response on HTTP basic failure
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
2020-07-23 13:19:56 +02:00
Steve Baker a9abc5699f Implement Basic HTTP authentication middleware
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
2020-05-26 10:00:06 +12:00
Andreas Jaeger a235a15346 Cleanup py27 support
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
2020-04-05 19:16:10 +02:00
Riccardo Pittau 0e01f0735c Stop using six library
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
2019-12-06 01:49:46 +01:00
Dmitry Tantsur 78249cc93f mdns: support IPv6 addresses
Updates the zeroconf requirement to 0.24.0, breaking compatibility
with Python 2 (dropped in an earlier patch).

Change-Id: Ib77720c3223074e89705f019848e1e4d19ebfdba
2019-11-24 17:59:11 +01:00
Iury Gregory Melo Ferreira 6bb4f81c46 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-lib is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: Idfa5afedb607c99c34ff4a07594f698c9bd3bed8
2019-11-22 14:10:45 +01:00
Dmitry Tantsur c90d008a5b Add support code for multicast DNS service discovery
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
2019-05-14 12:19:37 +02:00
OpenStack Proposal Bot f3d0424a61 Updated from global requirements
Change-Id: Ie6127ec25cfe7ee176f585920d6d697c2a3dfa24
2018-03-26 08:04:49 +00:00
OpenStack Proposal Bot 76a5f279f6 Updated from global requirements
Change-Id: Iacf306d31fa371c3fca1a87f7507d13a82e61987
2018-03-14 05:31:14 +00:00
OpenStack Proposal Bot ef1596988a Updated from global requirements
Change-Id: I0e2bec99b0d5a151a560adc7d6dca05011f859d2
2018-01-16 12:29:38 +00:00
OpenStack Proposal Bot 56a24c9a2f Updated from global requirements
Change-Id: I6af4544b3683d461c4fc12188917b0b2e1f16009
2017-12-19 01:18:34 +00:00
OpenStack Proposal Bot 3a5eef20dd Updated from global requirements
Change-Id: Ie069977b793705cea337dd263eb04af072c0e3b3
2017-12-15 21:31:27 +00:00
OpenStack Proposal Bot 3fb6623867 Updated from global requirements
Change-Id: I8532e17ae7d11aa96766fe9d59d3ce5ca932fcf6
2017-11-29 08:57:19 +00:00
OpenStack Proposal Bot 02aac8094b Updated from global requirements
Change-Id: I68501966aae807c500a698190cf38814b5adbd0a
2017-11-16 11:05:48 +00:00
OpenStack Proposal Bot c5056c0f5d Updated from global requirements
Change-Id: I7dfed10ee46836fe733e0d74b3db514555d9b063
2017-11-14 03:58:37 +00:00
OpenStack Proposal Bot fda26ac644 Updated from global requirements
Change-Id: I23f6078bd717878464907c532a9cb058f13d62ec
2017-09-13 12:51:24 +00:00
OpenStack Proposal Bot b3e1b9be94 Updated from global requirements
Change-Id: I1c1aaaedc6aec56e5dc3b12552ffdf7c7bce58e2
2017-08-24 05:50:19 +00:00
OpenStack Proposal Bot cb1e041ec2 Updated from global requirements
Change-Id: I3fbf025ece33e47a57db4c6442e2f2636ba49c69
2017-07-18 01:47:00 +00:00
OpenStack Proposal Bot 4a950a1550 Updated from global requirements
Change-Id: I10d320ebb5d47f00d2e7a200676d1ca28915f667
2017-06-15 16:24:14 +00:00
OpenStack Proposal Bot 11106dfb42 Updated from global requirements
Change-Id: I30576714cd6195c3ec98daa5c81ff9527247d901
2017-06-10 21:38:06 +00:00
OpenStack Proposal Bot d1512e5668 Updated from global requirements
Change-Id: Iad2e7193d963ce628fcef11183caa323cdfffc38
2017-06-02 02:26:44 +00:00
OpenStack Proposal Bot 60a6b76469 Updated from global requirements
Change-Id: I6d2eb4ba997c8f7d208a689acc99925a19ba23bf
2017-05-23 11:50:32 +00:00
OpenStack Proposal Bot 8c1bad5d77 Updated from global requirements
Change-Id: Ia3d5b661a28d9926eafdd02fdb4690d87e85a5ac
2017-04-12 04:12:34 +00:00
OpenStack Proposal Bot c7fdfc6222 Updated from global requirements
Change-Id: I695999df30caa5240fd72ab173885276c1da5a18
2017-03-28 21:29:09 +00:00
OpenStack Proposal Bot d063e1e2fd Updated from global requirements
Change-Id: I3a0ca0311f9715a215c0f75ff0cecbeb0c73ee53
2017-03-13 19:32:17 +00:00
OpenStack Proposal Bot 4c9369d6e1 Updated from global requirements
Change-Id: Iac3d311600910fb504c107ae0a47f3709c75696d
2017-03-02 11:45:33 +00:00
OpenStack Proposal Bot 18016a0d60 Updated from global requirements
Change-Id: Iccad7f039d0ce02dc722148cc1e44a03e5ce3eeb
2017-03-01 04:07:37 +00:00
OpenStack Proposal Bot 061211cf2e Updated from global requirements
Change-Id: I931ae50ad48b68e4dff01107813d54d842f1f8ac
2017-02-11 17:42:57 +00:00
Luong Anh Tuan 2a3288c69c Use oslo_serialization.base64 to follow OpenStack Python3
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
2016-12-15 10:35:41 +00:00
OpenStack Proposal Bot 7f0a5b8190 Updated from global requirements
Change-Id: I745d6a2e9a2ecdae15d6adc097e929f896c679b4
2016-12-02 05:05:45 +00:00
OpenStack Proposal Bot 8a494cd514 Updated from global requirements
Change-Id: I18736296407ff9cda57b89fa8608b97c7715a74c
2016-11-09 04:16:23 +00:00
OpenStack Proposal Bot e0defda990 Updated from global requirements
Change-Id: I7befbd67917fa36f3343dc90db0a21de4cb0ab0a
2016-11-06 01:59:29 +00:00
OpenStack Proposal Bot 33c282545f Updated from global requirements
Change-Id: I383f48a4b517256d77004faed823310017a7cc8a
2016-10-27 12:14:38 +00:00
OpenStack Proposal Bot 2b0bc76b01 Updated from global requirements
Change-Id: I0511771c8669a41cc93384bdf74e4aa6105339c5
2016-10-21 00:43:12 +00:00
OpenStack Proposal Bot 448627ac2a Updated from global requirements
Change-Id: I720aee8e3de408f74bf18f577235867bac146791
2016-09-22 20:13:37 +00:00
OpenStack Proposal Bot f4da9e9a11 Updated from global requirements
Change-Id: I51dfa6c163439a77c1caae88335af68b948ea008
2016-08-04 02:35:41 +00:00
OpenStack Proposal Bot 64451bc38b Updated from global requirements
Change-Id: Ia137a2710d01e9597e8ccd7ec76e3dda75425313
2016-07-29 02:28:57 +00:00
OpenStack Proposal Bot 64dc8b64c7 Updated from global requirements
Change-Id: Ia132b8b022f07ffdddf5d8bc0073457dc8c8b795
2016-07-09 19:20:58 +00:00
OpenStack Proposal Bot 9fea53313d Updated from global requirements
Change-Id: I4eb0340a3d4beec5b2325986183ff8bec132fafe
2016-07-04 11:36:45 +00:00
OpenStack Proposal Bot aeaa70b247 Updated from global requirements
Change-Id: I46331306d867b7032fbe9f66b2f35fa4ab99c0bd
2016-06-03 18:13:21 +00:00
OpenStack Proposal Bot f7a6100027 Updated from global requirements
Change-Id: I43c376fa55a4fcccfc4a3ea7fba9f13cd0b08e5b
2016-06-01 13:48:44 +00:00
OpenStack Proposal Bot 1d2f962762 Updated from global requirements
Change-Id: I33c0a47e3942806b2886680158876f8b74b4a94b
2016-05-23 20:44:06 +00:00
OpenStack Proposal Bot 9eaad70080 Updated from global requirements
Change-Id: Iff7830aadbc5b803c0230afa5bdc104afa809f87
2016-04-07 17:08:49 +00:00
Jenkins 6dc190d478 Merge "Move eventlet to test-requirements. Remove greenlet." 2016-03-25 00:23:08 +00:00