Earlier  
Posted Nick Remark
#openstack-nova - 2024-01-11
18:32:02 sean-k-mooney we likley shoudl fix that
18:32:13 sean-k-mooney either by skiping those tests
18:32:31 sean-k-mooney or by ensuring they are not useing the admin user
18:32:33 melwitt sean-k-mooney: there's at least one tempest test that involves admin doing something on behalf of a user, and by default, admin don't have permission to user's barbican secrets
18:32:37 melwitt yeah. I'm not sure if that's really what we want but I was just looking to see if I could pass all of tempest as-is
18:32:45 melwitt ack
18:33:05 sean-k-mooney right so i would not expect an admin to be able to start a vm with disk encyption
18:33:18 sean-k-mooney if they tweak the policy they could
18:33:24 sean-k-mooney but i dont think we ned to test that
18:33:26 melwitt ok, that makes it easy then
18:33:46 sean-k-mooney im going to skip that locally for now
18:33:59 melwitt sure
18:34:06 sean-k-mooney we could docuemnt this i just dont know if we want to test it as i would generally think its best to test with default policy
18:35:14 melwitt I think that would be fine. I agree it's best to test with default policy
18:35:46 sean-k-mooney ill be around for about another hour
18:35:53 sean-k-mooney im going to kick off https://termbin.com/k0sv
18:36:07 sean-k-mooney and then ill proably start playing with it tomorrow or monday
18:36:33 melwitt the admin test is good to verify that it is _possible_ to let admin do stuff if someone wanted that
18:36:35 melwitt but that's all it's for
18:37:16 melwitt ok cool
18:37:36 sean-k-mooney i need to do some prep on the vm fist like install git and clone devstack
18:37:49 sean-k-mooney but that wont thake that long
18:47:47 wncslln hi o/, anyone can help me to enable boot with uefi mode, please?
18:48:20 sean-k-mooney you just need to set hw_firmware_type=uefi in the glance iamge properties i belive
18:48:32 sean-k-mooney oh an hw_machine_type=q35
18:48:57 wncslln just set this two properties?
18:48:59 sean-k-mooney assuming you have the correct ovmf firmware installed on all your compute nodes
18:49:31 wncslln hmmm i dont think i have
18:49:32 sean-k-mooney yep if you have install the ovmf package on all your compute nodes then qemu will have access to the uefi firmeware
18:49:57 sean-k-mooney https://docs.openstack.org/nova/yoga/admin/uefi.html
18:51:13 sean-k-mooney hw_machine_type=q35 is semi optional
18:51:40 sean-k-mooney qemu considers uefi with the the pc machine type to be experimantal and not recommended
18:52:05 sean-k-mooney most distos dont ship a ovmf fireware that properly supprots it
18:52:06 wncslln i have deployed with kolla-ansible so nova agents are containers. this is a problem?
18:52:10 sean-k-mooney so q35 should be used
18:52:22 sean-k-mooney no i have kolla-ansible at home
18:52:33 sean-k-mooney i am pretty sure there contienres have to correct pakcages already
18:52:53 sean-k-mooney so you just need ot set those tow imagea proepries in glance on the image and it should work
18:53:03 sean-k-mooney assuming the glance iamge supprot uefi
18:53:14 sean-k-mooney the image need to have a gpt partion table and an efi partion
18:53:24 sean-k-mooney same as real hardware
19:02:26 wncslln i setted the properties but the vm wont boot. could be a problem in the image
19:02:57 sean-k-mooney i would try somethign like the latest ubuntu cloud image
19:03:11 sean-k-mooney i think that support uefi boot but its been a while since i tried it
19:03:16 wncslln there is a way to know if the image have a gpt and efi partion?
19:03:40 sean-k-mooney you can download it and inspect it in a vm or with tools like libguestfs
19:05:30 wncslln ok, i'll make some tests here
19:05:40 wncslln sean-k-mooney: thanks for the help
19:38:46 wncslln sean-k-mooney: i found the problem xD probably the image that im using has no uefi/gpt. i downloaded the ubuntu cloud image with support to uefi and worked fine
19:44:37 sean-k-mooney cool
19:44:54 sean-k-mooney ya that make sense a lot of older images wont
19:45:15 sean-k-mooney and if you created it form an iso inn a vm you need to make sure that initall vm is also set up for uefi
19:45:33 sean-k-mooney same for windows as the installers have diffent default based on how the vm was booted
19:46:31 wncslln the image with problem is a snapshot from a vm annndddd probably the old image does not have uefi
19:50:13 opendevreview Merged openstack/nova-specs master: List requested availability zones https://review.opendev.org/c/openstack/nova-specs/+/904368
19:54:43 sean-k-mooney melwitt: https://paste.opendev.org/show/biqXsY6SO6ePMPosdwIW/
20:00:32 melwitt sean-k-mooney: that's good right? haha
20:00:58 sean-k-mooney yep https://termbin.com/9tk3
20:01:15 sean-k-mooney well sort of
20:01:35 sean-k-mooney i copied that config form your raw job
20:01:48 sean-k-mooney so its is using disk encyption
20:01:54 sean-k-mooney and i can log into the vm via the console
20:02:00 sean-k-mooney so it booted fine
20:02:18 sean-k-mooney however its still booting form a qcow with a raw backing file
20:02:26 sean-k-mooney so its not actully checking raw images properly
20:02:56 sean-k-mooney but ya it looks like everything is working correctly other then that. and i booted with both swap and ephmeral
20:03:28 sean-k-mooney im going to leave it there for tonight just wanted to let you knwo i ahve successfuly deployed our code and booted a vm with it
20:03:31 melwitt sean-k-mooney: you have set both use_cow_images = False and images_type = raw? bc if you don't set both it won't do raw
20:04:06 sean-k-mooney images_type=raw or flat
20:04:32 melwitt ok, thanks :)
20:05:39 sean-k-mooney actully im goign to check something
20:06:00 melwitt ok. at least for me if use_cow_images is not set to False, it will do qcow2 instead of raw despite images_type = raw or flat
20:06:18 sean-k-mooney i started with your raw job
20:06:32 sean-k-mooney but i might not have kept that in the local.conf when i finished editing it
20:07:07 sean-k-mooney ok ya
20:07:12 sean-k-mooney i removed that in my editing
20:07:22 melwitt ok. that's the only way I know of that what you're seeing could be happening. if you do have use_cow_images = False then something else is wrong that I haven't seen yet
20:07:26 sean-k-mooney so everything is working as expecte its using qcow for the vms because that is the default
20:07:54 sean-k-mooney no in my local.conf i don thave those set so we are getting the default
20:08:32 melwitt ok I see
20:09:25 sean-k-mooney so cool i wont have time to do much with this tomorrow but ill play around with it on monday and start reivewing the series
20:09:34 sean-k-mooney have you done any multi node testing.
20:09:38 sean-k-mooney i.e. cold/live migration
20:10:33 sean-k-mooney the current zuul jobs seam to be single node
20:11:39 sean-k-mooney on a related note i ported your scater gather patch on to my serise and i got a pretty clean zuul run https://review.opendev.org/c/openstack/nova/+/905285
20:12:14 sean-k-mooney the main delta between what i have doen is how we monkeypatch
20:12:43 melwitt sean-k-mooney: hm looks like no. I did resize in place. I'll add a multinode job on that patch
20:13:09 sean-k-mooney ok cool ill add a second node and play with that locally too next week
20:14:38 melwitt sean-k-mooney: ok cool. I dunno if you saw I wrote up a comment on the scatter gather patch about how I am seeing requests getting "stuck" on nova-api, like it receives the request and does all the stuff but does not respond. I have seen this in other failures that are not related with my patch too but with the patch it seems to happen much more often
20:14:58 sean-k-mooney ya i did
20:15:13 melwitt oh ok
20:15:16 sean-k-mooney i wanted to see if i saw the same behvior
20:15:33 sean-k-mooney i was wondering if htat coudl be related to how/when monkey patching was done
20:15:39 melwitt ok yeah
20:15:58 sean-k-mooney but there is also this comment on my patch https://review.opendev.org/c/openstack/nova/+/905285/1/nova/compute/multi_cell_list.py
20:16:02 sean-k-mooney that might be related too
20:16:10 sean-k-mooney the timeout might need to be done in the try?
20:16:28 sean-k-mooney or rather the creation or the timer
20:16:32 melwitt that's good. really want to find what/why that's happening
20:16:42 melwitt yeah I was thinking about that too

Earlier   Later