tests: inject ntp configuration through smbios - #466
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The implementation is coherent, with only a minor non-blocking fixed-string assertion issue.
Pull request overview
Injects backend-provided NTP configuration into nested Ubuntu Core VMs through SMBIOS credentials.
Changes:
- Generates a
tmpfiles.extracredential containing timesyncd configuration. - Verifies the injected NTP and fallback settings.
File summaries
| File | Description |
|---|---|
tests/lib/nested.sh |
Adds SMBIOS credential injection to QEMU startup. |
tests/spread/main/basic/task.yaml |
Validates the generated timesyncd configuration. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
4c20720 to
9de7bcd
Compare
…systemd.credential.binary
|
|
||
| execute_remote "systemctl status systemd-tmpfiles-setup.service || true" | ||
| execute_remote "sudo journalctl -b -u systemd-tmpfiles-setup.service --no-pager || true" | ||
| execute_remote "sudo journalctl -b -p warning..alert --no-pager | grep -i credential || true" |
There was a problem hiding this comment.
Maybe list /run/credentials/@system
There was a problem hiding this comment.
Thank you for the suggestion! I'm trying to figure out why the check fails in the test :/
| . "$TESTSLIB/nested.sh" | ||
|
|
||
| execute_remote "systemctl status systemd-tmpfiles-setup.service || true" | ||
| execute_remote "sudo journalctl -b -u systemd-tmpfiles-setup.service --no-pager || true" |
There was a problem hiding this comment.
You should add systemd.log_level=debug in the kernel command line.
…k to do it locally
| cat > "$NTP_SOURCES_FILE" <<EOF | ||
| f+ /etc/chrony/sources.d/10-nested-ntp.sources 0644 - - - ~${NTP_SOURCES_FILE_BASE64} | ||
| EOF | ||
| NTP_SOURCES_FILE_BASE64=$(base64 -w0 "$NTP_SOURCES_FILE") |
There was a problem hiding this comment.
this seems to overwrite the previous value set just a few lines above?
No description provided.