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 1140855 - ipa-server-install fails when configuring CA
Summary: ipa-server-install fails when configuring CA
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tomcat6
Version: 6.6
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: David Knox
QA Contact: tomcat-qe
URL:
Whiteboard:
: 1141819 (view as bug list)
Depends On:
Blocks: 1080044
TreeView+ depends on / blocked
 
Reported: 2014-09-11 20:49 UTC by Namita Soman
Modified: 2015-11-02 00:19 UTC (History)
15 users (show)

Fixed In Version: tomcat6-6.0.24-80.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1215464 (view as bug list)
Environment:
Last Closed: 2014-10-14 08:31:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
ipa server install log (27.83 KB, text/plain)
2014-09-11 20:59 UTC, Namita Soman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1618 0 normal SHIPPED_LIVE tomcat6 bug fix update 2014-10-14 01:39:15 UTC

Description Namita Soman 2014-09-11 20:49:23 UTC
Description of problem:
Attempting to install ipa-server with dns, but getting error:
Configuring certificate server (pki-cad): Estimated time 3 minutes 30 seconds
  [1/20]: creating certificate server user
  [2/20]: configuring certificate server instance
ipa         : CRITICAL failed to configure ca instance Command '/usr/bin/perl /usr/bin/pkisilent ConfigureCA -cs_hostname cloud-qe-18.testrelm.test -cs_port 9445 -client_certdb_dir /tmp/tmp-OPtf1q -client_certdb_pwd XXXXXXXX -preop_pin FEWqtdQE7gzYWO3KcGJc -domain_name IPA -admin_user admin -admin_email root@localhost -admin_password XXXXXXXX -agent_name ipa-ca-agent -agent_key_size 2048 -agent_key_type rsa -agent_cert_subject CN=ipa-ca-agent,O=TESTRELM.TEST -ldap_host cloud-qe-18.testrelm.test -ldap_port 7389 -bind_dn cn=Directory Manager -bind_password XXXXXXXX -base_dn o=ipaca -db_name ipaca -key_size 2048 -key_type rsa -key_algorithm SHA256withRSA -save_p12 true -backup_pwd XXXXXXXX -subsystem_name pki-cad -token_name internal -ca_subsystem_cert_subject_name CN=CA Subsystem,O=TESTRELM.TEST -ca_subsystem_cert_subject_name CN=CA Subsystem,O=TESTRELM.TEST -ca_ocsp_cert_subject_name CN=OCSP Subsystem,O=TESTRELM.TEST -ca_server_cert_subject_name CN=cloud-qe-18.testrelm.test,O=TESTRELM.TEST -ca_audit_signing_cert_subject_name CN=CA Audit,O=TESTRELM.TEST -ca_sign_cert_subject_name CN=Certificate Authority,O=TESTRELM.TEST -external false -clone false' returned non-zero exit status 255



Version-Release number of selected component (if applicable):
sssd-1.11.6-29.el6.x86_64
ipa-server-3.0.0-42.el6.x86_64
389-ds-base-1.2.11.15-44.el6.x86_64
pki-core-9.0.3-37.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Install ipa-server


Actual results:
Getting error mentioned above

Expected results:
install ipa server successfully

Additional info:
From ipaserver-install.log:
2014-09-11T20:45:07Z DEBUG stderr=[Fatal Error] :1:8: The string "--" is not permitted within comments.
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 8; The string "--" is not permitted within comments.
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:239)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
        at ParseXML.parse(ParseXML.java:258)
        at ConfigureCA.getStatus(ConfigureCA.java:205)
        at ConfigureCA.checkStatus(ConfigureCA.java:221)
        at ConfigureCA.checkStatus(ConfigureCA.java:216)
        at ConfigureCA.DomainPanel(ConfigureCA.java:332)
        at ConfigureCA.ConfigureCAInstance(ConfigureCA.java:1173)
        at ConfigureCA.main(ConfigureCA.java:1672)

Comment 2 Namita Soman 2014-09-11 20:59:38 UTC
Created attachment 936673 [details]
ipa server install log

Comment 4 Namita Soman 2014-09-11 23:58:28 UTC
Enabled CS debug using steps:

edit the template cs.cfg at /usr/share/pki/ca/conf/CS.cfg with 
debug.append=false
debug.enabled=true
debug.filename=/var/lib/pki-ca/logs/debug
debug.hashkeytypes=
debug.level=0
debug.showcaller=false

reinstalled, and Matthew took a look at the logs at /var/log/pki-ca/debug on the beaker machine

Comment 6 Kaleem 2014-09-12 06:17:14 UTC
With following 389 build, ipa-server installation seems to be successful

389-ds-base-1.2.11.15-45.el6.x86_64


[root@rhel66-master ~]# rpm -q sssd ipa-server 389-ds-base pki-ca
sssd-1.11.6-29.el6.x86_64
ipa-server-3.0.0-42.el6.x86_64
389-ds-base-1.2.11.15-45.el6.x86_64
pki-ca-9.0.3-37.el6.noarch
[root@rhel66-master ~]# 

[root@rhel66-master ~]# service ipa status
Directory Service: RUNNING
KDC Service: RUNNING
KPASSWD Service: RUNNING
DNS Service: RUNNING
MEMCACHE Service: RUNNING
HTTP Service: RUNNING
CA Service: RUNNING
[root@rhel66-master ~]#

Comment 7 Martin Kosek 2014-09-12 07:12:36 UTC
Installation on my 6.6 VM also worked without any issue. Given that installation works fine for both me and Kaleem as QE representative, closing this Bugzilla.

Please feel free to reopen it if the problem reoccur.

Comment 8 Scott Poore 2014-09-15 14:42:25 UTC
I'm seeing this bug again in today 6.6 build.

[root@cloud-qe-1-vm-1 log]# rpm -qa ipa-server 389-ds-base
389-ds-base-1.2.11.15-46.el6.x86_64
ipa-server-3.0.0-42.el6.x86_64

I'm not sure what other RPMs to check version here.

2014-09-15T13:23:41Z DEBUG stderr=[Fatal Error] :1:8: The string "--" is not permitted within comments.
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 8; The string "--" is not permitted within 
comments.
        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:239)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
        at ParseXML.parse(ParseXML.java:258)
        at ConfigureCA.getStatus(ConfigureCA.java:205)
        at ConfigureCA.checkStatus(ConfigureCA.java:221)
        at ConfigureCA.checkStatus(ConfigureCA.java:216)
        at ConfigureCA.DomainPanel(ConfigureCA.java:332)
        at ConfigureCA.ConfigureCAInstance(ConfigureCA.java:1173)
        at ConfigureCA.main(ConfigureCA.java:1672)

Comment 9 Ade Lee 2014-09-15 21:25:39 UTC
This was definitely a weird one to diagnose.

I worked on one of QE's systems, and attempted to install the CA using
both pkisilent (which uses httpclient) and my firefox browser.  Both
showed the following weirdness.

The client would attempt to POST something like the following:
https://cloud-qe-1-vm-1.testrelm.test:9445//ca/admin/console/config/wizard?

Data: 
sdomainURL=https%3A%2F%2Fcloud-qe-1-vm-1.testrelm.test%3A9445&sdomainName=IPA&choice=newdomain&p=3&op=next&xml=true

On the server side though, I would see logs like the following:

[15/Sep/2014:15:31:59][http-9445-4]: WizardServlet::service() param name='choice' value=''
[15/Sep/2014:15:31:59][http-9445-4]: WizardServlet::service() param name='p' value='3'

Or if attempting to connect to an existing domain:
[15/Sep/2014:15:28:32][http-9445-4]: WizardServlet::service() param name='sdomainN' value=''
[15/Sep/2014:15:28:32][http-9445-4]: WizardServlet::service() param name='p' value='3'

So, it appears that the data has been truncated.  For example,
"sdomainN" is not the parameter name - it is supposed to be
"sdomainName".

As this was happening from both pkisilent and the browser, it seemed
clear that this was a problem on the server side.

Now we had not changed anything in dogtag in RHEL6 for a very long time.
This only started happening recently - and so, we needed to look and see
what else had changed.

Nathan pointed out that a new tomcat build was created for RHEL6 on the
12th.  This build was on the affected machines (6.0.24-79).  I
downgraded the tomcat build to tomcat6-6.0.24-78.el6_5, and lo and
behold, everything started working again.

Transferring the bug to tomcat.

Ade

Comment 10 Nathan Kinder 2014-09-15 23:45:17 UTC
*** Bug 1141819 has been marked as a duplicate of this bug. ***

Comment 11 Martin Kosek 2014-09-16 06:47:17 UTC
I did a quick test and it easily reproducible. With

ipa-server-3.0.0-42.el6.x86_64
pki-ca-9.0.3-37.el6.noarch
tomcat6-6.0.24-78.el6_5.noarch

the installation works:

# ipa-server-install
...
Configuring certificate server (pki-cad): Estimated time 3 minutes 30 seconds
  [1/21]: creating certificate server user
  [2/21]: creating pki-ca instance
  [3/21]: configuring certificate server instance
  [4/21]: disabling nonces
...

As soon as I update also tomcat 6, it crashes:

# yum update
...
========================================================================================================
 Package                     Arch       Version           Repository                               Size
========================================================================================================
Updating:
 tomcat6                     x86_64     6.0.24-79.el6     RHEL-6.6-nightly-workstation-x86_64      91 k
 tomcat6-el-2.1-api          x86_64     6.0.24-79.el6     RHEL-6.6-nightly-workstation-x86_64      46 k
 tomcat6-jsp-2.1-api         x86_64     6.0.24-79.el6     RHEL-6.6-nightly-workstation-x86_64      82 k
 tomcat6-lib                 x86_64     6.0.24-79.el6     RHEL-6.6-nightly-workstation-x86_64     2.9 M
 tomcat6-servlet-2.5-api     x86_64     6.0.24-79.el6     RHEL-6.6-nightly-workstation-x86_64      97 k

Transaction Summary
========================================================================================================
Upgrade       5 Package(s)
...

# rpm -q ipa-server pki-ca tomcat6
ipa-server-3.0.0-42.el6.x86_64
pki-ca-9.0.3-37.el6.noarch
tomcat6-6.0.24-79.el6.x86_64


# ipa-server-install -p kokos123 -a kokos123 --setup-dns --forwarder={10.16.255.2,10.11.5.19}
...
Configuring certificate server (pki-cad): Estimated time 3 minutes 30 seconds
  [1/21]: creating certificate server user
  [2/21]: creating pki-ca instance
  [3/21]: configuring certificate server instance
ipa         : CRITICAL failed to configure ca instance Command '/usr/bin/perl /usr/bin/pkisilent ConfigureCA -cs_hostname vm-086.idm.lab.bos.redhat.com -cs_port 9445 -client_certdb_dir /tmp/tmp-lAOSQR -client_certdb_pwd XXXXXXXX -preop_pin Mech62SCbLJ9TfcB3tln -domain_name IPA -admin_user admin -admin_email root@localhost -admin_password XXXXXXXX -agent_name ipa-ca-agent -agent_key_size 2048 -agent_key_type rsa -agent_cert_subject CN=ipa-ca-agent,O=IDM.LAB.BOS.REDHAT.COM -ldap_host vm-086.idm.lab.bos.redhat.com -ldap_port 7389 -bind_dn cn=Directory Manager -bind_password XXXXXXXX -base_dn o=ipaca -db_name ipaca -key_size 2048 -key_type rsa -key_algorithm SHA256withRSA -save_p12 true -backup_pwd XXXXXXXX -subsystem_name pki-cad -token_name internal -ca_subsystem_cert_subject_name CN=CA Subsystem,O=IDM.LAB.BOS.REDHAT.COM -ca_subsystem_cert_subject_name CN=CA Subsystem,O=IDM.LAB.BOS.REDHAT.COM -ca_ocsp_cert_subject_name CN=OCSP Subsystem,O=IDM.LAB.BOS.REDHAT.COM -ca_server_cert_subject_name CN=vm-086.idm.lab.bos.redhat.com,O=IDM.LAB.BOS.REDHAT.COM -ca_audit_signing_cert_subject_name CN=CA Audit,O=IDM.LAB.BOS.REDHAT.COM -ca_sign_cert_subject_name CN=Certificate Authority,O=IDM.LAB.BOS.REDHAT.COM -external false -clone false' returned non-zero exit status 255
Configuration of CA failed


I see Tomcat6 was rebuilt for Bug 1140301 quite late in the game, though the bug description does not indicate that the change could break IPA.

Comment 14 Namita Soman 2014-09-17 11:50:06 UTC
Was able to install a master, replica, client successfully using the nightly RHEL-6.6-20140917 build, which included tomcat6.x86_64 0:6.0.24-80.el6.

Comment 16 Namita Soman 2014-09-17 15:13:34 UTC
marking verified - from #comment 14

Comment 17 errata-xmlrpc 2014-10-14 08:31:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1618.html


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