Bug 1594323

Summary: umount on evicted kclient blocks forever
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ram Raja <rraja>
Component: CephFSAssignee: Patrick Donnelly <pdonnell>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: medium Docs Contact:
Priority: low    
Version: 3.0CC: ceph-eng-bugs, ceph-qe-bugs, john.spray, rperiyas, tchandra
Target Milestone: z5   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.4-32 Ubuntu: ceph_12.2.4-36redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-09 18:27:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ram Raja 2018-06-22 15:49:58 UTC
Description of problem:
Unmount on evicted Ceph kernel client blocks forever.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Mount ceph filesystem using kernel client. So something like,
   ```
   sudo mount.ceph 10.215.99.65:40673:/ /home/rraja/cephfs/ -o name=admin,secret=AQAUzixbe714KxAAUlKEnp++jPPznuE/Lozk0g==
   ```
2. Evict the kernel client,
   ```
   ceph tell mds.0 client evict id=<client-id>
   ```
   you can figure out the client ID by using the following command to list the clients, and matching client.metadata

3. Try unmounting for 30 sec
   ```
   sudo umount  /home/rraja/cephfs/
   ```    

Actual results:
Umount fails (with device busy)

Expected results:
Umount succeeds


Additional info:

Comment 5 Ram Raja 2018-06-22 16:02:32 UTC
> 
3. Try unmounting for 30 sec
   ```
   sudo umount  /home/rraja/cephfs/
   ```   

Meant to say try unmounting. Ignore the 'try for 30 seconds bit'.

Comment 6 Ram Raja 2018-06-22 16:04:25 UTC
(In reply to Ram Raja from comment #0)
> Description of problem:
> Unmount on evicted Ceph kernel client blocks forever.
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 1. Mount ceph filesystem using kernel client. So something like,
>    ```
>    sudo mount.ceph 10.215.99.65:40673:/ /home/rraja/cephfs/ -o
> name=admin,secret=AQAUzixbe714KxAAUlKEnp++jPPznuE/Lozk0g==
>    ```
> 2. Evict the kernel client,
>    ```
>    ceph tell mds.0 client evict id=<client-id>
>    ```
>    you can figure out the client ID by using the following command to list
> the clients, and matching client.metadata
> 
> 3. Try unmounting for 30 sec
>    ```
>    sudo umount  /home/rraja/cephfs/
   ```    

Just umount once, and don't need to repeat for 30 seconds

> 
> Actual results:
> Umount fails (with device busy)
> 
> Expected results:
> Umount succeeds
> 
> 
> Additional info:

Comment 7 Ram Raja 2018-06-22 16:11:18 UTC
(In reply to Ram Raja from comment #6)
> (In reply to Ram Raja from comment #0)
> > Description of problem:
> > Unmount on evicted Ceph kernel client blocks forever.
> > 
> > Version-Release number of selected component (if applicable):
> > 
> > 
> > How reproducible:
> > 
> > 
> > Steps to Reproduce:
> > 1. Mount ceph filesystem using kernel client. So something like,
> >    ```
> >    sudo mount.ceph 10.215.99.65:40673:/ /home/rraja/cephfs/ -o
> > name=admin,secret=AQAUzixbe714KxAAUlKEnp++jPPznuE/Lozk0g==
> >    ```
> > 2. Evict the kernel client,
> >    ```
> >    ceph tell mds.0 client evict id=<client-id>
> >    ```
> >    you can figure out the client ID by using the following command to list
> > the clients, and matching client.metadata
> > 
> > 3. Try unmounting for 30 sec
> >    ```
> >    sudo umount  /home/rraja/cephfs/
>    ```    
> 
> Just umount once, and don't need to repeat for 30 seconds

And please force umount instead of just umount,
```
sudo umount -f /home/rraja/cephfs/
```

> 
> > 
> > Actual results:
> > Umount fails (with device busy)
> > 
> > Expected results:
> > Umount succeeds
> > 
> > 
> > Additional info:

Comment 17 errata-xmlrpc 2018-08-09 18:27:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2375