Troubleshooting
Molecule 25.2+ introduced breaking changes.
dist-upgrade fails for grub-pc
Virtual disk device mapping changed during configuration, requiring interactive re-configuration.
Errors were encountered while processing:
grub-pc
MSG:
'/usr/bin/apt-get dist-upgrade ' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)
Use r_pufky.deb.apt
This is mitigated automatically when using r_pufky.deb_apt when enabled.
- name: 'r_pufky.deb.apt - auto select grub-pc boot disk'
ansible.builtin.include_role:
name: 'r_pufky.deb.apt'
vars:
apt_srv_auto_grub_boot: true
Manual Resolution
Not recommended.
# Interactively upgrade GRUB
vagrant global-status
vagrant ssh {ID}
su -
apt dist-upgrade
# Force re-run prepare setup to complete setup.
molecule prepare --force
No Network Connection
libvirt switched to using nftables userspace directly. Immediate workaround is to set libvirt back to iptables backend or disable UFW.
UFW uses legacy iptables userspace tools and these create shared nftables top level tables. All different applications which use iptables userspace end up in same nftables table.
/etc/libvirt/network.conf
0644 root:root
firewall_backend = "iptables"