nova instance taking shared cpus while flavor has hw_cpu_policy=dedicated configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
when I am trying to use dedicated cpus, it is taking from shared cpu list only...
1. I have 4 shared and 44 dedicated cpus in the compute.
root@computedp:
cpu_shared_set = 0-3
cpu_dedicated_set = 4-47
2. I am just trying to assign cpus from dedicated list in my instance, using below flavor for that
root@controller# openstack flavor show testnew
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| description | None |
| disk | 10 |
| id | 37f816c6-
| name | testnew |
| os-flavor-
| properties | hw:cpu_
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------
3. nova-scheduler log is showing
2024-02-20 11:14:08.447 3247 INFO nova.virt.hardware [req-a5c01121-
4. instance is launched and taking cpus from shared list only
root@computedp:# virsh vcpupin 37
VCPU CPU Affinity
-------
0 0,2
1 0,2
2 0,2
3 0,2
5. instance log also doesn't contain any dedicated info
root@computedp:# cat /var/log/
2024-02-20 05:44:10.539+0000: starting up libvirt version: 6.0.0, package: 0ubuntu8.16 (Marc Deslauriers <email address hidden> Wed, 20 Apr 2022 11:31:12 -0400), qemu version: 4.2.1Debian 1:4.2-3ubuntu6.28, kernel: 5.4.0-125-generic, hostname: computedp
LC_ALL=C \
PATH=/usr/
HOME=/var/
XDG_DATA_
XDG_CACHE_
XDG_CONFIG_
QEMU_AUDIO_DRV=none \
/usr/bin/
-name guest=instance-
-S \
-object secret,
-machine pc-i440fx-
-cpu host \
-m 8192 \
-overcommit mem-lock=off \
-smp 4,sockets=
-object memory-
-numa node,nodeid=
-uuid 1ae64fb2-
-smbios 'type=1,
-no-user-config \
-nodefaults \
-chardev socket,
-mon chardev=
-rtc base=utc,
-global kvm-pit.
-no-hpet \
-no-shutdown \
-boot strict=on \
-device piix3-usb-
-blockdev '{"driver"
-blockdev '{"node-
-blockdev '{"driver"
-blockdev '{"node-
-device virtio-
-netdev tap,fd=
-device virtio-
-add-fd set=3,fd=42 \
-chardev pty,id=
-device isa-serial,
-device usb-tablet,
-vnc 0.0.0.0:5 \
-device cirrus-
-device virtio-
-object rng-random,
-device virtio-
-sandbox on,obsolete=
-msg timestamp=on
2024-02-20 05:44:10.539+0000: Domain id=37 is tainted: host-cpu
char device redirected to /dev/pts/19 (label charserial0)
6. Although irrelevant but my system also has isolated cpus as well..
root@computedp:# cat /proc/cmdline
BOOT_IMAGE=
Let me know if you find any issue with the setup or is it an expected behavior?