By searching the cinder code, I found the snapshot object that is being used in the method is a temporary object made via namedtuple, and that means the OVO attribute '_context' is missing since it's made [1]. I don't have an environment by hand, not sure this change can fix the error.
By searching the cinder code, I found the snapshot object that is being used in the method is a temporary object made via namedtuple, and that means the OVO attribute '_context' is missing since it's made [1]. I don't have an environment by hand, not sure this change can fix the error.
```
'volume_ id', 'id', 'volume', '_context']
Snapshot = collections. namedtuple( 'Snapshot' , snap_attrs)
temp_ snapshot = Snapshot( volume_ name=volume_ name,
volume_ size=src_ vref.size,
name= 'clone- snap-%s' % src_vref.id,
volume_ id=src_ vref.id,
id='tmp- snap-%s' % src_vref.id,
volume= src_vref,
_context= src_vref. _context)
snap_attrs = ['volume_name', 'volume_size', 'name',
```
[1]: https:/ /github. com/openstack/ cinder/ blob/5dcf4f52ad a36b98d08584cd3 1a55698006d9e35 /cinder/ volume/ drivers/ remotefs. py#L1044