Wednesday, 2024-07-31

opendevreviewKatarina Strenkova proposed openstack/tempest master: Fix cleanup of keypairs for --prefix option  https://review.opendev.org/c/openstack/tempest/+/92491908:52
opendevreviewKarolina Kula proposed openstack/devstack master: Replacing usage of rdo-release rpm  https://review.opendev.org/c/openstack/devstack/+/92536810:36
opendevreviewStephen Finucane proposed openstack/hacking master: Add missing Python classifiers  https://review.opendev.org/c/openstack/hacking/+/92537911:27
opendevreviewStephen Finucane proposed openstack/hacking master: Bump flake8 version  https://review.opendev.org/c/openstack/hacking/+/92538011:27
opendevreviewAlfredo Moralejo proposed openstack/devstack stable/2024.1: Replacing usage of rdo-release rpm  https://review.opendev.org/c/openstack/devstack/+/92540014:08
dansmithgmann: I really want to be able to validate image formats against glance (and maybe nova) to make sure we're accepting and rejecting the formats we should16:34
dansmithit seems like tempest should be able to do that in most cases. is that reasonable to expect to add that?16:34
dansmithif not, I can do it maybe in whitebox or something16:34
dansmithso much of the confusion around these CVE fixes came from things like iso being not tested anywhere16:35
dansmithso I've got this now: https://opendev.org/openstack/os-test-images16:36
dansmithwhich has a manifest explaining which images should be usable and not and I'd really like tempest to be able to fetch those from somewhere and throw them at glance to confirm that they are accepted or rejected as expected16:36
opendevreviewRodolfo Alonso proposed openstack/devstack master: Move the check of "rpc_workers" after the post-config phase  https://review.opendev.org/c/openstack/devstack/+/92541216:51
gmannclarkb: ack, will check. thanks17:43
gmanndansmith: if I am not wrong the accepted/rejected format will be known via upload API only right?17:43
dansmithgmann: not sure what you mean17:44
dansmithafter changes to glance, if we say an image is vmdk but we upload a qcow2, we should get a fail17:44
gmanndansmith: I mean how you will get to know from glance if format is accepted or rejected?17:44
dansmithif we say it's a vmdk and upload a vmdk but the wrong subformat, it should fail17:44
dansmithif we upload a qcow2 but with a data-file set, it should fail17:44
gmannyeah, then it is good to add in tempest itself17:44
dansmithokay cool,17:45
dansmithso the options for that are:17:45
dansmith1. Fetch the sample images from http somewhere, maybe during some setup phase?17:45
dansmith2. use the repo above to generate them locally17:45
dansmithto be clear, #2 could be a devstack thing that drops them somewhere and tells tempest where to find them locally17:46
gmanndansmith: yeah, it make sense to do #2 in devstack. this lgtm overall17:48
dansmithgmann: okay so for non-tempest people, it will be something like "point tempest.conf to a local directory with manifest.yaml in it" right?17:49
dansmithsorry,17:49
dansmithnon-devstack people I mean17:49
dansmithi.e. cloud ops that want to validate that all the CVE images are rejected after they apply patches17:50
gmanndansmith: yes, config can hold the place same way we do for cirros image also17:50
dansmithokay17:51
dansmithif we do it this way, then it would be nice if a change to add a new check could depends-on a change to os-test-images as well17:51
gmannbcz test generating make test long as well as not configurable if other generated images needs to be tested 17:51
dansmithI don't know what is involved in making that linkage work though17:52
gmannfor depends-on things, we still need to add os-test-images as required-project17:52
dansmithgmann: the generate step in os-test-images is very fast, but makes sense to do it in devstack as part of tempest setup or something17:53
gmannk17:53
gmannI am thinking if it is ok to add os-test-images as required-project in base job if you want to run it in all jobs17:53
gmannif just single job is fine then adding it in tempest-full-py3 only make sense 17:54
dansmithidk, probably no reason to make neutron run these17:54
gmannyeah17:54
dansmithnova, glance, cinder in various configs, probably but dunno that others need to really17:54
opendevreviewStephen Finucane proposed openstack/hacking master: Ignore SyntaxError exceptions  https://review.opendev.org/c/openstack/hacking/+/92541817:54
gmannI think doing it in those jobs only make sense. tempest-full-py3 and nova, glance, cinder integrated jobs17:55
stephenfingmann: frickler: Workaround for an interesting little flake8 bug there (plus an earlier flake8 bump patch), if you have time over the rest of this week ^17:55
dansmithgmann: ack, well, let me figure out the mechanics and then we can apply to jobs17:55
gmann++17:56
dansmithgmann: how does devstack (or that job) know to use a gerrit review instead of opendev for a git repo if depends-on is used?17:56
gmanndansmith: devstack clone those repo from source in playbook pre run i think17:57
gmanndansmith: here ->  and all required-projects is appended in LIBS_FROM_GIT by default https://github.com/openstack/devstack/blob/master/roles/write-devstack-local-conf/library/devstack_local_conf.py#L26017:58
dansmithah okay17:59
dansmithso that puts a thing in libs_from_git, but..we must get the url from depends-on somewhere18:00
dansmithbut, if libs_from_git is the devstack fu required maybe that's all I need to know...18:01
gmannstephenfin: ack, will check18:01
gmanndansmith: ohk, I need to check if that is in devstack or zuul does that?18:02
dansmithyeah, idk18:03
gmannI think its zuul when it prepare the repo clone. I am sure it is not in devstack18:04
dansmithokay but devstack needs to know "get this from /opt/stack/$proj instead of http://opendev.org/openstack/$proj" right?18:06
dansmithor /home/zuul or wherever they go18:06
gmannI think the way it handle is /opt/stack/$proj itself will be cloned from the master (if it is required project) and then checkout depends-on as head18:08
gmannand then proj get installed from there18:08
gmannand checkout to depends-on is done by zuul18:09
dansmithafter devstack has done the clone to /opt/stack/$proj? I figured that was done before devstack even starts18:10
gmanndansmith: it is done before only but by zuul in one of it roles which prepare/clone all the required repo. This is one example I was just checking when oslo.policy change as depends-on was cloned with depends-On commit id and then devstack installed it from there https://zuul.opendev.org/t/openstack/build/c77d94815a35426b82136ede32bf453c/log/job-output.txt#157818:14
dansmithokay and it does that if required_projects:$proj?18:16
gmannso zuul keep repo clone ready as per depends-on/required-projects etc18:16
gmanndansmith: yes. if only in required-project otherwise it is not even installed from git/master18:17
gmannit will be released version installed and no checkout etc18:17
dansmithokay, so devstack's git_clone must just run `git checkout` if the repo already exists?18:17
gmannyes18:18
dansmithokay cool, I expected it was going to be more complicated than that18:19
gmannonly key thing is if you want to test os-test-images as released version (if you are planning to release it) or master18:20
dansmithnot planning to release, so I think we can always just clone from master (or branch if zuul checks out one for us)18:21
gmannbut both can be tested like we do for olso. released version everywhere but master version in *oslo-master job18:21
gmannok18:21
opendevreviewDan Smith proposed openstack/devstack master: Add os-test-images support in lib/tempest  https://review.opendev.org/c/openstack/devstack/+/92542519:05
opendevreviewMerged openstack/hacking master: Ignore SyntaxError exceptions  https://review.opendev.org/c/openstack/hacking/+/92541819:33
opendevreviewDan Smith proposed openstack/tempest master: WIP: Test image formats  https://review.opendev.org/c/openstack/tempest/+/92543119:48
dansmithgmann: we'll see how this does ^19:48
dansmithworks for me locally and confirms that glance currently rejects the gpt image as expected19:48
dansmithglance doesn't do nearly enough of the checking it should, so there's not a ton of those tests we can write today, except maybe as xfail19:49
dansmithgmann: I'll have to go hunt for this I guess: https://zuul.opendev.org/t/openstack/build/f99cf0dd6bf24eaeb03cb33a718a536b20:43
dansmithbut fairly close I think20:43
opendevreviewMerged openstack/tempest master: Fix cleanup of keypairs for --prefix option  https://review.opendev.org/c/openstack/tempest/+/92491922:29

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