Bug 1222202 - Ignition config always causes initramfs sosreport to be generated.
Summary: Ignition config always causes initramfs sosreport to be generated.
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: MicroOS (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Forgotten User u0-bnvADNc
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 06:32 UTC by William Brown
Modified: 2024-05-10 15:53 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
sosreport (94.27 KB, text/plain)
2024-04-01 06:32 UTC, William Brown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Brown 2024-04-01 06:32:45 UTC
Created attachment 873966 [details]
sosreport

The following ignition contents will always crash on first boot:

{
  "ignition": {
    "version": "3.2.0"
  },
  "passwd": {
    "users": [
      {
        "name": "root",
        "sshAuthorizedKeys": [
          "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCiRcelfygo9beT4sZS8qXsyZg0zgBl7bBsfk5w3k8RubhkCmC7yCYu+4JPGgyiL5gP3brx6u+veXQtUf62X8wA= william@piv"
        ]
      },
      {
        "name": "root"
      }
    ]
  },
  "storage": {
    "files": [
      {
        "path": "/etc/hostname",
        "mode": 420,
        "overwrite": true,
        "contents": {
          "source": "data:,hostname.domain.local"
        }
      }
    ]
  }
}


Install CLI

virt-install --connect=qemu:///system -n microtest.suse.firstyear.id.au --import --boot uefi --osinfo opensusetumbleweed --virt-type kvm --hvm --machine q35 --cpu host-passthrough --serial pty --console pty,target_type=virtio --autoconsole text --network=bridge=net_20,model=virtio --rng /dev/urandom --tpm backend.type=emulator,backend.version=2.0,model=tpm-tis --vcpu 2 --memory 2048 --security type=dynamic --sysinfo type=fwcfg,entry0.name=opt/com.coreos/config,entry0.file=/var/lib/libvirt/qemu/ignition/default.ign --disk path=/mnt/libvirt/nvme/microtest.suse.firstyear.id.au.qcow2,bus=virtio,cache=none,sparse=no
Comment 1 Ignaz Forster 2024-05-10 15:53:22 UTC
It says

> [   16.252766] localhost ignition[648]: error at $.passwd.users.1, line 14 col 8: duplicate entry defined
> [   16.252868] localhost ignition[648]: failed to fetch config: config is not valid
> [   16.252911] localhost ignition[648]: failed to acquire config: config is not valid
> [   16.252958] localhost ignition[648]: Ignition failed: config is not valid

Please remove the duplicate entry for "root".