RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1973330 - RHEL9: Actual number of guest CPUs is not equal to expected
Summary: RHEL9: Actual number of guest CPUs is not equal to expected
Keywords:
Status: CLOSED DUPLICATE of bug 1903243
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kernel
Version: 9.0
Hardware: s390x
OS: Linux
medium
medium
Target Milestone: beta
: ---
Assignee: Thomas Huth
QA Contact: bfu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 16:13 UTC by bfu
Modified: 2021-07-08 05:06 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-22 13:24:03 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description bfu 2021-06-17 16:13:57 UTC
Description of problem:
After hotplug a vcpu in rhel9 guest, the new cpu was offline, it could be restore in online status after reboot the guest

Version-Release number of selected component (if applicable):
host kernel: 5.13.0-0.rc4.33.el9.s390x
guest kernel: 5.13.0-0.rc4.33.el9.s390x
qemu version: qemu-kvm-6.0.0-5.el9.s390x

How reproducible:
100%

Steps to Reproduce:
1. Boot up a guest with
/usr/libexec/qemu-kvm \
 -name 'avocado-vt-vm1' \
 -sandbox on \
 -machine s390-ccw-virtio \
 -nodefaults \
 -vga none \
 -m 3072 \
 -smp 5,maxcpus=6,cores=3,threads=1,sockets=2  \
 -cpu 'host' \
 -chardev socket,id=qmp_id_qmpmonitor1,server,path=/var/tmp/avocado_1,nowait \
 -mon chardev=qmp_id_qmpmonitor1,mode=control \
 -chardev socket,id=chardev_serial0,server,path=/tmp/bfu,nowait \
 -device sclpconsole,id=serial0,chardev=chardev_serial0 \
 -device virtio-scsi-ccw,id=virtio_scsi_ccw0 \
 -blockdev node-name=file_image1,driver=file,aio=threads,filename=/home/bfu/kar/vt_test_images/rhel900-s390x-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
 -blockdev node-name=drive_image1,driver=qcow2,cache.direct=on,cache.no-flush=off,file=file_image1 \
 -device virtio-blk-ccw,id=image1,drive=drive_image1,write-cache=on \
 -device virtio-net-ccw,mac=9a:9f:19:fe:49:13,id=idh8Nq82,netdev=idVx9QzC \
 -netdev tap,id=idVx9QzC,vhost=on \
 -nographic \
 -rtc base=utc \
 -boot strict=on \
 -enable-kvm \
 -device virtio-mouse-ccw,id=input_mouse1 \
 -device virtio-keyboard-ccw,id=input_keyboard1 \
 -qmp stdio

2. Hotplug a vcpu as follow commands
 {"execute": "qmp_capabilities", "id": "y5bmzGU1"}
{"return": {}, "id": "y5bmzGU1"}
{"execute": "device_add", "arguments": {"id": "main_vcpu", "core-id": "0", "driver": "host-s390x-cpu"}, "id": "PgXcu7UJ"}
{"id": "PgXcu7UJ", "error": {"class": "GenericError", "desc": "Unable to add CPU with core-id: 0, it already exists"}}
{"execute": "device_add", "arguments": {"id": "vcpu1", "driver": "host-s390x-cpu", "core-id": 5}, "id": "bsi4CWYq"}
{"return": {}, "id": "bsi4CWYq"}

3.Check number of vcpu as follow commands:
[root@localhost ~]# grep -c "^processor\b" /proc/cpuinfo
5


Actual results:
[root@localhost ~]# grep -c "^processor\b" /proc/cpuinfo
5

Expected results:
[root@localhost ~]# grep -c "^processor\b" /proc/cpuinfo
6

Additional info:

Comment 1 bfu 2021-06-18 02:02:26 UTC
Reproduce this bug on scenarios below:
8.5 host, 8.5 guest: PASS
8.5 host, 9.0 guest: Fail
9.0 host, 9.0 guest: Fail
9.0 host, 8.5 guest: PASS

Comment 2 smitterl 2021-06-18 06:36:58 UTC
I believe this is a duplicate for https://bugzilla.redhat.com/show_bug.cgi?id=1903243

Boqiao, can you try copy the udev rule from an existing 8.5 guest to the 9 guest and see if you can still reproduce?

Comment 3 smitterl 2021-06-18 06:37:31 UTC
(In reply to smitterl from comment #2)
> I believe this is a duplicate for
> https://bugzilla.redhat.com/show_bug.cgi?id=1903243
> 
> Boqiao, can you try copy the udev rule from an existing 8.5 guest to the 9
> guest and see if you can still reproduce?

The /lib/udev/rules.d/40-redhat.rules more specifically.

Comment 4 bfu 2021-06-22 13:24:03 UTC

*** This bug has been marked as a duplicate of bug 1903243 ***

Comment 5 bfu 2021-07-08 05:06:08 UTC
after modify /lib.udev/rules.d/40-redhat.rules, this bug won't reproduce, so set this as duplicate as bz 1903243


Note You need to log in before you can comment on or make changes to this bug.