#3081 ipa-client-automount error: TypeError: exit expected at most 1 arguments, got 2
Closed: Fixed None Opened 11 years ago by yizhangid.

During my try-out of ipa-client-automount command, I often see the following error:

[root@f17apple (Fedora17-i386) /] ipa-client-automount --server=f17blue.yzhang.redhat.com --location=ldaptest
IPA server: f17blue.yzhang.redhat.com
Location: ldaptest
Traceback (most recent call last):
  File "/sbin/ipa-client-automount", line 464, in <module>
    sys.exit(main())
  File "/sbin/ipa-client-automount", line 436, in main
    sys.exit("Cannot connect to the server due to generic error: %s", str(e))
TypeError: exit expected at most 1 arguments, got 2
  1. When above error shows up, re-run the same command always success -- I made no change on ipa server side nor in ipa client side.
  2. I have tried uninstall ipa-client-automount and re-install it, plus some systemctl stop/start/restart autofs.service, the same error appears sometimes, but I haven't found the exact condition to trigger the error.

Additional information: what I have on ipa server:

[root@f17blue (Fedora17-x86_64) share] ipa automountlocation-tofiles ldaptest
/etc/auto.master:
/-  /etc/auto.direct
---------------------------
/etc/auto.direct:
/share  -ro,soft f17blue.yzhang.redhat.com:/share

maps not connected to /etc/auto.master:
[root@f17blue (Fedora17-x86_64) share] hostname
f17blue.yzhang.redhat.com
[root@f17blue (Fedora17-x86_64) share] ls /share
ipaserver.txt  ipausers.txt

full terminal output of run and rerun

[root@f17apple (Fedora17-i386) /] ipa-client-automount --server=f17blue.yzhang.redhat.com --location=ldaptest

IPA server: f17blue.yzhang.redhat.com

Location: ldaptest

Traceback (most recent call last):

File "/sbin/ipa-client-automount", line 464, in <module>
sys.exit(main())

File "/sbin/ipa-client-automount", line 436, in main
sys.exit("Cannot connect to the server due to generic error: %s", str(e))

TypeError: exit expected at most 1 arguments, got 2

[root@f17apple (Fedora17-i386) /] ipa-client-automount --server=f17blue.yzhang.redhat.com --location=ldaptest

IPA server: f17blue.yzhang.redhat.com

Location: ldaptest

Continue to configure the system with these values? [no]: yes

Configured /etc/nsswitch.conf

Configured /etc/sysconfig/nfs

Configured /etc/idmapd.conf

Started nfs-idmap.service

Started nfs-secure.service

Restarting sssd, waiting for it to become available.

Started autofs.service

[root@f17apple (Fedora17-i386) /] cd /share

[root@f17apple (Fedora17-i386) share] pwd

/share

[root@f17apple (Fedora17-i386) share] ll

total 8

-rw-r--r--. 1 root root 137 Sep 11 11:23 ipaserver.txt

-rw-r--r--. 1 root root 132 Sep 11 11:47 ipausers.txt

Description formatting fixed.

Metadata Update from @yizhangid:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 3.0 RC2

7 years ago

Login to comment on this ticket.

Metadata