image-without-format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
boh.ricky |
Bug Description
Currently, some case like the below, the image can't be used to boot an instance.
1. create volume from image
2. boot instance from the volume
3. createImage to the instance
4. use the instance image to boot an instance
The reason:
The image without the disk_format/
When boot the instance from the image, getattr exception is thrown.
fix:
in nova/nova/
before modify:
def _extract_
...
for attr in IMAGE_ATTRIBUTES:
if attr == 'deleted_at' and not output['deleted']:
elif attr == 'checksum' and output['status'] != 'active':
else:
...
after modify :
def _extract_
...
for attr in IMAGE_ATTRIBUTES:
if attr == 'deleted_at' and not output['deleted']:
elif attr == 'checksum' and output['status'] != 'active':
else:
if hasattr(image, attr):
...
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
assignee: | nobody → boh.ricky (bohai) |
Fix proposed to branch: master /review. openstack. org/93595
Review: https:/