Wednesday, 2017-06-14

htaccessthanks for response re my bug, i'll test new release when its available, for the moment i just pinned to version 1.20 in our installer00:21
*** slaweq has joined #openstack-shade00:35
*** slaweq has quit IRC00:39
*** yolanda has joined #openstack-shade00:46
openstackgerritMonty Taylor proposed openstack-infra/shade master: Cleanup volumes in functional tests in parallel  https://review.openstack.org/47396901:10
*** yolanda has quit IRC01:16
mordredhtaccess: awesome. and sorry for the bug01:29
*** slaweq has joined #openstack-shade01:35
*** slaweq has quit IRC01:40
openstackgerritMonty Taylor proposed openstack-infra/shade master: Cleanup volumes in functional tests in parallel  https://review.openstack.org/47396901:43
openstackgerritMonty Taylor proposed openstack-infra/shade master: Convert delete server mocks to requests_mock  https://review.openstack.org/47383902:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Properly expand server dicts after rebuild and update  https://review.openstack.org/47397202:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Convert get_server_by_id  https://review.openstack.org/47383802:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add boot from volume unit tests  https://review.openstack.org/47361602:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Migrate non-list server interactions to REST  https://review.openstack.org/47397102:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Don't fetch extra_specs in functional tests  https://review.openstack.org/47358302:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Update tests for server calls that aren't list  https://review.openstack.org/47397002:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Convert create_server mocks to request_mock  https://review.openstack.org/47355402:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: RESTify create_server  https://review.openstack.org/47355502:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Convert delete server calls to REST  https://review.openstack.org/47384002:15
openstackgerritMonty Taylor proposed openstack-infra/shade master: Break early from volume cleanup loop  https://review.openstack.org/47402702:35
*** slaweq has joined #openstack-shade03:37
*** slaweq has quit IRC03:41
openstackgerritMerged openstack-infra/shade master: Cleanup volumes in functional tests in parallel  https://review.openstack.org/47396903:51
*** gouthamr_ has joined #openstack-shade04:07
*** gkadam has joined #openstack-shade04:08
*** gouthamr has quit IRC04:09
*** slaweq has joined #openstack-shade04:38
*** slaweq has quit IRC04:42
*** slaweq has joined #openstack-shade05:12
*** slaweq has quit IRC05:17
*** gouthamr_ has quit IRC05:29
openstackgerritRajat Sharma proposed openstack-infra/shade master: Replace six.iteritems() with .items()  https://review.openstack.org/47407106:18
*** slaweq has joined #openstack-shade06:19
*** slaweq has quit IRC06:23
openstackgerritDeepak Mourya proposed openstack-infra/shade master: Remove py34 and pypy in tox  https://review.openstack.org/47407406:26
*** yfried has joined #openstack-shade06:27
*** htaccess has quit IRC06:58
*** htaccess has joined #openstack-shade07:10
*** slaweq has joined #openstack-shade07:19
*** slaweq has quit IRC07:26
*** yfried has quit IRC07:38
*** yolanda_ has joined #openstack-shade08:09
*** gkadam is now known as gkadam-afk09:20
*** lastmikoi has joined #openstack-shade09:21
*** cdent has joined #openstack-shade09:22
*** slaweq has joined #openstack-shade09:23
lastmikoiHello everyone. I've asked a question in #openstack-infra and was redirected here since it was specifically about shade. Here is the question: I am unable to use shade 1.21.0 (through ansible) with my company's openstack-based provider because their neutron endpoint does not have a trailing slash. This causes an issue with urllib.parse.urljoin as it transforms 'https://domain.tld/neutron' into 'https://domain.tld/v2.0' (https://09:24
lastmikoigithub.com/openstack-infra/shade/blob/1.21.0/shade/openstackcloud.py#L513).09:24
lastmikoihttps://wiki.openstack.org/wiki/VersionDiscovery states that href elements are read to be folder elements, but I don't know if this document applies to endpoint definition. Is this an actual bug or is my provider's keystone 'misconfigured' ?09:24
*** slaweq has quit IRC09:28
*** yolanda_ has quit IRC09:55
*** slaweq has joined #openstack-shade10:24
*** slaweq has quit IRC10:28
*** ioggstream has joined #openstack-shade11:06
*** ioggstream has quit IRC11:20
mordredlastmikoi: hrm. well, even if your provider's keystone is misconfigured - it's still a bug11:23
mordredI'll see if I can't get a patch up for you11:23
*** slaweq has joined #openstack-shade11:24
lastmikoimordred: sounds awesome, thanks a lot ! Shall I file a bugreport in the storyboard then ?11:25
*** slaweq has quit IRC11:29
openstackgerritMonty Taylor proposed openstack-infra/shade master: Fix urljoin for neutron endpoint  https://review.openstack.org/47416211:30
mordredlastmikoi: nah. that should fix you ^^11:30
mordredrods: oh! check out the bug in pagination that my concurrent-delete patch has uncovered11:33
mordredrods: http://logs.openstack.org/16/473616/2/gate/gate-shade-functional-legacy/67233ea/console.html#_2017-06-14_03_27_00_28423411:33
lastmikoimordred: indeed it works as expected when applying the patch locally, looking forward to seeing this bugfix released then. thanks again! :)11:34
mordredlastmikoi: sure thing! I need to make a release today for another bugfix as well - so it should be soon (assuming I can get this other gate bug sorted)11:36
openstackgerritMonty Taylor proposed openstack-infra/shade master: Ignore 404 errors while fetching paginated volumes  https://review.openstack.org/47416511:41
mordredrods: ^^ I'm _sure_ that's not the 100% correct answer11:42
*** gkadam-afk is now known as gkadam11:45
*** cdent has quit IRC11:53
mordredsamueldmq: on projectupdate - I think we can treat the enabled=True behavior as a bug11:55
lastmikoiis shade aimed to be backwards compatible with older (in this case pre-mitaka) openstack deployments ?12:08
mordredlastmikoi: yes it is12:09
mordredlastmikoi: our expectation is to support all openstack clouds an end-user might be using12:09
lastmikoioh nevermind, the issue I'm having has already been fixed in the master branch (https://github.com/openstack-infra/shade/commit/755890ba413a67806ceb40a9d413c95cdd233f95)12:13
mordredlastmikoi: yah - I'm going to release that today12:14
mordredso as soon as the urljoin patch above lands12:16
lastmikoisounds good, I'll go forward and use a development snapshot of shade until then12:17
samueldmqmordred: exactly, I plan to report and fix in a followup12:21
mordredsamueldmq: awesome12:21
*** slaweq has joined #openstack-shade12:25
*** slaweq has quit IRC12:30
openstackgerritMerged openstack-infra/shade master: Remove py34 and pypy in tox  https://review.openstack.org/47407412:34
rodsmordred there seems to be  something wrong with pagination in this output http://logs.openstack.org/16/473616/2/gate/gate-shade-functional-legacy/67233ea/console.html#_2017-06-14_03_27_00_284234, mind if I take a look?12:36
rodss/take/give/g12:37
mordredrods: please do!12:37
mordredrods: I pushed up a workaroud patch: https://review.openstack.org/47416512:37
mordredrods: the issue at hand (which that test will now highlight) is that there were 8 volumes. each of them had a delete call sent to the server12:38
mordredthen, we're now doing a "while True: list_volumes()" and looking for the volumes we deleted in the list output and waiting until list doesn't have any of them12:39
mordredrods: so it's _completely_ reasonable for one of the volumes to go away which could make the pagination call not work anymore12:40
mordredrods: I'm wondering if, maybe we should put a try/except further up in list_volumes so that if any of the calls 404, we try the whole thing again - and have a limited number of retries12:40
rodsmordred ya, I was about to suggest that :)12:41
mordredsince if there are 8 volumes, the pagination length is 6, if volume 7 goes away between the initial call and the next call, volume 8 will be missing from the final list12:41
mordredrods: ++12:41
mordredrods: then I agree with you!12:41
*** gouthamr has joined #openstack-shade12:44
openstackgerritMerged openstack-infra/shade master: Replace six.iteritems() with .items()  https://review.openstack.org/47407112:47
openstackgerritMerged openstack-infra/shade master: Add boot from volume unit tests  https://review.openstack.org/47361613:14
*** gkadam has quit IRC13:17
*** openstackgerrit has quit IRC13:18
*** noshankus has joined #openstack-shade13:24
*** slaweq has joined #openstack-shade13:26
*** openstackgerrit has joined #openstack-shade13:28
openstackgerritMonty Taylor proposed openstack-infra/shade master: Do pagination test in its own project  https://review.openstack.org/47420013:28
*** slaweq has quit IRC13:31
openstackgerritMonty Taylor proposed openstack-infra/shade master: Fix urljoin for neutron endpoint  https://review.openstack.org/47416213:38
mordredfrickler, lastmikoi: ^^ update to that patch13:38
mordredlastmikoi: frickler made a good review point about the previous patch - do you have a moment to verify that the updated version works for you too?13:38
lastmikoimy provider doesn't present the versioned endpoint but I'll try it out13:40
lastmikoimordred: no regression to report, the updated version works :)13:49
mordredlastmikoi: yay! thanks14:21
*** slaweq has joined #openstack-shade14:27
*** slaweq has quit IRC14:40
openstackgerritMonty Taylor proposed openstack-infra/shade master: Do pagination test in its own project  https://review.openstack.org/47420014:45
*** cdent has joined #openstack-shade15:21
*** yolanda_ has joined #openstack-shade15:23
*** ioggstream has joined #openstack-shade15:40
rodsmordred want me to work on that try/except for list_volumes we talked about before?16:34
*** yolanda_ has quit IRC16:40
*** yolanda_ has joined #openstack-shade16:40
mordredrods: yah - if you don't mind, I think it'll be better16:42
mordredrods: I also got fancy with the cleanup: https://review.openstack.org/#/c/474200 :)16:43
*** yolanda_ has quit IRC16:43
rodsmordred yah, saw that. Pretty cool :)16:43
*** yolanda_ has joined #openstack-shade16:43
*** cdent has quit IRC17:17
openstackgerritMerged openstack-infra/shade master: Don't remove top-container element for sec group REST API calls  https://review.openstack.org/47377017:58
*** yolanda__ has joined #openstack-shade18:09
*** yolanda_ has quit IRC18:10
*** ioggstream has quit IRC18:20
samueldmqmordred: re https://review.openstack.org/#/c/473581/3/shade/openstackcloud.py18:23
samueldmqmordred: domain_id will go away if it is None (in the _normalize._split_filters logic)18:24
samueldmqso the test needs to be modified anyway18:25
mordredsamueldmq: I wonder why it wasn't being passed by keystoneclient before18:27
samueldmqmordred: maybe that's related to the fact you have different domains for different things there in ksc?18:28
samueldmqproject_domain, user_domain, ...18:29
samueldmqnvm, that;s list_proejct18:29
samueldmqnot the  role assignments thing18:29
samueldmqmordred: did the unit tests use keystoneclient?18:30
mordredsamueldmq: yah - we were passing down domain to keystoneclient.v3.projects.list before18:30
mordredsamueldmq: yah18:30
mordredand it passed domain_id=base.getid(domain), inside18:30
mordredso I'd expect the REST keystoneclient generated to be the same since we haven't changed that logic18:31
samueldmqyes, but looks to be a bug there then?18:31
samueldmqsince the url should contain ?domain_id since the beginning18:31
samueldmqthat's the whole point of providing a domain_id anyways18:31
mordredyah - I think it was a bug and the current thing *looks* right18:33
mordredbut I can't point my finger to what the bug actually was and why ksc wasn't passing domain_id in this case :)18:33
samueldmqmordred: I looked into the ksc code and it looks fine, should be passing domain_id down :(18:35
samueldmqmordred: maybe we are in the other case in our tests18:35
samueldmqand we should write a test that does not provide a domain_id18:36
samueldmqnah, that's just inverting the issue18:36
samueldmqthe thing is that moving from ksc to rest is inconsistent18:36
mordredsamueldmq: yah - I went ahead and landed that one - let's keep our eyes on this though18:36
samueldmqmordred: yes, our code seems to be fine18:37
samueldmqbtw, I wanted to take another look at _split_filters18:37
mordred++18:37
samueldmqoverall seems like we combine the filters, them split them back in the same thing we had before18:37
samueldmqtldr: seems unnecessary processing ?18:37
samueldmqI can try a patch18:39
samueldmqthat is always easier to explain18:39
mordredsounds good to me18:47
samueldmqmordred: in the unit tests, do we "run" v2.0 or v3?18:55
openstackgerritMerged openstack-infra/shade master: Fix urljoin for neutron endpoint  https://review.openstack.org/47416218:58
samueldmqnvm, domain_id may come inside filters, not always in the domain_id param :(19:10
openstackgerritMerged openstack-infra/shade master: De-client-ify Project List  https://review.openstack.org/47358119:16
openstackgerritMerged openstack-infra/shade master: De-client-ify Project Delete  https://review.openstack.org/47362819:17
mordredsamueldmq: it depends per-unit test19:22
mordredsamueldmq: you can add self.use_keystone_v2() to the top of a unittest and it'll set things up for that test to use v219:23
openstackgerritMerged openstack-infra/shade master: De-client-ify Project Create  https://review.openstack.org/47360919:23
openstackgerritMerged openstack-infra/shade master: De-client-ify Project Update  https://review.openstack.org/47362919:23
samueldmqmordred: kk I am debugging a bit19:24
samueldmqseeing how this https://github.com/openstack-infra/shade/blob/master/shade/operatorcloud.py#L1663-L1664 relates to the change I made19:25
samueldmqthat data is passed down to list_projects, and that data contains 'domain' not 'domain_id' as my patch expects, I am bit confused right now19:25
samueldmqnah that's fine, I do filters['domain_id19:26
samueldmqfilters['domain_id'] = data['domain']19:26
* samueldmq needs vacation :)19:26
samueldmqmordred: aha I found it!!!19:31
samueldmqour code was doing this https://github.com/openstack-infra/shade/blob/master/shade/operatorcloud.py#L1663-L166419:31
samueldmqeven before my patches, I didnt touch that19:31
samueldmqthat sets 'domain_id' into filtesr19:32
mordredsamueldmq: AHHHH19:32
samueldmqin list_projects the _split_filters thing was expecting 'domain'19:32
mordrednod. so I thnk the change to domain_id caused this to also attach19:32
samueldmqso our old code was not passing down domain_id to ksc, but filtering it in the shade filter logic afterwards19:32
mordredyah19:32
samueldmqphew, I was not crazy19:32
mordredPHEW. I like understanding19:33
mordredyes19:33
samueldmq++ we dont need to keep that in mind anymore, it wont break :)19:33
samueldmqbrb19:33
openstackgerritMonty Taylor proposed openstack-infra/shade master: Do pagination test in its own project  https://review.openstack.org/47420019:45
openstackgerritMonty Taylor proposed openstack-infra/shade master: Skip pagination test for now  https://review.openstack.org/47432919:45
mordredrods: ^^ I'm tossing in a skipTest on the pagination functional test for now ... we're seeing too many timeouts from cinder with it currently19:45
mordredrods: I think the pagination code itself works fine atm - so we can iterate on the test without stress19:46
rodsmordred yah, makes sense. I should be able to work on it in a few19:47
mordredrods: I have a hunch this is going to be an annoying one - the most recent issues were cinder failing to create volumes in other tests19:48
rodsmordred do you have any log url handy?19:50
mordredyah - one sec19:51
mordredrods: http://logs.openstack.org/00/474200/2/check/gate-shade-functional/33b27bd/console.html19:52
mordredis an example19:52
rodsmordred ok, thx19:52
mordredit hits status='error' here: http://logs.openstack.org/00/474200/2/check/gate-shade-functional/33b27bd/console.html#_2017-06-14_18_43_27_50087819:52
*** ioggstream has joined #openstack-shade20:02
*** ioggstream has quit IRC20:22
mordredrods: wow: http://logs.openstack.org/00/474200/3/check/gate-shade-functional-py35/278808a/20:36
mordredrods: it's NOT pagination. just sometimes we're not succeeding in creating volumes20:36
mordredrods: maybe the volumes in their own project is also too much20:37
rodsya, wondering if 8 volumes are too much and cinder is having hard time20:38
*** gouthamr has quit IRC20:45
mordredrods: oh. hahaha. I'm stupid20:45
mordredrods: that chanage un-skips the pagination test. I was starting to worry skipping the test wasn't heling20:45
mordredbut I clearly need new eyeballs20:46
rods:)20:50
rodsmordred ah, I can reproduce the timeout for test_list_volumes_pagination locally20:55
rodsdigging20:55
mordredrods: excellent!20:55
*** gouthamr has joined #openstack-shade21:12
openstackgerritMerged openstack-infra/shade master: Skip pagination test for now  https://review.openstack.org/47432921:18
rodsmordred interesting if I run the test like this `python -m testtools.run discover --load-list ../my-list` it always pass running it like this `tox -e functional -- 'shade.tests.functional.test_volume.TestVolume.test_list_volumes_pagination'` fails21:45
mordredrods: that's FANTASTIC21:52
*** cdent has joined #openstack-shade21:57
*** yolanda__ has quit IRC22:07
*** yolanda__ has joined #openstack-shade22:15
*** yolanda__ is now known as yolanda22:15
*** yolanda has quit IRC22:23
rodsmordred I hay have found something about this log you pasted http://logs.openstack.org/00/474200/3/check/gate-shade-functional-py35/278808a/logs/testr_results.html.gz22:39
rodshttp://logs.openstack.org/00/474200/3/check/gate-shade-functional-py35/278808a/logs/screen-c-sch.txt.gz#_Jun_14_20_24_42_05343922:39
*** cdent has quit IRC22:44
openstackgerritMerged openstack-infra/shade master: Convert create_server mocks to request_mock  https://review.openstack.org/47355422:45
openstackgerritMerged openstack-infra/shade master: Don't fetch extra_specs in functional tests  https://review.openstack.org/47358322:45
mordredrods: aha!22:48
mordredrods: so we really do need to wait for those volumes to be destroyed - otherwise we run out of space22:48
rodsyeah22:49
rodsmordred but I'm seeing a weird issue with with test_list_volumes_pagination http://paste.openstack.org/show/612601/22:52
rodstest is timing out after 60 secs22:52
rodseven tough timeout is supposed to be 180 https://github.com/openstack-infra/shade/blob/master/shade/tests/functional/test_volume.py#L10122:53
mordredrods: ah - well, we have a 60-second timeout defined in the base test: https://github.com/openstack-infra/shade/blob/master/shade/tests/base.py#L4022:54
mordredrods: maybe we just need to add a TIMEOUT_SCALING_FACTOR to that test22:54
mordredrods: we've got one in test_volume_backup.py already22:55
openstackgerritMerged openstack-infra/shade master: RESTify create_server  https://review.openstack.org/47355522:56
openstackgerritMerged openstack-infra/shade master: Convert get_server_by_id  https://review.openstack.org/47383822:59
openstackgerritMerged openstack-infra/shade master: Convert delete server mocks to requests_mock  https://review.openstack.org/47383922:59
openstackgerritMerged openstack-infra/shade master: Convert delete server calls to REST  https://review.openstack.org/47384023:00
openstackgerritMerged openstack-infra/shade master: Update tests for server calls that aren't list  https://review.openstack.org/47397023:00
rodsmordred yup, TIMEOUT_SCALING_FACTOR does it23:01
mordredrods: WOOT23:01
mordredrods: maybe we don't even need that complex cleanup bit23:02
rodsmordred I think this logic should be enough https://github.com/openstack-infra/shade/blob/master/shade/tests/functional/test_volume.py#L98-L10823:05
rodsI guess the problem was that since that test was timing out, another test was started but volume were still there waiting to be deleted23:06
rods*volues23:06
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add some release notes we forgot to add  https://review.openstack.org/47438523:08
mordredrods: sweet23:09
openstackgerritRosario Di Somma proposed openstack-infra/shade master: Increase timeout for volume tests  https://review.openstack.org/47438823:24
rodsmordred ^^ that should do it, let's see what happens23:24
mordred\o/23:26

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!