Possible race conditions with cinder (nfs) store

Bug #1870289 reported by Rajat Dhasmana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Fix Released
Undecided
Unassigned
Train
Fix Released
Undecided
Unassigned
Ussuri
Fix Released
Undecided
Unassigned

Bug Description

With cinder configured as glance store and nfs as cinder backend, there might be a possible race when creating multiple images concurrently during mounting.

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

Reviewed: https://review.opendev.org/716874
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=f5d46996139593f6249138bcc9f09b6120f0034a
Submitter: Zuul
Branch: master

commit f5d46996139593f6249138bcc9f09b6120f0034a
Author: whoami-rajat <email address hidden>
Date: Wed Apr 1 14:18:44 2020 +0000

    Add lock per share for cinder nfs mount/umount

    With cinder configured as glance store and nfs as cinder backend,
    if we create multiple images concurrently into the same share,
    there might be race conditions.
    This patch ensures a lock per export to avoid the race conditions.

    This patch also introduces a reference counting mechamism for unmounting
    which will unmount the share if no active thread/process is using it.

    Closes-Bug: #1870289

    Change-Id: I9197f64e29a0ae2e0a58186f1a70aa134f7f1db6

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/726914

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

Reviewed: https://review.opendev.org/726914
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=b37e7f2f3c3faf3b6e4d11eeb3e866211e13b85e
Submitter: Zuul
Branch: stable/ussuri

commit b37e7f2f3c3faf3b6e4d11eeb3e866211e13b85e
Author: whoami-rajat <email address hidden>
Date: Wed Apr 1 14:18:44 2020 +0000

    Add lock per share for cinder nfs mount/umount

    With cinder configured as glance store and nfs as cinder backend,
    if we create multiple images concurrently into the same share,
    there might be race conditions.
    This patch ensures a lock per export to avoid the race conditions.

    This patch also introduces a reference counting mechamism for unmounting
    which will unmount the share if no active thread/process is using it.

    Closes-Bug: #1870289

    Change-Id: I9197f64e29a0ae2e0a58186f1a70aa134f7f1db6
    (cherry picked from commit f5d46996139593f6249138bcc9f09b6120f0034a)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance_store (stable/train)

Reviewed: https://review.opendev.org/726650
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=bc62bb4ab3874cd5938371faa8a0cb660a1eb2fd
Submitter: Zuul
Branch: stable/train

commit bc62bb4ab3874cd5938371faa8a0cb660a1eb2fd
Author: whoami-rajat <email address hidden>
Date: Wed Apr 1 14:18:44 2020 +0000

    Add lock per share for cinder nfs mount/umount

    With cinder configured as glance store and nfs as cinder backend,
    if we create multiple images concurrently into the same share,
    there might be race conditions.
    This patch ensures a lock per export to avoid the race conditions.

    This patch also introduces a reference counting mechamism for unmounting
    which will unmount the share if no active thread/process is using it.

    Closes-Bug: #1870289

    Change-Id: I9197f64e29a0ae2e0a58186f1a70aa134f7f1db6
    (cherry picked from commit f5d46996139593f6249138bcc9f09b6120f0034a)
    (cherry picked from commit b37e7f2f3c3faf3b6e4d11eeb3e866211e13b85e)

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

This issue was fixed in the openstack/glance_store 2.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance_store train-eol

This issue was fixed in the openstack/glance_store train-eol 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.