[IBM GPFS] NFS driver does same filesystem check locally and fail initializing the driver in copy-on-write mode

Bug #1947134 reported by Digvijay Ukirde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Digvijay Ukirde

Bug Description

IBM Spectrum Scale cinder driver (GPFS) fails to initialize the driver while doing the _same_filesystem check locally. Ideally, it should do the check on the Spectrum Scale node where the actual GPFS file system is mounted. This issue will only occur when gpfs_images_share_mode is set to copy_on_write.

2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager Traceback (most recent call last):
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 469, in _init_host
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager self.driver.check_for_setup_error()
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/ibm/gpfs.py", line 440, in check_for_setup_error
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager self.configuration.gpfs_images_dir)):
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/ibm/gpfs.py", line 140, in _same_filesystem
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager return os.lstat(path1).st_dev == os.lstat(path2).st_dev
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager OSError: [Errno 2] No such file or directory: '/ibm/fs1/openstack/cinder/volumes'
2021-09-21 07:30:22.591 2932 ERROR cinder.volume.manager
2021-09-21 07:30:26.592 2932 INFO cinder.volume.manager [req-4984ca62-8e36-4d36-8688-b82fa7f7675b - - - - -] Starting volume driver GPFSNFSDriver (1.0)
2021-09-21 07:30:28.319 2932 ERROR cinder.volume.manager [req-4984ca62-8e36-4d36-8688-b82fa7f7675b - - - - -] Failed to initialize driver.: OSError: [Errno 2] No such file or directory: '/ibm/fs1/openstack/cinder/volumes'

Changed in cinder:
assignee: nobody → Digvijay Ukirde (digvijay-ukirde)
Changed in cinder:
status: New → In Progress
summary: - GPFS NFS driver does same filesystem check locally and fail initializing
- the driver in copy-on-write mode
+ [IBM GPFS] NFS driver does same filesystem check locally and fail
+ initializing the driver in copy-on-write mode
Changed in cinder:
importance: Undecided → Medium
tags: added: copy-on-write gpfs ibm
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/813984
Committed: https://opendev.org/openstack/cinder/commit/dcc191646985fa0be76ee763935ef37a8456d1e6
Submitter: "Zuul (22348)"
Branch: master

commit dcc191646985fa0be76ee763935ef37a8456d1e6
Author: digvijay2016 <email address hidden>
Date: Thu Oct 14 07:24:18 2021 -0400

    Fixed copy-on-write mode in GPFS NFS driver

    IBM Spectrum Scale cinder driver (GPFS) support copy-on-write feature
    in all the configuration. Resolving the bug mentioned below will
    enable mmclone feature of the IBM Spectrum Scale filesystem to provide
    better performance while configured in GPFS NFS mode.

    Closes-Bug: #1947134
    Closes-Bug: #1947123
    Change-Id: I3e77c890c7abca85dab92500eae989b4dff9824d

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

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/cinder/+/817263

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

Reviewed: https://review.opendev.org/c/openstack/cinder/+/817263
Committed: https://opendev.org/openstack/cinder/commit/6c64d92a7801d12bd44cc3b19fd10e4193b1bad8
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 6c64d92a7801d12bd44cc3b19fd10e4193b1bad8
Author: digvijay2016 <email address hidden>
Date: Thu Oct 14 07:24:18 2021 -0400

    Fixed copy-on-write mode in GPFS NFS driver

    IBM Spectrum Scale cinder driver (GPFS) support copy-on-write feature
    in all the configuration. Resolving the bug mentioned below will
    enable mmclone feature of the IBM Spectrum Scale filesystem to provide
    better performance while configured in GPFS NFS mode.

    Closes-Bug: #1947134
    Closes-Bug: #1947123
    Change-Id: I3e77c890c7abca85dab92500eae989b4dff9824d
    (cherry picked from commit dcc191646985fa0be76ee763935ef37a8456d1e6)

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/cinder/+/817833

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

Reviewed: https://review.opendev.org/c/openstack/cinder/+/817833
Committed: https://opendev.org/openstack/cinder/commit/0e3f03529a4fa45674397cea09e29876a660976c
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 0e3f03529a4fa45674397cea09e29876a660976c
Author: digvijay2016 <email address hidden>
Date: Thu Oct 14 07:24:18 2021 -0400

    Fixed copy-on-write mode in GPFS NFS driver

    IBM Spectrum Scale cinder driver (GPFS) support copy-on-write feature
    in all the configuration. Resolving the bug mentioned below will
    enable mmclone feature of the IBM Spectrum Scale filesystem to provide
    better performance while configured in GPFS NFS mode.

    Closes-Bug: #1947134
    Closes-Bug: #1947123
    Change-Id: I3e77c890c7abca85dab92500eae989b4dff9824d
    (cherry picked from commit dcc191646985fa0be76ee763935ef37a8456d1e6)
    (cherry picked from commit 6c64d92a7801d12bd44cc3b19fd10e4193b1bad8)

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

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

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

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

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

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

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.