Wednesday, 2024-06-26

opendevreviewMerged openstack/devstack-plugin-ceph master: [manila] Enforce cephfsnative as the default driver  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/92267802:42
opendevreviewAmit Uniyal proposed openstack/tempest master: Adds placement trait api calls  https://review.opendev.org/c/openstack/tempest/+/92237907:08
opendevreviewAmit Uniyal proposed openstack/tempest master: Adds placement resource provider traits API calls  https://review.opendev.org/c/openstack/tempest/+/92256707:08
*** tosky_ is now known as tosky12:37
dtantsurhey, anyone seen this?15:55
dtantsur[ERROR] /opt/stack/devstack/inc/meta-config:191 bogus config file specification $NOVA_CPU_CONF ($NOVA_CPU_CONF=/etc/nova/nova-cpu.conf, /etc/nova is not a directory)15:55
dtantsurThis is on ironic jobs that do not have Nova15:55
dtantsurexample https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_9d0/922024/3/gate/ironic-tempest-functional-python3/9d0423d/job-output.txt15:55
dtantsurCould be due to this added to local.conf by something:16:00
clarkbdtantsur: if nova isnt' configured then /etc/nova is probably not being created. You probably need to work backward and see what is trying t oconfigure nova config16:00
dtantsur[[post-config|$NOVA_CPU_CONF]]16:00
dtantsur[libvirt]16:00
dtantsurtb_cache_size = 12816:00
dtantsurclarkb: yep, just pasted, now need to trace where this local.conf part is coming from16:00
dtantsurwhich is not immediately obvious to me..16:02
fricklerthat was a recent addition by sean-k-mooney 16:03
dtantsursean-k-mooney: the evidence is pointing at you https://opendev.org/openstack/devstack/commit/db305d2a4bb36c3d3a4ef4a108069cd77bca540e16:03
dtantsurright :)16:03
dtantsurdoes it make sense to check if the file exists first?16:03
dtantsuror is the expectation to also populate non-existing files?16:03
clarkbprobably need to check if n-cpu is enabled first16:05
clarkbsince that is trying to update the ncpu config and in your case n cpu is not enabled16:05
dtantsurI'm not sure how to do that: the code is completely agnostic16:05
dtantsur* service-agnostic16:05
dtantsurcan I just create the parent directory here? https://opendev.org/openstack/devstack/src/branch/master/inc/meta-config#L92-L9416:05
dtantsurthat would be the easiest workaround IMO16:05
sean-k-mooneyso that option should not matter if your not using the libvirt driver16:05
clarkboh it is happening in the base jobs16:05
clarkbsean-k-mooney: right the problem is that /etc/nova is only created if nova is enabled16:06
dtantsursean-k-mooney: definitely, but it tries to access /etc/nova anyway16:06
sean-k-mooneywhat tries to access it?16:06
sean-k-mooneydevstack?16:06
dtantsursean-k-mooney: yep, inside of merge_config_file16:06
dtantsursee the link in the beginning16:06
sean-k-mooneyah i alwasy tought that did a mkdir -p before tryign to create the file16:07
sean-k-mooneyand merge it16:07
dtantsuryeah, so I think we should just add the mkdir -p16:07
clarkblooking at the zuul jobs nova is a required project and n-cpu is enabled so I think that is fine16:07
clarkbI suspect that dtantsur's job should parent to devstack-minimal instead16:07
sean-k-mooneythats an option i guess16:08
dtantsurI *think* there are reasons why it's not inheriting devstack-minimal16:08
clarkbdtantsur: well then don't disable nova... since the job you're based on assumes nova is enabled and I think that is fair (iirc thati s why devstack-minimal was created to enable these different configurations that are more optimized for specific needs)16:08
sean-k-mooneyi mean yes and no16:09
dtantsurclarkb: then I need to copy-paste the initialization of swift, neutron, etc.. and we're broken again once somebody changes devstack16:09
sean-k-mooneywe have several jobs that inherit form devstack16:09
sean-k-mooneywere later jobs disbale services16:09
sean-k-mooneylike we turn of swift in many nova jobs16:09
clarkbsean-k-mooney: that really seems backwards to me. It should be a tree that builds up instead16:09
sean-k-mooneythat not how its worked historically16:10
JayFI think in practice we treat it more like a menu of configs to pick from16:10
sean-k-mooneyyep16:10
clarkbin that case you should remove all of the post config stuff from that job16:10
sean-k-mooneyi would consider turning off nova valid 16:10
clarkbbecause you can break any other job16:10
clarkband move the configuration stuff into devstack proper probably based on whether or not things like services are enabled/disabled16:11
sean-k-mooneywe can do that yes16:11
sean-k-mooneyi can drop the cache stuff and just do it in devstack16:11
opendevreviewDmitry Tantsur proposed openstack/devstack master: Create parent directory in merge_config_file  https://review.opendev.org/c/openstack/devstack/+/92284616:11
sean-k-mooneyi think there was a flag for that at one point16:11
dtantsurmeanwhile, ^^^16:11
clarkbthe problem is those vars are merged in child jobs so you can't claer out what is set in parents16:11
clarkbwhich means if you want to mix and match later then you need to avoid oversetting things like that in the parents16:12
sean-k-mooneyonly if you are usign the merge_config_file funcitonality16:12
sean-k-mooneymost of the other section supprot mergeing in a way that wont break16:13
clarkbright, its limited to any of the local conf directives16:13
clarkbbecause once you set them you can't unset them16:13
dtantsurTesting the fix in https://review.opendev.org/c/openstack/ironic/+/92284716:13
sean-k-mooneythis is kind of speical in that devstack is not checking if the parent of the file exist and there is no way to make it conditional because of how we source the local.conf 16:13
sean-k-mooneyclarkb:right you can only overried them.16:14
sean-k-mooneydtantsur: ill work on a patch to fix this shortly16:14
dtantsursean-k-mooney: https://review.opendev.org/c/openstack/devstack/+/92284616:15
dtantsurif you're satisfied with this approach, that is16:15
sean-k-mooneyi mean that shoudl be fine also16:15
sean-k-mooneyit will just ensure the target directory is alwasy created16:16
dtantsurthis is just a quick idea, if you want something better - feel free to take over the patch16:16
sean-k-mooneyi can move it to configure_nova_hypervisor here https://github.com/openstack/devstack/blob/master/lib/nova_plugins/hypervisor-libvirt#L3916:16
sean-k-mooneythere was an old devstack review to do this in the past https://review.opendev.org/c/openstack/devstack/+/88158016:17
dtantsurDunno, I feel like then we risk it blowing up in a difference place?16:17
dtantsurGenerally, if we expect to be able to create the file, it's not unreasonable to also create the directory16:17
dtantsurBut up to you, as long as our CI is green again :)16:17
sean-k-mooneyya i think checkign the parent dir tree exist is more robost16:18
sean-k-mooneyi generally dont like adding oneoff devstack flag for each possibel config option16:18
fricklerwe don't have any devstack deployments that do not use libvirt anymore, or do we? like in 3rd party testing?16:19
sean-k-mooneyironic16:19
sean-k-mooneyits entirly valid to stand up openstack without nova using just ironic api directly16:20
fricklerI meant nova with something other than libvirt16:20
sean-k-mooneyoh am wel you can have nova with ironic but other then that no16:20
sean-k-mooneyif you were deploying nova at all on the node then it would not fail16:20
sean-k-mooneyits /etc/nova that is missing not a libvirt specicfic dir16:21
JayF3rd party CI for nova vmware driver does exist now, too, right?16:21
fricklerif would not fail, but setting a libvirt parameter if in fact like vmware is being used also doesn't seem quite right, even if nova will just ignore that config16:21
sean-k-mooneyya i think we should take both approches16:22
fricklerso I'd prefer to move it into lib/nova_plugins/hypervisor-libvirt16:22
sean-k-mooneymake it so the post-config stuff wont fail if the parent does not exist16:22
sean-k-mooneyand sepreatly ill move this libvirt speciric turning into hypervior-libvirt16:22
sean-k-mooneydtantsur: one comment on "mkdir -p $(dirname $real_configfile) || die "16:23
sean-k-mooneythat wil fail if the direcory extis16:23
dtantsursean-k-mooney: mkdir -p does not fail when the directory exist, does it?16:23
JayFno it won't16:23
JayFtest on my local linux machine https://usercontent.irccloud-cdn.com/file/V9G7Cc4x/image.png16:24
sean-k-mooneymaybe that is only when not using -p16:24
dtantsurcorrect16:24
sean-k-mooneymkdir normally only returns 0 if it creatd the dir16:24
sean-k-mooneyok16:24
JayFyeah, -p is explicitly for scripts where you just want to ensure the dir exists16:24
JayFand don't care if you created it or not16:24
sean-k-mooneyi rememebr using mkdir as a poor mans file system lock in the past and checking the return code16:24
JayFlife before `fuser` was rough :P 16:25
sean-k-mooneytrying to run multiple devstack in diffent docker contaienr on the same host to test ovs-dpdk is rougher16:27
sean-k-mooneyone of the intel third party cis spwaned a super privldage docker conttainer and hten ran devstack in that. this was when docker still used lxc as a backend. we need the mkdir lock to make claiming hugepages work for ovs-dpdk16:28
opendevreviewsean mooney proposed openstack/devstack master: [nova] Add flag to set libvirt_tb_cache_size  https://review.opendev.org/c/openstack/devstack/+/88158016:37
sean-k-mooneyso i just rebased ^ and moved the devstack job to use the new NOVA_LIBVIRT_TB_CACHE_SIZE variable16:38
sean-k-mooneyoh actully thats wrong16:39
sean-k-mooneywe moved it before we merged it16:39
sean-k-mooneyfrom workarounds to libvirt16:39
opendevreviewsean mooney proposed openstack/devstack master: [nova] Add flag to set libvirt tb_cache_size  https://review.opendev.org/c/openstack/devstack/+/88158016:40
sean-k-mooneyok ^ should work16:41
sean-k-mooneyim just talking to melwitt about https://bugs.launchpad.net/nova/+bug/207050116:44
sean-k-mooneyand its likely that also cause by setting the post_config data in the devstack job16:44
sean-k-mooneymelwitt: oh actully i know why i think16:46
sean-k-mooneynova-next does not define devstack_local_conf in group vars16:47
sean-k-mooneyonly vars16:47
sean-k-mooneyso prior to defienign the tb cache it was inheritign the content form the vars definition16:48
sean-k-mooneybut when i defiend devstack_local_conf in the group vars of the parent job that fallback nolonger happened16:48
sean-k-mooneyso we lost setting q3516:48
clarkb+2 from me on the fix16:57
sean-k-mooneysorry about that i guess i should have been a little more concervitive with the virt driver specific option17:01
melwittgmann: ^ heads up on devstack change https://review.opendev.org/c/openstack/devstack/+/881580 which should fix the 100% fail on nova-next. I just "check experimental" it to verify it fixes nova-next17:02
sean-k-mooneyhttps://zuul.opendev.org/t/openstack/build/a59b9eafcc4b48258a8a64e418bafdae nova-next passed18:46
sean-k-mooneyalthough the other jobs in the build stet are still pending for the experimetal run18:46
sean-k-mooneyhttps://zuul.opendev.org/t/openstack/buildset/15c1b0eff1d14b03870193806586ce6718:46
sean-k-mooneyhttps://zuul.openstack.org/status/change/881580,318:46
sean-k-mooneythat shoudl finish soon18:47
gmannmelwitt: \o/19:04
opendevreviewRajat Dhasmana proposed openstack/tempest master: WIP: Test image <-> volume <-> server dependency  https://review.opendev.org/c/openstack/tempest/+/92287319:22
melwittopenstacksdk-functional-devstack failed on the patch in the gate queue :( gonna have to recheck it20:07
*** dmellado0755 is now known as dmellado07521:06
opendevreviewMerged openstack/tempest master: Modify mounting paths  https://review.opendev.org/c/openstack/tempest/+/92273821:51

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