Monday, 2023-05-01

dansmithgmann: I need help. again.18:57
dansmithI'm still debugging issues with this test: https://github.com/openstack/tempest/blob/master/tempest/api/volume/test_volumes_extend.py#L10218:58
dansmithwhile trying to figure out what is going on, I've been trying to add some shell commands against the guest,18:59
dansmithand I'm realizing that I don't think wait_until=SSHABLE is actually being honored here because validateable is not True18:59
dansmithsetting it to true and passing self.get_test_validation_resources() is failing to setup fip stuff19:00
dansmithDetails: {'type': 'ExternalGatewayForFloatingIPNotFound', 'message': 'External network 9e3110b3-853c-4559-bfc2-b48e3004ab10 is not reachable from subnet 239480b1-0e3e-41f2-acfa-e9e720b8c781.  Therefore, cannot associate Port 1aece2ec-9659-46d7-b251-cf69c3fd7054 with a Floating IP.', 'detail': ''}19:00
dansmithI've got the set_network_resources() bit to create all the networking stuff, but still no go19:01
gmanndansmith: hi20:13
gmannchecking20:13
gmanni see, it is using volume base create_server 20:16
gmannbut network resource should be good here as it is set to True https://github.com/openstack/tempest/blob/master/tempest/api/volume/test_volumes_extend.py#L6620:16
dansmithgmann: is that different from doing set_network_resources() with all the true flags?20:35
gmanndansmith: no, same thing. re you trying with router, dhcp also true along with network and subnet in set_network_resources ?20:36
gmannthat is missing in volume.base.py compare to compute.base.py20:36
dansmithoh jeez, you know what? re-looking at this with fresh eyes,20:37
dansmithI put it on the top class, which is not the class the test is in20:37
dansmithVolumesExtendTest vs BasevolumesExtendAttachedTest20:37
gmannohk20:37
dansmiththat said, the one I'm using already has create_default_network=True20:38
dansmithoh, that's what you said20:38
gmannyeah  BaseVolumesExtendAttachedTest has that flag true20:38
dansmithbut are you saying it doesn't inherit from whatever honors that?20:38
dansmithor you think it should be working as it is?20:39
gmannbut as you mentioned, validation resource and validable flag missing there20:39
dansmithright, but if I pass those, I get the above floating ip error20:39
gmanndansmith: I think we can set router and dhcp also to true here https://github.com/openstack/tempest/blob/cb008e2167826ad0950b4fd694f344c639413c91/tempest/api/volume/base.py#L5220:39
gmannlike this https://github.com/openstack/tempest/blob/master/tempest/api/compute/base.py#L6720:39
dansmithaha, okay I see20:40
dansmithso I was getting *some* of the default networking and not all,20:40
gmannyeah20:40
dansmithand not overriding all in the right test ;P20:40
dansmithokay now I'm getting actual auth failures, so muuch closer, thanks20:46
dansmithah, which is actually leftover debug20:47
opendevreviewDan Smith proposed openstack/tempest master: Allow wait_until=SSHABLE in scenario manager  https://review.opendev.org/c/openstack/tempest/+/88167520:49
opendevreviewDan Smith proposed openstack/tempest master: Actually make volume extend tests validate  https://review.opendev.org/c/openstack/tempest/+/88192520:49
gmann+1, sorry for missing it in original change, I should have checked that. 20:51
gmanndansmith: and this is nova change you are testing it right? https://review.opendev.org/c/openstack/nova/+/88158520:51
dansmithgmann: not your fault, my fault20:51
dansmithgmann: yep20:51
gmannk20:51
dansmithgmann: last two runs of that were just exactly this failure, so it's possible we'll see a clean run on jammy/cephadm after this .. if this is really the problem making the test fail20:52
dansmiththe same test passes locally on all the new ceph stuff, which gives me hope20:52
gmannk20:53
dansmithgibi has been saying that some of the places we wait_until=SSHABLE do not appear to actually be waiting,20:53
dansmithand the ceph job had validation *disabled* so it definitely wasn't20:53
dansmithbut could be some other examples similar to this one so I'll circle back on those too20:53
gmann+1. thanks20:54
dansmithI would have assumed that we'd fail if not,20:55
dansmithso maybe also good to make wait_until=SSHABLE fail if no validatable=True is passed20:55
dansmithand only pass over it if the conf is not set20:55
gmannI think we can remove validatable flag itself and work with wait_until, conf, and validation resource itself. that will be clean  if conf set not to validate then skip all validation else do validation as per wait_until ask20:59
gmanndansmith: on the SSHABLE thing. I am try to make it default in API tests, https://review.opendev.org/c/openstack/tempest/+/84224021:00
dansmithgmann: I think we still need to fail if we don't get validation_resources right?21:00
gmanngot distracted to other things and could not finish it21:01
dansmithbecause create_server is not on the test class, so we can't call get_test_validation_resources()21:01
dansmithgmann: nice21:01
gmanndansmith: yes, without validatable flag then  wait_until=SSHABLE must require validation_resource21:01
dansmithack yeah okay, I will work on that21:01
dansmiththen I can run with that and just let things fail that might be missing it now21:02
gmanndansmith: only trick is, as common.py is stable interface for plugins so we need to keep arg in create_test_server() https://github.com/openstack/tempest/blob/master/tempest/common/compute.py#L15421:03
dansmithgmann: ack, that's fine.. it's easy to check21:03
opendevreviewDan Smith proposed openstack/tempest master: WIP: Fail if validation flags do not agree  https://review.opendev.org/c/openstack/tempest/+/88192621:04
dansmithwill see if any tests are already calling for SSHABLE without validation_resources or validateable ^ and will go from there21:05
dansmithgmann: found three offenders, all volume tests: https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_cb1/881926/1/check/tempest-full-xena/cb1bea2/testr_results.html22:15
dansmithso these are things we thought were waiting for sshable to fix detach issues, but were not22:16
dansmither, two offenders I guess22:19
opendevreviewDan Smith proposed openstack/tempest master: Fail create if validation flags do not agree  https://review.opendev.org/c/openstack/tempest/+/88192622:28
dansmithzomg, I never thought I'd see it: - Failed: 022:54
dansmithgouthamr: nova job finally passed ^ .. I will recheck a couple more times and then will get the various patches lined up so they will merge in the right order22:55
gouthamrdansmith++ awesome! 22:56
dansmithgouthamr: this includes several changes to volumes tests that I hope will also yield more stability on the other jobs as well.. several places we thought we were waiting for the instance to be sshable, but weren't22:58
gouthamrdansmith: nice; i'm seeing https://review.opendev.org/q/topic:sshable-volume-tests now.. sounds like a lot of hair pulling debugging to track these down! :) 23:01
dansmithyeah ...23:02

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