rbd_handle.close() doesn't close connection to ceph

Bug #1628626 reported by Cheng Li on 2016-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Undecided
Cheng Li

Bug Description

env: rbd as cinder backend, swift as cinder bakcup store.

cinder backup-create makes connection to ceph cluster, and read data from ceph cluster.
Then put data to swift.

The problem is that cinder doesn't close connection to ceph cluster even after the backup is finished.

The connection count increases until exceed max open files, at last, it results in OSError: [Errno 24] Too many open files

Cheng Li (shcli) on 2016-09-28
Changed in os-brick:
assignee: nobody → Cheng Li (shcli)

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

Changed in os-brick:
status: New → In Progress

Reviewed: https://review.openstack.org/378945
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=1d51eb64acebf7bafa277f0060bc5d2c7ca73d52
Submitter: Jenkins
Branch: master

commit 1d51eb64acebf7bafa277f0060bc5d2c7ca73d52
Author: cheng <email address hidden>
Date: Wed Sep 28 18:03:31 2016 +0000

    Close connection to ceph after cinder bakcup

    If we don't close connection to ceph cluster,
    The connection count increases with cinder bakcup until exceed max open files.
    Then rise OSError: [Errno 24] Too many open files

    This patch is to close connection to ceph cluster after cinder backup.

    Change-Id: I2fb243d2a57771dc3589e96db54e998e2c1c8ef7
    Closes-bug: #1628626

Changed in os-brick:
status: In Progress → Fix Released

This issue was fixed in the openstack/os-brick 1.7.0 release.

Reviewed: https://review.openstack.org/386067
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=376638513d1792429653756c24788c913107732d
Submitter: Jenkins
Branch: stable/newton

commit 376638513d1792429653756c24788c913107732d
Author: cheng <email address hidden>
Date: Wed Sep 28 18:03:31 2016 +0000

    Close connection to ceph after cinder bakcup

    If we don't close connection to ceph cluster,
    The connection count increases with cinder bakcup until exceed max open files.
    Then rise OSError: [Errno 24] Too many open files

    This patch is to close connection to ceph cluster after cinder backup.

    Change-Id: I2fb243d2a57771dc3589e96db54e998e2c1c8ef7
    Closes-bug: #1628626
    (cherry picked from commit 1d51eb64acebf7bafa277f0060bc5d2c7ca73d52)

tags: added: in-stable-newton

This issue was fixed in the openstack/os-brick 1.6.2 release.

Change abandoned by Sean McGinnis (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/397602
Reason: stable/mitaka is now end of life.

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

Other bug subscribers