#5152 RFE: Should be able to install and configure ipa-server during installation using kickstart
Opened by pvoborni. Modified

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1225336

Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.

Description of problem:
Trying to install and configure ipa-server from %post script during
installation. By default, it starts services and if services doesn't get
started, it fails. However, systemd doesn't allow services to run in a chroot.
This is affecting ipa-server-install in a kickstart environment.
As a workaround we'd like to be able to install the ipa server without starting
the daemon.
For ipa-client, we already have a RFE filed:
RFE: Be able to request certificates without certmonger service running
https://bugzilla.redhat.com/show_bug.cgi?id=1134497
From anaconda-post-ipa-server.log file:
Configuring directory server (dirsrv): Estimated time 1 minute
  [1/38]: creating directory server user
  [2/38]: creating directory server instance
ipa         : CRITICAL failed to create ds instance Command
''/usr/sbin/setup-ds.pl' '--silent' '--logfile' '-' '-f' '/tmp/tmp1mY7bz''
returned non-zero exit status 1
ipa         : CRITICAL Failed to restart the directory server (). See the
installation log for details.
  [3/38]: adding default schema
  [4/38]: enabling memberof plugin
  [error] timeout:
From ipaserver-install.log file:
2015-05-21T16:50:09Z DEBUG stderr=
2015-05-21T16:50:09Z CRITICAL failed to create ds instance Command
''/usr/sbin/setup-ds.pl' '--silent' '--logfile' '-' '-f' '/t
mp/tmp1mY7bz'' returned non-zero exit status 1
2015-05-21T16:50:09Z DEBUG restarting ds instance
2015-05-21T16:50:09Z DEBUG Starting external process
2015-05-21T16:50:09Z DEBUG args='/bin/systemctl' '--system' 'daemon-reload'
2015-05-21T16:50:09Z DEBUG Process finished, return code=0
2015-05-21T16:50:09Z DEBUG stdout=
2015-05-21T16:50:09Z DEBUG stderr=Running in chroot, ignoring request.
2015-05-21T16:50:09Z DEBUG Starting external process
2015-05-21T16:50:09Z DEBUG args='/bin/systemctl' 'restart'
'dirsrv@EXAMPLE-TEST-LOCAL.service'
2015-05-21T16:50:09Z DEBUG Process finished, return code=0
2015-05-21T16:50:09Z DEBUG stdout=
2015-05-21T16:50:09Z DEBUG stderr=Running in chroot, ignoring request.

Metadata Update from @pvoborni:
- Issue assigned to someone
- Issue set to the milestone: Future Releases

I'm inclined to close this as cantfix because doing an install without starting services is not possible.

Metadata Update from @rcritten:
- Issue close_status updated to: None

Metadata