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

Bug #1628626 reported by Cheng Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
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)
Changed in os-brick:
assignee: nobody → Cheng Li (shcli)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (master)

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

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

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/386067

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 1.7.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (stable/newton)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/397602

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 1.6.2

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on os-brick (stable/mitaka)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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