Merge ~raharper/curtin:fix/eui-is-not-wwn into curtin:master
Status: | Merged |
---|---|
Approved by: | Ryan Harper |
Approved revision: | 3841a0dca1314b8311456316f7eb30da403d083f |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~raharper/curtin:fix/eui-is-not-wwn |
Merge into: | curtin:master |
Diff against target: |
210 lines (+127/-14) 4 files modified
curtin/commands/block_meta.py (+8/-12) tests/unittests/test_block.py (+26/-0) tests/unittests/test_commands_block_meta.py (+90/-1) tests/unittests/test_curthooks.py (+3/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Dan Watkins (community) | Approve | ||
Review via email: mp+374566@code.launchpad.net |
Commit message
block_meta: use lookup for wwn, fix fallback from wwn, serial, path
NVMe devices may provide a ID_WWN value from udev, but the NVMe rules
do not create a by-id/wwn-$ID_WWN symlink which breaks behavior with
other ID_WWN devices resulting in curtin not finding certain NVMe
devices. Resolve this issue buy using block.lookup_disk on WWN values
as well as serial.
Additional fixes to block_meta.
- get_path_
path values in order to find the specified disk
- Add os.path.exists check to proposed constructed values, if the
path is not valid, we continue to use different keys if possible.
- Updated the Exception message to indicate the volume wasn't found
and emit the config it used.
LP: #1849322
FAILED: Continuous integration, rev:82f20fee48a 89862e006c15521 bb5078df09610e /jenkins. ubuntu. com/server/ job/curtin- ci/3750/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-arm64/ 3750/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-ppc64el/ 3750/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= metal-s390x/ 3750/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= torkoal/ 3750/
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/curtin- ci/3750/ /rebuild
https:/