Log format is incorrect in swift writer when etag and md5 are not equal

Bug #1906605 reported by ZhaoYixin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Low
ZhaoYixin

Bug Description

Description
===========
When using the swift driver to put object in cinder-backup, when etag and md5 are not equal, the error log format is incorrect.

Expected result
===============
2020-11-21 06:58:19.254 15 ERROR cinder.backup.chunkeddriver [-] Invalid backup: error writing object to swift, MD5 of object in swift 01c4f20767d0466ce2bec1814676ce03 is not the same as MD5 of object sent to swift 1323c9a9af67a59178112f74e65036e1: InvalidBackup: Invalid backup: error writing object to swift, MD5 of object in swift 01c4f20767d0466ce2bec1814676ce03 is not the same as MD5 of object sent to swift 1323c9a9af67a59178112f74e65036e1

Actual result
=============
2020-11-21 06:58:19.254 15 ERROR cinder.backup.chunkeddriver [-] Invalid backup: (u'error writing object to swift, MD5 of object in swift %(etag)s is not the same as MD5 of object sent to swift %(md5)s', {'etag': '01c4f20767d0466ce2bec1814676ce03', 'md5': '1323c9a9af67a59178112f74e65036e1'}): InvalidBackup: Invalid backup: (u'error writing object to swift, MD5 of object in swift %(etag)s is not the same as MD5 of object sent to swift %(md5)s', {'etag': '01c4f20767d0466ce2bec1814676ce03', 'md5': '1323c9a9af67a59178112f74e65036e1'})

ZhaoYixin (zhaoyixin)
Changed in cinder:
status: New → In Progress
assignee: nobody → ZHAOYIXIN (zhaoyixinlc)
Changed in cinder:
importance: Undecided → Low
Revision history for this message
michael-mcaleer (mmcaleer) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 18.0.0.0rc1

This issue was fixed in the openstack/cinder 18.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.