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)
I have found this messages about problems running freipa in ubuntu: /www.redhat. com/archives/ freeipa- devel/2011- September/ msg00407. html /www.redhat. com/archives/ freeipa- devel/2011- September/ msg00408. html
https:/
https:/
and this ticket: /fedorahosted. org/freeipa/ ticket/ 1887
https:/
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: ipa-client/ sysrestore/ sysrestore. index' /ntpd' /ntpd' doesn't exist ipa-client- install" , line 1292, in <module> exit(main( )) ipa-client- install" , line 1279, in main ipa-client- install" , line 1247, in install ntpconf. config_ ntp(ntp_ server, fstore, statestore) python2. 7/dist- packages/ ipaclient/ ntpconf. py", line 127, in config_ntp config( path_ntp_ sysconfig, ntp_sysconfig) python2. 7/dist- packages/ ipaclient/ ntpconf. py", line 94, in __write_config /ntpd' ubuntuprovesfre eipa:~$
root : DEBUG Backing up system configuration file '/etc/ntp.conf'
root : DEBUG Saving Index File to '/var/lib/
root : DEBUG Backing up system configuration file '/etc/sysconfig
root : DEBUG -> Not backing up - '/etc/sysconfig
Traceback (most recent call last):
File "/usr/sbin/
sys.
File "/usr/sbin/
rval = install(options, env, fstore, statestore)
File "/usr/sbin/
ipaclient.
File "/usr/lib/
__write_
File "/usr/lib/
fd = open(path, "w")
IOError: [Errno 2] No such file or directory: '/etc/sysconfig
pasqual@
as a workaround I comment this lines in /usr/lib/ python2. 7/dist- packages/ ipaclient/ ntpconf. py : config( path_ntp_ sysconfig, fstore) config( path_ntp_ sysconfig, ntp_sysconfig) restore_ context( path_ntp_ sysconfig)
__backup_
__write_
ipaservices.
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)