Friday, 2022-05-20

-@gerrit:opendev.org- Zuul merged on behalf of Tobias Henkel: [zuul/nodepool] 777719: Use different image in nodepool-functional-k8s https://review.opendev.org/c/zuul/nodepool/+/77771906:25
@jpew:matrix.orgI'm looking at diskimage builder documentation for https://zuul-ci.org/docs/nodepool/latest/openstack.html#attr-providers.[openstack].diskimages.meta and it says the number of metadata properties is limited to 5, but my openstack admin it telling me to set about 15 parameters for the images; is there documentation on the "5" limit?14:05
@jpew:matrix.orgOr perhaps more directly, how do I set the image properties shown here https://docs.openstack.org/glance/pike/admin/manage-images.html#create-or-update-an-image-glance with nodepool-builder14:12
@fungicide:matrix.orgi wonder why the limit is five entries, but the change which added that note in the docs was 8 years ago so it may no longer be correct for modern systems? https://review.openstack.org/12363914:17
@fungicide:matrix.orghttps://docs.openstack.org/python-novaclient/latest/reference/api/novaclient.v2.servers.html#novaclient.v2.servers.Server.create_image doesn't mention any limit to the number of entries14:22
@jpew:matrix.orgI *think* if I'm reading the right documentation, https://docs.openstack.org/api-ref/compute/?expanded=create-image-createimage-action-detail says that there is a limit of 255 per key-value pair, but no limit on the number of properties14:22
@fungicide:matrix.orgi concur14:23
@fungicide:matrix.orgif you can confirm that adding more than 5 entries is working in your environment, we can probably just remove that confusing bit from the docs14:23
@jpew:matrix.orgOk, will do14:23
@fungicide:matrix.orgthanks!14:24
@fungicide:matrix.orgi'm sure it's not the only 8-10 year old outdated info in our docs, sometimes outside changes like that don't get noticed14:25
@fungicide:matrix.orgthe change which added that note referred to the nova v1 api, which hasn't been supported in an age14:25
@jpew:matrix.orgGrossly, the code just blanks out all the metadata silently if you break any of the rules14:26
@fungicide:matrix.orgick14:26
@fungicide:matrix.org"the code" in nova's api?14:26
@fungicide:matrix.orgor on the nodepool side?14:27
@jpew:matrix.orgnodepool: https://opendev.org/zuul/nodepool/src/branch/master/nodepool/driver/openstack/config.py#L27114:27
@fungicide:matrix.orgoh, yep i see it in the original commit nodepool14:27
@fungicide:matrix.org * oh, yep i see it in the original commit to nodepool14:28
@fungicide:matrix.orgianw: i know it's asking a lot, but do you recall why you had to limit it to 5 entries back then?14:29
@jpew:matrix.orgMaybe we can just remove the whole check? Presumably openstack would reject the request if you don't follow the rules14:29
@fungicide:matrix.orgprobably14:29
@jpew:matrix.orgIt's also unclear from the openstack documentation if the 255 limit is for the key and value independntly or combined14:30
@fungicide:matrix.orgthough rejection at image upload is kinda late to be letting the admin know, since it's after the (often lengthy) image build process14:30
@fungicide:matrix.orgbut yes, i do feel like leaving it up to openstack to enforce openstack's limits is probably easier for the long-term maintenance of nodepool. otherwise we have redundant safety checks which can diverge over time14:31
@clarkb:matrix.orgI think there is still a limit set by quotas. Metadata-items or similar14:32
@clarkb:matrix.orgIt isn't unlimited but very likely more than 5 and 5 was probably a very old openstack limit14:32
@clarkb:matrix.orgAlso image properties and instance metadata are distinct14:35
@jpew:matrix.orgYes, I saw that14:36
@jpew:matrix.orgClark: https://zuul-ci.org/docs/nodepool/latest/openstack.html#attr-providers.[openstack].diskimages.meta vs https://zuul-ci.org/docs/nodepool/latest/openstack.html#attr-providers.[openstack].pools.labels.instance-properties ?14:37
@clarkb:matrix.orghttps://zuul-ci.org/docs/nodepool/latest/openstack.html#attr-providers.[openstack].pools.labels.instance-properties14:37
-@gerrit:opendev.org- Joshua Watt proposed: [zuul/nodepool] 842719: openstack: Remove metadata limit checks https://review.opendev.org/c/zuul/nodepool/+/84271914:40
@fungicide:matrix.orgsince ianw wrote the initial implementation of those checks, hopefully he can provide some context when reviewing 84271914:42
-@gerrit:opendev.org- Joseph Kostreva proposed: [zuul/zuul-jobs] 842723: prepare-workspace: Add role variable delete_dest https://review.opendev.org/c/zuul/zuul-jobs/+/84272316:25
-@gerrit:opendev.org- Joseph Kostreva proposed: [zuul/zuul-jobs] 842723: prepare-workspace: Add role variable delete_dest https://review.opendev.org/c/zuul/zuul-jobs/+/84272316:31
-@gerrit:opendev.org- Joseph Kostreva proposed: [zuul/zuul-jobs] 842723: prepare-workspace: Add role variable delete_dest https://review.opendev.org/c/zuul/zuul-jobs/+/84272317:02
-@gerrit:opendev.org- Joseph Kostreva proposed: [zuul/zuul-jobs] 842723: prepare-workspace: Add role variable delete_dest https://review.opendev.org/c/zuul/zuul-jobs/+/84272317:15
-@gerrit:opendev.org- Joshua Watt proposed: [zuul/nodepool] 842719: openstack: Remove metadata limit checks https://review.opendev.org/c/zuul/nodepool/+/84271918:11
@jpew:matrix.org> <@gerrit:opendev.org> Joshua Watt proposed: [zuul/nodepool] 842719: openstack: Remove metadata limit checks  https://review.opendev.org/c/zuul/nodepool/+/84271918:13
This works on our version of OpenStack FWIW

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