Running ipa-server-install in container / on minimal installation fails with
[2/31]: configuring certificate server instance ipa.ipaserver.install.cainstance.CAInstance: CRITICAL Failed to configure CA instance: Command '/usr/sbin/pkispawn -s CA -f /tmp/tmpD4KOGu' returned non-zero exit status 1 ipa.ipaserver.install.cainstance.CAInstance: CRITICAL See the installation logs and the following files/directories for more information: ipa.ipaserver.install.cainstance.CAInstance: CRITICAL /var/log/pki/pki-tomcat [error] RuntimeError: CA configuration failed. ipa.ipapython.install.cli.install_tool(Server): ERROR CA configuration failed. ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Steps to Reproduce:
1. Run ipa-server-install on system / in container where package hostname is not installed.
Actual results:
ipa-server-install fails. In the ipaserver-install.log, there is 2016-07-08T12:30:43Z DEBUG Starting external process 2016-07-08T12:30:43Z DEBUG args=/usr/sbin/pkispawn -s CA -f /tmp/tmpD4KOGu 2016-07-08T12:30:43Z DEBUG Process finished, return code=1 2016-07-08T12:30:43Z DEBUG stdout= 2016-07-08T12:30:43Z DEBUG stderr=Traceback (most recent call last): File "/usr/sbin/pkispawn", line 802, in <module> main(sys.argv) File "/usr/sbin/pkispawn", line 92, in main dnsdomainname = subprocess.check_output(["dnsdomainname"]) File "/usr/lib64/python2.7/subprocess.py", line 568, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory 2016-07-08T12:30:43Z CRITICAL Failed to configure CA instance: Command '/usr/sbin/pkispawn -s CA -f /tmp/tmpD4KOGu' returned non-zero exit status 1 2016-07-08T12:30:43Z CRITICAL See the installation logs and the following files/directories for more information: 2016-07-08T12:30:43Z CRITICAL /var/log/pki/pki-tomcat 2016-07-08T12:30:43Z DEBUG Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 448, in start_creation
Expected results:
If pkispawn calls dnsdomainname unconditionally, it should require rpm to get it installed.
Checked into 'master':
Metadata Update from @jpazdziora: - Issue assigned to mharmsen - Issue set to the milestone: 10.3.5
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/2521
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.