[zuul@controller ~]$ oc exec nova-scheduler-0 -- cat /etc/nova/nova.conf.d/02-nova-override.conf [filter_scheduler] image_props_weight_setting = 'hw_cpu_threads=2, hw_cpu_policy=10' image_props_weight_multiplier = 10000.0 [zuul@controller ~]$ oc rsh openstackclient sh-5.1$ openstack image list +--------------------------------------+----------------------------------+--------+ | ID | Name | Status | +--------------------------------------+----------------------------------+--------+ | c31b83a5-d25c-4d9d-984f-4ab1646e021f | cirros-0.6.2-x86_64-disk.img | active | | 92177150-1fc8-4af6-98a6-cb051b3148f1 | cirros-0.6.2-x86_64-disk.img_alt | active | +--------------------------------------+----------------------------------+--------+ sh-5.1$ openstack image set c31b83a5-d25c-4d9d-984f-4ab1646e021f --property hw_cpu_policy=shared --property hw_cpu_threads=1 sh-5.1$ opesntack server create --image cirros-0.6.2-x86_64-disk.img --flavor m1.micro --network public osprh-19466-01 --wait sh: opesntack: command not found sh-5.1$ openstack server create --image cirros-0.6.2-x86_64-disk.img --flavor m1.micro --network public osprh-19466-01 --wait +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:instance_name | instance-00000113 | | OS-EXT-STS:power_state | Running | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2025-10-29T20:48:08.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=192.168.122.221 | | adminPass | XqfVSz4F5zYy | | config_drive | True | | created | 2025-10-29T20:48:00Z | | flavor | m1.micro (9f242c71-91aa-40d5-8e34-87a88c21b1ac) | | hostId | 66ad8001cb221e66bb29d9ae1c94516fb6535b23099e1aee8ca3e3fc | | id | ef5b7ba6-fd40-474c-8e4c-112cce1230aa | | image | cirros-0.6.2-x86_64-disk.img (c31b83a5-d25c-4d9d-984f-4ab1646e021f) | | key_name | None | | name | osprh-19466-01 | | progress | 0 | | project_id | d9e4e88bdcc24b4992a6650aa5e5a32d | | properties | | | security_groups | name='default' | | status | ACTIVE | | updated | 2025-10-29T20:48:09Z | | user_id | be00a266f79c4b96a098b17bb1155128 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+ sh-5.1$ openstack server create --image cirros-0.6.2-x86_64-disk.img --flavor m1.micro --network public osprh-19466-02 --wait +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:instance_name | instance-00000114 | | OS-EXT-STS:power_state | Running | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2025-10-29T20:52:36.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=192.168.122.187 | | adminPass | 4cvAzedqtYUJ | | config_drive | True | | created | 2025-10-29T20:52:30Z | | flavor | m1.micro (9f242c71-91aa-40d5-8e34-87a88c21b1ac) | | hostId | 66ad8001cb221e66bb29d9ae1c94516fb6535b23099e1aee8ca3e3fc | | id | 4e6e8c91-367c-462f-9ba8-3add1dc89aff | | image | cirros-0.6.2-x86_64-disk.img (c31b83a5-d25c-4d9d-984f-4ab1646e021f) | | key_name | None | | name | osprh-19466-02 | | progress | 0 | | project_id | d9e4e88bdcc24b4992a6650aa5e5a32d | | properties | | | security_groups | name='default' | | status | ACTIVE | | updated | 2025-10-29T20:52:37Z | | user_id | be00a266f79c4b96a098b17bb1155128 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+ sh-5.1$ exit exit [zuul@controller ~]$ oc logs -l service=nova-scheduler --tail=500 > cpu-sch.1.logs [zuul@controller ~]$ view cpu-sch.1.logs 2025-10-29 20:52:30.531 1 DEBUG nova.objects.instance [None req-2fbc821f-7b98-4397-93fe-7f9cdb9908fc - - - - - -] Lazy-loading 'image_ref' on Instance uuid ef5b7ba6-fd40-474c-8e4c-112cce1230aa obj_load_attr /usr/lib/python3.9/site-packages/nova/objects/instance.py:1105^[[00m 2025-10-29 20:52:30.555 1 DEBUG nova.weights [None req-2fbc821f-7b98-4397-93fe-7f9cdb9908fc - - - - - -] ImagePropertiesWeigher: raw weights {('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): 0.0, ('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): 12.0} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:136^[[00m 2025-10-29 20:52:30.556 1 DEBUG nova.weights [None req-2fbc821f-7b98-4397-93fe-7f9cdb9908fc - - - - - -] ImagePropertiesWeigher: normalized weights {('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): 0.0, ('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): 1.0} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:148^[[00m 2025-10-29 20:52:30.556 1 DEBUG nova.weights [None req-2fbc821f-7b98-4397-93fe-7f9cdb9908fc - - - - - -] ImagePropertiesWeigher: score (multiplier * weight) {('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): '10000.0 * 0.0', ('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): '10000.0 * 1.0'} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:166^[[00m [zuul@controller ~]$ oc rsh openstackclient sh-5.1$ openstack image set 92177150-1fc8-4af6-98a6-cb051b3148f1 --property hw_cpu_policy=shared sh-5.1$ openstack server create --image 92177150-1fc8-4af6-98a6-cb051b3148f1 --flavor m1.micro --network public osprh-19466-03 --wait +-------------------------------------+-------------------------------------------------------------------------+ | Field | Value | +-------------------------------------+-------------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:instance_name | instance-00000115 | | OS-EXT-STS:power_state | Running | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2025-10-29T20:57:30.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=192.168.122.189 | | adminPass | UHuFjYr5KhsR | | config_drive | True | | created | 2025-10-29T20:57:23Z | | flavor | m1.micro (9f242c71-91aa-40d5-8e34-87a88c21b1ac) | | hostId | 66ad8001cb221e66bb29d9ae1c94516fb6535b23099e1aee8ca3e3fc | | id | 56aa37fe-c4ab-4dcd-9938-e2e2ae652532 | | image | cirros-0.6.2-x86_64-disk.img_alt (92177150-1fc8-4af6-98a6-cb051b3148f1) | | key_name | None | | name | osprh-19466-03 | | progress | 0 | | project_id | d9e4e88bdcc24b4992a6650aa5e5a32d | | properties | | | security_groups | name='default' | | status | ACTIVE | | updated | 2025-10-29T20:57:32Z | | user_id | be00a266f79c4b96a098b17bb1155128 | | volumes_attached | | +-------------------------------------+-------------------------------------------------------------------------+ 2025-10-29 20:57:24.039 1 DEBUG nova.weights [None req-9b9a8c5a-59f8-4987-ba32-4c6bf4bee092 - - - - - -] ImagePropertiesWeigher: raw weights {('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): 0.0, ('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): 20.0} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:136^[[00m 2025-10-29 20:57:24.040 1 DEBUG nova.weights [None req-9b9a8c5a-59f8-4987-ba32-4c6bf4bee092 - - - - - -] ImagePropertiesWeigher: normalized weights {('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): 0.0, ('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): 1.0} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:148^[[00m 2025-10-29 20:57:24.040 1 DEBUG nova.weights [None req-9b9a8c5a-59f8-4987-ba32-4c6bf4bee092 - - - - - -] ImagePropertiesWeigher: score (multiplier * weight) {('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): '10000.0 * 0.0', ('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): '10000.0 * 1.0'} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:166^[[00m 2025-10-29 20:57:24.042 1 DEBUG nova.scheduler.manager [None req-9b9a8c5a-59f8-4987-ba32-4c6bf4bee092 - - - - - -] Weighed [WeighedHost [host: (compute-1.ctlplane.example.com, compute-1.ctlplane.example.com) ram: 14861MB disk: 70656MB io_ops: 0 instances: 2, allocation_candidates: 1, weight: 10002.696642399495], WeighedHost [host: (compute-0.ctlplane.example.com, compute-0.ctlplane.example.com) ram: 15245MB disk: 72704MB io_ops: 0 instances: 0, allocation_candidates: 1, weight: 3.0]] _get_sorted_hosts /usr/lib/python3.9/site-packages/nova/scheduler/manager.py:697^[[00m # os_secure_boot=optional --property os_admin_user=root [zuul@controller ~]$ oc exec nova-scheduler-0 -- cat /etc/nova/nova.conf.d/02-nova-override.conf [filter_scheduler] image_props_weight_setting = hw_cpu_threads=2, hw_cpu_policy=10, os_secure_boot=3, os_admin_user=5' image_props_weight_multiplier = 10000.0 sh-5.1$ openstack image set fff1d34a-9bd5-4116-ba6e-6f447ed97692 --property os_secure_boot=optional --property os_admin_user=root sh-5.1$ openstack server create --image fff1d34a-9bd5-4116-ba6e-6f447ed97692 --flavor m1.micro --network public osprh-19466-01 --wait +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-1.ctlplane.example.com |\\\\\\ | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:instance_name | instance-00000112 | | OS-EXT-STS:power_state | Running | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2025-10-30T19:02:02.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=192.168.122.208 | | adminPass | KJNRWw3fpDhV | | config_drive | True | | created | 2025-10-30T19:01:41Z | | flavor | m1.micro (a2d1ab26-0139-4ba8-96d0-0c998631448d) | | hostId | 8f9bc5f448bf07c5a089b3074b5ce8cf30be8cf794a09531b24d0276 | | id | b57c92cc-d0a3-4ea2-b8a0-b8f8d704e4ed | | image | cirros-0.6.2-x86_64-disk.img (fff1d34a-9bd5-4116-ba6e-6f447ed97692) | | key_name | None | | name | osprh-19466-01 | | progress | 0 | | project_id | 68ae4003503646df9a453ae7802fe67f | | properties | | | security_groups | name='default' | | status | ACTIVE | | updated | 2025-10-30T19:02:02Z | | user_id | bf00494e51cb4239bba84551bf3d5ec8 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+ sh-5.1$ openstack server create --image fff1d34a-9bd5-4116-ba6e-6f447ed97692 --flavor m1.micro --network public osprh-19466-02 --wait +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.ctlplane.example.com | | OS-EXT-SRV-ATTR:instance_name | instance-00000113 | | OS-EXT-STS:power_state | Running | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2025-10-30T19:15:07.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=192.168.122.188 | | adminPass | RNH4SGmpYiDL | | config_drive | True | | created | 2025-10-30T19:14:49Z | | flavor | m1.micro (a2d1ab26-0139-4ba8-96d0-0c998631448d) | | hostId | 8f9bc5f448bf07c5a089b3074b5ce8cf30be8cf794a09531b24d0276 | | id | 9f0a100e-f95d-41b4-85dd-7c17858eca2f | | image | cirros-0.6.2-x86_64-disk.img (fff1d34a-9bd5-4116-ba6e-6f447ed97692) | | key_name | None | | name | osprh-19466-02 | | progress | 0 | | project_id | 68ae4003503646df9a453ae7802fe67f | | properties | | | security_groups | name='default' | | status | ACTIVE | | updated | 2025-10-30T19:15:07Z | | user_id | bf00494e51cb4239bba84551bf3d5ec8 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+ 2025-10-30 19:14:51.731 1 DEBUG nova.weights [None req-bb4b5c32-0821-41f5-b62f-946a710179eb - - - - - -] ImagePropertiesWeigher: raw weights {('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): 3.0, ('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): 0.0} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:136^[[00m 2025-10-30 19:14:51.732 1 DEBUG nova.weights [None req-bb4b5c32-0821-41f5-b62f-946a710179eb - - - - - -] ImagePropertiesWeigher: normalized weights {('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): 1.0, ('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): 0.0} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:148^[[00m 2025-10-30 19:14:51.732 1 DEBUG nova.weights [None req-bb4b5c32-0821-41f5-b62f-946a710179eb - - - - - -] ImagePropertiesWeigher: score (multiplier * weight) {('compute-1.ctlplane.example.com', 'compute-1.ctlplane.example.com'): '10000.0 * 1.0', ('compute-0.ctlplane.example.com', 'compute-0.ctlplane.example.com'): '10000.0 * 0.0'} get_weighed_objects /usr/lib/python3.9/site-packages/nova/weights.py:166^[[00m ... 2025-10-30 19:14:51.737 1 DEBUG nova.scheduler.manager [None req-bb4b5c32-0821-41f5-b62f-946a710179eb - - - - - -] Weighed [WeighedHost [host: (compute-1.ctlplane.example.com, compute-1.ctlplane.example.com) ram: 15053MB disk: 70656MB io_ops: 0 instances: 1, allocation_candidates: 1, weight: 10002.848119992505], WeighedHost [host: (compute-0.ctlplane.example.com, compute-0.ctlplane.example.com) ram: 15245MB disk: 71680MB io_ops: 0 instances: 0, allocation_candidates: 1, weight: 3.0]] _get_sorted_hosts /usr/lib/python3.9/site-packages/nova/scheduler/manager.py:697^[[00m