119 Commits

Author SHA1 Message Date
Takashi Kajinami
7a3852efb2 Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Also remove the note about old pip's behavior because the resolver
in recent pip no longer requires specific order.

Change-Id: I5355c3fa692df22f4dc0c8aeac4fb12bae6dfec6
2024-04-30 22:47:30 +09:00
Takashi Kajinami
52467b5498 Replace appdirs by platformdirs
appdirs was deprecated[1] and now platformdirs is the recommended
replacement.

[1] 8734277956

Change-Id: I32fab3052e858394429d15bc6fa2ec89b2d41f51
2024-03-30 02:36:38 +09:00
Ghanshyam Mann
a7ad7fdfa4 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I3d7ad8a49bbb63fd00ae9523243135a24419c465
2022-05-25 21:23:01 +09:00
Riccardo Pittau
61b46c3401 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.

Adjust min versions in requirements.txt accordingly.

Change-Id: I3678c29fb090244f5e00208e4dcc8f1ad8a54ff5
2021-08-12 11:58:35 +02:00
Ghanshyam Mann
847479184c Fix l-c job
Bumping few lower constraints to pass it on Focal
node.

Change-Id: I8dd649c9ecc313590248cdc301c0a15edb63f409
2020-09-11 17:58:28 +00:00
Hervé Beraud
de6173a331 Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I743226241a94797c4c790cd09b03c3f7c2927457
2020-05-26 22:11:07 +02:00
Dmitry Tantsur
0242f8219a Get rid of the oslo.serialization dependency
It was used to smoothen out the difference in handling bytes in
Python 2 and 3. Now that we only support Python 3, it can be
replaced.

A side effect of this change is that we no longer accept bytes
in JSON. JSON does not support bytes, but this problem has been
hidden due to oslo.serialization until now. The configdrive
handling has been updated to account for that.

Change-Id: I230b55db55bce08d46f5023ad7a3f6501c96d100
2020-05-04 10:49:11 +02:00
Dmitry Tantsur
b21dc1dddd Get rid of the oslo.config requirement
It is only used to populate the list of supported Session options.
Use openstacksdk to create a session with all arguments instead.
Since it's already a dependency of osc-lib, this changes adds no
new dependencies, while substantially simplifying the code.

Change-Id: I6100f94c18cbf3e90d4a6d3ec2a3fc74ebea53a5
2020-04-07 15:33:14 +02:00
Zuul
565a256f4e Merge "A standalone CLI for ironic" 2020-04-06 15:31:17 +00:00
Dmitry Tantsur
306fbe8e35 Make oslo.i18n an optional dependency
In an ideal world we would have all messages translated to at least major
languages. In reality, ironic has never boasted a great set of translation,
and according to Zanata only 2.94% of messages are translated for ironic
in Train (1.33% for ironic-inspector). Given that ironic-python-agent is
not translated at all, using i18n by default seems an overkill.

Change-Id: I30d0f5ae6c7428ebbf018e14a3b78c430681c6a6
2020-04-06 13:57:07 +02:00
Dmitry Tantsur
f7662b01c2 A standalone CLI for ironic
This changes adds a new command ``baremetal`` that works mostly like
the OSC ``openstack baremetal`` command but does not require OSC and
defaults to no-auth. No changes in existing commands are required,
the existing OSC plugins are pulled in.

Change-Id: Id4895ec37bfb58eb635e5c8519f96f1bdc30c925
2020-04-06 11:50:25 +02:00
Riccardo Pittau
a572ae21e7 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: I4b60638bb0268e5d1cf54fdf7d61964082536f4f
2019-12-18 15:18:24 +01:00
Dmitry Tantsur
7c27668ed6 Make the dependency on oslo.config explicit
The code in ironicclient.client that uses session_loader.get_conf_options
requires oslo.config to operate. This patch makes the dependency explicit.

Story: #2006601
Task: #36764
Change-Id: I472896ddd0ced8535d71d807fb5e01d1471571eb
2019-09-23 15:20:29 +02:00
Julia Kreger
f62758cda5 Remove the ironic command
The ironic command is dead, long live the OSC baremetal command.

Also removed the json_respose tests, which seemed ot be geared
to checking json returned data on the command line. For ironic
these tests seemed to be very explicit for our CLI where as OSC
should be covering the return data handling, the only real end
effect is field level expectation enforcement in the functional
test... which seems excessive and un-needed.

Story: 1726605
Task: 11974
Depends-on: https://review.opendev.org/677183

Change-Id: I3e3ae416a65d8e01956434ba51bd3187ab001f80
2019-08-20 21:51:12 +00:00
Tony Breeds
f8b0d1af1d Uncap jsonschema
We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Change-Id: I27ce9430d3f20a3c6cf0fbeac5a2a277667b4c3e
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
2019-04-04 14:00:11 +11:00
Vladyslav Drok
58c39b7a80 Switch to none auth for standalone mode
Currently, during the ironic shell client construction, if only
os_auth_token and endpoint arguments are passed, custom
HTTPClient class based on requests' sessions is used. This is
unnecessary, as there is admin_token auth type in keystoneauth
that does basically the same, eliminating the need for our
custom implementation. Apart from that, there is a none auth,
which requires only passing the desired endpoint to use, so we
can use it too without having to specify fake token strings
anymore. Let's use these auth methods instead and deprecate
HTTPClient.

Also this patch deprecates a bunch of arguments to client.get_client
function, changing them to the standard keystoneauth naming.

DocImpact
Story: 1696791
Task:  11836
Depends-On: https://review.openstack.org/559116
Change-Id: Ifc7b45d047c8882a41021e1604b74d17eac2e6e8
2018-05-07 13:52:45 +00:00
OpenStack Proposal Bot
964556bb8c Updated from global requirements
Change-Id: I52c9ec2dc13f099056b43e014e0d69681295f516
2018-03-04 10:25:15 +00:00
OpenStack Proposal Bot
1d74c50517 Updated from global requirements
Change-Id: Ie1f66d956443e4133b29d19c7259841b54578bcf
2018-02-17 10:12:55 +00:00
OpenStack Proposal Bot
a4a73f909f Updated from global requirements
Change-Id: I6ddf9988803bf7961d9b849028c4af7c61a8be79
2017-12-21 00:42:53 +00:00
OpenStack Proposal Bot
ced784fb16 Updated from global requirements
Change-Id: I62031465a814cd02771b3dec731e29a22c0b85ac
2017-12-05 03:31:53 +00:00
OpenStack Proposal Bot
55a6bf1fd3 Updated from global requirements
Change-Id: Iec99b5eaba93126bc6c6244fd6ced0b23d9f62b7
2017-11-16 11:23:57 +00:00
OpenStack Proposal Bot
50c6cc0606 Updated from global requirements
Change-Id: I3c69a8cf9980ed1d4c62f4b77e0a5e7c3f2fecdb
2017-11-12 17:46:51 +00:00
Pavlo Shchelokovskyy
6b1fefe979 Do not depend on python-openstackclient
OpenStack client is not a runtime dependency of ironicclient,
and having it in requirements just brings in many dependencies
which might not be needed at all when using the Python API of the client
only (for example in server-side applications).

Although dependency on osc-lib is enough for unit tests, add
python-openstackclient to test-requirements so that functional tests
pass.

Also, add a setuptools 'extra' so that users can install
python-openstackclient together with ironicclient if wishing to do so
as follows:

    pip install python-ironicclient[cli]

Change-Id: Ic7d06e61cd234b327613287802361c58bf6bf11e
Closes-Bug: #1562023
2017-09-18 12:37:09 +03:00
OpenStack Proposal Bot
23b2bf9451 Updated from global requirements
Change-Id: I8a3184bf8e9389267ba8f58c56c77ec4feb58496
2017-09-13 13:02:09 +00:00
OpenStack Proposal Bot
2aba0dd42a Updated from global requirements
Change-Id: I44f52d55d3f3638298cab1c29ffeec1b0722ca97
2017-09-04 12:26:20 +00:00
OpenStack Proposal Bot
14b5463289 Updated from global requirements
Change-Id: Ia1bb352cebf00b900dee80d5cc5ef44a30f90c04
2017-08-18 11:41:23 +00:00
OpenStack Proposal Bot
42dc387224 Updated from global requirements
Change-Id: I3f90602e5a2acc3f6a75dbe1b3004a6341f14aaf
2017-08-01 03:04:11 +00:00
OpenStack Proposal Bot
a9430d3c4e Updated from global requirements
Change-Id: Idbf544d9500f580d32b372bd15dbad66ec348a06
2017-07-23 13:51:50 +00:00
OpenStack Proposal Bot
2e49d4f887 Updated from global requirements
Change-Id: I9132d2c8ca2f80084d0c35f6739af78c20093065
2017-07-18 01:55:59 +00:00
OpenStack Proposal Bot
000d263e4c Updated from global requirements
Change-Id: I0eb4ac648c37c7efbf214c73463a534ef82a0f11
2017-06-12 19:48:53 +00:00
OpenStack Proposal Bot
1ea1909c25 Updated from global requirements
Change-Id: I020284ee256353da8f7f7f641145261fb8160634
2017-05-23 17:48:52 +00:00
OpenStack Proposal Bot
10c291f7b8 Updated from global requirements
Change-Id: I672dbfae757bac29c48031b6d4fb84874e07aec2
2017-05-04 13:30:24 +00:00
OpenStack Proposal Bot
e189ea734c Updated from global requirements
Change-Id: I14c5bac64b16a4162957fb16beccd82f3832edaf
2017-05-01 13:40:16 +00:00
OpenStack Proposal Bot
95b63a2d5d Updated from global requirements
Change-Id: Ib44a9dd1ed17431ec1be62e80916227ef3c74a1d
2017-04-12 04:21:12 +00:00
OpenStack Proposal Bot
6a8be93f84 Updated from global requirements
Change-Id: Ic16848935e551e72f49bd69b0b908ab2ded0094f
2017-03-02 11:54:32 +00:00
OpenStack Proposal Bot
3ab510b3f1 Updated from global requirements
Change-Id: I39974e40444ecdb0c421bab93d9d9043c3e72ebb
2017-03-01 04:15:39 +00:00
OpenStack Proposal Bot
2906771887 Updated from global requirements
Change-Id: I4b2bcedbfdb884a2b591d848c23e1b93168afd0f
2017-02-11 17:51:24 +00:00
OpenStack Proposal Bot
db0a852e50 Updated from global requirements
Change-Id: I9106a649f184579a49c45ab9dab22e57e43cff4e
2017-01-23 23:51:54 +00:00
OpenStack Proposal Bot
301c85e0e6 Updated from global requirements
Change-Id: Iae64defc93b0862ebcfb2c3f2cc94a902f337850
2017-01-16 17:27:35 +00:00
OpenStack Proposal Bot
d6738ed14c Updated from global requirements
Change-Id: I7fb2add06ebaeec16a5f93528c2ae63f58e94082
2016-12-15 03:55:01 +00:00
OpenStack Proposal Bot
7cc774c4f2 Updated from global requirements
Change-Id: Ibed723c802ebe63ad4361048749e028f9f776341
2016-12-12 23:35:58 +00:00
OpenStack Proposal Bot
4bb734f90e Updated from global requirements
Change-Id: I59dc745cce6d2d781ceafd258716286238c85e53
2016-11-09 04:23:45 +00:00
Marc Aubry
e512550ab7 Fix python3 compatibility when HTTP Error are returned
When trying to contact Ironic with a bad token, Forbidden exception
should be raised, in python3 a TypeError is raised due to json
lib being unable do decode a bytes object.

In order to be really python3 compatible, the json lib was replaced
with oslo.serialization module jsontuils since it's the recommended
migration to python3 guide. This is to ensure that data coming from
the requests lib can be read even if it's not string any more but
bytes.
https://wiki.openstack.org/wiki/Python3

Change-Id: I27540f58e31817d4de604334bc4c62899d82f4cc
Closes-Bug: #1629068
2016-11-08 11:30:30 -05:00
OpenStack Proposal Bot
32c415e76b Updated from global requirements
Change-Id: I5f6e6ce7bf3dfb9861f21d77112a6ac5056b8228
2016-11-06 02:06:43 +00:00
OpenStack Proposal Bot
d16aab6916 Updated from global requirements
Change-Id: I65ee9f45a5d0fab3c164f801ecf50f9f8f3670ec
2016-10-27 12:22:06 +00:00
OpenStack Proposal Bot
b1da714cac Updated from global requirements
Change-Id: If61af558b6825b4e5431e1364d8155dba4aa118a
2016-10-15 00:12:00 +00:00
OpenStack Proposal Bot
bff2693fff Updated from global requirements
Change-Id: I7b08464261bd603ca535a8cbba27d254d062aaeb
2016-10-13 05:27:55 +00:00
OpenStack Proposal Bot
5b6765884b Updated from global requirements
Change-Id: I4909445b1ccd062305df1dc1cf2faa71e6fd643b
2016-09-30 20:05:41 +00:00
OpenStack Proposal Bot
a08eb48402 Updated from global requirements
Change-Id: I592a32d656fe3d39506154474b2275baf737441b
2016-08-30 14:53:14 +00:00
Tang Chen
0a0e15141f Use osc_lib instead of cliff
Base classes of commands are defined in cliff,
but have been encapsulated again in osc-lib for
all plugin clients. So use osc-lib instead of
cliff.

Since osc-lib 1.0.2 has released, it is stable
to use.

Change-Id: I0b9bf1c867be0181d573decadc840a887a784ca9
2016-08-25 09:37:33 +08:00