fix(pxe): always seed NoCloud userdata during imaging#2814
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Summary by CodeRabbit
WalkthroughThe ChangesNoCloud Seed Behavior Change
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pxe/common_files/disk_imaging.sh`:
- Around line 150-151: Add the `--fail` flag to both curl commands (the one
downloading to "$seed_dir/user-data" and the one downloading to
"$seed_dir/meta-data") so that HTTP error responses are properly treated as
failures rather than writing error pages into the seed files. Additionally,
properly quote the `$log_output` variable in both `tee $log_output` invocations
by wrapping it as `tee "$log_output"` to resolve shell quoting issues and ensure
path variables with spaces are handled correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: f5a8adee-cc9d-4aa0-96e7-2927e9473306
📒 Files selected for processing (1)
pxe/common_files/disk_imaging.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Clement Liaw <cman101202@gmail.com>
🔍 Container Scan Summary
Per-CVE detail lives in the per-service |
Description
This PR replaces #2608 with the smaller NoCloud-seeding portion of that change.
It updates
pxe/common_files/disk_imaging.shso host OS imaging:/mnt/etc/cloud/cloud.cfg.dwhen cloud-init is present before writing the datasource listuser-dataandmeta-datafiles/mnt/var/lib/cloud/seed/nocloud-neteven when the source image does not already contain cloud-init state directoriesType of Change
Related Issues (Optional)
Part of #2604. Replaces #2608.
Breaking Changes
Testing
Manual testing:
bash -n pxe/common_files/disk_imaging.shgit diff --checkAdditional Notes
N/A