Bug 1396054 - autofs: state.c:627: assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
Summary: autofs: state.c:627: assertion failed: ap->state == ST_READY || ap->state == ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: autofs
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ian Kent
QA Contact: xiaoli feng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-17 11:06 UTC by xiaoli feng
Modified: 2016-12-16 09:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-16 09:17:52 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description xiaoli feng 2016-11-17 11:06:08 UTC
Description of problem:
Test autofs hosts map, happen this error:

ls: cannot access /net/hp-dl380pgen8-02-vm-7.lab.bos.redhat.com/tmp: No such file or directory

The debug log:

Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: state.c:627: assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: nextstate:85: write failed Bad file descriptor
Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: state.c:627: assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: nextstate:85: write failed Bad file descriptor
Nov 17 05:36:48 hp-dl380pgen8-02-vm-7 rpc.mountd[13565]: Caught signal 15, un-registering and exiting.

Version-Release number of selected component (if applicable):
2.6.32-671.el6.x86_64

How reproducible:
100%, but only first time boot from installing system can reproduce.

Steps to Reproduce:
1. reproducer script:
echo "/ *(rw,insecure,async)" >/etc/exports
echo "/tmp *(rw,insecure,async)" >> /etc/exports
echo "/net  -hosts" > /etc/auto.master
service   autofs start
service nfs start
ls /net/$HOSTNAME/tmp
service autofs stop
service nfs stop


Actual results:

auto mount nfs fail

Expected results:

auto mount nfs successfully

Additional info:

Comment 1 xiaoli feng 2016-11-17 11:15:12 UTC
Sorry, Version-Release number of selected component is
autofs-5.0.5-126.el6

Comment 2 Ian Kent 2016-11-17 11:23:56 UTC
I'll try and reproduce this and see if I can see what's going on.

But rpc.mountd getting a SIGTERM and exiting, likely in middle
of servicing a request from automount(8) is a bit suspicious.

Comment 5 Ian Kent 2016-11-18 00:44:07 UTC
(In reply to xiaoli feng from comment #0)
> Description of problem:
> Test autofs hosts map, happen this error:
> 
> ls: cannot access /net/hp-dl380pgen8-02-vm-7.lab.bos.redhat.com/tmp: No such
> file or directory
> 
> The debug log:
> 
> Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: state.c:627:
> assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
> Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: nextstate:85: write
> failed Bad file descriptor
> Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: state.c:627:
> assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
> Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: nextstate:85: write
> failed Bad file descriptor
> Nov 17 05:36:48 hp-dl380pgen8-02-vm-7 rpc.mountd[13565]: Caught signal 15,
> un-registering and exiting.

This looks like it is being done on the same host.
Is that correct?

Can you re-run this test and post the autofs debug log please?

Ian

Comment 6 xiaoli feng 2016-11-18 02:42:02 UTC
(In reply to Ian Kent from comment #5)
> (In reply to xiaoli feng from comment #0)
> > Description of problem:
> > Test autofs hosts map, happen this error:
> > 
> > ls: cannot access /net/hp-dl380pgen8-02-vm-7.lab.bos.redhat.com/tmp: No such
> > file or directory
> > 
> > The debug log:
> > 
> > Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: state.c:627:
> > assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
> > Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: nextstate:85: write
> > failed Bad file descriptor
> > Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: state.c:627:
> > assertion failed: ap->state == ST_READY || ap->state == ST_EXPIRE
> > Nov 17 05:35:33 hp-dl380pgen8-02-vm-7 automount[13638]: nextstate:85: write
> > failed Bad file descriptor
> > Nov 17 05:36:48 hp-dl380pgen8-02-vm-7 rpc.mountd[13565]: Caught signal 15,
> > un-registering and exiting.
> 
> This looks like it is being done on the same host.
> Is that correct?

Yes, on the same host. This test only use one host.

> 
> Can you re-run this test and post the autofs debug log please?
> 
> Ian


Note You need to log in before you can comment on or make changes to this bug.