Volume creation with group ID fails with "no valid backend"

Bug #1773446 reported by Vipin Balachandran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Vipin Balachandran

Bug Description

In some cases, there can be a mismatch between group AZ and backend host.

MariaDB [cinder]> select * from groups where deleted=0;
+---------------------+---------------------+------------+---------+--------------------------------------+----------------------------------+----------------------------------+--------------+------------------------------------------------------------------------------+-------------------+------+-------------+--------------------------------------+-----------+-------------------+-----------------+--------------------+
| created_at | updated_at | deleted_at | deleted | id | user_id | project_id | cluster_name | host | availability_zone | name | description | group_type_id | status | group_snapshot_id | source_group_id | replication_status |
+---------------------+---------------------+------------+---------+--------------------------------------+----------------------------------+----------------------------------+--------------+------------------------------------------------------------------------------+-------------------+------+-------------+--------------------------------------+-----------+-------------------+-----------------+--------------------+
| 2018-05-22 19:02:35 | 2018-05-22 19:02:35 | NULL | 0 | 0241ce11-0982-4bb8-b034-f252c4436d1e | 51c74de1996847e88b5051ebfe345ec7 | 5a6e496d4c994209b8ac6e28a3aae6e6 | NULL | controller02@az-2:vxlan-vm-111-76#VMwareVcVmdkDriver | az-1

In this case, the group was created without any AZ. The backend "az-2:vxlan-vm-111-76#VMwareVcVmdkDriver" is in az-2, but the group's AZ is the default AZ 'az-1'. As a result, volume creation in the default AZ with the above group ID fails with error "no valid backend" in the scheduler.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/570610

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/570610
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=e08da42d81a6f4a5cbb72216ecddc0c4cf3807f4
Submitter: Zuul
Branch: master

commit e08da42d81a6f4a5cbb72216ecddc0c4cf3807f4
Author: Vipin Balachandran <email address hidden>
Date: Fri May 25 13:17:51 2018 -0700

    Fix group availability zone-backend host mismatch

    Group availability zone is not set correctly in scheduler filter
    properties which results in group availability zone-backend host
    mismatch. This can lead to volume create failure for volumes in
    the group. Fixing it by setting the availability zone in the
    request spec in scheduler RPC call.

    Change-Id: Icfa437d2d81ed29d0aceee776d86e28862c85274
    Closes-bug: 1773446

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/639747

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/rocky)

Reviewed: https://review.openstack.org/639747
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=6ca3f2badfc76343db74ce6cea4b91b1c0fc6d17
Submitter: Zuul
Branch: stable/rocky

commit 6ca3f2badfc76343db74ce6cea4b91b1c0fc6d17
Author: Vipin Balachandran <email address hidden>
Date: Fri May 25 13:17:51 2018 -0700

    Fix group availability zone-backend host mismatch

    Group availability zone is not set correctly in scheduler filter
    properties which results in group availability zone-backend host
    mismatch. This can lead to volume create failure for volumes in
    the group. Fixing it by setting the availability zone in the
    request spec in scheduler RPC call.

    Change-Id: Icfa437d2d81ed29d0aceee776d86e28862c85274
    Closes-bug: 1773446
    (cherry picked from commit e08da42d81a6f4a5cbb72216ecddc0c4cf3807f4)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/644935

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 14.0.0.0rc1

This issue was fixed in the openstack/cinder 14.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 13.0.4

This issue was fixed in the openstack/cinder 13.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/queens)

Reviewed: https://review.openstack.org/644935
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=8d7675783b6453c8b7ed3396b681be74f04708ce
Submitter: Zuul
Branch: stable/queens

commit 8d7675783b6453c8b7ed3396b681be74f04708ce
Author: Vipin Balachandran <email address hidden>
Date: Fri May 25 13:17:51 2018 -0700

    Fix group availability zone-backend host mismatch

    Group availability zone is not set correctly in scheduler filter
    properties which results in group availability zone-backend host
    mismatch. This can lead to volume create failure for volumes in
    the group. Fixing it by setting the availability zone in the
    request spec in scheduler RPC call.

    Change-Id: Icfa437d2d81ed29d0aceee776d86e28862c85274
    Closes-bug: 1773446
    (cherry picked from commit e08da42d81a6f4a5cbb72216ecddc0c4cf3807f4)
    (cherry picked from commit 6ca3f2badfc76343db74ce6cea4b91b1c0fc6d17)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 12.0.7

This issue was fixed in the openstack/cinder 12.0.7 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.