[FFe] Support for ISCSI block devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
High
|
Nish Aravamudan | ||
curtin (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
==== Begin Curtin SRU Template ====
[Impact]
Curtin currently does not support specifying iSCSI targets in the storage
configuration. That means that MAAS or other users of curtin are not able
to install to use iscsi disks during installation.
The changes in this bug add the ability to specify non-root iSCSI targets
to curtin, and include integration tests (vmtest) and unit tests to excercise
the functionality.
[Test Case]
Run curtin vmtest on tests/vmtests/
./tools/
The named test sets up an iscsi server with tgt and does an installation
utilizing the disks provided by that iscsi server.
[Regression Potential]
Regression would most likely be a result of the new iscsi functionality
mis-identifying configuration for a local disk as a iscsi disk, and then
failing to do things as a result.
==== End Curtin SRU Template ====
[FFe Justification]
- Curtin currently does not support specifying iSCSI targets in the storage configuration.
- Users have iSCSI targets they would like to install to via curtin.
- The changes in this bug add the ability to specify non-root iSCSI targets in the YAML and include vmtests and unittests for that functionality.
- Existing users are unaffected by this change, as if they specified a iSCSI compatible value in their YAML currently it would fail to parse. The added code is only used when iSCSI is used.
---
Curtin needs to support the ability to attach an ISCSI block device during the installation and perform disk operations just like a locally attached block device. The disk also needs to be auto mounted when Ubuntu is rebooted after installation.
Possible format:
- id: sdb
type: disk
iscsi:
target: iqn.2016-
portal: 192.168.122.2:3260
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Blake Rouse: Pending requested
- Scott Moser: Pending requested
- Ryan Harper: Pending requested
-
Diff: 2018 lines (+1700/-8)20 files modifiedcurtin/block/iscsi.py (+402/-0)
curtin/commands/block_attach_iscsi.py (+38/-0)
curtin/commands/block_detach_iscsi.py (+36/-0)
curtin/commands/block_meta.py (+25/-5)
curtin/commands/curthooks.py (+18/-0)
curtin/commands/install.py (+3/-0)
curtin/commands/main.py (+2/-1)
curtin/deps/__init__.py (+1/-0)
curtin/util.py (+18/-2)
doc/topics/integration-testing.rst (+42/-0)
doc/topics/storage.rst (+48/-0)
examples/tests/basic_iscsi.yaml (+143/-0)
tests/unittests/test_block_iscsi.py (+435/-0)
tests/unittests/test_util.py (+25/-0)
tests/vmtests/__init__.py (+144/-0)
tests/vmtests/test_iscsi.py (+51/-0)
tools/find-tgt (+124/-0)
tools/jenkins-runner (+9/-0)
tools/launch (+135/-0)
tools/vmtest-system-setup (+1/-0)
Changed in curtin: | |
assignee: | nobody → Jon Grimm (jgrimm) |
assignee: | Jon Grimm (jgrimm) → nobody |
Changed in curtin: | |
assignee: | nobody → Nish Aravamudan (nacc) |
summary: |
- Support for ISCSI block devices + [FFe] Support for ISCSI block devices |
description: | updated |
Changed in curtin (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
Changed in curtin (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in curtin (Ubuntu Yakkety): | |
status: | New → Confirmed |
Changed in curtin (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in curtin (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
description: | updated |
It might be sane or nice to support specification of the iscsi target in RFC 4173 format. /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 804162 for some more information.
See https:/