[SRU] Cinder backup of a volume is in error state with fail_reason: data must be bytes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Corey Bryant | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
cinder (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
When creating a cinder backup of a volume when using ceph as a back end and the python3 version of cinder, the backup is in error state with fail_reason: data must be bytes.
This clearly is a python3 problem. But it is unclear to me which package is at fault. python3-cinder, ceph-common, python3-rados.
$ cinder backup-list
+------
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+------
| 75bfe189-
+------
$ cinder backup-show 75bfe189-
+------
| Property | Value |
+------
| availability_zone | nova |
| container | cinder-backup |
| created_at | 2018-10-
| data_timestamp | 2018-10-
| description | None |
| fail_reason | data must be bytes |
| has_dependent_
| id | 75bfe189-
| is_incremental | False |
| metadata | {} |
| name | demo-bak |
| object_count | 0 |
| os-backup-
| size | 1 |
| snapshot_id | None |
| status | error |
| updated_at | 2018-10-
| volume_id | 64c5a514-
+------
cinder-backup.log:
e7545f300fb23 38ecce7606e84e1
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
Packages:
ii cinder-api 2:13.0.
ii cinder-backup 2:13.0.
ii cinder-common 2:13.0.
ii cinder-scheduler 2:13.0.
ii cinder-volume 2:13.0.
ii python3-cinder 2:13.0.
ii ceph-common 13.2.1+
ii libcephfs2 13.2.1+
ii python-cephfs 13.2.1+
ii librados2 13.2.1+
ii libradosstriper1 13.2.1+
ii python-rados 13.2.1+
ii python3-rados 13.2.1+
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3-cinder 2:13.0.
ProcVersionSign
Uname: Linux 4.15.0-36-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
CrashDB:
{
}
Date: Fri Oct 19 23:20:06 2018
Ec2AMI: ami-000001ca
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.blue
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ExecutablePath: /usr/bin/
InterpreterPath: /usr/bin/python3.6
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/false
Python3Details: /usr/bin/python3.6, Python 3.6.6, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
SourcePackage: cinder
UpgradeStatus: No upgrade log present (probably fresh install)
[Test Case]
Deploy OpenStack with a python 3 cinder having a ceph backend. Create a cinder volume backup and ensure it is successful.
[Regression Potential]
The patch that is cherry-picked has landed upstream, minimizing the potential of regression.
Changed in cloud-archive: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in cinder (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
no longer affects: | cinder (Ubuntu Dd-series) |
Changed in cloud-archive: | |
status: | Triaged → Fix Committed |
Looks like python3-cinder
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging. rpc.server File "/usr/lib/ python3/ dist-packages/ cinder/ backup/ drivers/ ceph.py" , line 139, in set rpc.server meta_obj. write(json_ meta)
2018-10-18 22:17:20.284 15452 ERROR oslo_messaging.
dpkg -S /usr/lib/ python3/ dist-packages/ cinder/ backup/ drivers/ ceph.py python3/ dist-packages/ cinder/ backup/ drivers/ ceph.py
python3-cinder: /usr/lib/