kubernetes-sigs / image-builder

Tools for building Kubernetes disk images
https://image-builder.sigs.k8s.io/
Apache License 2.0
376 stars 379 forks source link

Failes to build proxmox-ubuntu-2404 - #1562

Closed nilsherzig closed 1 week ago

nilsherzig commented 1 week ago

Environment



## What steps did you take and what happened?
<!-- A clear and concise description on how to REPRODUCE the bug -->

1. export env vars
2. run `make build-proxmox-ubuntu-2404`
3. get check error `Service: networkd-dispatcher: running:\nExpected\n    \u003cbool\u003e: false\nto equal\n    \u003cbool\u003e: true`

## What did you expect to happen?

Successful creation of a template on my Proxmox host

## Relevant log output

<details>
<summary>Log Output</summary>

[log.txt](https://github.com/user-attachments/files/16907995/log.txt)

</details>

## Anything else you would like to add?
Same problem when using the provided packer version.

---

/kind bug
nilsherzig commented 1 week ago

One sec, I'm going to start netword-dispatcher in proxmox.yaml. Will report back.

AverageMarcus commented 1 week ago

Ah, I suspect we're missing the following from the Proxmox.yaml like you say

- name: Install networkd-dispatcher service (Run networkd-dispatcher)
  ansible.builtin.systemd:
    name: networkd-dispatcher
    state: started
    enabled: true
nilsherzig commented 1 week ago

Bulid with this change:

    proxmox-iso.ubuntu-2404:         {
    proxmox-iso.ubuntu-2404:             "duration": 33690569,
    proxmox-iso.ubuntu-2404:             "err": null,
    proxmox-iso.ubuntu-2404:             "expected": [
    proxmox-iso.ubuntu-2404:                 "true"
    proxmox-iso.ubuntu-2404:             ],
    proxmox-iso.ubuntu-2404:             "found": [
    proxmox-iso.ubuntu-2404:                 "true"
    proxmox-iso.ubuntu-2404:             ],
    proxmox-iso.ubuntu-2404:             "human": "",
    proxmox-iso.ubuntu-2404:             "meta": null,
    proxmox-iso.ubuntu-2404:             "property": "enabled",
    proxmox-iso.ubuntu-2404:             "resource-id": "networkd-dispatcher",
    proxmox-iso.ubuntu-2404:             "resource-type": "Service",
    proxmox-iso.ubuntu-2404:             "result": 0,
    proxmox-iso.ubuntu-2404:             "successful": true,
    proxmox-iso.ubuntu-2404:             "summary-line": "Service: networkd-dispatcher: enabled: matches expectation: [true]",
    proxmox-iso.ubuntu-2404:             "test-type": 0,
    proxmox-iso.ubuntu-2404:             "title": ""
    proxmox-iso.ubuntu-2404:         },
...
...
...
    proxmox-iso.ubuntu-2404:     "summary": {
    proxmox-iso.ubuntu-2404:         "failed-count": 0,
    proxmox-iso.ubuntu-2404:         "summary-line": "Count: 60, Failed: 0, Duration: 0.100s",
    proxmox-iso.ubuntu-2404:         "test-count": 60,
    proxmox-iso.ubuntu-2404:         "total-duration": 99693569
    proxmox-iso.ubuntu-2404:     }
    proxmox-iso.ubuntu-2404: }
==> proxmox-iso.ubuntu-2404: Goss validate ran successfully
==> proxmox-iso.ubuntu-2404:
==> proxmox-iso.ubuntu-2404:
==> proxmox-iso.ubuntu-2404:
==> proxmox-iso.ubuntu-2404: Downloading spec file and debug info
    proxmox-iso.ubuntu-2404: Downloading Goss specs from, /tmp/goss-spec.yaml and /tmp/debug-goss-spec.yaml to current dir
==> proxmox-iso.ubuntu-2404: Stopping VM
==> proxmox-iso.ubuntu-2404: Converting VM to template
==> proxmox-iso.ubuntu-2404: Running post-processor: custom-post-processor (type shell-local)
==> proxmox-iso.ubuntu-2404 (shell-local): Running local shell script: /tmp/packer-shell2709158788
Build 'proxmox-iso.ubuntu-2404' finished after 15 minutes 43 seconds.

==> Wait completed after 15 minutes 43 seconds

==> Builds finished. The artifacts of successful builds are:
--> proxmox-iso.ubuntu-2404: A template was created: 101
--> proxmox-iso.ubuntu-2404: A template was created: 101
nilsherzig commented 1 week ago

please let me know if you need anything else