Infinidat Cinder driver consistency groups feature is broken

Bug #1984000 reported by Alexander Deiter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Low
Alexander Deiter

Bug Description

Infinidat Cinder driver consistency groups feature is broken.

The Infinidat Cinder driver ignores the group id property when creating a new volume and does not add new volume to group.

Steps to reproduce:
* Install an OpenStack environment: Queens or newer version
* Configure Infinidat iSCSI or FC backend
* Create a consistency group
* Create a volume as a member of the group
* Try to create a consistency group snapshot

Expected results:
Success

Actual results:
Aug 08 17:47:30 devstack-aio-iscsi-master cinder-volume[679114]: ERROR cinder.volume.drivers.infinidat [None req-5eab71c2-55da-49e5-a758-3fe5abf00945 tempest-
ConsistencyGroupsV2Test-1126116403 None] Caught exception from infinisdk: API Command Failed
Request: POST https://box:443/api/rest/cgs?approved=true
Request Timestamp: 2022-08-08T17:47:30.438135+00:00
Response Timestamp: 2022-08-08T17:47:30.522746+00:00
Data: '{"snap_prefix": null, "parent_id": 77430, "snap_suffix": "_1659980850334", "name": "openstack-group-snap-9bbf4cd5-fed0-49d3-ac50-3f80f016a93c", "lock_expires_at": null}'
Status: 409
Code: CG_SNAP_WITH_NO_MEMBERS
Message: Cannot take a snapshot of an empty consistency group
Cookies: JSESSIONID=95895541EB37C8D79EDE05BF010410CC: infinisdk.core.exceptions.APICommandFailed: API Command Failed
Request: POST https://box:443/api/rest/cgs?approved=true
Request Timestamp: 2022-08-08T17:47:30.438135+00:00
Response Timestamp: 2022-08-08T17:47:30.522746+00:00
Data: '{"snap_prefix": null, "parent_id": 77430, "snap_suffix": "_1659980850334", "name": "openstack-group-snap-9bbf4cd5-fed0-49d3-ac50-3f80f016a93c", "lock_expires_at": null}'
Status: 409
Code: CG_SNAP_WITH_NO_MEMBERS
Message: Cannot take a snapshot of an empty consistency group
Cookies: JSESSIONID=95895541EB37C8D79EDE05BF010410CC

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/infinisdk/core/api/api.py", line 660, in assert_success
    self.response.raise_for_status()
  File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: https://box:443/api/rest/cgs?approved=true

description: updated
description: updated
Changed in cinder:
assignee: nobody → Alexander Deiter (adeiter)
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/852369

Changed in cinder:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers