replace iscsi usage in ephemeral image with rooturl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| MAAS |
High
|
Lee Trager | ||
| 2.3 |
High
|
Lee Trager | ||
| maas-images |
Medium
|
Lee Trager |
Bug Description
Blake and I did some work to test out usage or rooturl.
The general goal was to drop usage of iscsi root for enlistment,
commissioning, deployment and rescue.
The package that enables this is cloud-initramfs
cloud-initramfs
In order to accomplish this, what needs to be done are
A. changes in maas to send kernel parameters with 'rooturl=' wherever
it previously used iscsi_* and change root= to be of the format:
B. changes in maas to remove usage and management of tgt. This should
include at some point completely removing the tgt items found in
an upgrade to clean disk space.
C. changes in maas-images to build squashfs images for supported releases.
Currently maas-images (v3) only builds squashfs for xenial+. We will
at minimum need trusty, and likely need precise.
Another path to this would be to have maas send the rooturl=...tar.xz
However, having consistently for all releases would be good.
Under bug 1688606:
D. SRU of cloud-initramfs
possibly precise.
E. maas-images modification to include cloud-initramfs
the packages that are built in the initramfs (note, that does not
need to change the image itself, only the kernel/initrd packs:
kpack-
Related bugs:
* bug 1688606: SRU cloud-initramfs
Related branches
- Lee Trager: Approve on 2017-06-23
-
Diff: 293 lines (+289/-0)1 file modifiedbin/img2squashfs (+289/-0)
- Blake Rouse (community): Approve on 2017-07-14
- Andres Rodriguez (community): Needs Information on 2017-06-22
-
Diff: 48 lines (+18/-2)1 file modifiedmeph2/stream.py (+18/-2)
- Blake Rouse (community): Approve on 2017-06-22
- Andres Rodriguez (community): Needs Fixing on 2017-06-21
- Mike Pontillo (community): Approve on 2017-06-21
-
Diff: 479 lines (+98/-180)6 files modifiedsrc/maasserver/forms/settings.py (+9/-1)
src/maasserver/models/config.py (+3/-2)
src/maasserver/rpc/boot.py (+1/-0)
src/provisioningserver/kernel_opts.py (+44/-67)
src/provisioningserver/rpc/region.py (+1/-0)
src/provisioningserver/tests/test_kernel_opts.py (+40/-110)
- MAAS Lander: Needs Fixing on 2017-10-27
- Mike Pontillo (community): Resubmit on 2017-07-19
-
Diff: 1746 lines (+17/-758)25 files modifieddev/null (+0/-187)
snap/bin/run-rackd (+0/-10)
snap/conf/supervisord.conf.template (+0/-10)
snap/snapcraft.yaml (+0/-3)
src/maasserver/bootresources.py (+1/-2)
src/maasserver/enum.py (+3/-3)
src/maasserver/forms/settings.py (+0/-8)
src/maasserver/models/config.py (+0/-1)
src/maasserver/models/service.py (+0/-2)
src/maasserver/rpc/boot.py (+0/-1)
src/maasserver/static/js/angular/controllers/tests/test_node_details.js (+1/-3)
src/maasserver/static/partials/cards/services.html (+0/-7)
src/maasserver/static/partials/node-details.html (+0/-7)
src/provisioningserver/import_images/boot_resources.py (+1/-130)
src/provisioningserver/import_images/download_resources.py (+0/-69)
src/provisioningserver/import_images/tests/test_boot_resources.py (+1/-171)
src/provisioningserver/import_images/tests/test_download_resources.py (+0/-32)
src/provisioningserver/kernel_opts.py (+9/-48)
src/provisioningserver/rpc/region.py (+0/-1)
src/provisioningserver/service_monitor.py (+0/-10)
src/provisioningserver/support_dump.py (+0/-3)
src/provisioningserver/tests/test_kernel_opts.py (+0/-11)
src/provisioningserver/tests/test_service_monitor.py (+1/-13)
src/provisioningserver/tests/test_upgrade_cluster.py (+0/-17)
src/provisioningserver/upgrade_cluster.py (+0/-9)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.3.0 |
assignee: | nobody → Blake Rouse (blake-rouse) |
description: | updated |
Changed in maas-images: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in maas: | |
assignee: | Blake Rouse (blake-rouse) → Lee Trager (ltrager) |
Changed in maas-images: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | Triaged → Fix Released |
Changed in maas: | |
milestone: | 2.3.0 → none |
The stream has been updated to include SquashFS Trusty images. MAAS has been modified to allow deployments over HTTP instead of iSCSI when the global configuration option http_boot=true. After some testing with MAAS 2.3.0-alpha1 we plan on evaluating changing the default value of http_boot=true and removing TGT support from MAAS.