#1989 installation fails if sssd.conf exists and is already configured
Closed: Fixed None Opened 12 years ago by rcritten.

https://bugzilla.redhat.com/show_bug.cgi?id=746298

Description of problem:

Been messing with the client installer all morning including a lot of failures.
I'm guessing some previous configuration got left hanging around.

# ipa-client-install
Discovery was successful!
Hostname: panther.greyoak.com
Realm: GREYOAK.COM
DNS Domain: greyoak.com
IPA Server: doberman.greyoak.com
BaseDN: dc=greyoak,dc=com


Continue to configure the system with these values? [no]: y
User authorized to enroll computers: admin
Synchronizing time with KDC...
Unable to sync time with IPA NTP server, assuming the time is in sync.
Password for admin@GREYOAK.COM:

Enrolled in IPA realm GREYOAK.COM
Created /etc/ipa/default.conf
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 1271, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 1258, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 1096, in install
    if configure_sssd_conf(fstore, cli_realm, cli_domain, cli_server, options):
  File "/usr/sbin/ipa-client-install", line 686, in configure_sssd_conf
    domain = sssdconfig.new_domain(cli_domain)
  File "/usr/lib/python2.7/site-packages/SSSDConfig.py", line 1564, in
new_domain
    raise DomainAlreadyExistsError
SSSDConfig.DomainAlreadyExistsError

We should rename the bad sssd.conf and create a new one in this case. If the
preserve option is set we should bail out.

Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.1.3 (bug fixing)

7 years ago

Login to comment on this ticket.

Metadata