Curthooks should run system_upgrade before apply_net to allow upgrading cloud-init before detecting passthrough support
Bug #1665962 reported by
Wesley Wiedenmeier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Wesley Wiedenmeier |
Bug Description
Curtin detects whether or not apply_net can use passthrough networking based on the version and features of cloud-init in-target. It may be desirable to run curthooks.
The change to curthooks should be minor, and should not affect other behavior.
Related branches
lp://staging/~wesley-wiedenmeier/curtin/trunk.passthrough-netconfig
- Ryan Harper: Pending requested
-
Diff: 692 lines (+481/-63)8 files modifiedcurtin/commands/apply_net.py (+7/-2)
curtin/commands/curthooks.py (+95/-42)
curtin/net/__init__.py (+25/-0)
examples/tests/network_v2_passthrough.yaml (+18/-0)
tests/unittests/test_commands_apply_net.py (+109/-4)
tests/unittests/test_curthooks.py (+181/-0)
tests/vmtests/__init__.py (+24/-15)
tests/vmtests/test_network_passthrough.py (+22/-0)
Changed in curtin: | |
status: | New → In Progress |
Changed in curtin: | |
assignee: | nobody → Wesley Wiedenmeier (wesley-wiedenmeier) |
Changed in curtin: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Indeed.
I also noticed that we don't have a stage where we might run in-target
hooks prior to calling apply_net so even with a PPA there isn't a way
to upgrade the target with a newer cloud-init.