Merge "Read disk identifier after config drive setup" into stable/ocata
This commit is contained in:
commit
ed2f6cea89
@ -401,12 +401,13 @@ def deploy_disk_image(address, port, iqn, lun,
|
||||
with _iscsi_setup_and_handle_errors(address, port, iqn,
|
||||
lun) as dev:
|
||||
disk_utils.populate_image(image_path, dev)
|
||||
disk_identifier = disk_utils.get_disk_identifier(dev)
|
||||
|
||||
if configdrive:
|
||||
disk_utils.create_config_drive_partition(node_uuid, dev,
|
||||
configdrive)
|
||||
|
||||
disk_identifier = disk_utils.get_disk_identifier(dev)
|
||||
|
||||
return {'disk identifier': disk_identifier}
|
||||
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- Fix handling of whole disk images with 0x00000000 disk identifier.
|
||||
Instances failed to boot as the identifier in boot config was overwritten
|
||||
during config drive creation. See https://bugs.launchpad.net/ironic/+bug/1685093
|
Loading…
Reference in New Issue
Block a user