Thursday, 2026-07-02

tkajinamgibi, thanks for the information !00:27
opendevreviewRafael Weingartner proposed openstack/nova master: Add logs for PCI passthrough device selection  https://review.opendev.org/c/openstack/nova/+/91536102:08
opendevreviewChungWon Lee proposed openstack/nova stable/2025.1: Add regression test for bug #2134375  https://review.opendev.org/c/openstack/nova/+/99183705:58
opendevreviewChungWon Lee proposed openstack/nova stable/2025.1: Fix port remain while error on update port with multi network  https://review.opendev.org/c/openstack/nova/+/99183806:00
opendevreviewAshish Gupta proposed openstack/nova master: tests: use file-backed Placement SQLite in functional threading  https://review.opendev.org/c/openstack/nova/+/99258107:07
opendevreviewAshish Gupta proposed openstack/placement master: tests: Support shared file-backed SQLite in placement fixtures  https://review.opendev.org/c/openstack/placement/+/99310607:17
*** ykarel_ is now known as ykarel07:53
gibiJul 02 04:54:32 amd-milan-08.khw.eng.rdu2.dc.redhat.com nova-compute[601561]: INFO nova.virt.libvirt.host [None req-1f3be882-c232-4040-99ad-1d1ed0169b60 None None] AMD SEV-SNP support detected08:57
gibitkajinam: I was able to boot a SNP guest \o/09:32
gibiI see the guest kernel reporting that the feature is active but I dont see the /dev/sev_guest dev09:32
gibidetails are in root@vm4:~# uname -a09:32
gibiLinux vm4 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux09:32
gibisorry 09:32
gibiI mean details are in https://paste.openstack.org/show/byGj4shLtRQ4PfEhM0oq/09:33
gibiI also left a comment in the series about a missing error handling in the API I noticed during the testing09:33
gibiIf you need me to check out / test specific things on my side with the series and my HW let me know I have the HW still today and tomorrow. (and I can probably get it back later for another run)09:34
opendevreviewKamil Sambor proposed openstack/nova master: Add concurrency_backend config option for Nova services  https://review.opendev.org/c/openstack/nova/+/99376009:35
tkajinamgibi, can you check dev/sev-guest in guest, instead ?10:02
tkajinamI vaguely remember the device path was renamed at some point10:02
tkajinamgibi, and thanks a lot for that testing !!!10:03
tkajinamas you wrote in the note the SEV-SNP flag is detected there so it should be ok10:06
tkajinamI probably have to check where that "<value>sev-snp</value>" line in the log comes from10:06
opendevreviewLuca Miccini proposed openstack/nova master: Fix encrypted volume migration/evacuation cross-project failure  https://review.opendev.org/c/openstack/nova/+/99579210:09
tkajinamI guess I found the problem and that's something I copied from a different place10:13
tkajinamI will look into it later10:14
opendevreviewLajos Katona proposed openstack/nova master: libvirt: Add test for MTU overwrite during live migration  https://review.opendev.org/c/openstack/nova/+/99580311:23
gibiroot@vm4:~# ls -alh /dev | grep -i sev11:42
gibiroot@vm4:~# 11:42
gibitkajinam: so no luck11:42
tkajinamhmm11:43
tkajinamyou might have to load the module manually by sudo modprobe sev-guest11:43
gibimaybe that ubuntu 24.04 is old11:45
gibiI will get some newer guest images...11:45
opendevreviewLajos Katona proposed openstack/nova master: libvirt: Add test for MTU overwrite during live migration  https://review.opendev.org/c/openstack/nova/+/99580311:53
opendevreviewLajos Katona proposed openstack/nova master: libvirt: Avoid setting MTU during live migration if different  https://review.opendev.org/c/openstack/nova/+/99580911:53
gibitkajinam: yepp, ubuntu 26.10 has the device driver11:57
gibiroot@vm5:~# dmesg | grep -i sev11:57
gibi[    2.808527] Memory Encryption Features active: AMD SEV SEV-ES SEV-SNP11:57
gibi[    2.810467] SEV: Status: SEV SEV-ES SEV-SNP 11:57
gibi[    2.930482] SEV: APIC: wakeup_secondary_cpu() replaced with wakeup_cpu_via_vmgexit()11:57
gibi[    2.997522] SEV: Using SNP CPUID table, 33 entries present.11:57
gibi[    2.998473] SEV: SNP running at VMPL0.11:57
gibi[    3.873373] SEV: SNP guest platform devices initialized.11:57
gibi[    8.143499] systemd[1]: Detected confidential virtualization sev-snp.11:57
gibi[    9.710699] sev-guest sev-guest: Initialized SEV guest driver (using VMPCK0 communication key)11:57
gibi[    9.790649] kvm_amd: KVM is unsupported when running as an SEV guest11:57
gibiroot@vm5:~# ll /dev/sev-guest 11:57
gibicrw------- 1 root root 10, 263 Jul  2 11:54 /dev/sev-guest11:57
gibiroot@vm5:~# 11:57
tkajinam\o/12:04
tkajinamyou might want to try the snpguest tool in that guest to load attestation report.12:08
tkajinamgibi, if you still have machine time available then could you also try direct kernel boot 12:10
tkajinamsomething like12:10
tkajinamopenstack image create kernel --file vmlinuz --disk-format raw 12:10
tkajinamopenstack image create kernel --file initrd.img --disk-format raw 12:11
tkajinamopenstack image set <image name> --property kernel_id =<kernel_image_id> --property=<ramdisk_image_id>12:11
tkajinamyou may need to grub these files from guest or if you use the same os for both host and guest then you can use the one in host12:13
opendevreviewTakashi Kajinami proposed openstack/nova master: Return 400 for incomplete image properties for locked memory  https://review.opendev.org/c/openstack/nova/+/99581312:38
tkajinam^^^ I wonder if there is any good place to implement tests for such behavior.12:39
gibitkajinam: sure I can try those12:47
opendevreviewKamil Sambor proposed openstack/nova master: Add concurrency_backend config option for Nova services  https://review.opendev.org/c/openstack/nova/+/99376012:55
opendevreviewTakashi Kajinami proposed openstack/nova master: Return 400 for incomplete image properties for locked memory  https://review.opendev.org/c/openstack/nova/+/99581313:02
gibitkajinam: I have the snpguest tool but not much I can do with it as far as I see ( I did not get the concepts from the github repo)13:05
tkajinamsnpguest report attestation-report.bin random-request-file.bin --random13:08
tkajinamsnpguest display report attestation-report.bin13:08
gibiahh thanks13:09
gibihttps://paste.openstack.org/show/bVsgOmG2ePXDOp4R8hpq/13:09
tkajinamif the command is correct then you see the report data generated by the secure processor within CPU13:09
gibiit works13:09
gibithose things I understand from the report seems valid13:10
tkajinamThis is the core mechanism to let guest owner to "attest" (verify integrity of) the guest13:10
tkajinamyeah13:10
gibicool13:10
gibiI will play with the direct kernel as well..13:10
tkajinamif you use direct kernel boot then the measurement should be changed. its expected value can be calculated from hashes of ovmf, kernel, ramdisk and kernel command line, but as long as you see the value is changed then you can assume things are working fine.13:13
gibiOK cool13:15
gibithanks for the guidance13:15
tkajinamgibi, thank you, too, for spending time for these tests :-)13:20
gibitkajinam: I failed to find the right incantation to boot the same ubuntu 26.10 as separate kernel and initrd then things that nova/glance accepts result is an earl boot failure of the guest. So I will skip this test now13:51
tkajinamgibi, ok. do you see that the domain is launched ?14:27
opendevreviewTakashi Kajinami proposed openstack/nova master: Return 400 for incomplete image properties for locked memory  https://review.opendev.org/c/openstack/nova/+/99581314:28
opendevreviewTakashi Kajinami proposed openstack/nova master: Return 400 for invalid properties for locked memory  https://review.opendev.org/c/openstack/nova/+/99581314:38
opendevreviewTakashi Kajinami proposed openstack/nova master: Return 400 for invalid properties for locked memory  https://review.opendev.org/c/openstack/nova/+/99581314:44
gibitkajinam: yeah the domain runs from libvirt perspective just something with the initrd is broken14:53
gibi[    4.804941] systemd[1]: Started systemd-journald.service - Journal Service.14:53
gibi[    4.812890] Loading iSCSI transport class v2.0-870.14:53
gibi[    4.823372] iscsi: registered transport (tcp)14:53
gibi[    4.840250] iscsi: registered transport (qla4xxx)14:53
gibi[    4.845336] QLogic iSCSI HBA Driver14:53
gibiGenerating "/run/initramfs/rdsosreport.txt"14:53
gibiEntering emergency mode. Exit the shell to continue.14:53
gibiType "journalctl" to view system logs.14:53
gibiYou might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot14:54
gibiafter mounting them and attach it to a bug report.14:54
tkajinamok. you might need to add os_command_line property, too, though I think it's ok as long as domain boots because it indicates that ovmf actually supports measured boot using dkb14:54
tkajinamdo you see kernelHashes: yes in libvirt domain ,right ?14:55
opendevreviewTakashi Kajinami proposed openstack/nova master: Return 400 for invalid properties for locked memory  https://review.opendev.org/c/openstack/nova/+/99581314:55
opendevreviewTakashi Kajinami proposed openstack/nova master: Validate image properties for stateless firmware at API layer  https://review.opendev.org/c/openstack/nova/+/99583514:55
gibi  <launchSecurity type='sev-snp' kernelHashes='yes' authorKey='no' vcek='yes'>14:56
gibiyep14:56
tkajinamnice14:56
gibiI really like how attestation made easy via the device added to the guest. As far as I see intel TDX does not have that 14:57
tkajinamyeah14:57
tkajinamTDX and SGX complicated it by qgs14:58
tkajinamwhile in SNP it's fully handled within the hardware14:58
tkajinamthe mechanisms to validate integrity of attestation reports is much more complicated in TDX, than SNP14:59
tkajinamthat's one of the main reasons SNP is still popular in this area15:00
opendevreviewJoan Gilabert proposed openstack/nova master: Report OWNER_NOVA trait on resource providers  https://review.opendev.org/c/openstack/nova/+/99429915:35
opendevreviewJoan Gilabert proposed openstack/nova master: Add libvirt driver MDEV ARQ support for Cyborg  https://review.opendev.org/c/openstack/nova/+/99584015:35
opendevreviewTakashi Kajinami proposed openstack/nova master: Validate image properties for stateless firmware at API layer  https://review.opendev.org/c/openstack/nova/+/99583515:38
opendevreviewTakashi Kajinami proposed openstack/nova master: compute: Validate SEV/SEV-ES support at start up  https://review.opendev.org/c/openstack/nova/+/99434215:39
opendevreviewTakashi Kajinami proposed openstack/nova master: libvirt: Ignore SEV-ES when SEV-SNP is detected  https://review.opendev.org/c/openstack/nova/+/99434315:39
opendevreviewTakashi Kajinami proposed openstack/nova master: libvirt: Detect AMD SEV-SNP support  https://review.opendev.org/c/openstack/nova/+/99476415:39
opendevreviewTakashi Kajinami proposed openstack/nova master: libvirt: Support launchSecurity element for SEV-SNP  https://review.opendev.org/c/openstack/nova/+/99492015:39
opendevreviewTakashi Kajinami proposed openstack/nova master: libvirt: Omit optional fields for SEV/SEV-ES  https://review.opendev.org/c/openstack/nova/+/99492115:39
opendevreviewTakashi Kajinami proposed openstack/nova master: libvirt: Drop sev capability check in launch instance flow  https://review.opendev.org/c/openstack/nova/+/99492915:39
opendevreviewTakashi Kajinami proposed openstack/nova master: AMD SEV: omit iommu='on' for virtio devices  https://review.opendev.org/c/openstack/nova/+/90963515:39
opendevreviewTakashi Kajinami proposed openstack/nova master: libvirt: Launch instances with SEV-SNP memory encryption  https://review.opendev.org/c/openstack/nova/+/99493015:39
opendevreviewTakashi Kajinami proposed openstack/nova master: Update documentations for AMD SEV-SNP support  https://review.opendev.org/c/openstack/nova/+/99509015:39
opendevreviewTakashi Kajinami proposed openstack/nova master: Remove [libvirt] num_memory_encrypted_guests  https://review.opendev.org/c/openstack/nova/+/99512015:39
opendevreviewLajos Katona proposed openstack/nova master: libvirt: Avoid setting MTU during live migration if different  https://review.opendev.org/c/openstack/nova/+/99580915:48
opendevreviewLajos Katona proposed openstack/nova master: Add regression test to repoduce bug 1854844  https://review.opendev.org/c/openstack/nova/+/99177215:48
opendevreviewLajos Katona proposed openstack/nova master: libvirt: Preserve queue_size during live migration  https://review.opendev.org/c/openstack/nova/+/99584115:48
opendevreviewJoan Gilabert proposed openstack/nova master: Report OWNER_NOVA trait on resource providers  https://review.opendev.org/c/openstack/nova/+/99429915:59
opendevreviewJoan Gilabert proposed openstack/nova master: Add libvirt driver MDEV ARQ support for Cyborg  https://review.opendev.org/c/openstack/nova/+/99584015:59
opendevreviewDan Smith proposed openstack/nova master: Fix mutating global config in websocket proxy  https://review.opendev.org/c/openstack/nova/+/99587017:49
dansmithgmaan: melwitt: This ^ security bug got publicized a bit earlier than intended, so if you could quickly have a look at that fix real quick I'd appreciate it :)17:50
gmaandansmith: checking17:51
gmaanat least it is not yet on ML, it can be mark private again ? 17:55
dansmithgmaan: I guess it could, but the plan was to mark it public and push up a fix, not embargoed17:58
dansmithit got marked public right away and I just had a few minutes to work up a fix is all :)17:59
gmaandansmith: ack, lgtm, but it need release notes alslo18:01
dansmithgmaan: does it?18:02
dansmithjust because of the bug?18:02
gmaanyeah mainly for bug, i mean it is still secure until they have valid console token but in case to make it aware that some potential issue is fixed in this change18:03
dansmithI continue to argue that I don't understand the point of documenting every bug we fix a a reno when we also link the bugs, but serious bugs make sense.. not sure this qualifies just because it's security, but okay :)18:03
gmaanhonestly saying I do not see this a direct security as console access is still protected by token validation but still it provide a way to add host18:05
dansmithgmaan: it's poisoning the CORS list and you can exhaust host memory by continuing to expand it, but agree, not super serious which is why I thought direct to public and a fix, no embargo18:06
dansmithprovides more opportunity for XSS/phishing attack18:06
gmaanyeah, that is valid point18:07
opendevreviewDan Smith proposed openstack/nova master: Fix mutating global config in websocket proxy  https://review.opendev.org/c/openstack/nova/+/99587018:15
opendevreviewMerged openstack/nova master: Fix mutating global config in websocket proxy  https://review.opendev.org/c/openstack/nova/+/99587022:47
*** zseguin_ is now known as zseguin23:53

Generated by irclog2html.py 4.1.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!