NFS share with generic driver doesn't survive a service VM reboot

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

Bug Description

I created a NFS share with the generic driver and created one access-list entry. After rebooting the Manila service VM, the share is no longer exported.
Steps to reproduce:
 - Create a Manila share with "manila create"
 - Create a access-list entry with "manila access-allow". The access entry is now in state "active" and on the Manila share VM, there should be an entry in"showmount -e"
 - Reboot service VM with "nova restart"
 - The share is gone (no output on "showmount -e") but "manila access-list" still shows that there is an entry in "active" state

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

It depends on image, does it save its state or not. Restart of m-shr service retries all active rules. But I agree, that this should be handled somehow.

Maybe, we can implement some periodic tast with check of availability of VM, and if it was not available for some time, then try to reassign all rules when it becomes available.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

Or we use /etc/exports and update this file when:
- somebody calls "manila allow-access"
- somebody calls "manila deny-access"
- manila-share service starts
- optional: also periodically

In that case a reboot should bring up all available exports.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

btw. I build my own Manila service image. You can get it here if you want to test it: https://susestudio.com/u/toabctl

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

1) Image storage requires 'log in':

Once you sign in with an account, you can:

    Download
...

2) Driver uses 'exportfs' for NFS and 'net conf' for cifs, no direct file updates.

Changed in manila:
importance: Undecided → High
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
status: New → In Progress
Changed in manila:
milestone: none → juno-rc1
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/119010

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/119010
Committed: https://git.openstack.org/cgit/stackforge/manila/commit/?id=20b810bfb65982b8288f5a694e6fce9c0770ea2d
Submitter: Jenkins
Branch: master

commit 20b810bfb65982b8288f5a694e6fce9c0770ea2d
Author: Valeriy Ponomaryov <email address hidden>
Date: Thu Sep 4 05:12:13 2014 -0400

    Make NFS exports in generic driver permanent

    Generic driver uses 'exportfs' utility for exports handling, but it stores
    exports in temporary file /var/lib/nfs/etab and server loses all exports after
    reboot. This change copies temp exports file to permanent exports file located
    in /etc/exports after each action with exports and makes reexport of all
    shares. After restart of server all exports will be restored from permanent
    file.

    Change-Id: I6a1e7074f18c70df5785d236c6f70c40731cda77
    Closes-Bug: #1358688

Changed in manila:
status: In Progress → Fix Committed
Changed in manila:
status: Fix Committed → Fix Released
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.