molecule-ubuntu2604: become fails with a sudo account validation failure #376
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#376
Reference in new issue
Block a user
Problem
In the
molecule-ubuntu2604image, a task withbecome: truefails, although molecule connects as root:Seen in the
piholescenario of #372 (Actions run 5566, the firstcheckstep, task "Create system user and group"). The same task passed on themolecule-ubuntu2404instance in the same run.No role scenario ran on the 26.04 image before, and the
image-smoke-2604scenario checks only that thesudopackage is installed, neverbecome, so nothing caught it.Likely cause (not verified)
The message looks like sudo-rs, which I believe recent Ubuntu releases use as the default
sudo. It appears to check the PAM account even for root, and that check fails for root in this image. This is not reproduced outside CI, so the cause is a guess.Impact
No role can declare
resolutewhile its scenario usesbecome. The platform rules inroles/AGENTS.md("declared means tested") then keep every Ubuntu role onnoble. #372 droppedresolutefrompiholefor this reason and lists it as an untested platform.Proposed work
images/molecule-ubuntu2604/Dockerfile.becomecheck toextensions/molecule/image-smoke-2604(and the 24.04 smoke scenario, for parity), so a regression fails the image build.resoluteback topihole(platform, scenario and README).Acceptance criteria
become: truetask succeeds on amolecule-ubuntu2604instance, proven by the smoke scenario.piholescenario passes on both images.Assisted-by: Claude Code:claude-opus-5-5
Confirmed on every role, not only pihole: in #381 (Actions run 5611) each
*-2604-instancefails on its firstbecometask with the samesudo: account validation failure. The 24.04 instances pass.Scope addition:
images/molecule-ubuntu2604/Dockerfilealso lacksgnupg, whichimages/molecule-ubuntu2404/Dockerfileinstalls. The docker scenario (signed stub apt repository,files/build-stub-repo.sh) and the gitea scenario and role (gpg --verify) need it on the target. Add it in the same image change, so one release and pin fixes both. This replaces #378.The follow-up "add
resoluteback topihole" is done in #381, together with docker and gitea, once this image is pinned.Assisted-by: Claude Code