-
Notifications
You must be signed in to change notification settings - Fork 24
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
New system not able to unlock after running role #150
Comments
What version of the role are you using? |
What version of the role are you using - 1.71.1 |
Hello. Here are some more info that may be helpful to debug this:
@richm: I wonder if it makes sense to have some "action"/"state" to collect some of these information from the managed hosts, to help troubleshooting such issues? |
|
At a first glance, it looks OK -- could you also check `journalctl , to see if any useful information shows up, please? (I forgot to mention beforehand, but feel free to redact any IP addresses, if required)
|
Feb 02 15:21:20 clevis-test.ansi-001.prod.iad2.dc.redhat.com clevis-luks-askpass[11941]: Error communicating with the server http://tang1 telnet tang1 80 telnet tang2 80 |
@sergio-correia any idea? |
I've been seeing this as well. I have found that adding the - name: Update fstab options
ansible.builtin.shell: |
name="$(awk '$2 == "{{ item.device }}" { print $1 }' /etc/crypttab | head -n 1)"
awk -v mapper_path="/dev/mapper/$name" '{
if ($1 == mapper_path && index($4, "_netdev") == 0) {
$4 = $4 ",_netdev"
}
print
}' /etc/fstab > /tmp/fstab
diff -q /tmp/fstab /etc/fstab || echo changed
mv /tmp/fstab /etc/fstab
loop: '{{ nbde_client_bindings }}'
register: fstab
changed_when: '"changed" in fstab.stdout' I believe this behavior is tied to systemd's ordering of mount units, that is, it orders fstab entries with |
Yeah, this is likely in the right direction. We may need to have |
I have some more information that should probably be considered here from doing some testing with this role. I did have to add the EDIT: the SystemD issue mentioned systemd/systemd#8472 |
New system is unable to unlock after running the nbde_client role, after running the role get an all good from Ansible but upon reboot the system stops at the Luks encryption screen.
The text was updated successfully, but these errors were encountered: