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.
autmountmap-add-indirect
auto.master
automountlocation-tofiles
[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.master: /- /etc/auto.direct indirect /etc/rep_map --------------------------- /etc/auto.direct: --------------------------- /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 ipa-server-4.9.11-5.module+el8.8.0+18146+a1d8660b.x86_64 ipa-client-4.9.11-5.module+el8.8.0+18146+a1d8660b.x86_64 389-ds-base-1.4.3.32-3.module+el8.8.0+17706+8ab0c717.x86_64 krb5-server-1.18.2-22.el8_7.x86_64
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
master:
ipa-4-10:
ipa-4-9:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)