Bug 1753056

Summary: [OSP14] cinder-backup backup creation fails with NFS driver
Product: Red Hat OpenStack Reporter: Alan Bishop <abishop>
Component: openstack-cinderAssignee: Alan Bishop <abishop>
Status: CLOSED EOL QA Contact: Tzach Shefi <tshefi>
Severity: medium Docs Contact: Chuck Copello <ccopello>
Priority: medium    
Version: 14.0 (Rocky)CC: abishop, astupnik, bshephar, ccopello, cinder-bugs, dsedgmen, eharney, gkadam, pcaruana, pgrist, ravsingh, spower, tberry, tenobreg, tshefi
Target Milestone: z5Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-13.0.5-8.el7ost Doc Type: Bug Fix
Doc Text:
Cause: Cinder's NFS driver contained a bug that prevented the driver from creating a snapshot during volume clone operations, and cloned volumes are used when backing up cinder NFS volumes. Consequence: Cinder NFS volumes could not be backed up. Fix: Cinder's NFS driver bug has been fixed. Result: Backups of cinder NFS volumes work.
Story Points: ---
Clone Of: 1753055 Environment:
Last Closed: 2020-01-24 12:24:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1753055    
Bug Blocks: 1714805    

Description Alan Bishop 2019-09-18 00:49:23 UTC
+++ This bug was initially created as a clone of Bug #1753055 +++

+++ This bug was initially created as a clone of Bug #1714805 +++

Description of problem:
When creating a snapshot of an active volume, the following error is observed:
Exception during message handling: AttributeError: 'Snapshot' object has no attribute '_context'


Version-Release number of selected component (if applicable):
openstack-cinder-12.0.4-3.el7ost.noarch 


How reproducible:
Every time a backup is attempted of an attached volume

Steps to Reproduce:
1. Create NFS backend for Cinder
2. Attach volume to Instance
3. Try to create snapshot of volume

Actual results:
oslo_messaging.rpc.server AttributeError: 'Snapshot' object has no attribute '_context'
Backup fails

Expected results:
Backup would succeed

Additional info:
This appears to be addressed by: https://review.opendev.org/#/c/570885/