Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clevis luks not unlocking at boot when url is specified as hostname but IP address works #413

Open
jeremyatourville opened this issue May 10, 2023 · 2 comments

Comments

@jeremyatourville
Copy link

jeremyatourville commented May 10, 2023

See #412 for more details.
Client gets DNS from IdM server. Client is enrolled in IdM domain using ipa-client. IdM server is Active Directory integrated with a one way trust established and using split DNS. All DNS for Idm (linux) domain is resolved by IdM and all DNS for Windows is handled by AD.

clevis luks bind -d /dev/sda2 tang '{"url":"http://tang.srv"}'  ## DOESN'T WORK
clevis luks bind -d /dev/sda2 tang '{"url":"http://10.31.x.x."}'  ## WORKS

Seems like a timing issue of some sort related to DNS and the boot up process. Thoughts?

@sergio-correia
Copy link
Collaborator

Could you post the dracut modules that are part of your initramfs, please? Probably something like this could help here: lsinitrd | awk '/^Version:/,/^=/'

@jeremyatourville
Copy link
Author

[root@gsil-yum localadm]# lsinitrd | awk '/^Version:/,/^=/'
Version: dracut-049-218.git20221019.el8_7

Arguments: --kver '4.18.0-425.19.2.el8_7.x86_64' -f -v --kernel-cmdline 'ip=10.31.x.x::10.31.8.1:255.255.255.0::ens192:none'

dracut modules:
bash
systemd
fips
systemd-initrd
nss-softokn
i18n
network-manager
network
ifcfg
drm
plymouth
clevis
clevis-pin-null
clevis-pin-sss
clevis-pin-tang
clevis-pin-tpm2
prefixdevname
crypt
dm
kernel-modules
kernel-modules-extra
kernel-network-modules
lvm
resume
rootfs-block
terminfo
udev-rules
biosdevname
dracut-systemd
usrmount
base
fs-lib
memstrack
microcode_ctl-fw_dir_override
shutdown
========================================================================
[root@gsil-yum localadm]# 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants