Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
Description of problem:
Trying to install satellite 6 using --foreman-ipa-authentication=true fails. The server is enrolled with IPA prior to running katello-installer. The error-message is as follows:
/bin/echo Get keytab && KRB5CCNAME=KEYRING:session:get-http-service-keytab kinit -k && KRB5CCNAME=KEYRING:session:get-http-service-keytab /usr/sbin/ipa-getkeytab -s idm-02.rhcdev.acme.net -k /etc/httpd/conf/http.keytab -p HTTP/sat6.rhcdev.acme.net && kdestroy -c KEYRING:session:get-http-service-keytab returned 9 instead of one of [0]
/Stage[main]/Foreman::Config/Exec[ipa-getkeytab]/returns: change from notrun to 0 failed: /bin/echo Get keytab && KRB5CCNAME=KEYRING:session:get-http-service-keytab kinit -k && KRB5CCNAME=KEYRING:session:get-http-service-keytab /usr/sbin/ipa-getkeytab -s idm-02.rhcdev.acme.net -k /etc/httpd/conf/http.keytab -p HTTP/sat6.rhcdev.acme.net && kdestroy -c KEYRING:session:get-http-service-keytab returned 9 instead of one of [0]
/Stage[main]/Foreman::Config/Exec[ipa-getkeytab]: Failed to call refresh: /bin/echo Get keytab && KRB5CCNAME=KEYRING:session:get-http-service-keytab kinit -k && KRB5CCNAME=KEYRING:session:get-http-service-keytab /usr/sbin/ipa-getkeytab -s idm-02.rhcdev.acme.net -k /etc/httpd/conf/http.keytab -p HTTP/sat6.rhcdev.acme.net && kdestroy -c KEYRING:session:get-http-service-keytab returned 9 instead of one of [0]
/Stage[main]/Foreman::Config/Exec[ipa-getkeytab]: /bin/echo Get keytab && KRB5CCNAME=KEYRING:session:get-http-service-keytab kinit -k && KRB5CCNAME=KEYRING:session:get-http-service-keytab /usr/sbin/ipa-getkeytab -s idm-02.rhcdev.acme.net -k /etc/httpd/conf/http.keytab -p HTTP/sat6.rhcdev.acme.net && kdestroy -c KEYRING:session:get-http-service-keytab returned 9 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
Version-Release number of selected component (if applicable):
Satellite 6.0.6 running on RHEL7
Additional info:
The full commandline used was
katello-installer --foreman-ipa-authentication=true --capsule-dhcp=true --capsule-dhcp-gateway=10.222.143.1 --capsule-dhcp-nameservers=10.222.143.6,10.222.143.7 --capsule-tftp=true --capsule-realm=true --capsule-realm-principal=realm-proxy.NET --certs-city=Goteborg --certs-country=SE --certs-org='ACME Information Technology' --certs-org-unit='Java Cloud' --certs-state='N/A' --katello-proxy-url=http://httppxgot.srv.acme.com --katello-proxy-username='' --katello-proxy-password='' --katello-proxy-port=8080
Comment 1RHEL Program Management
2014-12-09 14:04:18 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 3Jan Pazdziora (Red Hat)
2014-12-09 14:36:55 UTC
Has the service HTTP/sat6.rhcdev.acme.net been created in the IPA/IdM server?
Comment 7Jan Pazdziora (Red Hat)
2014-12-12 16:20:00 UTC
(In reply to David Juran from comment #4)
> No, no such service was created
Can you create the service record (using IPA WebUI or ipa service-add) and check that then the katello-installer starts behaving?
I don't have an environment where I can test it right now, but feel free to mark this as a dup of 1172159. I was assuming that katello-installer would create the required principals, much like foreman-prepare-realm does
Comment 9Jan Pazdziora (Red Hat)
2014-12-16 09:01:57 UTC
(In reply to David Juran from comment #8)
> I was assuming that katello-installer would
> create the required principals, much like foreman-prepare-realm does
No, that step needs to be created outside of foreman-installer/katello-installer. We had a long discussion about the approach and being able to create the principal would require admin's (or someone else's) password. And puppet on which the installer is based is not providing reasonably secure way of handling the password.