I have found this messages about problems running freipa in ubuntu:
https://www.redhat.com/archives/freeipa-devel/2011-September/msg00407.html
https://www.redhat.com/archives/freeipa-devel/2011-September/msg00408.html

and this ticket:
https://fedorahosted.org/freeipa/ticket/1887

I created the nss database with null password, run an ipa-client-install 
--uninstall and tried to join the domain only to find a problem configuring ntp 
because the installation script tries to modify a sysconfig file that only 
exists in redhat systems:
root        : DEBUG    Backing up system configuration file '/etc/ntp.conf'
root        : DEBUG    Saving Index File to 
'/var/lib/ipa-client/sysrestore/sysrestore.index'
root        : DEBUG    Backing up system configuration file 
'/etc/sysconfig/ntpd'
root        : DEBUG      -> Not backing up - '/etc/sysconfig/ntpd' doesn't exist
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 1292, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 1279, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 1247, in install
    ipaclient.ntpconf.config_ntp(ntp_server, fstore, statestore)
  File "/usr/lib/python2.7/dist-packages/ipaclient/ntpconf.py", line 127, in 
config_ntp
    __write_config(path_ntp_sysconfig, ntp_sysconfig)
  File "/usr/lib/python2.7/dist-packages/ipaclient/ntpconf.py", line 94, in 
__write_config
    fd = open(path, "w")
IOError: [Errno 2] No such file or directory: '/etc/sysconfig/ntpd'
pasqual@ubuntuprovesfreeipa:~$

as a workaround I comment this lines in 
/usr/lib/python2.7/dist-packages/ipaclient/ntpconf.py :
__backup_config(path_ntp_sysconfig, fstore)
__write_config(path_ntp_sysconfig, ntp_sysconfig)
ipaservices.restore_context(path_ntp_sysconfig)

after that the install can finnish correctly although there are some
minor errors in the log (which I attach). I'm now testing if the system
is functional (it has bad look)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997990

Title:
  fail joining to a freeipa server with ipa-client-install

To manage notifications about this bug go to:
https://bugs.launchpad.net/freeipa/+bug/997990/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to