python-openstackclient 8.0.0__py3-none-any.whl → 8.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openstackclient/api/compute_v2.py +2 -2
- openstackclient/api/volume_v2.py +60 -0
- openstackclient/api/volume_v3.py +60 -0
- openstackclient/compute/client.py +5 -0
- openstackclient/compute/v2/console.py +7 -0
- openstackclient/compute/v2/console_connection.py +48 -0
- openstackclient/compute/v2/flavor.py +14 -1
- openstackclient/compute/v2/keypair.py +10 -3
- openstackclient/compute/v2/server.py +76 -13
- openstackclient/compute/v2/server_event.py +1 -1
- openstackclient/identity/common.py +85 -11
- openstackclient/identity/v3/application_credential.py +88 -87
- openstackclient/identity/v3/domain.py +67 -49
- openstackclient/identity/v3/group.py +113 -68
- openstackclient/identity/v3/project.py +42 -20
- openstackclient/identity/v3/role.py +7 -2
- openstackclient/identity/v3/user.py +38 -5
- openstackclient/image/client.py +5 -0
- openstackclient/image/v1/image.py +16 -1
- openstackclient/image/v2/cache.py +10 -6
- openstackclient/image/v2/image.py +59 -12
- openstackclient/image/v2/metadef_objects.py +8 -2
- openstackclient/image/v2/metadef_properties.py +9 -2
- openstackclient/network/client.py +0 -6
- openstackclient/network/v2/floating_ip.py +58 -29
- openstackclient/network/v2/network_qos_rule.py +3 -11
- openstackclient/network/v2/port.py +16 -0
- openstackclient/network/v2/router.py +1 -1
- openstackclient/network/v2/security_group.py +49 -7
- openstackclient/network/v2/security_group_rule.py +18 -1
- openstackclient/shell.py +1 -1
- openstackclient/tests/functional/base.py +5 -1
- openstackclient/tests/functional/compute/v2/test_keypair.py +41 -5
- openstackclient/tests/functional/identity/v3/test_access_rule.py +1 -1
- openstackclient/tests/functional/identity/v3/test_application_credential.py +7 -7
- openstackclient/tests/functional/image/v2/test_image.py +36 -14
- openstackclient/tests/functional/volume/v2/test_volume.py +1 -1
- openstackclient/tests/functional/volume/v3/test_volume.py +2 -2
- openstackclient/tests/unit/api/test_volume_v2.py +124 -0
- openstackclient/tests/unit/api/test_volume_v3.py +124 -0
- openstackclient/tests/unit/compute/v2/fakes.py +81 -305
- openstackclient/tests/unit/compute/v2/test_console.py +18 -1
- openstackclient/tests/unit/compute/v2/test_console_connection.py +72 -0
- openstackclient/tests/unit/compute/v2/test_flavor.py +160 -175
- openstackclient/tests/unit/compute/v2/test_keypair.py +12 -5
- openstackclient/tests/unit/compute/v2/test_server.py +211 -97
- openstackclient/tests/unit/compute/v2/test_server_backup.py +32 -71
- openstackclient/tests/unit/compute/v2/test_server_event.py +2 -2
- openstackclient/tests/unit/compute/v2/test_server_image.py +33 -72
- openstackclient/tests/unit/compute/v2/test_server_migration.py +4 -4
- openstackclient/tests/unit/identity/v3/test_application_credential.py +93 -65
- openstackclient/tests/unit/identity/v3/test_domain.py +117 -107
- openstackclient/tests/unit/identity/v3/test_group.py +353 -202
- openstackclient/tests/unit/identity/v3/test_project.py +46 -53
- openstackclient/tests/unit/identity/v3/test_role.py +2 -8
- openstackclient/tests/unit/identity/v3/test_user.py +86 -6
- openstackclient/tests/unit/image/v1/test_image.py +55 -9
- openstackclient/tests/unit/image/v2/test_image.py +128 -58
- openstackclient/tests/unit/image/v2/test_metadef_objects.py +22 -0
- openstackclient/tests/unit/image/v2/test_metadef_properties.py +24 -10
- openstackclient/tests/unit/network/v2/fakes.py +406 -485
- openstackclient/tests/unit/network/v2/test_floating_ip_network.py +13 -19
- openstackclient/tests/unit/network/v2/test_l3_conntrack_helper.py +2 -2
- openstackclient/tests/unit/network/v2/test_ndp_proxy.py +3 -5
- openstackclient/tests/unit/network/v2/test_network.py +4 -4
- openstackclient/tests/unit/network/v2/test_network_agent.py +15 -29
- openstackclient/tests/unit/network/v2/test_network_qos_policy.py +16 -19
- openstackclient/tests/unit/network/v2/test_network_qos_rule.py +79 -152
- openstackclient/tests/unit/network/v2/test_network_qos_rule_type.py +4 -6
- openstackclient/tests/unit/network/v2/test_network_rbac.py +2 -2
- openstackclient/tests/unit/network/v2/test_port.py +57 -17
- openstackclient/tests/unit/network/v2/test_router.py +73 -57
- openstackclient/tests/unit/network/v2/test_security_group_network.py +31 -27
- openstackclient/tests/unit/network/v2/test_security_group_rule_compute.py +1 -3
- openstackclient/tests/unit/network/v2/test_security_group_rule_network.py +82 -39
- openstackclient/tests/unit/volume/v2/fakes.py +1 -2
- openstackclient/tests/unit/volume/v2/test_service.py +57 -91
- openstackclient/tests/unit/volume/v2/test_volume.py +466 -410
- openstackclient/tests/unit/volume/v2/test_volume_backup.py +141 -148
- openstackclient/tests/unit/volume/v2/test_volume_snapshot.py +293 -283
- openstackclient/tests/unit/volume/v3/test_block_storage_log_level.py +61 -71
- openstackclient/tests/unit/volume/v3/test_service.py +221 -141
- openstackclient/tests/unit/volume/v3/test_volume.py +569 -534
- openstackclient/tests/unit/volume/v3/test_volume_attachment.py +1 -1
- openstackclient/tests/unit/volume/v3/test_volume_backup.py +198 -203
- openstackclient/tests/unit/volume/v3/test_volume_snapshot.py +682 -47
- openstackclient/volume/v2/service.py +41 -38
- openstackclient/volume/v2/volume.py +140 -88
- openstackclient/volume/v2/volume_backup.py +9 -3
- openstackclient/volume/v2/volume_snapshot.py +121 -84
- openstackclient/volume/v3/block_storage_log_level.py +22 -28
- openstackclient/volume/v3/service.py +105 -14
- openstackclient/volume/v3/volume.py +287 -99
- openstackclient/volume/v3/volume_backup.py +24 -19
- openstackclient/volume/v3/volume_group.py +1 -1
- openstackclient/volume/v3/volume_snapshot.py +485 -10
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.2.0.dist-info}/AUTHORS +13 -0
- python_openstackclient-8.2.0.dist-info/METADATA +264 -0
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.2.0.dist-info}/RECORD +104 -98
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.2.0.dist-info}/entry_points.txt +7 -6
- python_openstackclient-8.2.0.dist-info/pbr.json +1 -0
- python_openstackclient-8.0.0.dist-info/METADATA +0 -166
- python_openstackclient-8.0.0.dist-info/pbr.json +0 -1
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.2.0.dist-info}/LICENSE +0 -0
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.2.0.dist-info}/WHEEL +0 -0
- {python_openstackclient-8.0.0.dist-info → python_openstackclient-8.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
0weng <oweng@osuosl.org>
|
|
1
2
|
Aaron Rosen <aaronorosen@gmail.com>
|
|
2
3
|
Abhishek Chanda <abhishek@cloudscaling.com>
|
|
3
4
|
Abhishek Raut <rauta@vmware.com>
|
|
@@ -16,6 +17,7 @@ Alex Katz <akatz@akatz.tlv.csb>
|
|
|
16
17
|
Alex Schultz <aschultz@mirantis.com>
|
|
17
18
|
Alexander Gräb <alexander.graeb@secustack.com>
|
|
18
19
|
Alexander Ignatov <aignatov@mirantis.com>
|
|
20
|
+
Alexey Stupnikov <aleksey.stupnikov@gmail.com>
|
|
19
21
|
Alfredo Moralejo <amoralej@redhat.com>
|
|
20
22
|
Allain Legacy <Allain.legacy@windriver.com>
|
|
21
23
|
Alvaro Lopez Garcia <aloga@ifca.unican.es>
|
|
@@ -67,6 +69,7 @@ Carl Baldwin <carl@ecbaldwin.net>
|
|
|
67
69
|
Carlos Goncalves <carlos.goncalves@neclab.eu>
|
|
68
70
|
Carlos Konstanski <ckonstanski@pippiandcarlos.com>
|
|
69
71
|
Cedric Brandily <zzelle@gmail.com>
|
|
72
|
+
Chaemin-Lim <antraxmin@naver.com>
|
|
70
73
|
Chaozhe.Chen <chaozhe.chen@easystack.cn>
|
|
71
74
|
Chen <dstbtgagt@foxmail.com>
|
|
72
75
|
Chen Hanxiao <chenhx@certusnet.com.cn>
|
|
@@ -119,6 +122,7 @@ Doug Hellmann <doug@doughellmann.com>
|
|
|
119
122
|
Doug Wiegley <dwiegley@salesforce.com>
|
|
120
123
|
Dougal Matthews <dougal@redhat.com>
|
|
121
124
|
Douglas Mendizábal <dmendiza@redhat.com>
|
|
125
|
+
Douglas Viroel <viroel@gmail.com>
|
|
122
126
|
Dr. Jens Harbott <harbott@osism.tech>
|
|
123
127
|
Einst Crazy <yu.changcai@99cloud.net>
|
|
124
128
|
Elena Ezhova <eezhova@mirantis.com>
|
|
@@ -194,6 +198,7 @@ James E. Blair <jeblair@redhat.com>
|
|
|
194
198
|
Jamie Lennox <jamielennox@redhat.com>
|
|
195
199
|
Jan Gutter <jan.gutter@netronome.com>
|
|
196
200
|
Jan Hartkopf <jhartkopf@inovex.de>
|
|
201
|
+
Jan Ueberacker <jan.ueberacker@inovex.de>
|
|
197
202
|
Jas <singhj@us.ibm.com>
|
|
198
203
|
Jaspreet Singh Rawel <jaspreetsinghrawel@gmail.com>
|
|
199
204
|
Javier Pena <jpena@redhat.com>
|
|
@@ -279,6 +284,7 @@ Matthieu Huin <mhu@enovance.com>
|
|
|
279
284
|
Michael Gugino <michael.gugino@walmart.com>
|
|
280
285
|
Michael Johnson <johnsomor@gmail.com>
|
|
281
286
|
Michael McCune <msm@redhat.com>
|
|
287
|
+
Michael Still <mikal@stillhq.com>
|
|
282
288
|
Miguel Lavalle <miguel.lavalle@verizonmedia.com>
|
|
283
289
|
Miguel Lavalle <mlavalle@redhat.com>
|
|
284
290
|
Mike Fedosin <mfedosin@redhat.com>
|
|
@@ -465,6 +471,8 @@ choidoa-git <pearl097@naver.com>
|
|
|
465
471
|
cw0306-lee <us0310306@gmail.com>
|
|
466
472
|
daizhiyong <zhiyong.dai@easystack.cn>
|
|
467
473
|
devMuscle <hongsbien@naver.com>
|
|
474
|
+
djp <dimsss0607@gmail.com>
|
|
475
|
+
dna <la18byeol@gmail.com>
|
|
468
476
|
dongwenshuai <dong.wenshuai@zte.com.cn>
|
|
469
477
|
elajkat <lajos.katona@est.tech>
|
|
470
478
|
gecong1973 <ge.cong@zte.com.cn>
|
|
@@ -478,6 +486,7 @@ hackertron <jayadityagupta11@gmail.com>
|
|
|
478
486
|
heesom <heesom.hs@gmail.com>
|
|
479
487
|
heha <zhanghanqun@unitedstack.com>
|
|
480
488
|
henriquetruta <henrique@lsd.ufcg.edu.br>
|
|
489
|
+
hongp <inyong.hong@samsung.com>
|
|
481
490
|
hoosa <janghoosa@gmail.com>
|
|
482
491
|
huangshan <huangshan@fiberhome.com>
|
|
483
492
|
huangtianhua <huangtianhua@huawei.com>
|
|
@@ -514,11 +523,13 @@ mpicea <jjh77745997@gmail.com>
|
|
|
514
523
|
nidhimittalhada <nidhimittal19@gmail.com>
|
|
515
524
|
niuke <niuke19970315@163.com>
|
|
516
525
|
npraveen35 <npraveen35@gmail.com>
|
|
526
|
+
ohjiwoo <jiwooo.oh@samsung.com>
|
|
517
527
|
okozachenko <okozachenko@vexxhost.com>
|
|
518
528
|
pedh <hcn518@gmail.com>
|
|
519
529
|
pedro <phpm13@gmail.com>
|
|
520
530
|
pengyuesheng <pengyuesheng@gohighsec.com>
|
|
521
531
|
phil-hopkins-a <phil.hopkins@rackspace.com>
|
|
532
|
+
psnew14 <psnew14@gmail.com>
|
|
522
533
|
qinchunhua <qin.chunhua@zte.com.cn>
|
|
523
534
|
qingszhao <zhao.daqing@99cloud.net>
|
|
524
535
|
qtang <qtang@vmware.com>
|
|
@@ -544,6 +555,7 @@ ting wang <bx_wang@outlook.com>
|
|
|
544
555
|
ting.wang <ting.wang@easystack.cn>
|
|
545
556
|
venkata anil <anilvenkata@redhat.com>
|
|
546
557
|
venkatamahesh <venkatamaheshkotha@gmail.com>
|
|
558
|
+
waf <ekrmdhsl7@gmail.com>
|
|
547
559
|
wanghong <w.wanghong@huawei.com>
|
|
548
560
|
wangxiyuan <wangxiyuan@huawei.com>
|
|
549
561
|
wangzihao <wangzihao@yovole.com>
|
|
@@ -553,6 +565,7 @@ wu.chunyang <wu.chunyang@99cloud.net>
|
|
|
553
565
|
wu.chunyang <wuchunyang@yovole.com>
|
|
554
566
|
wu.shiming <wushiming@yovole.com>
|
|
555
567
|
wuyuting <wytdahu@gmail.com>
|
|
568
|
+
xfrnk2 <xfrnk2@gmail.com>
|
|
556
569
|
xiexs <xiexs@cn.fujitsu.com>
|
|
557
570
|
yaeeee <rim0399@naver.com>
|
|
558
571
|
yang wang <wangy@rc.inesa.com>
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: python-openstackclient
|
|
3
|
+
Version: 8.2.0
|
|
4
|
+
Summary: OpenStack Command-line Client
|
|
5
|
+
Author-email: OpenStack <openstack-discuss@lists.openstack.org>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://docs.openstack.org/python-openstackclient/
|
|
8
|
+
Project-URL: Repository, https://opendev.org/openstack/python-openstackclient/
|
|
9
|
+
Classifier: Environment :: OpenStack
|
|
10
|
+
Classifier: Intended Audience :: Information Technology
|
|
11
|
+
Classifier: Intended Audience :: System Administrators
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/x-rst
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
License-File: AUTHORS
|
|
24
|
+
Requires-Dist: pbr !=2.1.0,>=2.0.0
|
|
25
|
+
Requires-Dist: cryptography >=2.7
|
|
26
|
+
Requires-Dist: cliff >=4.8.0
|
|
27
|
+
Requires-Dist: iso8601 >=0.1.11
|
|
28
|
+
Requires-Dist: openstacksdk >=4.6.0
|
|
29
|
+
Requires-Dist: osc-lib >=2.3.0
|
|
30
|
+
Requires-Dist: oslo.i18n >=3.15.3
|
|
31
|
+
Requires-Dist: python-keystoneclient >=3.22.0
|
|
32
|
+
Requires-Dist: python-cinderclient >=3.3.0
|
|
33
|
+
Requires-Dist: requests >=2.27.0
|
|
34
|
+
Requires-Dist: stevedore >=2.0.1
|
|
35
|
+
|
|
36
|
+
===============
|
|
37
|
+
OpenStackClient
|
|
38
|
+
===============
|
|
39
|
+
|
|
40
|
+
.. image:: https://img.shields.io/pypi/v/python-openstackclient.svg
|
|
41
|
+
:target: https://pypi.org/project/python-openstackclient/
|
|
42
|
+
:alt: Latest Version
|
|
43
|
+
|
|
44
|
+
OpenStackClient (OSC) is a command-line client for OpenStack that brings
|
|
45
|
+
the command set for Compute, Identity, Image, Network, Object Store and Block
|
|
46
|
+
Storage APIs together in a single shell with a uniform command structure.
|
|
47
|
+
Support for additional service APIs is provided via plugins.
|
|
48
|
+
|
|
49
|
+
The primary goal is to provide a unified shell command structure and a common
|
|
50
|
+
language to describe operations in OpenStack.
|
|
51
|
+
|
|
52
|
+
Getting Started
|
|
53
|
+
===============
|
|
54
|
+
|
|
55
|
+
OpenStack Client can be installed from PyPI using pip:
|
|
56
|
+
|
|
57
|
+
.. code-block:: shell
|
|
58
|
+
|
|
59
|
+
python3 -m pip install python-openstackclient
|
|
60
|
+
|
|
61
|
+
You can use ``--help`` or the ``help`` command to get a list of global options
|
|
62
|
+
and supported commands:
|
|
63
|
+
|
|
64
|
+
.. code-block:: shell
|
|
65
|
+
|
|
66
|
+
openstack --help
|
|
67
|
+
openstack help
|
|
68
|
+
|
|
69
|
+
You can also get help for a specific command:
|
|
70
|
+
|
|
71
|
+
.. code-block:: shell
|
|
72
|
+
|
|
73
|
+
openstack server create --help
|
|
74
|
+
openstack help server create
|
|
75
|
+
|
|
76
|
+
You can add support for additional services by installing their clients. For
|
|
77
|
+
example, to add support for the DNS service (designate):
|
|
78
|
+
|
|
79
|
+
.. code-block:: shell
|
|
80
|
+
|
|
81
|
+
python3 -m pip install python3-designateclient
|
|
82
|
+
|
|
83
|
+
A ``Dockerfile`` is provided for your convenience in the repository. You can
|
|
84
|
+
use this to build your own container images:
|
|
85
|
+
|
|
86
|
+
.. code-block:: shell
|
|
87
|
+
|
|
88
|
+
git clone https://opendev.org/openstack/python-openstackclient
|
|
89
|
+
cd python-openstackclient
|
|
90
|
+
podman build . -t example.com/myuser/openstackclient
|
|
91
|
+
|
|
92
|
+
For more information the available options and commands, refer to the `Users
|
|
93
|
+
Guide`__.
|
|
94
|
+
|
|
95
|
+
.. __: https://docs.openstack.org/python-openstackclient/latest/cli/index.html
|
|
96
|
+
|
|
97
|
+
Configuration
|
|
98
|
+
=============
|
|
99
|
+
|
|
100
|
+
OpenStack Client must be configured with authentication information in order to
|
|
101
|
+
communicate with a given OpenStack cloud. This configuration can be achieved
|
|
102
|
+
via a ``clouds.yaml`` file, a set of environment variables (often shared via an
|
|
103
|
+
``openrc`` file), a set of command-line options, or a combination of all three.
|
|
104
|
+
Your cloud provider or deployment tooling will typically provide either a
|
|
105
|
+
``clouds.yaml`` file or ``openrc`` file for you. If using a ``clouds.yaml``
|
|
106
|
+
file, OpenStack Client expects to find it in one of the following locations:
|
|
107
|
+
|
|
108
|
+
* If set, the path indicated by the ``OS_CLIENT_CONFIG_FILE`` environment
|
|
109
|
+
variable
|
|
110
|
+
* ``.`` (the current directory)
|
|
111
|
+
* ``$HOME/.config/openstack``
|
|
112
|
+
* ``/etc/openstack``
|
|
113
|
+
|
|
114
|
+
The options you should set will depend on the configuration of your cloud and
|
|
115
|
+
the authentication mechanism(s) supported. For example, consider a cloud that
|
|
116
|
+
supports username/password authentication. Configuration for this cloud using a
|
|
117
|
+
``clouds.yaml`` file would look like so:
|
|
118
|
+
|
|
119
|
+
.. code-block:: yaml
|
|
120
|
+
|
|
121
|
+
clouds:
|
|
122
|
+
my-cloud:
|
|
123
|
+
auth:
|
|
124
|
+
auth_url: '<url-to-openstack-identity>'
|
|
125
|
+
project_name: '<project-name>'
|
|
126
|
+
project_domain_name: '<project-domain-name>'
|
|
127
|
+
username: '<username>'
|
|
128
|
+
user_domain_name: '<user-domain-name>'
|
|
129
|
+
password: '<password>' # (optional)
|
|
130
|
+
region_name: '<region>'
|
|
131
|
+
|
|
132
|
+
The corresponding environment variables would look very similar:
|
|
133
|
+
|
|
134
|
+
.. code-block:: shell
|
|
135
|
+
|
|
136
|
+
export OS_AUTH_URL=<url-to-openstack-identity>
|
|
137
|
+
export OS_REGION_NAME=<region>
|
|
138
|
+
export OS_PROJECT_NAME=<project-name>
|
|
139
|
+
export OS_PROJECT_DOMAIN_NAME=<project-domain-name>
|
|
140
|
+
export OS_USERNAME=<username>
|
|
141
|
+
export OS_USER_DOMAIN_NAME=<user-domain-name>
|
|
142
|
+
export OS_PASSWORD=<password> # (optional)
|
|
143
|
+
|
|
144
|
+
Likewise, the corresponding command-line options would look very similar:
|
|
145
|
+
|
|
146
|
+
::
|
|
147
|
+
|
|
148
|
+
openstack
|
|
149
|
+
--os-auth-url <url-to-openstack-identity>
|
|
150
|
+
--os-region <region>
|
|
151
|
+
--os-project-name <project-name>
|
|
152
|
+
--os-project-domain-name <project-domain-name>
|
|
153
|
+
--os-username <username>
|
|
154
|
+
--os-user-domain-name <user-domain-name>
|
|
155
|
+
[--os-password <password>]
|
|
156
|
+
|
|
157
|
+
.. note::
|
|
158
|
+
|
|
159
|
+
If a password is not provided above (in plaintext), you will be
|
|
160
|
+
interactively prompted to provide one securely.
|
|
161
|
+
|
|
162
|
+
Some clouds use federated authentication. If this is the case, your
|
|
163
|
+
configuration will be slightly more involved. For example, to configure
|
|
164
|
+
username/password authentication for a federated user using a ``clouds.yaml``
|
|
165
|
+
file:
|
|
166
|
+
|
|
167
|
+
.. code-block:: yaml
|
|
168
|
+
|
|
169
|
+
clouds:
|
|
170
|
+
my-cloud:
|
|
171
|
+
auth:
|
|
172
|
+
auth_url: '<url-to-openstack-identity>'
|
|
173
|
+
project_name: '<project-name>'
|
|
174
|
+
project_domain_name: '<project-domain-name>'
|
|
175
|
+
username: '<username-in-idp>'
|
|
176
|
+
user_domain_name: '<user-domain-name>'
|
|
177
|
+
password: '<password-in-idp>'
|
|
178
|
+
identity_provider: '<the-desired-idp-in-keystone>'
|
|
179
|
+
client_id: '<the-client-id-configured-in-the-idp>'
|
|
180
|
+
client_secret: '<the-client-secret-configured-in-the-idp>'
|
|
181
|
+
openid_scope: '<the-scopes-of-desired-attributes-to-claim-from-idp>'
|
|
182
|
+
protocol: '<the-protocol-used-in-the-apache2-oidc-proxy>'
|
|
183
|
+
access_token_type: '<the-access-token-type-used-by-your-idp>'
|
|
184
|
+
discovery_endpoint: '<the-well-known-endpoint-of-the-idp>'
|
|
185
|
+
auth_type: 'v3oidcpassword'
|
|
186
|
+
region_name: '<region>'
|
|
187
|
+
|
|
188
|
+
The corresponding environment variables would look very similar:
|
|
189
|
+
|
|
190
|
+
.. code-block:: shell
|
|
191
|
+
|
|
192
|
+
export OS_PROJECT_NAME=<project-name>
|
|
193
|
+
export OS_PROJECT_DOMAIN_NAME=<project-domain-name>
|
|
194
|
+
export OS_AUTH_URL=<url-to-openstack-identity>
|
|
195
|
+
export OS_IDENTITY_API_VERSION=3
|
|
196
|
+
export OS_AUTH_TYPE=v3oidcpassword
|
|
197
|
+
export OS_USERNAME=<username-in-idp>
|
|
198
|
+
export OS_PASSWORD=<password-in-idp>
|
|
199
|
+
export OS_IDENTITY_PROVIDER=<the-desired-idp-in-keystone>
|
|
200
|
+
export OS_CLIENT_ID=<the-client-id-configured-in-the-idp>
|
|
201
|
+
export OS_CLIENT_SECRET=<the-client-secred-configured-in-the-idp>
|
|
202
|
+
export OS_OPENID_SCOPE=<the-scopes-of-desired-attributes-to-claim-from-idp>
|
|
203
|
+
export OS_PROTOCOL=<the-protocol-used-in-the-apache2-oidc-proxy>
|
|
204
|
+
export OS_ACCESS_TOKEN_TYPE=<the-access-token-type-used-by-your-idp>
|
|
205
|
+
export OS_DISCOVERY_ENDPOINT=<the-well-known-endpoint-of-the-idp>
|
|
206
|
+
|
|
207
|
+
Likewise, the corresponding command-line options would look very similar:
|
|
208
|
+
|
|
209
|
+
.. code-block:: shell
|
|
210
|
+
|
|
211
|
+
--os-project-name <project-name>
|
|
212
|
+
--os-project-domain-name <project-domain-name>
|
|
213
|
+
--os-auth-url <url-to-openstack-identity>
|
|
214
|
+
--os-identity-api-version 3
|
|
215
|
+
--os-auth-plugin openid
|
|
216
|
+
--os-auth-type v3oidcpassword
|
|
217
|
+
--os-username <username-in-idp>
|
|
218
|
+
--os-password <password-in-idp>
|
|
219
|
+
--os-identity-provider <the-desired-idp-in-keystone>
|
|
220
|
+
--os-client-id <the-client-id-configured-in-the-idp>
|
|
221
|
+
--os-client-secret <the-client-secred-configured-in-the-idp>
|
|
222
|
+
--os-openid-scope <the-scopes-of-desired-attributes-to-claim-from-idp>
|
|
223
|
+
--os-protocol <the-protocol-used-in-the-apache2-oidc-proxy>
|
|
224
|
+
--os-access-token-type <the-access-token-type-used-by-your-idp>
|
|
225
|
+
--os-discovery-endpoint <the-well-known-endpoint-of-the-idp>
|
|
226
|
+
|
|
227
|
+
For more information on configuring authentication, including an overview of
|
|
228
|
+
the many authentication mechanisms supported, refer to the `Authentication
|
|
229
|
+
guide`__. For more information on configuration in general, refer to the
|
|
230
|
+
`Configuration guide`__.
|
|
231
|
+
|
|
232
|
+
.. __: https://docs.openstack.org/python-openstackclient/latest/cli/authentication.html.
|
|
233
|
+
.. __: https://docs.openstack.org/python-openstackclient/latest/configuration/index.html
|
|
234
|
+
|
|
235
|
+
Contributing
|
|
236
|
+
============
|
|
237
|
+
|
|
238
|
+
You can clone the repository from opendev.org::
|
|
239
|
+
|
|
240
|
+
git clone https://opendev.org/openstack/python-openstackclient
|
|
241
|
+
cd python-openstackclient
|
|
242
|
+
|
|
243
|
+
OpenStack Client uses the same contributor process as other OpenStack projects.
|
|
244
|
+
For information on this process, including help on setting up you Gerrit
|
|
245
|
+
account and an overview of the CI process, refer to the `OpenStack Contributors
|
|
246
|
+
Guide`__.
|
|
247
|
+
|
|
248
|
+
For more information on contributing to OpenStack Client itself, including
|
|
249
|
+
guidance on how to design new commands and how to report bugs, refer to the
|
|
250
|
+
`Contributors Guide`__.
|
|
251
|
+
|
|
252
|
+
.. __: https://docs.openstack.org/python-openstackclient/latest/contributor/index.html
|
|
253
|
+
.. __: https://docs.opendev.org/opendev/infra-manual/latest/developers.html
|
|
254
|
+
|
|
255
|
+
Links
|
|
256
|
+
-----
|
|
257
|
+
|
|
258
|
+
* `Issue Tracker <https://bugs.launchpad.net/python-openstackclient>`_
|
|
259
|
+
* `Code Review <https://review.opendev.org/#/q/status:open+project:openstack/openstacksdk,n,z>`_
|
|
260
|
+
* `Documentation <https://docs.openstack.org/python-openstackclient/latest/>`_
|
|
261
|
+
* `PyPi <https://pypi.org/project/python-openstackclient>`_
|
|
262
|
+
* `Mailing list <https://lists.openstack.org/mailman3/lists/openstack-discuss.lists.openstack.org/>`_
|
|
263
|
+
* `Release Notes <https://docs.openstack.org/releasenotes/python-openstackclient>`_
|
|
264
|
+
* `IRC (#openstack-sdks on OFTC (irc.oftc.net)) <irc://irc.oftc.net/openstack-sdks>`_
|