Monday, 2020-06-22

*** tetsuro has quit IRC00:04
*** tetsuro has joined #openstack-nova00:05
*** tetsuro has quit IRC00:07
*** tetsuro has joined #openstack-nova00:19
*** tetsuro has quit IRC00:20
*** tetsuro has joined #openstack-nova00:21
*** spotz has joined #openstack-nova00:25
*** hongbin has quit IRC00:29
*** hongbin has joined #openstack-nova00:40
*** cataling has joined #openstack-nova00:58
*** dlbewley has quit IRC00:59
*** dlbewley has joined #openstack-nova00:59
*** markvoelker has joined #openstack-nova01:25
*** songwenping__ has quit IRC01:25
*** swp20 has joined #openstack-nova01:26
*** markvoelker has quit IRC01:29
*** tony_su has joined #openstack-nova01:33
*** songwenping_ has joined #openstack-nova01:47
*** dlbewley has quit IRC01:47
*** dlbewley has joined #openstack-nova01:47
*** swp20 has quit IRC01:50
*** xiaolin has joined #openstack-nova01:52
*** songwenping_ has quit IRC02:14
*** dolpher has joined #openstack-nova02:27
*** tony_su has quit IRC02:35
*** rcernin_ has joined #openstack-nova02:58
*** rcernin has quit IRC02:59
*** rcernin_ has quit IRC03:16
*** markvoelker has joined #openstack-nova03:26
*** markvoelker has quit IRC03:30
*** dlbewley has quit IRC03:31
*** dlbewley has joined #openstack-nova03:31
*** cataling has quit IRC03:32
*** rcernin_ has joined #openstack-nova03:32
*** Liang__ has joined #openstack-nova03:34
*** psachin has joined #openstack-nova03:39
*** rcernin_ has quit IRC03:45
*** rcernin has joined #openstack-nova03:45
*** markvoelker has joined #openstack-nova04:14
*** ratailor has joined #openstack-nova04:16
*** markvoelker has quit IRC04:19
*** dlbewley has quit IRC04:19
*** dlbewley has joined #openstack-nova04:20
*** slaweq has joined #openstack-nova04:20
*** vishalmanchanda has joined #openstack-nova04:29
*** dlbewley has quit IRC04:29
*** dlbewley has joined #openstack-nova04:30
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-nova04:33
*** hongbin has quit IRC04:39
*** dlbewley has quit IRC04:47
*** dlbewley has joined #openstack-nova04:47
*** ociuhandu has joined #openstack-nova04:48
*** Liang__ has quit IRC04:49
*** Liang__ has joined #openstack-nova04:51
*** ociuhandu has quit IRC04:53
*** dlbewley has quit IRC05:21
*** dlbewley has joined #openstack-nova05:21
*** dlbewley has quit IRC05:31
*** dlbewley has joined #openstack-nova05:31
*** rcernin has quit IRC05:32
*** udesale has joined #openstack-nova05:33
*** rcernin has joined #openstack-nova05:40
*** dlbewley has quit IRC05:41
*** dlbewley has joined #openstack-nova05:41
*** links has joined #openstack-nova05:45
openstackgerritHarshavardhan Metla proposed openstack/nova master: Moved the quoted section  https://review.opendev.org/73721505:56
*** markvoelker has joined #openstack-nova06:15
*** ociuhandu has joined #openstack-nova06:20
*** markvoelker has quit IRC06:20
*** rpittau|afk is now known as rpittau06:21
*** dlbewley has quit IRC06:50
*** dlbewley has joined #openstack-nova06:51
*** jsuchome has joined #openstack-nova06:53
*** markvoelker has joined #openstack-nova06:54
*** markvoelker has quit IRC06:59
*** dlbewley has quit IRC07:00
*** dlbewley has joined #openstack-nova07:01
*** tesseract has joined #openstack-nova07:02
*** maciejjozefczyk has joined #openstack-nova07:09
*** dlbewley has quit IRC07:10
*** ttsiouts has joined #openstack-nova07:11
*** dlbewley has joined #openstack-nova07:11
*** ttsiouts has quit IRC07:14
*** ttsiouts has joined #openstack-nova07:16
*** bhagyashris is now known as bhagyashris|lunc07:27
*** tosky has joined #openstack-nova07:29
*** xek_ has joined #openstack-nova07:30
*** lpetrut has joined #openstack-nova07:40
*** dlbewley has quit IRC07:40
*** dlbewley has joined #openstack-nova07:40
bauzasgood morning Nova07:42
*** factor has quit IRC07:45
*** rcernin_ has joined #openstack-nova07:47
*** rcernin has quit IRC07:47
gibibauzas: good morning07:52
*** rcernin_ has quit IRC07:54
*** links has quit IRC07:55
*** nightmare_unreal has joined #openstack-nova07:58
*** ralonsoh has joined #openstack-nova07:59
*** martinkennelly has joined #openstack-nova08:00
*** dtantsur|afk is now known as dtantsur08:10
*** dpawlik6 has quit IRC08:18
*** martinkennelly has quit IRC08:21
*** martinkennelly has joined #openstack-nova08:23
*** markvoelker has joined #openstack-nova08:24
*** links has joined #openstack-nova08:26
*** markvoelker has quit IRC08:29
*** dpawlik6 has joined #openstack-nova08:30
*** salmankhan has joined #openstack-nova08:33
*** bhagyashris|lunc is now known as bhagyashris08:34
*** salmankhan has quit IRC08:36
openstackgerritBalazs Gibizer proposed openstack/nova master: DNM: Test the state of VMware NSX 3pp CI  https://review.opendev.org/73411408:38
*** ttsiouts has quit IRC09:16
*** ttsiouts has joined #openstack-nova09:18
*** ociuhandu has quit IRC09:18
*** dlbewley has quit IRC09:18
openstackgerritBrin Zhang proposed openstack/nova-specs master: Filter instances by tenant_id  https://review.opendev.org/73724109:19
*** dlbewley has joined #openstack-nova09:19
openstackgerritBrin Zhang proposed openstack/nova-specs master: Filter instances by tenant_id  https://review.opendev.org/73724109:20
*** tkajinam has quit IRC09:21
*** brinzhang has joined #openstack-nova09:24
*** martinkennelly has quit IRC09:30
*** martinkennelly has joined #openstack-nova09:31
gibibauzas: left feedback in https://review.opendev.org/#/c/73370309:38
bauzasthanks09:38
bauzasgibi: ack, seen your comments09:40
bauzasgibi: honestly, it's a good question09:40
bauzasI'm not opiniated but,09:40
bauzasif we go with the neutron direction, I like it but I won't be able to provide the implementation I think :p09:41
bauzasgibi: so, tbh, I like your concern09:41
bauzasbut maybe we should discuss it with some other folks :)09:42
brinzhanggibi, bauzas: I submit a spec, but it has an error of docs. I cannot find which is wrong in line 2209:48
brinzhang error: /home/zuul/src/opendev.org/openstack/nova-specs/doc/source/specs/victoria/approved/filter-instances-by-tenant-id.rst:22:Unknown target name: "1".09:49
brinzhanghttps://review.opendev.org/#/c/73724109:49
brinzhangcan you fast check, where caused the error?09:49
gibibauzas: sure. this is why I said that put every neutron segment - aggregate related code in a single place in nova, so that later we can easily remove it, but I know this part is then becomes implementation detail09:52
*** ttsiouts has quit IRC09:55
*** Liang__ has quit IRC09:59
* brinzhang has done10:00
openstackgerritBrin Zhang proposed openstack/nova-specs master: Filter instances by tenant_id  https://review.opendev.org/73724110:00
*** ociuhandu has joined #openstack-nova10:04
*** rpittau is now known as rpittau|bbl10:15
gibibrinzhang: the latest PS worked for me locally10:19
*** markvoelker has joined #openstack-nova10:25
*** ttsiouts has joined #openstack-nova10:29
*** sean-k-mooney has joined #openstack-nova10:29
*** markvoelker has quit IRC10:30
*** ttsiouts has quit IRC10:30
*** ttsiouts has joined #openstack-nova10:31
*** ociuhandu has quit IRC10:36
*** ttsiouts has quit IRC10:54
*** ttsiouts has joined #openstack-nova10:55
*** dlbewley has quit IRC11:00
*** dlbewley has joined #openstack-nova11:01
*** xek has joined #openstack-nova11:01
*** xek_ has quit IRC11:01
*** derekh has joined #openstack-nova11:08
*** ociuhandu has joined #openstack-nova11:27
*** ttsiouts has quit IRC11:42
*** ttsiouts has joined #openstack-nova11:44
*** raildo has joined #openstack-nova11:48
*** jcath has joined #openstack-nova12:01
jcathfriends, I try to use "openstack server add volume --device /dev/hdc instance vol-name" to attach a volume to the instance as an IDE device, but it always attach as a virtio device (qemu-kvm as hypervisor) . as I check nova/virt/libvirt/driver.py, it seems that the device name parameter is ignored... so How I can force to attach a volume on IDE bus? thanks!12:05
*** dlbewley has quit IRC12:05
stephenfinelod: Could you take a look at https://review.opendev.org/#/c/708617/ today?12:06
*** dlbewley has joined #openstack-nova12:06
elodstephenfin: yes, looking12:12
stephenfinta12:12
*** ratailor has quit IRC12:21
*** rpittau|bbl is now known as rpittau12:22
*** udesale_ has joined #openstack-nova12:25
*** dolpher has quit IRC12:26
*** markvoelker has joined #openstack-nova12:26
*** udesale has quit IRC12:27
*** markvoelker has quit IRC12:31
*** markvoelker has joined #openstack-nova12:34
*** markvoelker has quit IRC12:39
*** tbachman has joined #openstack-nova12:43
*** nweinber has joined #openstack-nova13:09
*** lbragstad has joined #openstack-nova13:12
tbarronIs it possible via openstack/nova apis to do expose compute-host extra disks to guest VMs via somthing like pci-passthru?13:14
gibidansmith, stephenfin, melwitt: sorry I was out Friday afternoon. Thanks for reviewing the image cache bugfix. However I don't like the fact that we are mixing the question of "is this on the same dev?" with the question "is this exists?"13:15
tbarronThis has been suggested as a way for kubernetes clusters running with nova vms to do software defined storage (like ceph) without indirection13:15
sean-k-mooneytbarron: in general no. if you have nvme disk you can confiture them for pci pasthough but it expects stateless pci device13:15
tbarronin the data path like when they use RBD backed nova ephemeral or cinder storage13:16
sean-k-mooneyso we will not correctly clean them when a vm is deleted and there data will not be copied if you mvoe the guest13:16
sean-k-mooneytbarron: so basically today no13:16
sean-k-mooneytbarron: there is no way to do that13:16
stephenfingibi: Yeah, I'm on the fence about that now too13:16
stephenfinespecially given the confusion it resulted in13:17
stephenfinI don't know what dansmith and melwitt settled on when I left13:17
tbarronsean-k-mooney: thanks, I already said "no" but thought I better check with those who really  know :D13:17
gibistephenfin: I will try to come up with a better factored solution in the next PS13:17
stephenfinack13:18
sean-k-mooneytbarron: the quickest way to enable something like that would be to write a cyborg dirver to manage disk on the host and then extend libivt to accpet disks form cyborg13:18
tbarronsean-k-mooney: interesting, and that makes sense13:21
sean-k-mooneytbarron: a disk is not really an acclearator but if you think of cyborg as a generic device managment service it  think it fit. espacially when you consider that imaging or erasing a disk is basically the same as programing or reseting an fpga13:22
sean-k-mooneyjust with less $$$ for the hardware13:23
tbarronsean-k-mooney: yeah, it fits with the general expose-hardware-features to VMs direction, I get it13:24
*** mriedem has joined #openstack-nova13:24
tbarronand is somewhat in tension with present compute-instances as abstractions idea, thouhh I say "tension" and not contradiction13:25
tbarronwe have a similar tension in storage where different backends have different capabilities and it's tricky figuring which to expose as abstractions13:26
*** eharney has joined #openstack-nova13:26
*** sangeet has joined #openstack-nova13:31
sean-k-mooneytbarron: well the tension is relived in a sense that it would be abstracted via a device-profile and we would should based on the aviablity of the resouce like any other13:34
sean-k-mooneytbarron: cinder does nto quite workin this usecase since you dont have an ideal of a local only cinder backend13:34
dansmithgibi: I commented13:35
*** sangeet has quit IRC13:35
dansmithgibi: making it non-public and specific to "decide if we should report zero" addresses my original concern I guess, but I don't understand what the problem currently is13:36
gibidansmith: my problem that it makes a coupling between nova.virt.libvirt.imagebackend.Image.cache and nova.virt.libvirt.imagecache.ImageCacheManager.cache_dir_is_on_same_dev_as_instances_dir as the later assumes how the former will create the directory13:38
dansmithgibi: cache_dir is a property of the imagecache no?13:39
gibifor me the reasoning like "the directory does not exists therefore it occupies 0 space" is easier to accept than "the directory is on the same dev as it is not created but we know that when it is created it will be a call to mkdir that creates it on the same dev"13:40
dansmithare you just saying that the behavior of creating the cache_dir if it doesn't exist is something in the libvirt code?13:40
dansmithgibi: until the directory exists, the same exact thing is returned right? zero?13:40
tbarronsean-k-mooney: ack, cinder volumes are intended to have a life-cycle independent of compute instances or compute instance hosts13:41
dansmithonce the directory exists, we'll report what we see, which will almost definitely be the same dev, but if not, we'll report the value according to how the directory is at that point13:41
gibidansmith: the behavior of get_disk_usage() is the same in my PS2 and in PS513:42
gibibut I think the implementation is better strucutred in PS213:42
dansmithright, so I don't see that we're making any different assumptions13:42
tbarronsean-k-mooney: so the cinder lvm backend is useful for testing iscsi but not so much for production deployments13:43
dansmithgibi: well, I disagree because I think that a property should explode for a known condition13:43
dansmithgibi: but make it not a property (and rename it) and you can have that structure13:43
gibidansmith: I accep that I'm ready to make that an internal helper instead of a public property13:43
dansmithI think a property shouild /not/ explode I meant13:44
gibiyeah, I agree ^^13:44
*** psachin has quit IRC13:44
gibijust to make sure I understand your point. Is it OK for you if change the property to an private helper method?13:45
dansmithI don't like it, but it addresses the problem I had with PS213:45
*** dlbewley has quit IRC13:46
gibiwhy don't you like it?13:46
*** dlbewley has joined #openstack-nova13:47
dansmithwell, because as it is, the property has utility beyond what you're doing here. You're just changing it to "should I report zero for cache" which is a single conditional and might as well just be in the if statement of the get_disk_usage()13:49
dansmithdoesn't seem worth it being a helper to me13:49
dansmithbut all I really meant is that _I_ would keep it the way it is in PS5, but it matters to me less than you, so you should change it13:49
dansmithwhat matters to me is not having that should-be-useful-but-dangerous public property13:50
gibidansmith: thanks13:52
*** dlbewley has quit IRC14:01
*** dlbewley has joined #openstack-nova14:01
openstackgerritDan Smith proposed openstack/nova master: DNM: Try to make a glance multistore job  https://review.opendev.org/73418414:04
*** markvoelker has joined #openstack-nova14:07
*** markvoelker has quit IRC14:12
*** dlbewley has quit IRC14:21
*** dlbewley has joined #openstack-nova14:22
*** mlavalle has joined #openstack-nova14:22
*** dklyle has joined #openstack-nova14:23
openstackgerritDan Smith proposed openstack/nova master: DNM: Try to make a glance multistore job  https://review.opendev.org/73418414:25
openstackgerritElod Illes proposed openstack/nova stable/train: Check cherry-pick hashes in pep8 tox target  https://review.opendev.org/73727914:27
*** artom has joined #openstack-nova14:27
*** cataling has joined #openstack-nova14:46
*** sangeet has joined #openstack-nova14:55
*** beekneemech is now known as bnemec14:59
*** sangeet has quit IRC15:02
jsuchomehey dansmith ... regular reminder about https://review.opendev.org/#/c/574301 once you have time...15:08
*** hamalq has joined #openstack-nova15:27
dansmithjsuchome: I know, I haven't forgotten15:28
*** markvoelker has joined #openstack-nova15:32
*** markvoelker has quit IRC15:36
*** amodi has quit IRC15:36
openstackgerritBalazs Gibizer proposed openstack/nova master: Guard against missing image cache directory  https://review.opendev.org/73696415:45
*** gyee has joined #openstack-nova15:55
*** artom has quit IRC16:01
*** rpittau is now known as rpittau|afk16:01
*** artom has joined #openstack-nova16:02
*** brinzhang_ has joined #openstack-nova16:02
*** brinzhang has quit IRC16:06
*** ociuhandu has quit IRC16:08
*** dtantsur is now known as dtantsur|afk16:10
*** ttsiouts has quit IRC16:10
*** brinzhang0 has joined #openstack-nova16:12
*** dlbewley has quit IRC16:14
*** dlbewley has joined #openstack-nova16:15
*** brinzhang_ has quit IRC16:15
*** udesale_ has quit IRC16:21
*** markvoelker has joined #openstack-nova16:24
*** dlbewley has quit IRC16:24
*** dlbewley has joined #openstack-nova16:25
*** markvoelker has quit IRC16:29
stephenfinmelwitt: could you look at https://review.opendev.org/708617 too?16:29
melwittstephenfin: sure, will do16:30
stephenfinthanks16:30
*** markvoelker has joined #openstack-nova16:44
*** markvoelker has quit IRC16:48
*** ttsiouts has joined #openstack-nova16:50
*** lpetrut has quit IRC16:50
*** tesseract has quit IRC16:56
*** xiaolin has quit IRC17:02
*** derekh has quit IRC17:05
*** ttsiouts has quit IRC17:05
*** xek has quit IRC17:16
*** dlbewley has quit IRC17:20
*** dlbewley has joined #openstack-nova17:21
openstackgerritStephen Finucane proposed openstack/nova master: fakelibvirt: Remove nova-network remnants  https://review.opendev.org/73732917:22
openstackgerritGhanshyam Mann proposed openstack/nova stable/stein: Make greande jobs n-v for EM and oldest stable  https://review.opendev.org/73733217:25
openstackgerritGhanshyam Mann proposed openstack/nova stable/stein: Make greande jobs n-v for EM and oldest stable  https://review.opendev.org/73733217:27
sean-k-mooneydansmith: you can increase the job timeout in the zull.yaml if you need to for the multistore job17:34
sean-k-mooneydansmith: it looks like you glance api change made it this time https://zuul.opendev.org/t/openstack/build/18e4701c1a374bf09269778479160f25/log/controller/logs/etc/glance/glance-api_conf.txt17:35
dansmithyep, and it asked for the copy17:35
dansmithI think something else likely broke, looking now17:35
dansmithJun 22 15:42:22.928857 ubuntu-bionic-rax-iad-0017311577 nova-compute[23701]: INFO nova.virt.libvirt.imagebackend [None req-ca48174a-0bf4-4341-8d45-fcf69cc9a3de tempest-DeleteServersAdminTestJSON-1752858908 tempest-DeleteServersAdminTestJSON-1752858908] Asking glance to copy image e6b1a7d0-ccd8-4be3-bef7-69c68fca4313 to our rbd store robust17:35
dansmithJun 22 15:52:23.076886 ubuntu-bionic-rax-iad-0017311577 nova-compute[23701]: ERROR nova.compute.manager [instance: 2cb1f8e2-a6a3-4f42-b6e2-de6823c71e25] nova.exception.ImageUnacceptable: Image e6b1a7d0-ccd8-4be3-bef7-69c68fca4313 is unacceptable: Copy to store robust timed out17:36
sean-k-mooneyit might be a slow node17:36
sean-k-mooneyyou could relax some of the times outs for image/volume creation17:37
dansmithit waited ten minutes17:37
*** ttsiouts has joined #openstack-nova17:37
dansmiththat should be more than long enough to copy a cirros image on any node I think17:37
sean-k-mooneyya fair point :)17:38
sean-k-mooneyi was more thinking it was a slow host becaue it hit the 2 hour job time out17:38
sean-k-mooneyalthougyh i guess enough 10 minute wait would have the same effect17:38
dansmithI think it's just because each time we went to spawn an instance, it waited ten minutes before failing,17:39
dansmithwhich linearized is enough to run the timeout17:39
dansmithhttps://zuul.opendev.org/t/openstack/build/18e4701c1a374bf09269778479160f25/log/controller/logs/screen-g-api.txt#746617:40
dansmithglance was failing to update its own property I think17:40
*** mlavalle has quit IRC17:40
sean-k-mooneyright this si the image convertion https://zuul.opendev.org/t/openstack/build/18e4701c1a374bf09269778479160f25/log/controller/logs/screen-g-api.txt#44017:40
sean-k-mooneyso it looks like the inital import conversion worked17:41
dansmiththe devstack conversion you mean?17:42
dansmithhad it not, nova wouldn't have even tried to boot on it, so yeah17:42
dansmithand the devstack patch I have wouldn't have gotten past waiting for the image to go active17:42
*** ttsiouts has quit IRC17:43
sean-k-mooneydansmith: yes the intial devstack conversion seam to have worked fine so the failure after after the qcow has been converted to raw and stored in teh file backedn17:43
dansmithyep17:43
sean-k-mooneywell if nothing else i guess glance can now use your patch to test that...17:43
sean-k-mooneyos_glance_importing_to_stores seams like a strange name for a property on the image17:44
dansmiththat's the task status  property17:45
sean-k-mooneyhttps://github.com/openstack/glance/blob/92492cf50461e214b777c707148886a8e87f340d/releasenotes/notes/import-multi-stores-3e781f2878b3134d.yaml#L25 yep17:45
sean-k-mooneyi guess the import-form-copy is modifying that to add the rbd store17:46
*** ralonsoh has quit IRC17:47
dansmithright, the glance tasks modify that property to tell us what is happening17:48
sean-k-mooneydansmith: i wonder if this could be related to who owns the image17:52
sean-k-mooneydevstack uploads it as admin correct17:52
sean-k-mooneybut tempest is running with its own tenats17:52
dansmithwell, that's the obvious thing, but the task should be using an admin context for this kind of metadata updating17:52
dansmithand they say it should17:52
sean-k-mooneyso perhaps they do not have permission to modify that porperty17:52
sean-k-mooneythat would be the logical thing to do yes17:53
sean-k-mooneybut manybet its not17:53
sean-k-mooneyhttps://github.com/openstack/glance/commit/1754c9e2b085ba0fc37a4369488c92a40268997a add the copy image support so im just skiming it quickly to see what it does17:53
sean-k-mooneyhome ok i dont see how the propery gets updated in that but i also dont know how glance works internally so its not suprising.18:01
sean-k-mooneyoh time for  a call...18:01
*** dlbewley has quit IRC18:03
*** dlbewley has joined #openstack-nova18:03
*** damien_r has quit IRC18:04
*** links has quit IRC18:04
*** janno has joined #openstack-nova18:06
*** brinzhang_ has joined #openstack-nova18:12
*** ttsiouts has joined #openstack-nova18:15
*** brinzhang0 has quit IRC18:15
*** ociuhandu has joined #openstack-nova18:16
dansmithmelwitt: a while back I asked about getting admin credentials for glance and you pointed me to something I ignored because I decided I didn't need admin18:19
dansmithmelwitt: do you remember that and if so can you point me again?18:20
*** ociuhandu has quit IRC18:21
melwittheh, sec18:26
melwittdansmith: it might have been this commit https://github.com/openstack/nova/commit/aab4b7a0e2504c04e08389145bcb1414dea6363118:29
melwittjust as an example of a place where we needed to use an admin cred to make a particular API call18:29
dansmithmelwitt: okay that's just a flag to the neutron client right?18:34
dansmithI thought there was something more general18:34
melwittdansmith: yeah, I think when I linked you I was just saying, it is normal/expected for us to have to selectively use admin to call other APIs and that was a recent example of us doing it18:37
dansmithoh, okay, that's common in a lot of places, yeah.. what I need is a way to get admin creds to talk to glance18:38
dansmithI don't really know how we do that for neutron.. I think long ago we had credentials in our config, but that's gone now right?18:38
melwittI don't know off the top of my head. I thought we did have creds but I don't know about them being gone. I'm looking through the code now to see if it's obvious18:41
dansmithI thought there was some service user thing we use now, but yeah I don't really know18:42
*** ttsiouts has quit IRC18:47
melwittbased on this code block, there are supposed to be creds used from nova.conf https://github.com/openstack/nova/blob/f1ebc15dfc8ffb7f23b2cb9879f0ca9376931a90/nova/network/neutron.py#L19118:53
*** dlbewley has quit IRC18:56
*** dlbewley has joined #openstack-nova18:56
melwittand here's a config file from a nova-next run showing what look to be service user creds for neutron and placement https://zuul.opendev.org/t/openstack/build/785733b6379b40a5982f710a62302c21/log/controller/logs/etc/nova/nova_cell1_conf.txt#4019:01
dansmithmelwitt: sorry in three conversations here19:07
dansmithmelwitt: yeah, okay, I thought we had moved past that at some point, but it looks like not19:07
melwittnp. I'm still gathering info19:07
melwittwe implemented this https://specs.openstack.org/openstack/nova-specs/specs/ocata/implemented/use-service-tokens.html which says it should have docs for setting up the service user stuff in conf but I don't find any docs so far19:08
dansmithglance is kinda half requiring admin to do the image copy-to-rbd thing.. if that's intentional, then we'll need admin creds for glance too, which really sucks19:08
dansmithheh19:08
dansmithmaybe it's done and devstack is just still using the old method?19:08
melwittI'd think that unlikely...19:10
melwittthis is what I find for a change that went into devstack to enable service tokens. https://review.opendev.org/#/c/409329/8/lib/nova19:10
melwitt(I'm looking through https://review.opendev.org/#/q/topic:bp/use-service-tokens)19:11
dansmithmelwitt: come on, be optimistic with me! :P19:11
melwittlol :)19:11
melwittwell, the service token stuff involves setting creds in conf19:11
melwittfor the service user19:11
dansmithhmm, okay maybe the service token still means we get creds, just not creds that are general purpose admins?19:11
dansmithI thought it was better than that19:12
melwitthow that's different I don't really know19:12
sean-k-mooneydansmith: i dont think devstack conigure the service user stuff for us by default19:13
sean-k-mooneyi have not looked in a while but last time i did i did not see it19:13
melwittdansmith: so.... it "seems" like you would probably do a patch similar to this one https://review.opendev.org/41039419:13
melwittthat ^ adds the nova-neutron interaction. and the groundwork was added in a prior patch for the nova-cinder interaction https://review.opendev.org/39739919:14
dansmithack yeah, okay19:15
dansmithwell, I guess I'll start by arguing that we shouldn't need admin to do this19:15
dansmithmelwitt: and just to stitch that stuff together, you think that when we do admin=True to the neutronclient, we're now getting the service user's auth token?19:15
dansmiththe logic on L135 there is a bit confusing19:16
melwittsean-k-mooney: we enable it in nova-next https://github.com/openstack/nova/blob/f1ebc15dfc8ffb7f23b2cb9879f0ca9376931a90/.zuul.yaml#L18019:16
sean-k-mooneymelwitt: ah ok but not in dansmith's job https://zuul.opendev.org/t/openstack/build/18e4701c1a374bf09269778479160f25/log/controller/logs/etc/nova/nova-cpu_conf.txt19:16
sean-k-mooneythere is no service_user group in the config19:16
melwittyeah you'd have to set the env var for the job19:17
sean-k-mooneycould you just add the glance credetials like we do for neutron https://zuul.opendev.org/t/openstack/build/18e4701c1a374bf09269778479160f25/log/controller/logs/etc/nova/nova-cpu_conf.txt#43-5019:17
dansmithsean-k-mooney: that's what melwitt said above19:18
sean-k-mooneyservice_user support was more fo the case where i am doing a long running request but my user token expired so we fallback to a admin service user instead19:18
dansmithand I'm guessing the answer is yes, but I'd like to not have to do that (meaning not need to have admin for this)19:18
*** nightmare_unreal has quit IRC19:19
sean-k-mooneyya given you dont own the image however im not surprised that glance is unhappy19:19
sean-k-mooneyyou could argue that if its a public image then maybe this should be allowed19:20
melwittdansmith: yeah... agreed it looks confusing. but I think yeah, passing admin=True is having it load the auth plugin from conf, which presumably will pick up the [service_user] config section19:20
dansmithsean-k-mooney: it's public and the API is letting me do the operation19:20
sean-k-mooneymelwitt: i dont think it will by default19:20
sean-k-mooneydansmith: as in the api is accepting the import19:21
dansmithright19:21
sean-k-mooneyya so it feels like a glance but19:21
sean-k-mooney*bug19:21
sean-k-mooneybut for now you might need to use admin to work around it19:21
dansmithI hath already filed it thusly19:21
sean-k-mooney:)19:22
sean-k-mooneyok so ya it looks like we have the service auth support in the image module https://github.com/openstack/nova/blob/master/nova/image/glance.py#L6819:24
sean-k-mooneywithout modifying noava code with admin=true on that call however its not going to elevate unless the token is expired so i guess you will have to do that too which kind of sucks19:25
sean-k-mooneyi mean i guess you can do that in the DNM patch19:26
dansmithjust setting admin=True on the nova context isn't going to do it19:26
dansmithI'd have to actually get an admin-granted token from keystone19:26
sean-k-mooneynot on the context but when you create the client cant you just pass admin=true .e.g get_cline(ctx, admin=true)19:30
sean-k-mooneylike we do with neutron https://opendev.org/openstack/nova/src/commit/f5f7c2540150c7ee7640c834d5caec31b3f5a7ab/nova/network/neutron.py#L39719:30
sean-k-mooneyalthough that is a custom get_client function https://opendev.org/openstack/nova/src/commit/f5f7c2540150c7ee7640c834d5caec31b3f5a7ab/nova/network/neutron.py#L234-L25719:32
sean-k-mooneyi guess not the glance module does not ever use admin currently so it does not pass it to https://opendev.org/openstack/nova/src/commit/f5f7c2540150c7ee7640c834d5caec31b3f5a7ab/nova/image/glance.py#L6019:34
*** slaweq has quit IRC19:46
*** jcath has quit IRC19:50
*** ttsiouts has joined #openstack-nova19:55
*** slaweq has joined #openstack-nova19:58
*** jsuchome has quit IRC20:12
*** vishalmanchanda has quit IRC20:16
*** ttsiouts has quit IRC20:26
*** nweinber has quit IRC20:28
*** markvoelker has joined #openstack-nova20:55
*** markvoelker has quit IRC20:59
*** martinkennelly has quit IRC21:09
*** spatel has joined #openstack-nova21:13
*** factor has joined #openstack-nova21:17
openstackgerritDan Smith proposed openstack/nova master: DNM: Try to make a glance multistore job  https://review.opendev.org/73418421:30
*** ttsiouts has joined #openstack-nova21:32
*** ttsiouts_ has joined #openstack-nova21:35
*** spatel has quit IRC21:36
*** maciejjozefczyk has quit IRC21:36
*** ttsiouts has quit IRC21:37
*** mriedem has left #openstack-nova21:37
*** ttsiouts_ has quit IRC21:39
*** spatel has joined #openstack-nova21:42
*** dlbewley has quit IRC21:44
*** dlbewley has joined #openstack-nova21:45
*** spatel has quit IRC21:46
*** spatel has joined #openstack-nova21:52
*** pmacdonnell has quit IRC21:55
*** pmacdonnell has joined #openstack-nova21:55
sean-k-mooneydansmith: oh you fixed it in glance by having it constuct the task factory with an admin context. that is much better then working around it in nova with an admin context22:01
sean-k-mooneyhaving the user download and reupload the image does seem very iniffiecnt.22:03
sean-k-mooneya alternitive would be for the copy image api to create a new iamge which the current user now owns form the old image but that also does not fit with the current import api in my view22:04
sean-k-mooneyso ya i think your patch makes sense22:04
*** slaweq has quit IRC22:07
dansmithsean-k-mooney: well, that's mostly just a minimal hammer approach to get past this block (I think).. as I hedged in the commit message, it may very well be that we should be only constructing the image pool with that admin context, or something more detailed22:09
dansmithI haven't chased all the implications of doing this, I just put it up to try to move on and so someone can show me what the right way is, if indeed the user is supposed to be allowed to do this22:09
dansmithtotally possible that someone will say it should be admin-only22:09
sean-k-mooneyya although the api in principal should have determined if yo are allowed do something before you get to that point22:10
dansmithbut you know, best way to get something done on the internet is to do it wrong so someone will fix it out of anger :)22:10
dansmithagreed22:10
*** spatel has quit IRC22:10
dansmithif not this, then the api needs more checks22:10
sean-k-mooneymaking image copy admin only would be strange as the other import methods are not and i think it would be the same policy endpoint?22:11
dansmithwell, it's a different case I think22:12
*** eharney has quit IRC22:12
dansmiththe other import methods are for actually importing the image22:12
dansmiththis import being used for copy is a little bit weird,22:12
dansmithbecause for the others, you wouldn't have one person create the image and another provide its data generally,22:13
dansmithbut that's a little bit of what this is,22:13
dansmithbut since it's controlled enough I would think that allowing one user that can use an image to copy it to another store in the system is fine,22:13
dansmithjust like I said.. I could download and re-upload it myself to get the same effect22:13
sean-k-mooneyi mean by extening the import workflow to me i think that implies that they are treating glance as just another data source like a url or file22:13
dansmithand of course, if we want to limit some users from being able to do this, we need a more fine-grained policy knobv22:13
dansmithcorrect,22:13
dansmithbut for the other import mechanisms, you wouldn't want a non-admin-or-owner to be able to do the import from-url or whatever22:14
dansmithwhich maybe means we should only do this admin context thing if we're doing copy-to-store, I dunno22:14
dansmithbut I'll let them opine22:14
sean-k-mooneydansmith: well not for an image they can see but not own22:14
sean-k-mooneyif i was to redsign this i would be tempted to invert the workflow and make the copy part of get22:15
sean-k-mooneye.g. if i try to get an image form a store where it is not currently present have it be copied on the backend in paralle to streaming it to the user22:16
dansmithpersonally I think that this should be a PUT /images/foo {'stores': ['new-store', 'existing-store']22:17
dansmithI think they had a task-based approach to image importing so they put this in there since it was the minimal amount of work22:17
dansmithand this is what you get by bending one thing to do another22:17
sean-k-mooneyas in an image action22:17
sean-k-mooneyor create a new image form 'existing-store'22:18
dansmiththe move-on-demand streaming thing fundamentally won't work for the rbd case, which is the primary reason for this :)22:18
sean-k-mooneydansmith: are there billing implication to this by the way22:18
dansmithcreate a new image just creates an explosion for no reason.. we _want_ this to be the same image with multiple locations, else we lose the affinity22:18
dansmithdunno22:18
openstackgerritGhanshyam Mann proposed openstack/nova stable/stein: Make greande jobs n-v for EM and oldest stable  https://review.opendev.org/73733222:18
sean-k-mooneyif you upload an image as public and i imported are you billed more?22:19
dansmithno idea22:19
sean-k-mooneyi guess normal users cant upload public images22:19
sean-k-mooneythe can uplload shared images but public i think is admin only22:19
* sean-k-mooney is logged in as admin too often to rememebr22:20
sean-k-mooneyya at least on my kolla install my non admin account can only select private shared or community22:21
sean-k-mooneypublic visablity is only avaiable in the admin role22:21
sean-k-mooneyim not really sure what the difference is between shared, comunity and public22:21
sean-k-mooneyah https://wiki.openstack.org/wiki/Glance-v2-community-image-visibility-design#Visibility_Semantics22:22
gmannmelwitt: i am trying to test the stable gate(stein) with the fix on legacy base job, let's see if that fix the things - https://review.opendev.org/#/c/737332/322:23
*** slaweq has joined #openstack-nova22:24
gmannproblem is that, neither devstack nor devstack-gate install virtualenv on subnode22:24
sean-k-mooneygmann: that was recently changed22:24
gmannsince last week it is failing, devstack stable branch and neutron-grenade jobs are fixed but we have nova multinode jobs legacy one22:25
sean-k-mooneyhttp://lists.openstack.org/pipermail/openstack-discuss/2020-June/015204.html22:25
gmannsean-k-mooney: yeah, image update22:26
sean-k-mooneydidnt infra plan to fix all jobs22:26
sean-k-mooneythey had planned to propose patches to the base jobs22:27
gmann:), no. legacy jobs are always less priority to fix.22:27
melwittgmann: cool thanks, I'll keep an eye on it22:27
gmannzuulv3 native are easy to fix and add those roles wherever needed. like ensure-tox etc22:27
*** spatel has joined #openstack-nova22:28
*** spatel has quit IRC22:31
*** rcernin_ has joined #openstack-nova22:33
*** prometheanfire has left #openstack-nova22:33
gmannsean-k-mooney: and it depends on failure too, like 'tox not found' failure due to image updates needs to be fixed on wherever needed not in base job - #3 in this http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015559.html22:33
gmanntox issue also started happening in neutron, horizon, and few more repo22:34
gmannso we discussed not to fix in devstack base job instead on failure side.22:34
sean-k-mooneyya the whitebox-tempest-plugin job also broke but we fixed it22:35
sean-k-mooneythat is zuulv3 so we just added ensure-pip22:35
gmannputting everything in base job can overload the jobs who does not need these tools.22:36
sean-k-mooneygmann: our issue with whitebox was our pre playboox uses pip before devstack runs and installs pip22:36
gmannok22:37
sean-k-mooneyso we just added ensure-pip22:37
sean-k-mooneyeasy fix22:37
gmannfor xenial node ensure-vitualenv does ensure-pip also but for bionic yes we need to it in start - https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-virtualenv/tasks/Debian.yaml#L922:39
*** rcernin_ has quit IRC22:47
*** tkajinam has joined #openstack-nova22:51
*** markvoelker has joined #openstack-nova22:56
*** tosky has quit IRC22:59
*** markvoelker has quit IRC23:00
*** dlbewley has quit IRC23:02
*** rcernin_ has joined #openstack-nova23:02
*** dlbewley has joined #openstack-nova23:03
*** rcernin_ has quit IRC23:16
*** rcernin has joined #openstack-nova23:18
*** raildo has quit IRC23:30
*** hamalq has quit IRC23:37

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