#9397 automountlocation-tofiles is not working after removing indirect automount map.
Closed: fixed 11 months ago by frenaud. Opened a year ago by rjeffman.


When removing an automountmap that was created with autmountmap-add-indirect with the default parent map (auto.master) the indirect key created is not removed, making automountlocation-tofiles to fail for the location.

Steps to Reproduce

[root@rhel88 ~]# ipa automountlocation-add reproducer
Added automount location "reproducer"
  Location: reproducer
[root@rhel88 ~]# ipa automountmap-add-indirect reproducer rep_map --mount indirect 
Added automount map "rep_map"
  Map: rep_map
[root@rhel88 ~]# ipa automountlocation-tofiles reproducer
/-  /etc/auto.direct
indirect    /etc/rep_map

maps not connected to /etc/auto.master:
[root@rhel88 ~]# ipa automountmap-del reproducer rep_map
Deleted automount map "rep_map"
[root@rhel88 ~]# ipa automountlocation-tofiles reproducer
ipa: ERROR: rep_map: automount map not found


[root@rhel88 ~]# rpm -q ipa-server ipa-client 389-ds-base krb5-server

Additional info:

The key created for the indirect map is still available, and to fix the environment it must be explicitly removed.

[root@rhel88 ~]# ipa automountkey-find reproducer auto.master
2 automount keys matched
  Key: /-
  Mount information: auto.direct

  Key: indirect
  Mount information: rep_map

If not using auto.master as the parent map, if the parent map is not connected to auto.master, the location still works, but a key is also not removde.

Metadata Update from @rcritten:
- Issue assigned to rcritten

a year ago


  • d98d5e4 Remove all references to deleted indirect map from parent map


  • 9762c87 Remove all references to deleted indirect map from parent map


  • 2c402c4 Remove all references to deleted indirect map from parent map

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

11 months ago

Log in to comment on this ticket.