<div dir="ltr"><div>This seems indeed the problem (I will file an issue for the documentation).</div><div> </div><div>Thanks a lot !</div><div><br></div><div>If I remove/fix that property from an image, I am now able to start new instances using that image.</div><div><br></div><div>The problem is with instances created BEFORE removing the property: I am not able to migrate them (using nova migrate), unless I remove the ImagePropertiesFilter from the scheduler filters.</div><div><br></div><div>Moreover: if a user creates a snapshot of one of these instances, the snapshot got created with this wrong property</div><div><br></div><div><br></div><div>Is there some clean way to remove/change the problematic property from the relevant instances ?</div><div><br></div><div>Thanks, Massimo</div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 17, 2019 at 5:41 PM Brian Rosmaita <<a href="mailto:rosmaita.fossdev@gmail.com" target="_blank">rosmaita.fossdev@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/17/19 8:14 AM, Massimo Sgaravatto wrote:<br>
> We have just finished the update of our cloud to Rocky but we are seeing<br>
> a strange issue with images with property:<br>
> hypervisor_type='QEMU'<br>
> <br>
> The scheduling of instances created with such images fails because of<br>
> the ImagePropertiesFilter [*]<br>
> <br>
> Removing that property from the image, the scheduling works.<br>
> We also tried changing hypervisor_type='QEMU'<br>
> --> hypervisor_type='qemu', but this didn't help.<br>
> <br>
> Any suggestions?<br>
<br>
Commit e792d50efadb36437e82381f4c84d738cee25dfd in Ocata changed the<br>
image metadata that the ImagePropertiesFilter pays attention to:<br>
<br>
diff --git a/nova/scheduler/filters/image_props_filter.py<br>
b/nova/scheduler/filters/image_props_filter.py<br>
index 06def5c769..521a6816a3 100644<br>
--- a/nova/scheduler/filters/image_props_filter.py<br>
+++ b/nova/scheduler/filters/image_props_filter.py<br>
@@ -43,9 +43,9 @@ class ImagePropertiesFilter(filters.BaseHostFilter):<br>
<br>
     def _instance_supported(self, host_state, image_props,<br>
                             hypervisor_version):<br>
-        img_arch = image_props.get('architecture', None)<br>
-        img_h_type = image_props.get('hypervisor_type', None)<br>
-        img_vm_mode = image_props.get('vm_mode', None)<br>
+        img_arch = image_props.get('hw_architecture')<br>
+        img_h_type = image_props.get('img_hv_type')<br>
+        img_vm_mode = image_props.get('hw_vm_mode')<br>
         checked_img_props = (<br>
             arch.canonicalize(img_arch),<br>
             hv_type.canonicalize(img_h_type),<br>
<br>
Looks like 'img_hv_type' is the metadata key you need to use.<br>
<br>
If that works, please put up a patch to the Glance "useful image<br>
properties" docs [0], we seem to be out of date on this issue.<br>
<br>
[0]<br>
<a href="https://opendev.org/openstack/glance/src/branch/master/doc/source/admin/useful-image-properties.rst" rel="noreferrer" target="_blank">https://opendev.org/openstack/glance/src/branch/master/doc/source/admin/useful-image-properties.rst</a><br>
<br>
cheers,<br>
brian<br>
<br>
> Thanks, Massimo<br>
> <br>
> <br>
> <br>
> [*]<br>
> 2019-07-17 13:52:58.148 13312 INFO nova.filters<br>
> [req-1863bef0-0326-46d1-a836-436227e91eef<br>
> 6e3b136d578f4292a5c03b16f443ab3d d27fe2becea94a3e980fb9f66e2f291a -<br>
> default default] Filtering removed all hosts f\<br>
> or the request with instance ID '63810b60-76e4-4e76-a1c3-e4d3932c002e'.<br>
> Filter results: ['AggregateMultiTenancyIsolation: (start: 49, end: 37)',<br>
> 'AggregateInstanceExtraSpecsFilter: (start: 37, end: 34)', \<br>
> 'RetryFilter: (start: 34, end: 34)', 'AvailabilityZoneFilter: (start:<br>
> 34, end: 34)', 'ComputeFilter: (start: 34, end: 32)',<br>
> 'ComputeCapabilitiesFilter: (start: 32, end: 32)',<br>
> 'ImagePropertiesFilter: (star\<br>
> t: 32, end: 0)']<br>
<br>
<br>
</blockquote></div></div>