20390 Commits

Author SHA1 Message Date
Alexander Deiter
026dd9d34a Fix Infinidat driver to inherit compression
* Fixed Infinidat driver to inherit compression setting by default for
  all newly created volumes. Admin can set ``True`` or ``False`` for
  the ``infinidat_use_compression`` option in the driver section of
  cinder.conf to explicitly enable or disable compression setting for
  all newly created volumes. Or leave this option unset (commented out)
  for all created volumes to inherit their compression setting from
  their parent pool at creation time. The default value is unset.

* Removed support for pre-v3.0 InfiniBox systems that do not support
  compression. These versions are end of life and no longer supported
  for a long time

Closes-bug: #2017815
Signed-off-by: Alexander Deiter <adeiter@infinidat.com>
Change-Id: I6a33e4c85057bdf79530f9c9f24d867c49931310
2023-05-04 08:55:12 +00:00
Zuul
40147e2489 Merge "Require novaclient >= 18.2.0" 2023-04-21 17:30:25 +00:00
Zuul
c0133da591 Merge "Imported Translations from Zanata" 2023-04-20 17:15:38 +00:00
Zuul
45d0947adb Merge "RBD: Skip update_features when features = 0" 2023-04-20 16:02:50 +00:00
Zuul
7c58d8b4e5 Merge "DB: Align volumes_service_uuid index in model with migration" 2023-04-20 15:42:13 +00:00
Zuul
2e8aff660b Merge "Add fips check jobs" 2023-04-19 00:10:48 +00:00
Zuul
ecd2ac5bd4 Merge "3PAR: Error out if vol cannot be converted to base" 2023-04-18 20:23:36 +00:00
Ade Lee
933a7b7e6c Add fips check jobs
This patch adds two new FIPS enabled jobs to determine if there are any
issues when FIPS is enabled.

Because the FIPS jobs currently run on centos, code is added to the
test setup script to set up the databases correctly.  Also had
to increase the swap space on the nodes; see [0] for an explanation.

[0] https://review.opendev.org/c/openstack/devstack/+/803706

Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-nfs/+/847087
Depends-On: https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/847086

Change-Id: Ib85b6ecc6f1b12eb8afa866e56afbfb13aad0cba
2023-04-18 19:45:55 +00:00
Brian Rosmaita
3febae7529 Update functional jobs for 2023.2
Based on the python runtimes for 2023.2 [0], we should be running
functional jobs on python 3.9 and python 3.10.

This patch does not remove the ability to run the functional jobs
locally on python 3.8, as it may be useful to test changes that
are intended to be backported.

[0] https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: I5e12a7555b465a5fd8510d5a9b80d5caa30ce507
2023-04-17 17:33:40 -04:00
Zuul
cd44d3763d Merge "test_rbd_iscsi: Make tests compatible with python 3.11" 2023-04-17 20:58:39 +00:00
Zuul
8f5373ac3c Merge "Make paramiko import optional" 2023-04-17 17:30:55 +00:00
Rajat Dhasmana
dfd8f99743 3PAR: Error out if vol cannot be converted to base
Consider volume and snapshots as below:

v1
|
`-- s1
    |
    `-- v2
        |
        `-- s2

User initiated deletion of snapshot s1.
It failed with some vague message.

Initially, it was suspected that ...
While copying volume v2 (sometimes an intermediate step to break
volume dependency), we send a request to clone the volume v2 to new
base volume; and the exception [1] isn't handled properly.

[1] Conflict (HTTP 409) 32 - volume has a child

However, on further investigation it was found that ...
after a new volume v2 (omv-<id>) is created and
when we try to delete old volume v2 (osv-<id>),
at this point the exception [1] is thrown as error.

This is now handled gracefully. Appropriate error is thrown
if the volume (v2) has snapshot (s2).

Co-Authored-By: raghavendrat <raghavendra-uddhav.tilay@hpe.com>
Closes-Bug: #1994521
Change-Id: I5e7fb425c92cdf8c16d5a86a58ca1a52421543d7
2023-04-13 17:31:36 +00:00
Zuul
78fac2960d Merge "Shut up pylint about win32_disk_size" 2023-04-12 16:48:53 +00:00
Eric Harney
c8305f44d2 Fix typo in HA contributor doc
"targest" -> "targets"

Change-Id: Ife69605de9692bd87c6173bac3d0b458d047571f
2023-04-12 07:57:06 -04:00
Pete Zaitcev
63b6e56960 Shut up pylint about win32_disk_size
The pylint job is non-voting, but it was annoying to see it fail.

To add the insult to injury, the code was correct, but the pylint
was not smart enough. So this patch only exists to address
shortcomings of our toolchain.

Change-Id: I391e03426c42b7af122722cd851c4aa03f2dcb68
2023-04-11 13:02:26 -05:00
Eric Harney
69497b151e Make paramiko import optional
Since paramiko does not support FIPS, some deployments
may run without paramiko installed.  Handle this in
ssh_utils.

(This does not handle the paramiko requirement for
drivers that import it directly.)

Change-Id: Id87876543df825f9d84938c615c5976abdebd8f4
2023-04-11 10:50:15 -04:00
Takashi Natsume
dfef52f3a6 Fix wrong assertion methods
Change-Id: I0e1ce867c76fcf4fb5784550c1f1f051498176a4
Closes-Bug: 1989280
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2023-04-07 00:20:10 +09:00
Zuul
42ef47ba26 Merge "Add note about MYSQL_REDUCE_MEMORY" 2023-04-05 21:03:31 +00:00
Tony Saad
f8da58d52a PowerFlex driver - documentation update
Update of our PowerFlex Documentation to add support for PowerFlex
4.0.x

Change-Id: I4cd422cae77167a1c894dfc489e28c3cda6732f4
2023-03-30 10:34:12 -07:00
Eric Harney
f6be9e91fa Require novaclient >= 18.2.0
Cinder uses Nova API version 2.93 as of I8fae9e2b, which
was added in novaclient 18.2.0.

Change-Id: I62dca81dbea50f7019f4404fa4f87278e53d2744
2023-03-30 11:55:51 -04:00
Brian Rosmaita
513690a81c Add note about MYSQL_REDUCE_MEMORY
Added a note to the two CI jobs that increase host memory about
a recently added devstack option [0] so that we don't forget about
it.

[0] I7b223391d3de

Change-Id: Ifb52819ddc4db22507805c77c5562ca3e3600e1a
2023-03-30 10:47:31 -04:00
Eric Harney
b261fa205b DB: Align volumes_service_uuid index in model with migration
The migration specifies a column order of
('service_uuid', 'deleted'), make the model use the same order.

Closes-Bug: #2012289
Change-Id: I2332bf4657761076c3d72e41d089ec014e73fb52
2023-03-30 13:29:33 +00:00
Zuul
19250d3f24 Merge "Bump mypy to 1.0" 2023-03-30 10:34:06 +00:00
Zuul
3fc3754804 Merge "Tests: Remove typo'd assert calls from test_attachments_manager" 2023-03-28 05:44:32 +00:00
Zuul
482ab2c63b Merge "HPE: Fix keyerror seen during volume migration" 2023-03-27 14:24:38 +00:00
Zuul
bca959952a Merge "Improve test_execute_root_and_helper" 2023-03-27 14:20:07 +00:00
Desire Barine
955ac9e3fc HPE: Fix keyerror seen during volume migration
Refactors _get_updated_comments to retrieve updated comment via Volume.get().
This prevents a KeyError when getting comment during volume migration.

Closes-Bug: #2008931
Change-Id: Ic0cfa68172d2b0607928b35fec081da96e33c434
2023-03-26 15:41:32 +00:00
Zuul
ca0a596cee Merge "Pure Storage - bump version numbers for 2023.2 (Bobcat)" 2023-03-24 20:37:12 +00:00
Khadija Kamran
41da45ddd3 Improve test_execute_root_and_helper
Pass autospec=True while patching the function.
Create the mock object for mock_helper using mock.sentinel. This gives
us some extra protection because sentinel object is not callable. If the
code tries to use it like a function, it will raise a TypeError.
This patch also changes assertFalse() to assert_not_called().

Partial-Bug: #2004174
Change-Id: I209ff5d0fd7e3eaa0b50dcbf71ff4b0960403f96
Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
2023-03-24 22:34:22 +05:00
Simon Dodsley
6a31c5b9bd Pure Storage - bump version numbers for 2023.2 (Bobcat)
Pure uses the version number of the driver to identify which
customers are using which versions of OpenStack.

This will help granular analysis of which driver is being
used in each OpenStack version

Change-Id: Ib507509cb20284706ffd204bbbaaf752bab56c80
2023-03-24 09:18:31 -04:00
Han Guangyu
9714ae828e Update url of "Unity Replication White Paper"
The website "www.emc.com" has been discontinued.

Replace the outdated link
"https://www.emc.com/collateral/white-papers/h15088-dell-emc-unity-replication-technologies.pdf"
with the link
"https://dl.dell.com/content/docu69886_dell-emc-unity-replication-technologies-a-detailed-review.pdf".

Change-Id: I3ab2cc28bef7524cec4f161c9d5417597df56b89
2023-03-24 13:59:47 +08:00
Zuul
ca721d5809 Merge "Tests: storwize: Work around bug in unit test" 2023-03-23 15:41:20 +00:00
Zuul
ddb68f7d0e Merge "Set packages in setup.cfg" 2023-03-23 15:41:15 +00:00
Zuul
dc8bc8e028 Merge "LVM driver: Remove "six" usage" 2023-03-23 15:41:11 +00:00
Zuul
45fd889c78 Merge "RemoteFS: Fix messy string formatting" 2023-03-20 20:54:57 +00:00
Zuul
748604dc15 Merge "Yadro tatlin_client: Fix bad message formatting" 2023-03-20 17:10:59 +00:00
Pete Zaitcev
b75c29c7d8 Restore into sparse volumes
We take the approach to detect zero data when restoring and not
writing it out to the volume. This works exactly as expected
when restoring into Linux LVM volumes and into Ceph RBD volumes,
provided they are freshly created.

Closes-bug: #2007615
Change-Id: I54b81a568a01af44e3f74bcac55e823cdae9bfbf
2023-03-17 18:46:48 -05:00
Zuul
41a03370cd Merge "Fix: PowerMax test with flipping force flag" 2023-03-17 23:31:57 +00:00
Zuul
30c9779264 Merge "Make PowerMax tests stable" 2023-03-17 23:31:54 +00:00
Zuul
d5a45f875a Merge "Remove multiatttach request parameter" 2023-03-17 22:35:55 +00:00
Eric Harney
e4393d48b3 Set packages in setup.cfg
Without this, tox fails with an error:
  py38: FAIL code error: Multiple top-level packages discovered
  in a flat-layout: ['etc', 'roles', 'cinder', 'playbooks',
  'releasenotes'].

Change-Id: Iea13bca7b642ba0b0f1ffa38a504d5b6f2dd276b
2023-03-17 21:02:58 +00:00
Rajat Dhasmana
b466bb3c1b Fix: PowerMax test with flipping force flag
This patch fixes the error faced in a recent gate run[1].
This is a random behavior but there are other places where
similar change is required.
Since the whole powermax unit tests need to be refactored to do
this correctly, this patch only addresses the failure faced in
the gate run.

[1] https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_bd9/852654/16/gate/openstack-tox-py310/bd9f0d9/testr_results.html

Change-Id: I6dacbb2aba37dac27ad741aee01cd4f1355198cb
2023-03-17 19:33:30 +00:00
Zuul
8fee4bc500 Merge "Bump pylint to 2.17.0" 2023-03-17 18:00:02 +00:00
Zuul
1674082f9f Merge "Hitachi HBSD: Fix invalid "raise None"" 2023-03-17 17:59:57 +00:00
Pete Zaitcev
d7cf4a89ab Make PowerMax tests stable
The problem manifests itself as an unstable result of
test_check_force. It fails at Zuul once in a while. But this
seems impossible: there is no randomness or timing component
in this test. The randomness occurs because of cross-test
interference.

The root cause is that apparently someone forgot a deepcopy().

We also make test_check_force not to depend on the global specs,
seems like an obvious oversight. It is not the fix, only tidies
the code.

Change-Id: If1ef9bceae96ef044209c758eee2fd22b44efa49
2023-03-17 15:16:52 +00:00
Zuul
42d5d1d648 Merge "PowerMax Driver - Fix for force flag" 2023-03-15 14:31:34 +00:00
Zuul
d07b734e39 Merge "Dell PowerFlex: Additionnal params for enabling self signed certificates" 2023-03-15 14:28:36 +00:00
OpenStack Proposal Bot
7fe53da73a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8786ee0027b4de694b1bf21bd1e137e4bf51f859
2023-03-15 04:25:30 +00:00
Zuul
ccf23d9207 Merge "[docs] Update documentation for Infinidat driver" 2023-03-14 17:57:50 +00:00
Alexander Deiter
e9816b6546 [docs] Update documentation for Infinidat driver
* Add non-disruptive volume backup feature
* Add an item about creating a volume type
* Update the step for the user account as mentioned
  in the official Infinidat documentation

Signed-off-by: Alexander Deiter <adeiter@infinidat.com>
Change-Id: I46318679fa311ec9dbecb5da9557255b1f378465
2023-03-14 09:17:55 +00:00