Bug 2417151 - ostreecontainer deployment: ipa-client-install fails
Summary: ostreecontainer deployment: ipa-client-install fails
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Kolman
QA Contact: Fedora Extras Quality Assurance
URL: https://gitlab.com/eu-os/eu-os.gitlab...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-25 21:36 UTC by Robert
Modified: 2025-11-25 21:37 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
ipaclient-install.log (35.31 KB, text/plain)
2025-11-25 21:37 UTC, Robert
no flags Details

Description Robert 2025-11-25 21:36:41 UTC
I want to enrol a fedora laptop to freeipa during foreman pxe provisioning.

Note that when I login as root after boot and call the same ipa-client-install line from the orginal-ks.cfg, then the enrolment is successful.

I have this in the kickstart template:

%post
exec < /dev/tty3 > /dev/tty3
chvt 3
(
logger "Starting anaconda <%= @host %> postinstall"
<% if host_enc['parameters']['realm'] && @host.realm && (@host.realm.realm_type == 'FreeIPA' || @host.realm.realm_type == 'Red Hat Identity Management') -%>
  ##
  ## IPA Client Installation
  ##
  echo "Realm found: setup ipa-client"
  /usr/libexec/openssh/sshd-keygen rsa
  
  # HOTFIX for https://github.com/fedora-silverblue/issue-tracker/issues/427
  mkdir -p /var/lib/ipa-client/sysrestore
  mkdir -p /var/lib/ipa-client/pki
  mkdir -p /var/log
  touch /var/log/ipaclient-install.log

  # One-time password will be requested at install time. Otherwise, $HOST[OTP] is used as a placeholder value.
  /usr/sbin/ipa-client-install -w '<%= @host.otp || "$HOST[OTP]" %>' --realm=<%= @host.realm %> -U --mkhomedir
<% end -%>



full config: https://gitlab.com/eu-os/eu-os.gitlab.io/-/snippets/4906744

Reproducible: Always

Steps to Reproduce:
1. configure everything in foreman (hard to give here the complete setup)
2. provision with foreman via pxe
3. reboot and see that the /etc/krb5.conf is not setup and see errors in the ipaclient-install.log
Actual Results:
ipa enrolment failed

Expected Results:
ipa enrolement worked

Comment 1 Robert 2025-11-25 21:37:30 UTC
Created attachment 2116214 [details]
ipaclient-install.log


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