During create_backup failure handling, backup_update fails with
DataError ("Data too long for column") if the fail_reason is
greater than 255 characters. As a result, backup status is stuck
in 'creating' state. This patch avoids the problem by truncating
fail_reason to 255 characters before update.
Reviewed: https:/ /review. openstack. org/127261 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=82716b4ac83 6024b968c76db75 be8a92ede0e226
Committed: https:/
Submitter: Jenkins
Branch: master
commit 82716b4ac836024 b968c76db75be8a 92ede0e226
Author: Vipin Balachandran <email address hidden>
Date: Thu Oct 9 19:35:46 2014 +0530
Truncate fail_reason to column length
During create_backup failure handling, backup_update fails with
DataError ("Data too long for column") if the fail_reason is
greater than 255 characters. As a result, backup status is stuck
in 'creating' state. This patch avoids the problem by truncating
fail_reason to 255 characters before update.
Closes-Bug: #1376199 f7ea110caab8cf4 140cf5c5c9e
Change-Id: If0d616b81d3869