Commit Graph

20 Commits

Author SHA1 Message Date
Rajat Dhasmana b42ffa4035 Drop lower-constraints job
Change-Id: I1de76a70e07bbf2bd70900b4d93104a1b0fda74b
2021-08-12 05:17:45 -04:00
Rajat Dhasmana 1178f113c4 Add cinder's new attachment support
Cinder introduced new attachment API flow in microversion 3.27
(also attachment_complete added in mv 3.44 and support for passing
mode added in mv 3.54) which provides a clean interface to
interact with cinder for attachments and is also required for
multiattach volume support (Related future work).
Nova uses it since a long time and is proven to be stable,
this patch implements the same for glance.
The create volume and delete volume calls are also moved to
cinder_utils file to use the generic exception handler
and keep similar code together for consistency.

Partially Implements: blueprint attachment-api-and-multiattach-support

Change-Id: I2758ed1d5b8e0981faa3eff6f83e1ce5975a01d2
2021-07-23 10:22:12 -04:00
Mike Durnosvystov 83c6fa7f74 vmware: Use cookiejar from oslo.vmware client directly
With changing the SOAP library backing oslo.vmware [1], the cookiejar of
a session must be accessed differently. Therefore, oslo.vmware
introduced a property on the client to abstract this change away. This
commit uses the new place to access the attribute.

[1]
https://specs.openstack.org/openstack/oslo-specs/specs/victoria/oslo-vmware-soap-library-switch.html

Change-Id: Iec6c4be5c61710f2a7a0056168d0c31ade987b1f
2021-04-30 12:08:50 +00:00
Erno Kuvaja d05024afc3 Fix lower_constraints and requirements
Change-Id: I6c232e80ed5975e156f6ddf34e9a8944ac35f2d6
2020-12-18 11:11:40 +00:00
Ade Lee a34419aecd Replace md5 with oslo version
md5 is not an approved algorithm in FIPS mode, and trying to
instantiate a hashlib.md5() will fail when the system is running in
FIPS mode.

md5 is allowed when in a non-security context.  There is a plan to
add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate
whether or not the instance is being used in a security context.

In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.

Some downstream python versions already support this parameter.  To
support these versions, a new encapsulation of md5() has been added to
oslo_utils.  See https://review.opendev.org/#/c/750031/

This patch is to replace the instances of hashlib.md5() with this new
encapsulation, adding an annotation indicating whether the usage is
a security context or not.

It looks like the uses of the md5 are primarily for checksums and
generation of etags.

With this patch, all the unit and functional tests appear to pass
on a FIPS enabled system.

Change-Id: I0603ba217d6dc19f5c9f73c60c7b365efd28d30b
Depends-On: https://review.opendev.org/#/c/760160
2020-11-11 13:40:46 -05:00
Zuul 982313615a Merge "Remove translation sections from setup.cfg" 2020-08-26 09:38:57 +00:00
Zuul 4a9c5d2fa9 Merge "requirements: Drop os-testr" 2020-08-07 13:50:30 +00:00
Zuul ec2e5b375a Merge "Cap jsonschema 3.2.0 as the minimal version" 2020-07-10 14:53:19 +00:00
Stephen Finucane d519bb597c requirements: Drop os-testr
This has been replaced in use by stestr.

Change-Id: If0297f1a85d9d54c126da8a8436044bf4a161ef4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-07-09 11:27:16 +01:00
wu.chunyang 3e9ecdeead Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Remove babel.cfg as well, this is the default role and not needed
anymore.

also remove Babel from requirements[1]
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: I106c408a394ce8018c11560a60fe1a160b898ec3
2020-07-03 22:10:12 +08:00
Andreas Jaeger 7eb1635425 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: Iee357adb23ff65e453ac627eaec0b9d7ac245ba6
2020-05-30 16:57:57 +02:00
Hervé Beraud ab4c9fd15c 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: I097b2d0349083cad1908db8dc25a33d9ad492adb
2020-05-26 21:49:22 +02:00
Eric Harney 50060a904c Bump cinder/os-brick requirements
Require versions of these libraries that
at least had python 3.6 unit testing.

Change-Id: Idbef3c6b241e7a1b953061a65849879ee78f88ff
2020-04-23 13:58:09 -04:00
Zuul f84acb9c05 Merge "Cleanup py27 support" 2020-04-06 07:03:43 +00:00
Andreas Jaeger 8ba16057db 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:
  * Wheel is not needed for python 3 only repo
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I12ecea6b3cfcca8edd5adedac91f906d77f4ff36
2020-04-05 08:20:21 +02:00
Andreas Jaeger 279ea4766e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I99b8b24f714858f6b289e5e7b5976e519bb81c11
2020-04-02 15:26:13 +02:00
Naohiro Sameshima 261bad3e43 Add S3 store support to glance_store
Revive the S3 driver that was supported up to Mitaka and add multiple
store support to correspond with the features added to glance_store from
Newton to U cycle. In addition, the use of the S3 SDK used by the Mitaka
S3 driver has been deprecated, so this implementation will be changed
to use the new version.

Change-Id: I203134837319080ead96da69048baf90086d2117
Implements: blueprint re-support-s3-driver
2020-03-26 10:53:46 +09:00
Erno Kuvaja 0b23b4f229 remove bandit from testing
Change-Id: Ib9f7b9976382535aea946912b0e8b0ab32189b21
2018-08-16 19:59:56 +01:00
Brian Rosmaita 94ade76bc3 Update tox.ini to conform to the PTI
The current Python Testing Interface specifies the use of
stester, so update tox.ini to use it.

Closes-bug: #1780272
Change-Id: I6b6c60486a26cfbb5793c074fe6f554c6a324846
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-07-16 04:52:57 +00:00
Doug Hellmann d4b3117295 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Iaf938db5d3d45a7187f2c2c619d0f86e90128fb2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 16:02:48 -04:00