Tuesday, 2020-04-14

*** openstack has joined #openstack-nova09:54
*** ChanServ sets mode: +o openstack09:54
*** dpawlik has quit IRC09:55
bauzasgibi: stephenfin: I'm out of ideas for a problem I have with mocking a privsep helper09:55
stephenfingot it on Gerrit?09:55
bauzasstephenfin: in https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L6409:56
bauzasstephenfin: there, I'm amending the fake connection to add a mdev09:56
bauzasstephenfin: but as you can see, all the computes have the same fake connection https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L7109:56
*** dpawlik has joined #openstack-nova09:56
bauzasstephenfin: so, I should modify https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L56-L68 to look at which compute to modify09:57
bauzasstephenfin: but given I'm faking privsep https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L45-L4709:57
bauzasstephenfin: I can't know which compute was for09:58
bauzas:(09:58
bauzasI only know the parent PCI ID09:58
*** tetsuro has quit IRC09:59
stephenfinI think you need to keep track of individual fake connections like we do in the 'start_computes' function https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/base.py#L138-L15209:59
bauzasstephenfin: sure, but then how to know which fake connection to modify then ?10:01
bauzasI mean in https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L5610:01
bauzasboth compute have the exact same PCI IDs10:01
bauzascomputes*10:01
stephenfinah, yes, gotcha10:02
bauzas'self' is not the compute driver...10:02
gibidoes the fake connection know hostname?10:02
gibior nodename10:03
bauzasyes10:03
bauzasthat's easy10:03
gibithen you can branch based on that10:03
bauzasbut again, I don't know which compute was calling https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L5610:03
bauzaseg. if you create an instance for compute 1 and then compute210:04
bauzasthen both calls to https://github.com/openstack/nova/blob/master/nova/tests/functional/libvirt/test_vgpu.py#L56 will have the same arguments10:04
bauzasso, _create_mdev() wouldn't know which fake connection to modify10:04
gibican we have different pci ids per compute?10:05
* gibi stabs in the dark10:05
stephenfinIt's very hacky, but you could intercept a higher call and set some attribute to say "compute node N is now attempting to create an mdev"10:06
bauzasgibi: well, we could... but I think it would be a large change then :(10:06
bauzasstephenfin: I can try this10:06
bauzastbh, I tried to discuss with you to find another solution10:06
bauzasbut you told me the two ones I was thinking10:07
bauzasand both of them are difficult :p10:07
bauzasanyway10:07
bauzasI can try to resize to the same host10:07
bauzas(for testing what I want)10:07
bauzasbut that won't fix the problem10:07
bauzasanyway, thanks10:07
*** owalsh_afk is now known as owalsh10:20
*** rpittau is now known as rpittau|bbl10:23
stephenfinjohnthetubaguy: could you help me understand why we are changing the scope types for the create policy here? https://review.opendev.org/#/c/717175/9/nova/policies/server_groups.py10:38
openstackgerritLee Yarwood proposed openstack/nova master: WIP/DNM zuul: Attempt to migrate and break up the nova-live-migration job  https://review.opendev.org/71160410:46
openstackgerritjayaditya gupta proposed openstack/nova master: Support for --force flag for nova-manage placement heal_allocations command  https://review.opendev.org/71539511:08
*** priteau has quit IRC11:14
*** mkrai has quit IRC11:25
*** mkrai_ has joined #openstack-nova11:25
*** sapd1 has quit IRC11:30
*** udesale_ has joined #openstack-nova11:34
*** udesale has quit IRC11:36
*** nweinber has joined #openstack-nova11:38
*** ociuhandu has quit IRC11:41
*** ratailor has quit IRC11:52
*** mgariepy has joined #openstack-nova11:55
*** nightmare_unreal has joined #openstack-nova11:58
*** mkrai has joined #openstack-nova12:05
*** mkrai_ has quit IRC12:06
*** vishalmanchanda has quit IRC12:11
*** tkajinam has quit IRC12:12
*** ociuhandu has joined #openstack-nova12:19
*** links has quit IRC12:31
*** rpittau|bbl is now known as rpittau12:31
*** sapd1 has joined #openstack-nova12:33
*** ociuhandu has quit IRC12:34
*** ociuhandu has joined #openstack-nova12:35
*** lpetrut has quit IRC12:54
*** dklyle has joined #openstack-nova12:56
*** lpetrut has joined #openstack-nova13:01
openstackgerritMerged openstack/nova master: workarounds: Add option to disable native LUKSv1 decryption by QEMU  https://review.opendev.org/70803013:06
openstackgerritMerged openstack/nova master: Add test coverage of existing keypairs policies  https://review.opendev.org/71860413:06
openstackgerritMerged openstack/nova master: Introduce scope_types in keypairs  https://review.opendev.org/71860913:06
openstackgerritMerged openstack/nova master: Add test coverage of existing quota sets policies  https://review.opendev.org/71912813:06
openstackgerritMerged openstack/nova master: Add test coverage of existing quota class policies  https://review.opendev.org/71909513:06
openstackgerritMerged openstack/nova master: Introduce scope_types in quota class Policies  https://review.opendev.org/71909613:06
openstackgerritMerged openstack/nova master: Add new default roles in keypairs policies  https://review.opendev.org/71861913:07
openstackgerritMerged openstack/nova master: Pass the actual target in keypairs policy  https://review.opendev.org/71862113:07
openstackgerritMerged openstack/nova master: api: Allow custom traits  https://review.opendev.org/71846113:07
*** vishalmanchanda has joined #openstack-nova13:15
*** artom has joined #openstack-nova13:25
openstackgerritMerged openstack/nova master: Use placement stable version for functional job  https://review.opendev.org/71911913:25
*** tkajinam has joined #openstack-nova13:33
*** mgariepy has quit IRC13:44
*** bcm has quit IRC13:50
*** cz3 has quit IRC13:50
*** vdrok has quit IRC13:50
*** rpittau has quit IRC13:50
*** ab-a has quit IRC13:51
*** mkrai has quit IRC13:51
*** bcm has joined #openstack-nova13:51
aarentsHi there, lyarwood I put few examples on associated bug https://bugs.launchpad.net/nova/+bug/1872082 ( https://review.opendev.org/#/c/719008 )13:51
openstackLaunchpad bug 1872082 in OpenStack Compute (nova) "available disk on compute may be lightly overestimated in some cases" [High,In progress] - Assigned to Alexandre arents (aarents)13:51
*** vdrok has joined #openstack-nova13:51
*** rpittau has joined #openstack-nova13:51
*** ab-a has joined #openstack-nova13:51
*** cz3 has joined #openstack-nova13:51
*** maciejjozefczyk_ is now known as maciejjozefczyk13:55
*** derekh has quit IRC13:56
*** derekh has joined #openstack-nova13:56
*** mgariepy has joined #openstack-nova13:57
lyarwoodaarents: yeah sorry missed the RAW example13:59
*** derekh has quit IRC13:59
*** derekh has joined #openstack-nova14:00
*** ttsiouts has quit IRC14:00
aarentslyarwood: np14:01
*** ociuhandu has quit IRC14:03
*** ttsiouts has joined #openstack-nova14:04
*** ociuhandu has joined #openstack-nova14:04
lyarwoodaarents: so I think the RAW behaviour is actually a bug due to the way we call fallocate14:08
lyarwoodaarents: I think it's writing out a block of zero's at the start14:08
lyarwoodaarents: as we aren't using -d14:09
* aarents reading man fallocate14:09
gmannstephenfin: replied for SG scope things-  https://review.opendev.org/#/c/717175/9/nova/policies/server_groups.py@3614:10
gmannstephenfin: please check if that make sense, it is same for POST servers also14:10
lyarwoodaarents: https://paste.centos.org/view/90da78f0 for example14:11
lyarwoodaarents: I think your change is still good FWIW14:11
lyarwoodaarents: but we should also fix our call to fallocate14:11
aarentslyarwood: exact for -d , seems necessary14:13
*** tkajinam has quit IRC14:17
*** tkajinam has joined #openstack-nova14:18
lyarwoodaarents: actually -d is wrong14:18
*** mriedem has joined #openstack-nova14:19
*** udesale_ has quit IRC14:20
openstackgerritMerged openstack/nova master: Add new default roles in tenant tenant usage policies  https://review.opendev.org/71758714:21
openstackgerritMerged openstack/nova master: Add test coverage of existing server topology policies  https://review.opendev.org/71752414:22
nightmare_unrealhow can I get migration ID when migrating an instance ? When I run the live migration cmd from CLI i don't get any output14:22
*** dlbewley has joined #openstack-nova14:23
gibibrinzhang_, sean-k-mooney, dansmith: regarding cyborg-nova integration: can I close the bp and there will be a new bp for Victoria? Does https://review.opendev.org/#/c/716186 needs to be handled as a bug?14:24
*** sapd1 has quit IRC14:24
dansmithgibi: yes and yes, IMHO14:24
*** lpetrut has quit IRC14:24
gibidansmith: OK. I will wait for brinzhang_ to comment too and I will ask him to file the bug too14:25
dansmithack14:25
sean-k-mooneygibi: yep agree with dansmith14:26
gibisean-k-mooney: cool14:26
sean-k-mooneyspeaking of ill go file said bug before i get distracted14:26
gibisean-k-mooney: thanks14:27
sean-k-mooneygibi: should i mark this as rc potential or shoudl we just treat it as a normal bugfix that we will backport after ussuri is released as normal.14:33
stephenfingmann: Thanks for the explanation. Would it be possible edit the commit message to include that information there?14:33
gibisean-k-mooney: what is the worst case issue by that bug?14:34
gmannstephenfin: sure,  doing.14:35
sean-k-mooneyif we create the ARQ and fail to clean them up becasue binding fail then we leak the arq. since its not bound i think its just leaking a db recored. i need to double check that14:36
sean-k-mooneygibi: https://bugs.launchpad.net/nova/+bug/187273014:37
openstackLaunchpad bug 1872730 in OpenStack Compute (nova) "Delete ARQs for an instance when the instance is deleted only delete bound arqs" [High,Triaged]14:37
gibisean-k-mooney: then I think it is not an rc potential bug14:38
openstackgerritMerged openstack/nova master: Introduce scope_types in server topology  https://review.opendev.org/71758414:38
openstackgerritMerged openstack/nova master: Add new default roles in server topology policies  https://review.opendev.org/71758514:38
openstackgerritMerged openstack/nova master: workarounds: Add option to locally attach RBD volumes on compute hosts  https://review.opendev.org/70802914:38
gibisean-k-mooney: thanks for fileing it14:38
sean-k-mooneygibi: ya i might ping thet cyborg folk to take a look too and confirm its not going to leak devices on there end. but my understanding is they dont allocate or program the device until we bind it as that is when we set the host and pass the allocation to cyborg14:40
sean-k-mooneyso if we failed to bind it then they should not need to clean anything up14:40
sean-k-mooneywe should be deleted and recreating the arqs when we reschdule14:40
gibiI have a similar understanding, thanks for following it up14:40
openstackgerritMerged openstack/nova master: fup: Add removal TODOs for disable_native_luksv1 and rbd_volume_local_attach  https://review.opendev.org/71809914:45
openstackgerritMerged openstack/nova master: Add new default roles in os-evacuate policies  https://review.opendev.org/70823714:45
*** mlavalle has joined #openstack-nova14:45
openstackgerritGhanshyam Mann proposed openstack/nova master: Add new default roles in server group policies  https://review.opendev.org/71717514:52
openstackgerritGhanshyam Mann proposed openstack/nova master: Fix servers policy for admin_or_owner  https://review.opendev.org/71850114:52
openstackgerritGhanshyam Mann proposed openstack/nova master: Fix servers policy for admin_or_owner  https://review.opendev.org/71850114:55
gmannstephenfin: done. also this one too - https://review.opendev.org/#/c/718501/14:55
gmannstephenfin: once you are ok with those then i will rebase the series14:56
openstackgerritMerged openstack/nova master: Pass the target in os-services APIs policy  https://review.opendev.org/67668814:56
openstackgerritMerged openstack/nova master: Pass the actual target in server group policy  https://review.opendev.org/71717614:56
openstackgerritMerged openstack/nova master: Add new default roles in server external events policies  https://review.opendev.org/71716814:56
stephenfingmann: comment on https://review.opendev.org/#/c/717175/1014:57
stephenfinI could be wrong though14:58
openstackgerritGhanshyam Mann proposed openstack/nova master: Add new default roles in server group policies  https://review.opendev.org/71717514:59
gmannstephenfin: i think yes. sorry i update that directly.15:00
*** dosaboy_ is now known as dosaboy15:04
openstackgerritMerged openstack/nova master: Pass the actual target in server external events policy  https://review.opendev.org/71716915:07
*** ttsiouts has quit IRC15:10
*** ttsiouts has joined #openstack-nova15:11
*** ociuhandu has quit IRC15:19
*** ociuhandu has joined #openstack-nova15:21
*** ociuhandu has quit IRC15:25
*** mkrai has joined #openstack-nova15:31
*** mkrai_ has joined #openstack-nova15:33
*** mkrai has quit IRC15:35
gmannjohnthetubaguy: one comment, same for extended attr also -  https://review.opendev.org/#/c/719730/1/nova/policies/servers.py@13315:41
*** ociuhandu has joined #openstack-nova15:56
*** avolkov has quit IRC15:57
*** gyee has joined #openstack-nova16:01
*** rpittau is now known as rpittau|afk16:02
openstackgerritTakashi Natsume proposed openstack/nova master: Update compute rpc version alias for ussuri  https://review.opendev.org/71931516:09
*** mkrai_ has quit IRC16:09
gmannmelwitt: lyarwood master patch is merged for functional tox fix, train one is ready - https://review.opendev.org/#/c/719120/16:13
*** tkajinam has quit IRC16:20
*** yaawang_ has joined #openstack-nova16:32
*** yaawang has quit IRC16:33
*** mgariepy has quit IRC16:34
*** psachin has quit IRC16:34
*** evrardjp has quit IRC16:37
*** evrardjp has joined #openstack-nova16:37
*** mgariepy has joined #openstack-nova16:40
bauzascan someone tell me why libvirt returns me a former guest that was resized to another host ?16:41
bauzaskashyap: stephenfin: sean-k-mooney: in case you know ? ^16:42
bauzastbc, the resize was *confirmed*16:42
bauzasand the allocations diseappeared accordingly16:42
bauzaslyarwood: maybe ?16:42
kashyapbauzas: Hi, need more context.  But I'm hungry and just about to cook a meal.16:44
bauzaskashyap: https://github.com/openstack/nova/blob/9001d7e3459d97f507e8ce638d1fc3935401252d/nova/virt/libvirt/driver.py#L702316:44
kashyapTrying to maintain a Good Hermit Schedule(tm) :)16:44
bauzaskashyap: anyway, take your time, I'll investigate tonight so we could discuss this tomorrow16:46
kashyapbauzas: Hmm, that requires me to read code and delve deeper into context.  I'm just recovering from 3 hours of debugging another libvirt bug16:46
kashyapYep, thanks!16:46
*** derekh has quit IRC16:54
*** dtantsur is now known as dtantsur|afk16:57
*** vishalmanchanda has quit IRC17:04
*** ttsiouts has quit IRC17:30
*** ttsiouts has joined #openstack-nova17:33
*** maciejjozefczyk has quit IRC17:36
*** ociuhandu has quit IRC17:40
*** ociuhandu has joined #openstack-nova17:41
openstackgerritGhanshyam Mann proposed openstack/nova master: Add new default roles in quota class policies  https://review.opendev.org/71910017:44
*** ociuhandu has quit IRC17:46
openstackgerritGhanshyam Mann proposed openstack/nova master: Pass the actual target in quota class policy  https://review.opendev.org/72004217:49
openstackgerritGhanshyam Mann proposed openstack/nova master: Pass the actual target in flavor access policy  https://review.opendev.org/71960717:58
*** ttsiouts has quit IRC18:00
*** ttsiouts has joined #openstack-nova18:02
*** dpawlik has quit IRC18:02
openstackgerritRafael Weingärtner proposed openstack/nova master: Enhance os-simple-tenant-usage VM hours accounting  https://review.opendev.org/71111318:06
*** nightmare_unreal has quit IRC18:08
*** ociuhandu has joined #openstack-nova18:14
artommelwitt, I just noticed your have 3 Ts in your Gerrit email18:16
*** tobiash has quit IRC18:16
artomTook some head banging to understand why it wasn't accepting my script's query18:16
artom:)18:16
*** tobiash has joined #openstack-nova18:17
*** amodi has quit IRC18:17
*** martinkennelly has quit IRC18:29
*** ttsiouts has quit IRC18:35
*** ralonsoh has quit IRC18:49
*** ociuhandu has quit IRC18:50
*** ociuhandu has joined #openstack-nova18:51
*** ociuhandu has quit IRC18:55
*** tesseract has quit IRC18:59
*** ttsiouts has joined #openstack-nova19:10
*** ttsiouts has quit IRC19:15
*** ociuhandu has joined #openstack-nova19:16
bauzaserm, do folks here have any ideas on how to get a right CONF.host value within a functional test ?19:40
bauzasI mean, I could self.flags it but given it's a global object, all the created computes in the functest will get the same valur19:40
bauzasvalue*19:40
*** ttsiouts has joined #openstack-nova19:45
*** maohongbo1 has joined #openstack-nova19:50
*** maohongbo has quit IRC19:52
*** maohongbo1 is now known as maohongbo19:52
*** mtreinish has joined #openstack-nova20:12
*** tobberydberg_ has quit IRC20:17
*** ttsiouts has quit IRC20:19
*** tobberydberg has joined #openstack-nova20:22
*** nweinber has quit IRC20:26
melwittbauzas: yes, you do that by passing the 'host' kwarg when you start_service https://github.com/openstack/nova/blob/9001d7e3459d97f507e8ce638d1fc3935401252d/nova/test.py#L381-L39120:29
*** maciejjozefczyk has joined #openstack-nova20:30
bauzasmelwitt: sure, I saw it20:30
*** tobberydberg has quit IRC20:30
bauzasmelwitt: but for example, I start two computes in a functest20:30
bauzas(using this helper)20:30
melwittartom: yeah ... the 2 Ts version is owned by someone else and I was uncreative so I just tacked on another t. probably should have picked something else, in hindsight20:31
bauzasmelwitt: but then, when I want to confirm resize an instance, the global CONF.host is only having the last host value20:31
bauzashttps://github.com/openstack/nova/blob/9001d7e3459d97f507e8ce638d1fc3935401252d/nova/virt/libvirt/driver.py#L151920:31
melwittbauzas: oh, I see. I don't know of a way around that. you would probably need the ghost of mriedem. or maybe gibi might have ideas20:32
bauzasmelwitt: so, for example, if I create an instance for host1, resize it to host2 and then confirm the resize, it won't remove the guest in host1 because instance.host (host2) == CONF.host (host2) even I checked that it was calling host120:33
bauzasmelwitt: no worries, I'll just then modify the CONF before calling confirm_resize20:33
mriedemisn't there another handle within the libvirt driver to the host value used when the service was started?20:36
mriedemthe compute service i mean20:36
mriedemif so, you can change that code to use that and not deal with global config problems20:36
*** tobberydberg has joined #openstack-nova20:36
*** tobberydberg has quit IRC20:37
mriedemthe compute driver has a handle to the virtapi which has a handle to the compute manager which has a self.host value20:38
*** maciejjozefczyk has quit IRC20:39
bauzasmriedem: yeah, no worries, I can provide a change for it20:39
mriedemso i think it's just `self.virtapi._compute.host`20:39
melwittoh yeah, self.host, that will be different even in func tests. good call20:39
mriedemyou could add a "host" property getter method to the virtapi so that the driver doesn't need to know about self._compute20:40
mriedemself.virtapi.host20:40
mriedembadabing20:40
bauzasthanks20:41
bauzasfwiw, we have a lot of CONF.host values in libvirt20:41
bauzasso I'll just create a change for all of them20:41
*** tobberydberg has joined #openstack-nova20:42
*** tobberydberg has quit IRC20:43
artombauzas, yeah, there's not much you can do with the global CONF.host...20:45
artomAlthough the computes should keep their hostnames...20:45
artomSo maybe there's a bug somewhere?20:45
bauzasartom: that's not really a bug20:45
*** tobberydberg has joined #openstack-nova20:45
*** tobberydberg has quit IRC20:45
artomOh, wait, melwitt linked the "wrong" helper20:45
*** ociuhandu has quit IRC20:45
bauzasartom: it's just a problem for tests20:45
artombauzas, are you using the fake driver, or the libvirt driver?20:46
*** tobberydberg has joined #openstack-nova20:46
bauzasthe latter20:46
*** tobberydberg has quit IRC20:46
bauzashence the problem20:46
*** ociuhandu has joined #openstack-nova20:46
*** tobberydberg has joined #openstack-nova20:46
bauzasanyway, I found the solution20:46
melwittartom: what do you mean "wrong" helper?20:47
*** tobberydberg has quit IRC20:47
artombauzas, https://github.com/openstack/nova/blob/9001d7e3459d97f507e8ce638d1fc3935401252d/nova/tests/functional/libvirt/base.py#L11720:47
*** tobberydberg has joined #openstack-nova20:47
*** tobberydberg has quit IRC20:47
bauzasI all know about it20:47
bauzasbut again, CONF.host will be overrided by the last value20:47
bauzasgiven it's a global variable20:48
artombauzas, no way around it, then20:48
artomCONF is global per process20:48
bauzaswe only run by a single process fwiw20:48
artomYep20:48
bauzas(for testing)20:48
artomOK, my kids are impatiently calling me to literally go fly a kite20:48
artomSo I'm off again20:49
mriedemif the driver code uses the host set on the compute manager (via virtapi) then you get whatever host name was used when the service was started20:49
mriedemso, ween off global conf20:49
bauzasanyway, I got the workaround (changing the value before calling the post api), and I'll create a new change for libvirt20:49
bauzasI mean, I'll propose the functional test first, and then another change for just using virtapi in libvirt20:49
sean-k-mooneyi think you could mock it to have different values in different greenthread/coroutiens but ya the currnet constution makes having different values chalanging20:49
bauzasdone.20:50
bauzassean-k-mooney: oh yeah of course, we could start the services by each greenthread... and then we would see problems :p20:50
bauzasor I dunno20:50
bauzasanyway20:51
*** tobberydberg has joined #openstack-nova20:51
bauzasI'm done20:51
*** maohongbo1 has joined #openstack-nova20:51
*** ociuhandu has quit IRC20:52
*** maohongbo has quit IRC20:53
*** maohongbo1 is now known as maohongbo20:53
*** tobberydberg has quit IRC20:55
*** xek has quit IRC20:56
*** ociuhandu has joined #openstack-nova21:02
*** JamesBenson has quit IRC21:05
*** ociuhandu has quit IRC21:06
*** KeithMnemonic has joined #openstack-nova21:08
*** KeithMnemonic has quit IRC21:16
*** KeithMnemonic has joined #openstack-nova21:17
*** tobiash has quit IRC21:18
*** ociuhandu has joined #openstack-nova21:20
*** tobiash has joined #openstack-nova21:20
*** ttsiouts has joined #openstack-nova21:22
*** ccamacho has quit IRC21:36
*** JamesBenson has joined #openstack-nova21:41
sean-k-mooneybauzas: mriedem melwitt this is how we can mock the globals i think http://paste.openstack.org/show/792118/21:51
melwittsean-k-mooney: ahhh mine eyes!21:51
sean-k-mooneyhehe i have to create an event loop to get it to interleave and emulate two compute services so there is a bit of boiler plate21:52
* melwitt dies21:53
mriedemor just stop using globals21:53
bauzassean-k-mooney: lol21:53
openstackgerritSylvain Bauza proposed openstack/nova master: Pass allocations to virt drivers when resizing  https://review.opendev.org/58908521:53
openstackgerritSylvain Bauza proposed openstack/nova master: Pass allocations to virt drivers when reverting resize  https://review.opendev.org/71211821:53
openstackgerritSylvain Bauza proposed openstack/nova master: Allocate mdevs when resizing or reverting resize  https://review.opendev.org/71274121:53
bauzassean-k-mooney: I'm just uploading the series ^21:53
bauzasaaaaaand I'm done today (well, tomorrow is in 7 mins)21:53
sean-k-mooneywell stop using gloabals means deviate form how oslo conf is used everywhere else in openstack21:53
melwitttime to start again in 7 minutes!21:53
artommriedem, well, a global per-process CONF makes sense21:53
artomIt's not like different bits of a single nova process can have different configs21:54
sean-k-mooneynot that im saying we should not stop using globals21:54
*** maohongbo has quit IRC21:54
bauzassean-k-mooney: artom: melwitt: honestly, let's discuss it on the change I'll provide tomorrow morning my time (ie. using virtapi.host field instead of CONF.host)21:54
mriedemsean-k-mooney: it's not used globally in placement, intentionally21:54
artomThough I suppose single global config != single global variable21:54
sean-k-mooneyi just wanted to point out we cauld create muliple patchers for the config an activate them as needed21:54
mriedemcdent burned all of that out21:54
bnemecUgh, really?21:55
artomSmart man21:55
sean-k-mooneymriedem: ya well that was because they had the same proablem and bit the bullet21:55
*** ociuhandu has quit IRC21:55
*** maohongbo has joined #openstack-nova21:55
bnemecPlease don't do that.21:55
mriedemand it's not meant to be used globally, the oslo docs even say that i think, but that's what's happened21:55
artomAnyways, I have to make supper21:55
sean-k-mooneybnemec: stop using global or my fun with mock21:55
artomI do enjoy these drive-by discussions :P21:55
*** ociuhandu has joined #openstack-nova21:56
mriedemhttps://docs.openstack.org/oslo.config/latest/reference/faq.html#why-does-oslo-config-have-a-conf-object-global-objects-suck21:56
*** ttsiouts has quit IRC21:56
mriedemartom: i was summoned earlier21:56
artommriedem, summoned eh? You're an Eldrich God?21:57
bauzasagain, I agree with mriedem, I think the simpliest would be to just stopping to use CONF.host everytime in libvirt21:57
artomAt least you don't talk of yourself in the third person ;)21:57
bnemecmriedem: That's saying you _should_ use the global object because it's what everyone else is doing.21:57
mriedemmore like a pit fiend21:57
mriedembnemec: it concedes21:57
mriedem"yes it sucks but everyone is doing it so sure"21:57
* bauzas opened a can of worms and then leaves with a joker smile21:58
* mriedem prepares his jumping off a bridge dad-ism21:58
artomAh, the old jump off a bridge debate21:58
bnemecI can tell you it would break parts of the policy generator if you dropped it.21:58
artommriedem, dammit, jinx!21:58
* artom -> really off now21:58
mriedembnemec: tbc, the suggestion was to stop using the global config to access one variable in one very specific place in the libvirt driver so that functional tests weren't mocking or hacking global config to workaround its global-ness21:59
mriedembnemec: nova is never going to fully move off global config usage, it's just that one spot i was talking about21:59
* bauzas will write his next book "How to bikeshed a nit in a large opensource project"21:59
bnemecThat sounds perfectly reasonable.22:00
bauzasagain, I think the easiest is to just stop using global objects as much as we can22:00
bauzasso, bye CONF.host and just check what we need once22:00
* bauzas drops mic22:01
bnemecThe one danger of not looking it up from the conf object each time is that mutable config won't work correctly, unless you write a hook to update it.22:01
bnemecBut that's both solvable and not an issue if that config opt isn't marked mutable.22:01
*** ociuhandu has quit IRC22:01
sean-k-mooney this is a cleaner verion of the same thing by the way http://paste.openstack.org/show/792119/22:05
sean-k-mooneycompute-1 and comptue-2 have there own view of the global object that they can modify without affecting each other.22:08
sean-k-mooneythis is still rather archane so im not really sure i would want to do this but if i coudl make it into a nice decorator to hide this i could be an option. anyway i just wanted to play with mocking and see what i could do22:09
sean-k-mooneybnemec: we dont really support mutable config for many config options today in nova22:12
sean-k-mooneybnemec: some stuff yes but you cant change the virt dirver while its runing or many of the virt driver options22:13
*** slaweq_ has quit IRC22:18
openstackgerritGhanshyam Mann proposed openstack/nova master: Fix servers policy for admin_or_owner  https://review.opendev.org/71850122:19
openstackgerritGhanshyam Mann proposed openstack/nova master: Add test coverage of existing server policies  https://review.opendev.org/71834822:19
gmannstephenfin: can you re approve these, I lost +A due to rebase - https://review.opendev.org/#/c/718348/  https://review.opendev.org/#/c/71850122:21
mriedembnemec: in this case it's CONF.host which isn't mutable, and if you change the hostname on a compute node you're ... kind of destroying that node22:28
*** ttsiouts has joined #openstack-nova22:30
*** ttsiouts has quit IRC22:34
*** ttsiouts has joined #openstack-nova22:42
*** ociuhandu has joined #openstack-nova22:46
*** tkajinam has joined #openstack-nova22:46
*** ttsiouts has quit IRC22:47
sean-k-mooneymriedem: we often want to change other value that also are not mutable when we do multi node functional test and simple using another value is not always an option22:48
sean-k-mooneyim thinking of the cpu_dedicated_set and other values like that where it would be really nice to have a two node functional test with different values.22:48
sean-k-mooneyanyway its not relavent to bauzas patch but its frequently a problem we hit.22:49
ianwhi, nodepool testing hit the removal of "user_data" from the nova client https://opendev.org/openstack/python-novaclient/commit/03dca4bc823c82054869dfaf6925d5e1e068ac5122:59
ianwwe were testing that the user_data specified in the nodepool config makes it through to nova22:59
ianwis there another suggested way to check that?23:00
*** ociuhandu has quit IRC23:01
melwittianw: hm, yeah I wondered if anyone would be affected by that change when I saw it go through. I can't immediately think of anything other than using the novaclient python binding. or calling the API directly23:03
ianwyeah, i think maybe using the binding might work; it doesn't seem like it's generically useful enough to put back in behind a switch or something23:05
ianwunless others think it is ...23:06
melwittyeah, I wondered the same.23:07
melwittit's been years but I've looked at it before as an end user, as a "did I do that right?" sanity check23:09
openstackgerritMerged openstack/nova master: Add test coverage of existing flavor extra spec policies  https://review.opendev.org/71937223:11
corvusmelwitt: yeah, i think it's worth keeping in some form because of that23:11
corvusbut putting it behind a cli flag is fine -- i get that "dump a bunch of base64 by default" isn't optimal ux :)23:12
melwittheh yeah23:12
melwittwell, it would have been good to have heard this before last thursday :(  cause it's in there and locked in for ussuri now23:13
melwittI guess we could backport23:13
corvusbut getting at it from the cli (with a flag) "i put a key in user data, and it didn't show up in the booted vm -- did it actually make it to the cloud?" would be nice23:13
melwittyeah, I agree23:14
melwittcc stephenfin23:14
corvusianw: i guess the -src version of that nodepool job doesn't install the clients from source?23:15
corvusiiuc, we have a -src job to detect pre-release problems with openstacksdk, but maybe it stops there...23:15
ianwcoruvs: i guess not; i think it only pulls in nodepool, openstacksdk, dib23:16
corvusthat must be how we missed it, since the changed merged in feb, and we've certainly merged nodepool changes which ran that job since then23:16
corvusmelwitt: sorry :(23:16
gmannmelwitt: and i think (not tried) that patch did not remove that from rebuild operation because there it is present in Rebuild API response as 'user_data' not 'OS-EXT-SRV-ATTR:user_data'.23:17
melwittgmann: hah, nice23:17
gmannfor nodepool case, can it be done via server metadata ?23:18
*** ircuser-1 has joined #openstack-nova23:19
*** tosky has quit IRC23:20
ianwgmann: we're really just testing that the value in the config file for nodepool made it through to the booted nova instance -- the actual data is not used in the test23:21
*** ttsiouts has joined #openstack-nova23:22
gmannohk i thought it as just tagging the things.23:23
*** mlavalle has quit IRC23:28
*** JamesBenson has quit IRC23:29
*** mriedem has left #openstack-nova23:31
*** ociuhandu has joined #openstack-nova23:35
*** ociuhandu has quit IRC23:51
*** ttsiouts has quit IRC23:56
openstackgerritMerged openstack/nova master: Introduce scope_types in flavor extra spec policy  https://review.opendev.org/71937523:56

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!