Tuesday, 2024-03-26

*** mklejn_ is now known as mklejn07:07
*** mklejn__ is now known as mklejn13:01
noonedeadpunkhey folks! I'm currently slightly o_O at the "new" worker_self_reference_url which is now required by default, and I get feeling, that this URL is exposed under some scenarios to end users?15:42
noonedeadpunklike it feels it can be stored in image extra_properties? https://opendev.org/openstack/glance/src/branch/master/glance/api/v2/images.py#L287-L30715:42
noonedeadpunkso eventually, this assumes that all glance workers are publically available rather then being behind LB on internal networks?15:43
noonedeadpunkwhich could be then exposed towards public through image metadata?15:43
noonedeadpunkas it kind of feels, that `worker_self_reference_url` is not really appropriate pick for https://review.opendev.org/c/openstack/glance-specs/+/89936715:46
noonedeadpunkit should have been some kind of my_ip from nova/neutron15:46
noonedeadpunkdansmith: maybe you have some insight into this topic as there're your comments to the worker_self_reference_url meaning I see :)15:47
opendevreviewMerged openstack/python-glanceclient master: reno: Update master for victoria Unmaintained status  https://review.opendev.org/c/openstack/python-glanceclient/+/91191615:54
opendevreviewMerged openstack/glance_store master: reno: Update master for victoria Unmaintained status  https://review.opendev.org/c/openstack/glance_store/+/91191215:56
dansmithnoonedeadpunk: no, this is per-worker not per-image15:58
noonedeadpunkyeah, but then it's exposed on image metadata after upload?15:59
dansmithno15:59
noonedeadpunkaha, so it's just during runtime in image.extra_properties16:00
dansmithit's used in image metadata only for a short period to indicate where an image is staged (if it is) via the import mechanism, but it doesn't stay16:00
noonedeadpunkok, gotcha, thanks. I didn't trace it to the final point :)16:00
noonedeadpunkand that still shouldn't be used when glance is behind LB (in terms of direct-upload)16:01
dansmithno it should16:01
dansmithit's for glance's internal use, not for the use of the user16:02
dansmitheven if you go through a LB, you stage an image on one worker16:02
dansmithwhen you go to import that after stage, we have to know which worker has the staged image16:02
dansmiththe new requirement for this is for the caching stuff, so we know which nodes have which images cached16:02
opendevreviewMerged openstack/glance_store master: reno: Update master for wallaby Unmaintained status  https://review.opendev.org/c/openstack/glance_store/+/91191816:02
opendevreviewMerged openstack/glance_store master: reno: Update master for xena Unmaintained status  https://review.opendev.org/c/openstack/glance_store/+/91192416:02
noonedeadpunkshouldn't LB source-ip balancing algo just solve that?16:06
noonedeadpunkor basically, now glance don't care16:07
noonedeadpunkhuh16:07
noonedeadpunkthanks a ton for clarification!16:07
opendevreviewMerged openstack/python-glanceclient master: reno: Update master for wallaby Unmaintained status  https://review.opendev.org/c/openstack/python-glanceclient/+/91192216:26
opendevreviewMerged openstack/python-glanceclient master: reno: Update master for xena Unmaintained status  https://review.opendev.org/c/openstack/python-glanceclient/+/91192816:26
dansmithnoonedeadpunk: sorry, lots of things going on16:51
dansmithnoonedeadpunk: source-ip balancing could make it less necessary, sure, but that wouldn't work 100% because people can move around, and/or there could be an hour between staging and importing (or more)16:52
dansmithdoing it this way gets you the benefit you'd get from that sort of balancing, but without having to put a single thing in front of your glance and without the problem of the table entry in the LB expiring and us stranding 2TB of data in the staging area of one worker :)16:53
noonedeadpunkyeah, I do get all benefits, I was just slightly worried if it's not get exposed somehow, as I guess nobody wants having another show_multiple_locations :D17:01
dansmithnoonedeadpunk: you're worried about it being exposed to the user and that being a security problem?17:05
noonedeadpunkyeah, but as you said - it's not and removed from extra_properties ?17:07
dansmithit's hidden17:07
noonedeadpunkyeah, so that's the only thing I wanted to double-check17:07
dansmithhttps://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L155717:07
noonedeadpunk++17:08
noonedeadpunksure,sure I trusted your statement from the very begining - was trying to explain why I raised question at the first place :D17:08
dansmithall good, very happy to have outside review of things like this, no need to explain further :)17:09
opendevreviewMerged openstack/glance master: reno: Update master for victoria Unmaintained status  https://review.opendev.org/c/openstack/glance/+/91191417:34
opendevreviewMerged openstack/glance master: reno: Update master for wallaby Unmaintained status  https://review.opendev.org/c/openstack/glance/+/91192017:34
opendevreviewMerged openstack/glance master: reno: Update master for xena Unmaintained status  https://review.opendev.org/c/openstack/glance/+/91192617:34
opendevreviewMerged openstack/glance master: Update master for stable/2024.1  https://review.opendev.org/c/openstack/glance/+/91325517:34

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