Shares cannot be unmounted/destroyed after migration tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
High
|
Goutham Pacha Ravi |
Bug Description
Description
===========
We've had past issues where deleting shares that have been locally mounted (example: manila-data service mounts the share to migrate content) has been troublesome. One of the issues identified is that, when the linux "make-rshared" option is set (it is set by default in most modern Linux systems), a mount is propagated to all namespaces (e.g.: linux containers, dnsmasq/ip namespaces). So, should we ever mount a share on the same system that owns the export, we should wait to unshare the mount across all the namespaces before we attempt to delete the share.
Currently, when we run migration API tests, tests create/
When we tackled this issue in the past, we added a single retry with one second waits around the unmount operation in the zfsonlinux driver: https:/
Migration tests have started failing on Focal Fossa (Ubuntu 20.04 LTS) systems because this retry is insufficient; the error observed on manila-share is captured here: http://
Steps to reproduce
==================
A chronological list of steps which will help reproduce the issue you hit:
* Setup the ZFSOnLinux driver on Ubuntu 20.04 LTS (Focal Fossa)
* Run the host assisted migration tempest test: manila_
It's possible to simulate this without the tempest test using manual share migration commands, but, you've got to type really fast and attempt to delete the share as soon as the share migration has completed :D
Expected result
===============
No share deletion errors
Actual result
=============
Share fails to be deleted (status gets set to "error_deleting")
Environment
===========
1. Exact version of OpenStack Manila you are running: trunk
2. Which storage backend did you use? ZFSOnLinux
3. Which networking type did you use? Neutron/ML2-OVS
Fix proposed to branch: master /review. opendev. org/762212
Review: https:/