RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1476290 - ipa-server installation using ipa-server-docker image fails when using external certificate
Summary: ipa-server installation using ipa-server-docker image fails when using extern...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa-server-container
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Petr Vobornik
QA Contact: Nikhil Dehadrai
URL:
Whiteboard:
Depends On:
Blocks: 1405325
TreeView+ depends on / blocked
 
Reported: 2017-07-28 14:05 UTC by Nikhil Dehadrai
Modified: 2021-01-06 11:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-06 11:15:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nikhil Dehadrai 2017-07-28 14:05:03 UTC
Description of problem:
ipa-server installation using ipa-server-docker image fails when using external certificate

Version-Release number of selected component (if applicable):
ipa-docker image: 4.5.0.8

IPA-VERSION:
ipa-server-4.5.0-21.el7.x86_64

Atomic host version:
-bash-4.2# atomic host status
State: idle
Deployments:
● atomic-host:rhel-atomic-host/7/x86_64/standard
                Version: 7.4.0 (2017-07-28 00:26:01)
                 Commit: 846fb0e18e65bd9a62fc9d952627413c6467c33c2d726449a1d7ad7690bbb93a

How reproducible:
Always

Steps to Reproduce:
1. atomic install --name ipadocker rhel7/ipa-server net-host --hostname=`hostname` --external-ca --setup-dns --ip-address=$addr --forwarder=$fwder -r EXAMPLE.TEST -a Secret123 -p Secret123 --no-ntp -U
2. cp /var/lib/ipadocker/ipa.csr /root/
3. ls /root/ipa.csr 
4. mkdir /var/tmp/testdb ; cd /var/tmp/testdb
5. certutil -N -d . --empty-password
6. echo -e "5\n9\nn\ny\n10\ny\n5\n6\n7\n9\nn\n" | certutil -S -n "IPA ROOTCA certificate" -s "cn=CAcert" -x -t "CT,," -m 1000 -v 120 -d . -z /etc/hostname -2 -1 -5
7. certutil -L -d . -n "IPA ROOTCA certificate" -a > iparootca.crt
8. certutil -C -m 2346 -i /root/ipa.csr -o /root/ipa.crt -c "IPA ROOTCA certificate" -d . -a
9. cp /var/tmp/testdb/iparootca.crt /var/lib/ipadocker/.
10. cp /root/ipa.crt /var/lib/ipadocker/.
11. ls /var/lib/ipadocker/ipa.crt
12. ls /var/lib/ipadocker/iparootca.crt 
13. atomic run --name ipadocker rhel7/ipa-server --external-cert-file=/data/ipa.crt --external-cert-file=/data/iparootca.crt -r EXAMPLE.TEST -a Secret123 -p Secret123 --no-ntp -U


Actual results:
After step13, ipa-server installation fails:

atomic run --name ipadocker rhel7/ipa-server --external-cert-file=/data/ipa.crt --external-cert-file=/data/iparootca.crt -r EXAMPLE.TEST -a Secret123 -p Secret123 --no-ntp -U
docker run -h auto-hv-01-guest03.example.test --net=host --rm --name ipadocker -v /var/lib/ipadocker:/data:Z -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run --tmpfs /tmp -v /dev/urandom:/dev/random:ro rhel7/ipa-server --external-cert-file=/data/ipa.crt --external-cert-file=/data/iparootca.crt -r EXAMPLE.TEST -a Secret123 -p Secret123 --no-ntp -U

This container uses privileged security switches:

INFO: --net=host 
      Processes in this container can listen to ports (and possibly rawip traffic) on the host's network.

For more information on these switches and their security implications, consult the manpage for 'docker run'.

Fri Jul 28 13:50:25 UTC 2017 /usr/sbin/ipa-server-configure-first 
Failed to start Directory Service: Command '/bin/systemctl start dirsrv' returned non-zero exit status 1
Skipping version check
Starting Directory Service

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA Server.

This includes:
  * Configure a stand-alone CA (dogtag) for certificate management
  * Create and configure an instance of Directory Server
  * Create and configure a Kerberos Key Distribution Center (KDC)
  * Configure Apache (httpd)
  * Configure the KDC to enable PKINIT

Excluded by options:
  * Configure the Network Time Daemon (ntpd)

The domain name has been determined based on the host name.


The IPA Master Server will be configured with:
Hostname:       auto-hv-01-guest03.example.test
IP address(es): 10.x.x.x
Domain name:    example.test
Realm name:     EXAMPLE.TEST

FreeIPA server configuration failed.



Expected results:
IPA server installation should be successful using external certificate.

Comment 5 richard.h.hephner.ctr 2019-01-24 20:14:52 UTC
I'm seeing this in a production environment. Has there been any movement on this? Are there any workarounds that you recommend? Thanks.

Comment 7 Petr Čech 2021-01-06 11:15:42 UTC
This BZ has been evaluated multiple times over the last several years and we assessed that it is a valuable request to keep in the backlog and address it at some point in future. Time showed that we did not have such capacity, nor have it now nor will have in the foreseeable future. In such a situation keeping it in the backlog is misleading and setting the wrong expectation that we will be able to address it. Unfortunately we will not. To reflect this we are closing this BZ. If you disagree with the decision please reopen or open a new support case and create a new BZ. However this does not guarantee that the request will not be closed during the triage as we are currently applying much more rigor to what we actually can accomplish in the foreseeable future. Contributions and collaboration in the upstream community and CentOS Stream is always welcome!
Thank you for understanding
Red Hat Enterprise Linux Identity Management Team


Note You need to log in before you can comment on or make changes to this bug.