Earlier  
Posted Nick Remark
#openstack-nova - 2025-01-30
19:33:59 sean-k-mooney it will pass in tempest but not unit tests with depends on
19:34:09 sean-k-mooney you could put the traits stuff at the end
19:34:43 mikal Oh, I've been doing the sound one in the sound patch, not in a separate one.
19:34:49 mikal I could separate them if I need to I suppose.
19:34:53 sean-k-mooney mikal: so the patch looks correct to me ill eave a copule of comments to that effect
19:35:00 mikal Thanks.
19:35:06 sean-k-mooney it can be in one pathc it normlaly is
19:35:11 mikal Ok
19:35:31 sean-k-mooney just the unit test will complain ectra if you try and import the constnat
19:35:50 mikal Even with a depends-on?
19:36:12 sean-k-mooney thre are ways to make ti work in unit test but its complex, ya we would have to properly hook up tox siblings and some other stuff
19:36:31 sean-k-mooney bacislly the unit test alwasy pull the libs form pypi
19:36:37 mikal Yeah, that doesn't sound like a good use of time.
19:36:38 sean-k-mooney we woudl need to make the job install them form souce
19:36:54 sean-k-mooney devstack has explcit supprot for this
19:37:20 mikal I am a big concerned about the feature freeze deadline, but not concerned enough to do something like that quite yet.
19:39:31 sean-k-mooney well even if we made it pass we still cant merge it for two reaons one we need to have a release or if anyone tries to use it for real it would break
19:39:46 sean-k-mooney second the depend on will prevent it form merging until the other patch is merged
19:40:00 sean-k-mooney so mechanically it would not speed anything up really
19:40:05 sean-k-mooney maybe slighlty
19:40:20 sean-k-mooney but only by the tiem ti takes to cut a release
19:40:43 mikal Yeah cool. I'll keep working on traits for sound and usb then and hope a release happens in the mean time.
19:41:15 mikal If you've got time for a quick scan of my traits attempt in https://review.opendev.org/c/openstack/nova/+/926126/12 that would be cool, but if you don't that's also fine.
19:42:40 sean-k-mooney i have +2'd the triats patch melwitt if your about care to take a look https://review.opendev.org/c/openstack/os-traits/+/940418
19:43:42 sean-k-mooney mikal: ah https://review.opendev.org/c/openstack/releases/+/940363 merged 6 hours ago
19:44:10 mikal How often do they do those releases? On demand?
19:44:21 sean-k-mooney bauzas: ^ we shoudl plan an os-traits 3.4.0 once we merge mikal's patch
19:44:34 sean-k-mooney mikal: yes on demand
19:44:40 melwitt sean-k-mooney: not sure I can do a useful review. what are the sources for the list enums? i.e. where do they come from
19:45:01 sean-k-mooney libvirt models. i was debating if we shoudl add the links
19:45:18 sean-k-mooney i decied nto to bring that up but since you asked
19:45:20 mikal Links to the domain XML docs?
19:45:33 sean-k-mooney https://libvirt.org/formatdomain.html#sound-devices
19:45:53 sean-k-mooney mikal: ya we sometime link to the libvirt docs or other refences
19:46:06 mikal I can do that if you want me to.
19:46:19 sean-k-mooney so for the nic models https://github.com/openstack/os-traits/blob/master/os_traits/compute/net.py#L25
19:46:27 sean-k-mooney we lined to the def in nova
19:47:31 sean-k-mooney in other case we link to specs https://github.com/openstack/os-traits/blob/master/os_traits/compute/security.py#L32
19:48:30 sean-k-mooney we dont require it but it can be useful, these are just comment for future us
19:48:44 mikal Please hold.
19:49:09 sean-k-mooney so like the link to wiki pages for all the cpu feature flags in https://github.com/openstack/os-traits/blob/master/os_traits/hw/cpu/x86/__init__.py
19:49:59 opendevreview Michael Still proposed openstack/os-traits master: Add traits for sound and USB devices on instances. https://review.opendev.org/c/openstack/os-traits/+/940418
19:51:27 melwitt sean-k-mooney: yeah I mean, otherwise I'm just like reviewing "hm yes, these look like all caps names in a list" 🙂
19:51:40 melwitt ✅
19:51:50 mikal Well in all fairness, it is a list of all caps names.
19:52:40 sean-k-mooney melwitt: no worries its a good callout
19:53:16 sean-k-mooney future it will help future us anyway
20:04:15 mikal So yeah, I think I've done that thing.
20:23:24 melwitt sean-k-mooney: commented on the review with a couple of questions with the main one being about if should have MODEL_NONE in this case
20:28:52 sean-k-mooney am, do we need ot report the ablity to not do somehitng
20:29:41 sean-k-mooney COMPUTE_USB_MODEL_NONE woudl mean the ablity to do emulation without any usb contoler
20:30:18 sean-k-mooney it is part of the grapics triats because when usign vgpus we wanted a way to say dont add an emulated grapics card
20:30:46 melwitt I dunno but we have it as a trait for hw_video_model
20:30:51 sean-k-mooney i guess we coudl add it for completeness
20:31:19 melwitt I'm ok with not having it (obviously I don't know this stuff) but wanted to bring it up in case it needs to be a thing
20:31:29 sean-k-mooney or well for video models we have a usecase to reqeust None because you get one by default if the host is set up for vnc or spice
20:32:07 sean-k-mooney so we added hw_graphic_model=none to opt out of that behavior
20:32:12 melwitt ah ok. and usb is not something that is enabled by default
20:32:19 sean-k-mooney it actully is
20:32:24 sean-k-mooney so im thinking your right
20:32:39 sean-k-mooney melwitt: you can configure the default pointer model to ps2 or usb
20:32:48 melwitt not sure if there is a use case for wanting to explicitly disable it
20:33:03 sean-k-mooney the use case to still use ps2 is lower overhead for realtime guest
20:33:20 sean-k-mooney which is whey they prefer serial console or no console over spice/vnc
20:33:30 sean-k-mooney less overhead to the vm due to interupts
20:33:31 melwitt oh... now that you say that it sounds vaguely familiar
20:34:20 sean-k-mooney https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.pointer_model
20:34:49 sean-k-mooney the thing is i dont know if none is a valid libvirt value or if you just dont create the device xml
20:35:05 melwitt ah, good ol usbtablet
20:35:47 sean-k-mooney so for sound modle https://libvirt.org/formatdomain.html#sound-devices it looks like you jsut dont create it but i also know that you can get a sound card added becasule fo q35 i think
20:36:30 melwitt oh, I got the idea from the libvirt doc. it says "Additionally, since 0.10.0, if the USB bus needs to be explicitly disabled for the guest, model='none' may be used." https://libvirt.org/formatdomain.html#controllers
20:36:32 sean-k-mooney for usb contooler i think you just dont add one
20:36:40 melwitt so that's why I asked
20:36:44 sean-k-mooney oh i missed htat
20:37:20 sean-k-mooney so we could supprot it but that would need more work to chnage the pointer model if the config would use usb
20:37:55 sean-k-mooney melwitt: your raisign very reasonable points to which i dont have a simple answer
20:37:59 melwitt hm ok
20:38:53 sean-k-mooney my my concern is delaying the spice direct feature again for this. im wondering if we could add none later if we needed it?
20:39:08 sean-k-mooney basiclly not to expand the scope more
20:39:36 melwitt yeah.. I'm assuming we can punt that to later. this was just in case you already knew it's a thing we need we could add it
20:40:07 sean-k-mooney we didn tactully dicsus traits in the spec https://specs.openstack.org/openstack/nova-specs/specs/2025.1/approved/libvirt-spice-direct-consoles.html
20:40:12 sean-k-mooney we proably should have
20:40:40 sean-k-mooney but we also didnt dicsu opting out
20:40:45 melwitt yeah. I was surprised to see the traits patch bc I didn't realize it would have traits
20:41:16 sean-k-mooney it can merge without it. the traits will allow for schdulign using the image properies filter
20:41:25 sean-k-mooney sorry
20:41:35 sean-k-mooney the image metadata pre filter
20:41:45 melwitt gotcha
20:42:07 sean-k-mooney https://github.com/openstack/nova/blob/master/nova/scheduler/request_filter.py#L199-L239
20:42:21 sean-k-mooney so that is just a nice to have for schduling
20:42:50 sean-k-mooney i suggested addign it because the virtio sound model is the only one not supported by our min libvirt/qemu version
20:42:58 sean-k-mooney for usb that not a problem
20:43:05 melwitt oh ok, so we would add hw_sound_model and hw_usb_model into that prefix map
20:43:45 sean-k-mooney yep and if you requst either in the image it will add the reqiured trait to land you on a host that supprot it
20:44:24 sean-k-mooney mikal: so to be clear the traits are optional, certently nice to have but can be done next cycle
20:44:58 sean-k-mooney the compute service bump adn min version check are needed so that we ensure we never boot on a host hat does not supprot it
20:45:38 sean-k-mooney without that you can request a usb devices and because old nova does not no about it it will boot without them
20:47:04 sean-k-mooney mikal: that is protected agaist by a compute service bump for each fo the usb and audio emulation patches and a min version check for server create and rebuild.
20:47:23 melwitt to be clear, I'm not opposed to the traits ... I was just trying to understand what I'm reviewing
20:47:59 sean-k-mooney ack, no worries

Earlier   Later