[Bug 1838691] Re: Can't create incremental backups when using python3 and newer Ceph versions.

Corey Bryant corey.bryant at canonical.com
Mon Jan 13 14:29:01 UTC 2020


This bug was fixed in the package cinder - 2:14.0.2-0ubuntu1~cloud0
---------------

 cinder (2:14.0.2-0ubuntu1~cloud0) bionic-stein; urgency=medium
 .
   * New upstream release for the Ubuntu Cloud Archive.
 .
 cinder (2:14.0.2-0ubuntu1) disco; urgency=medium
 .
   * New upstream point release for OpenStack Stein (LP: #1849192):
     - Includes fix for SIGABRT in cinder-backup/ceph (LP: #1838691).
     - d/p/Fix-DetachedInstanceError-for-VolumeAttachment.patch: Drop,
       included in release.
 .
 cinder (2:14.0.1-0ubuntu3) disco; urgency=medium
 .
   * d/tests/cinder-daemons: As of disco, sqlalchemy defaults to mysqldb so
     we must override the driver to use pymysql (LP: #1845321).
 .
 cinder (2:14.0.1-0ubuntu2) disco; urgency=medium
 .
   * d/p/Fix-DetachedInstanceError-for-VolumeAttachment.patch: Cherry
     pick fix for issue with DetachedInstanceError being generated due
     to compatibility issues with SQLAlchemy (LP: #1834845)


** Changed in: cloud-archive/stein
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Ubuntu.
https://bugs.launchpad.net/bugs/1838691

Title:
  Can't create incremental backups when using python3 and newer Ceph
  versions.

Status in Cinder:
  Fix Released
Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive rocky series:
  Fix Released
Status in Ubuntu Cloud Archive stein series:
  Fix Released
Status in Ubuntu Cloud Archive train series:
  Fix Released
Status in cinder package in Ubuntu:
  Fix Released
Status in cinder source package in Disco:
  Won't Fix
Status in cinder source package in Eoan:
  Fix Released

Bug description:

  During the incremental backups creation, unexpectedly the
  '_cleanup_incomplete_backup_operations' method is called aborting the
  backup:

  DEBUG cinder.backup.drivers.ceph Volume file is RBD: attempting
  incremental backup. backup /usr/lib/python3.6/site-
  packages/cinder/backup/drivers/ceph.py:955

  INFO cinder.service [-] Starting cinder-backup node (version 14.0.1)

  DEBUG oslo_concurrency.lockutils Lock "cleanup_incomplete_backups_1"
  acquired by
  "cinder.backup.manager.BackupManager._cleanup_incomplete_backup_operations"
  :: waited 0.001s inner /usr/lib/python3.6/site-
  packages/oslo_concurrency/lockutils.py:327

  INFO cinder.backup.manager Cleaning up incomplete backup operations.

  This happens when using ceph mimic with Python 3.x. The connections
  with Librbd[1] suddenly abort connections before accessing the data.
  [2]

  How to reproduce:

  >>> import rbd
  >>> import rados
  >>> cluster = rados.Rados(conffile='/etc/ceph/ceph.conf')
  >>> cluster.connect()
  >>> ioctx = cluster.open_ioctx('backups')
  >>> image = rbd.Image(ioctx, 'volume-2d2c563d-c567-431a-9b25-ea06af83c598.backup.base')
  >>> snaps = image.list_snaps()
  >>> image.close()
  >>> list(snaps)
  Aborted (core dumped)

  Expected output: snapshots list
  >>> list(snaps)
  [{'id': 4, 'size': 1073741824, 'name': 'backup.0dbaab38-595e-4e8a-8ecd-7ab60a879903.snap.1563912753.3520913', 'namespace': 0}, {'id': 5, 'size': 1073741824, 'name': 'backup.c9aaaf88-9ce1-4502-aa23-1dddfb1d45bb.snap.1564609930.8021717', 'namespace': 0}]

  Actual output: core dumped

  
  [1] https://docs.ceph.com/docs/giant/rbd/librbdpy/
  [2] https://opendev.org/openstack/cinder/src/branch/master/cinder/backup/drivers/ceph.py#L649

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1838691/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list