6223 Commits

Author SHA1 Message Date
Harald Jensås
8b5d4fe798 Add query parameter 'id' for security_groups
Add parity with neutronclient which could list
security groups filtering by one or multiple
security group ids.

Change-Id: Iabafad39fe2b54a0c5fa6fe23f1e8ce3c0eab991
2020-06-15 17:44:21 +02:00
Zuul
1a032b8c60 Merge "NIT: Fix application credential" 2020-06-12 08:34:54 +00:00
Zuul
6751de7f19 Merge "Do not clean keypairs in the project cleanup" 2020-06-10 21:07:58 +00:00
Vishakha Agarwal
a0a9f4687f NIT: Fix application credential
Change-Id: Ibe2a44a174dfa84019c73d65be1567febbe512c1
2020-06-10 12:37:46 +05:30
Zuul
b1cb73cac5 Merge "Fix AttributeError exception during authorization" 2020-06-09 18:11:10 +00:00
Zuul
e524e4f64e Merge "Add user_projects method to docs index" 2020-06-09 05:50:42 +00:00
Zuul
c818348be5 Merge "Extend statistics reporting" 2020-06-08 23:40:27 +00:00
Monty Taylor
2cf5ff9890 Add user_projects method to docs index
Change-Id: I8b5b6199fa4de4c32743ab8ce31e496964416699
2020-06-08 14:37:04 -05:00
Artem Goncharov
8ce2b1c97d Do not clean keypairs in the project cleanup
We can delete only keypairs of the user, which is invoking project
cleanup, while others will remain. On the other hand we might also drop
keypairs, which are still active in other projects, since KP is not
project related, but user related.

Change-Id: Iaef2ff204c2e65feda8cf30c3e5497e22dc33059
2020-06-08 13:56:21 +02:00
Sagi Shnaidman
7e0dcaaa4a Make optional name and admin password
Nova API doesn't require name and admin password as mandatory
arguments for rebuilding server. Make them optional for SDK too.

Change-Id: I002101b21827005a7945fcc3669ccca1481204a5
2020-06-07 21:02:23 +03:00
Zuul
4233393b87 Merge "Add some unit tests for config.loader" 2020-06-01 23:33:32 +00:00
Zuul
467779f581 Merge "baremetal: use proxy methods in unregister_machine" 2020-06-01 23:28:51 +00:00
Zuul
58393f3470 Merge "Add name query filter to keystone service" 2020-06-01 23:27:27 +00:00
Hervé Beraud
023040ec42 Add some unit tests for config.loader
Add some unit tests that aim to test yaml/json files reading and
permissions.

Change-Id: I3bdc2f141cba83e43b9349ae0cd0661464ad8e7a
2020-05-29 19:00:08 +02:00
Artem Goncharov
f39fe6eb91 Fix AttributeError exception during authorization
When we can't authorize at minimum wrap keystoneauth1 error, instead of
generating new problem by looking into not existing property of the
exception.
This error masks the cause of real failure resulting in huge stack
traces on connection problems (epsecially valid for Ansible modules).

Change-Id: I8548fa6fc7daa4101e86c839ec3c7b44fed29511
2020-05-29 09:02:09 +02:00
Dmitry Tantsur
b1ec4174e7 baremetal: use proxy methods in unregister_machine
Has a nice side effect of no longer failing when a machine or any
port do not exist. Also stop using a deprecated method.

The wait argument is deprecated since it never had any effect: node
deletion is synchronous.

Change-Id: I63ea929540f22c2b73faf4a1f767e30ecc1dd5dd
2020-05-27 17:59:05 +02:00
Zuul
128f6b3bc3 Merge "Refresh python versions" 2020-05-26 17:29:26 +00:00
Hervé Beraud
632db25246 Refresh python versions
Introduce support of python 3.8 and move tox and jobs to py38.

jsonschema 3.2.0 [1] support python 3.8

[1] https://github.com/Julian/jsonschema/pull/627

Change-Id: Ibcfa044dd0f3b29fd290559795ea1d98e194e886
2020-05-26 10:36:06 +02:00
Zuul
9fbd7893fa Merge "add default user and project domain for OVH provider" 2020-05-25 18:04:00 +00:00
Andreas Jaeger
452087a7fe Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I334380cd63f408c8307fec06e8569b599d23e2f9
2020-05-21 20:28:59 +02:00
Artem Goncharov
2caaa989ce Extend statistics reporting
In some cases it is desired to extend stat metrics with additional tags
based on the selected connection (i.e. "environment"). Statsd does not
support tags, so add this only to influxdb for now.
Fix establishing connection from parameters when passing influx_config.
When exception happens, we need to also generate metric to be able to
see errors (i.e. timeout happening from Ansible)

I know there are no tests for that area so far at all, this will come later.

Change-Id: Ie0862f04eb224345559f9092cd0a9d8ffa43bef3
2020-05-20 18:44:00 +02:00
Adrien Pensart
67f546a93d add default user and project domain for OVH provider
Change-Id: I6b9867863e590d9a4a70db6b2abbd807f5b9089c
2020-05-20 10:31:13 -04:00
Zuul
41a518b4b8 Merge "added new regions for provider OVH" 2020-05-20 00:26:50 +00:00
Adrien Pensart
d7c12797a9 new ovh-us provider for OVH US regions
Change-Id: Iff08b58316cbc6d359eeb25479a6ac524944147f
2020-05-19 16:32:34 -04:00
Adrien Pennsart
acbd3f1058 added new regions for provider OVH
Change-Id: I893a2f1c17cbcf2ae73812b5dfe68e25c0977077
2020-05-19 16:27:05 -04:00
Zuul
7e2a51aeff Merge "Stop subclassing object" 2020-05-13 11:35:51 +00:00
Zuul
47105e0b71 Merge "Fix image owner field" 2020-05-13 05:54:41 +00:00
Zuul
a4a2a7b42e Merge "Remove use of six" 2020-05-13 04:25:35 +00:00
Zuul
68e92e850c Merge "Remove uses of from six.moves" 2020-05-13 04:23:58 +00:00
Zuul
6b18264878 Merge "Remove some unneeded things from test-requirements" 2020-05-13 04:23:57 +00:00
Zuul
36de6bcaf2 Merge "Set BaseImageProxy.create_image validate_checksum default to False" 2020-05-12 21:53:07 +00:00
Monty Taylor
44136d7f6d Fix issues found by latest flake8
Change-Id: Iacb6ec4ab22594d3b1699523e04bc60c89ab04fe
2020-05-12 09:15:02 -05:00
Zuul
1a347fe186 Merge "Don't error if clouds.yaml is not readable" 2020-05-11 20:29:27 +00:00
Zuul
c2a3da9802 Merge "Strip self from incoming glance properties" 2020-05-11 18:16:20 +00:00
Dean Troyer
786aeb7f8a Set BaseImageProxy.create_image validate_checksum default to False
create_image() does not work properly with some vendor deployments,
the reported checksum is different than the local checksum.

glanceclient did not enforce the checksum validation by default, this
will not be a surprise to apps migrating from that library.

Change-Id: I4147122e744cc2224ced89f6ac931e81b76e50a7
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2020-05-10 12:02:33 -05:00
Zuul
fa56869cc6 Merge "Add "id" to Port's query parameters" 2020-05-10 15:43:11 +00:00
Monty Taylor
0c5ae59025 Stop subclassing object
This wasn't actually even needed in python2.7, but habits die hard.

Change-Id: I20f282d285506b1f1dde01be6cde0c0e8c7883c8
2020-05-10 08:29:41 -05:00
Monty Taylor
2ddbf57ee6 Remove use of six
We're python3 now, we don't need to use six.

Change-Id: I7c1f0bc89838432aa0ce916beb462916c8763cd1
2020-05-10 08:29:40 -05:00
Monty Taylor
fe00460b99 Remove uses of from six.moves
We're python3 now. While we're at it, fix six.StringIO to
io.StringIO (it matched the from six grep) and reorder imports
where we're touching them anyway.

Change-Id: I02c348d497bac4cb671ce1d9e8d11274b0ee8573
2020-05-10 08:23:40 -05:00
Monty Taylor
9b253307a7 Remove some unneeded things from test-requirements
We don't need to depend directly on python-subunit.
In python3 we don't need safe_hasattr.
We don't use testrepository.

In lower constraints, os-client-config and mox3 are
transitive depends that we do not care about so don't
need to track lower pins for them.

futures and ipaddress were removed from requirements
but not from lc.

Finally, remove future from lc and from __future__
since we're python3 only.

Change-Id: Ic22079f78f77221e83986e5a835457dbefc3ded7
2020-05-10 08:23:38 -05:00
Monty Taylor
e00c9ca2b1 Fix image owner field
The field was owner in the original shade image normalize contract.
It's also owner in glance, and in python-openstackclient.

Unfortunately we've made a release with this set to owner_id, so
what we need to do now is support this new owner_id thing else
we'll break people.

Change-Id: Ic074e4faed5cc391b8aff6b2e1a451f095d00024
2020-05-10 08:21:23 -05:00
Monty Taylor
fc7609f45e Strip self from incoming glance properties
We do this in list, but we should really also do it in
translate response - because seriously this can never work.

Change-Id: Ic97499b9fe1b563049da59899c34dbd810fe1509
2020-05-10 08:21:23 -05:00
Victor Coutellier
1b21b7bda1 Add name query filter to keystone service
Keystone actually support filtering services by name for a long time,
but it was never documented in the api-ref, here is the patch for the
keystone api documentation : https://review.opendev.org/#/c/726580/

We need to be able to use this filter in the SDK too.

Change-Id: I634a0d867aa2b2f3495e8267488b12a2123a4f05
Story: 2007652
Task: 39716
2020-05-10 12:48:58 +00:00
Alex Schultz
d8be0e94d4 Don't error if clouds.yaml is not readable
There is a search path that we should check the next file if the first
file we find is not readable.

Change-Id: Ib638fe74210257f9175e28c1ccfff4493ef32873
Story: 2007645
Task: 39704
2020-05-08 09:30:49 -06:00
Zuul
8bd107bb9b Merge "Fix metric names in the object_store" 2020-05-08 10:04:42 +00:00
Zuul
dca135f0e9 Merge " Add cipher list support for octavia" 2020-05-07 19:52:39 +00:00
Artem Goncharov
98f4f24f47 Fix metric names in the object_store
Under swift we have only endpoints/account/container/object resources, and
regular scheme of the resource from url detection doesn't work.

Change-Id: I03c7da8a579471c362e4124deeff43d67cdb986e
2020-05-07 16:54:14 +02:00
Johannes Kulik
09b739b11d Add "id" to Port's query parameters
According to the network v2 api-ref [1], it's possible to query ports by
id, i.e. retrieve multiple ports we know the id of at once. This commit
adds support for it.

[1] https://docs.openstack.org/api-ref/network/v2/?expanded=list-ports-detail#list-ports

Change-Id: I062b8b141e6200146c1f54d04649cf476887f179
2020-05-07 09:28:55 +02:00
Zuul
51b7b0c9eb Merge "OpenStack port decorator variables" 2020-04-23 11:34:25 +00:00
Zuul
49b2a0755e Merge "Fix an unstable bare metal unit test" 2020-04-22 14:46:02 +00:00