Tuesday, 2021-07-27

*** rpittau|afk is now known as rpittau07:29
toskyhi! In a review which fixes sahara after the removal of cinderclient.v2, it seems the sahara-openstack-ansible-functional doesn't load the change: https://review.opendev.org/c/openstack/sahara/+/802415/08:04
tosky(also, that job deploys on bionic, but I guess that's a different issue)10:30
toskyuhm, maybe we only miss an explicit openstack/sahara in required-projects10:40
jrossertosky: just looking at this10:46
jrossertosky: i'm not sure a depends-on is going to work here https://zuul.opendev.org/t/openstack/build/47fcf20e03a9442788ad4340265d83e3/log/logs/openstack/sahara1/python_venv_build.log.txt#184710:53
jrosseroh sorry it's not a depends-on, but the thing is the OSA job is testing the os_sahara ansible role and will respect changes in that repo10:54
jrosserbut in turn it clones sahara itself from opendev.org rather than use the code prepared by zuul on the test node10:54
toskyjrosser: so basically that job can't be used to test changes10:55
toskyI would argue that it should be possible to tell os_* roles to not clone if the code is available already10:56
jrosserthis is a legacy OSA job and we have newer ones which do respect the zuul repos10:57
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Add integrated build job to use in sahara repo  https://review.opendev.org/c/openstack/openstack-ansible/+/80245711:06
jrossertosky: lets see how we get on with https://review.opendev.org/c/openstack/sahara/+/80247811:08
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Add integrated build job to use in sahara repo  https://review.opendev.org/c/openstack/openstack-ansible/+/80245711:12
toskyjrosser: I think you mentioned in the past some plan to have a replacement job that can be used by projects to gate on changes11:12
toskyapart from sahara, which is not exactly the most active one, this could still be important for all the other projects 11:13
jrosseryeah - we had the opposite problem where we wanted to test unmerged changes to things like keystone in the context of OSA11:13
jrosseralso lots of job failures when cloning everything from opendev.org rather than use the local copy11:14
toskyisn't it the same problem? Test unmerged changes11:14
jrosserit's a fine balance though because our end-users all expect totally deterministic deployments driven by a manifest of git SHA11:14
jrosserso making this all sensible in CI but also representative of real deployments is tricky11:14
toskyright, the default behavior is fine11:15
toskyit's just the possibility of overriding that git SHA with a specific local place11:15
jrosseryes, hopefully in these newer jobs thats all automatic11:15
opendevreviewSatish Patel proposed openstack/openstack-ansible-os_neutron master: Set ovn hostname using nodename facts  https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/80213412:58
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Add integrated build job to use in sahara repo  https://review.opendev.org/c/openstack/openstack-ansible/+/80245713:12
jrossertosky: looks like good progress on https://review.opendev.org/c/openstack/sahara/+/80247815:02
jrosserwe see it use the local repo for sahara now https://paste.opendev.org/show/807730/15:02
jrosserhowever it's not running any actual sahara tests as you see here https://1f13c8c9ef933c99f2a6-66a8f55a1185bbba9ec0e2f41773aeb5.ssl.cf5.rackcdn.com/802478/2/check/openstack-ansible-deploy-aio_sahara_metal-ubuntu-focal/1d358ee/logs/openstack/aio1-utility/stestr_results.html15:03
toskyoh15:04
jrosserit would be really helpful to get some help with a suitable/minimal set of tempest config that we can use15:04
jrosserthis is kind of expected though, we need to add another patch OSA side to allow-list some of the tempest tests15:04
toskyall the ones from sahara-tests15:04
toskyI guess one just need to override a variable with the regexp of the tests? Does it work if the tests are defined in a tempest plugin?15:05
jrosserit's quite possible we don't load the plugin yet - i need to take more of a look15:05
jrosseris there any assumption about available services, other than basic like nova/keystone/glance etc... ?15:06
toskyheat is needed15:06
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Add heat service when scenario includes sahara  https://review.opendev.org/c/openstack/openstack-ansible/+/80253515:11
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Enable tempest tests for sahara  https://review.opendev.org/c/openstack/openstack-ansible/+/80255116:06
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Add heat service when scenario includes sahara  https://review.opendev.org/c/openstack/openstack-ansible/+/80253516:07
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Enable tempest tests for sahara  https://review.opendev.org/c/openstack/openstack-ansible/+/80255116:07
opendevreviewSatish Patel proposed openstack/openstack-ansible-os_neutron master: Set ovn hostname using nodename facts  https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/80213416:17
spateljrosser do you know what noonedeadpunk was trying to say here - https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/80213516:17
spatelbecause of this patch OVN is failing pretty much on all neutron builds 16:18
jrosserhe is saying that the metadata service is https (or not) as defined here https://opendev.org/openstack/openstack-ansible/src/branch/master/inventory/group_vars/haproxy/haproxy.yml#L31816:18
jrosserso it's a variable16:18
* jrosser just looking at more detail16:20
spatelyes, haproxy only enabled https vip but ovn-metadata using http and its failing 16:20
spatelso i told in patch use https for ovn 16:21
jrosserhaproxy can be either, thats his point16:21
jrosserit's a deployer variable to set haproxy_ssl_all_vips true/false as needed16:21
jrosserso you need to make the template for the neutron role respect this setting16:21
spatelbut how to tell that in AIO and CI-CD jobs ? shouldn't that be default 16:22
spatelwhat is neutron-metadata services use ? http or https? 16:22
jrosserthats the point :)16:22
jrosserit can be either16:22
spatelyes agreed 16:22
spatelbut if i build AIO right now does it use default http or https?16:23
jrosseryou need to make the setting of haproxy_ssl_all_vips set this16:23
jrosserhttps://opendev.org/openstack/openstack-ansible/src/branch/master/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2#L26916:23
spatelThis is default true haproxy_ssl_all_vips right?16:25
jrosserthe default in the haproxy role is false https://opendev.org/openstack/openstack-ansible-haproxy_server/src/branch/master/defaults/main.yml#L8516:25
jrosserthe AIO overrides that to be true16:25
jrosserthis is not just simple answer i can give you straight away16:26
spatelYes, i just build AIO and all haproxy vips are SSL so assuming default is all SSL 16:26
spatelI believe old neutron-metadata-agent also using https API to make a call 16:27
spatelBut ovn-metdata default using http and that is why its failing so now question is, should we make haproxy_ssl_all_vips: false ?  or make change in ovn-metadata to tell use https ?16:28
jrosserthis was only changed one month ago https://opendev.org/openstack/openstack-ansible/commit/6e5b0094d52bb5972e3b5d805afc5302f8696d2f16:29
spatelThat is why i wonder i haven't seen this issue month ago but suddenly its failing on metadata service :) 16:29
jrosseri don't have a straight-away answer because this is one service needing to know about the https/http setup of a different one16:32
jrosseri.e you need to put the right thing in the neutron ovn config based on something to do with nova16:32
*** sshnaidm is now known as sshnaidm|afk16:34
jrosserone way to do this is to make a new variable in os_neutron/defaults/main.yml     neutron_nova_metadata_protocol: "{{ nova_metadata_protocol | default(http) }}"16:38
jrosserthen use "{{ neutron_nova_metadata_protocol }}" in the template16:38
jrosserand it will pick up the necessary value from here https://opendev.org/openstack/openstack-ansible/src/branch/master/inventory/group_vars/all/nova.yml#L1816:39
jrossersee that you need to be using something in the neutron role from group_vars/all/... becasue anything specific to nova is not in scope when deploying neutron16:40
*** rpittau is now known as rpittau|afk16:40
jrosserspatel: ^ does this help?16:41
spatellet me understand.. 16:42
spatelI got it what you saying.. 16:44
spatelfirst find out if nova-metadata-api is http or https and according tell ovn-metadata to use protocol 16:44
jrossercorrect16:46
jrossergenerally each role should have all the 'knobs and dials' defined in defaults/main.yml, so thats why i think we should add another one16:47
jrosserthen in the main openstack-ansible we do 'wiring' to connect global settings like openstack_service_internaluri_proto to all the places in all the roles that need it16:48
jrosserdoing things this way you can then override this in a deployment for nova, or neuton, or both, or neither etc etc16:48
spatel+116:49
jrosserit's how a lot of the OSA flexibility is implemented in practice by having careful attention to how all these variables connect together16:49
spateli can understand otherwise hard to manage 16:53
spateljrosser while you here, what is your thought about this? https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/80240216:59
spatelThis is centos-8 beast and in 5 month it will be dead anyway. 16:59
jrosserwell, having to be careful about centos-8 vs centos-8-stream here in terms of ansible version17:00
jrosseri think stream comes up as 817:00
spatelcentos folks moved all packages to centos-8-stream so openvswitch installation was failing. centos-8.4 has only openvswitch2.13 version left. 17:01
jrosserand old style centos is 8.x17:01
jrosserso this is just terrible for version logic in ansible17:01
jrosserso < 8.4 will also be true for stream17:01
spatelagreed but centos-8.4 will be dead by end of 202117:01
jrosseri don't know if thats what you intend17:01
spatelmy patch pass both centos-8.4 and centos-8-stream 17:02
jrosserright sure, in this cycle we need to remove all support for old centos17:02
spatelYes i would say lets remove centos-8.x and keep focus on stream 17:02
jrosserwell i don't know - we don't run your patch at all on stream with OVS though?17:03
spatelthere is no point to fix 8.4 at this stage 17:03
spatelopenstack-ansible-deploy-aio_metal-centos-8-stream17:03
jrossernot with OVS though?17:03
jrosserdefault is linuxbridge17:03
spatelah! 17:03
spateli know what you saying17:04
jrosseryeah, it makes these version logic operators really nasty17:04
spateli can test that patch in my lab :) 17:04
jrosserwill be *much* cleaner if we switch everything to stream and drop the old jobs17:04
jrosserand then go clear out all the legacy if version < / > 8.x that we have in a few places17:05
spatelThat is what i am saying, lets create centos-8-stream job and delete centos-8.x 17:05
spatelits hard to maintain two version which is overlap a lot 17:06
jrosserso neutron is a bit of a special case, the centos/OVS jobs are defined in the os_neutron repo, so patch this https://github.com/openstack/openstack-ansible-os_neutron/blob/master/zuul.d/jobs.yaml17:06
jrosserchange the job names to end in -stream17:07
jrosserand use nodeset: centos-8-stream17:07
spatel metal and lxc both?17:07
jrosseryep17:08
jrosserthen in the openstack-ansible repo, pretty much all of the rest of the jobs are defined like this for old centos-8 https://github.com/openstack/openstack-ansible/blob/master/zuul.d/jobs.yaml#L485-L54817:08
jrosserand they are used mostly in here to define a template thats used for all the os_<blah> roles https://github.com/openstack/openstack-ansible/blob/master/zuul.d/project-templates.yaml17:09
jrosserbut for these its a pretty good idea to use codesearch.opendev.org to check everywhere else too, just like with neutron there might be a couple of other places that roles define special jobs in their own repo17:10
jrosserspatel: also think about upgrades - do we need to fix this on wallaby?17:10
spatelyes i think so 17:11
jrosserright, so unfortunatley thats harder17:11
jrosseryou need a patch which addresses both centos-8 and centos8-stream, backport it17:11
jrosserthen clean up all the old centos stuff afterward17:11
jrossersorry :(17:11
spatelthen lets leave that alone, it will be too much work17:11
jrosserwallaby is the transition release from centos -> stream for OSA users17:12
jrosserbut theres kind of no testing for OVS there at all......17:12
jrosserOVS+centos stream i mean17:12
spatelBRB17:12
jrosseryeah me too - have to go17:13
spatelThank you! i will add new jobs for stream and will see 17:16
opendevreviewDavid Moreau Simard proposed openstack/openstack-ansible master: DNM: Test ara 1.5.7rc1 with --diff  https://review.opendev.org/c/openstack/openstack-ansible/+/69663418:17
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Enable tempest tests for sahara  https://review.opendev.org/c/openstack/openstack-ansible/+/80255119:40
dmsimardfound a bug in 1.5.7rc1 with the new delegated host tracking, turns out ansible sometimes returns an unresolved jinja expression (i.e: delegate_to: "{{ item }}") will return "{{ item }}" instead of the actual value19:43
dmsimardI'll work out a fix and run another test19:43

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