nas_secure_file_permissions not followed for NFS snapshots
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Undecided
|
Marc Methot |
Bug Description
NFS snapshots copy forces permissions '666'.
When creating a snapshot the permissions are applied adequately, however this is not the case when creating an instance from snapshot.
This is due to the use of `_set_rw_
~~~
./cinder/
~~~
def _copy_volume_
"""Copy data from snapshot to destination volume.
This is done with a qemu-img convert to raw/qcow2 from the snapshot
qcow2.
"""
info_path = self._local_
snap_info = self._read_
vol_path = self._local_
# Find the file which backs this file, which represents the point
# when this snapshot was created.
img_info = self._qemu_
if self.configurat
else:
~~~
This function:
~~~
def _set_rw_
"""Sets 666 permissions for the path."""
~~~
Changed in cinder: | |
assignee: | nobody → Marc Methot (mb-methot) |
Fix proposed to branch: master /review. opendev. org/734343
Review: https:/