ZFSonLinux share created from snapshot inherits access rules

Bug #1645746 reported by Valeriy Ponomaryov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Valeriy Ponomaryov

Bug Description

ZFSonLinux share that was created from snapshot inherits access rules of a parent share. But it should not by design.

Steps to reproduce:
1) create "parent" share
2) add access rule to the "parent" (1) share
3) create snapshot from "parent" (1) share
4) create "child" share from snapshot (3)

Expected result: "child" share does not have access that was added to parent share
Actual result: "child" share does have access that was added to parent share

It can be seen in logs of ZFSonLinux CI job that was reproduced with help of [1], [2] and [3] changes that add/enable scenario tests for this driver.

[1] http://logs.openstack.org/04/402604/3/check/gate-manila-tempest-dsvm-postgres-zfsonlinux-ubuntu-xenial-nv/a956ea7/logs/testr_results.html.gz
[2] https://review.openstack.org/#/c/400758
[3] https://review.openstack.org/#/c/402404
[4] https://review.openstack.org/#/c/402604

Changed in manila:
importance: Undecided → Medium
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
milestone: none → ocata-2
tags: added: driver zfsonlinux
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/406904

Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/406904
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=656dc819061c86ef1b3983279d126d2de4cfefa8
Submitter: Jenkins
Branch: master

commit 656dc819061c86ef1b3983279d126d2de4cfefa8
Author: Valeriy Ponomaryov <email address hidden>
Date: Mon Dec 5 13:45:05 2016 +0200

    [ZFSonLinux] Stop inheriting options creating share from snapshot

    Because, it leads to inheritance of access rules too. That is a bug.
    All other expected options are generated on-fly already.

    Change-Id: Ibe744c9fd001156a8184aa8f955c424cebfb8664
    Closes-Bug: #1645746

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 4.0.0.0b2

This issue was fixed in the openstack/manila 4.0.0.0b2 development milestone.

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.