Monday, 2016-09-12

*** gildub has joined #openstack-sdks00:12
*** hoangcx has joined #openstack-sdks00:39
*** chlong_ has joined #openstack-sdks01:12
*** chlong has joined #openstack-sdks01:12
*** zhurong has joined #openstack-sdks01:15
*** kevo has joined #openstack-sdks01:19
*** hoangcx has quit IRC01:35
*** hoangcx has joined #openstack-sdks01:36
*** hoangcx2 has joined #openstack-sdks01:38
*** hoangcx has quit IRC01:40
*** hoangcx has joined #openstack-sdks01:42
*** hoangcx2 has quit IRC01:45
openstackgerritayoung proposed openstack/keystoneauth: Fix parameters for Kerberos Auth Plugin  https://review.openstack.org/36828801:48
*** hoangcx2 has joined #openstack-sdks01:49
*** hoangcx has quit IRC01:51
*** hieulq has joined #openstack-sdks01:52
openstackgerritayoung proposed openstack/keystoneauth: Fix parameters for Kerberos Auth Plugin  https://review.openstack.org/36828801:58
*** jamielennox is now known as jamielennox|away02:00
*** jamielennox|away is now known as jamielennox02:04
openstackgerritayoung proposed openstack/keystoneauth: Fix parameters for Kerberos Auth Plugin  https://review.openstack.org/36828802:13
openstackgerritQiangTang proposed openstack/python-openstackclient: Add image project set command  https://review.openstack.org/36722402:17
*** namnh has joined #openstack-sdks02:17
*** hoangcx has joined #openstack-sdks02:17
*** hoangcx2 has quit IRC02:18
*** lifeless_ has quit IRC02:19
openstackgerritQiangTang proposed openstack/python-openstackclient: Add image project list command  https://review.openstack.org/36649202:19
openstackgerritQiangTang proposed openstack/python-openstackclient: Refactor image project add / remove  https://review.openstack.org/36591002:24
*** prg3 has quit IRC02:27
openstackgerritQiangTang proposed openstack/python-openstackclient: Support mark volume as bootable in volume set  https://review.openstack.org/36019102:28
*** prg3 has joined #openstack-sdks02:31
*** lifeless has joined #openstack-sdks02:34
*** hoangcx has quit IRC02:42
*** hoangcx has joined #openstack-sdks02:42
openstackgerritRui Chen proposed openstack/python-openstackclient: Support to list specified server's ports  https://review.openstack.org/35702702:42
openstackgerritTang Chen proposed openstack/python-openstackclient: Set default api version for global options  https://review.openstack.org/35541702:43
openstackgerritQiangTang proposed openstack/python-openstackclient: Fix openstack quota set/show --class not work  https://review.openstack.org/35158102:44
*** yuanying has quit IRC02:51
*** RuiChen has joined #openstack-sdks02:52
openstackgerritTang Chen proposed openstack/python-openstackclient: Trivial: Rename ListTransferRequests to ListTransferRequest  https://review.openstack.org/36262502:58
*** hoangcx2 has joined #openstack-sdks03:00
*** hoangcx has quit IRC03:00
openstackgerritRui Chen proposed openstack/python-openstackclient: Set quota "per_volume_gigabytes", "backup_gigabytes" and "backups"  https://review.openstack.org/35228603:02
openstackgerritRui Chen proposed openstack/python-openstackclient: Unit tests of quota command refactor  https://review.openstack.org/35228503:02
*** hoangcx has joined #openstack-sdks03:03
*** hoangcx2 has quit IRC03:04
openstackgerritRui Chen proposed openstack/python-openstackclient: Support fetching network project default quota  https://review.openstack.org/34361603:07
openstackgerritRui Chen proposed openstack/python-openstackclient: Add functional tests for unset multiple volume type props  https://review.openstack.org/33533803:09
openstackgerritRui Chen proposed openstack/python-openstackclient: Support "--no" and "--all" option in aggregate set and unset  https://review.openstack.org/31019303:15
*** RuiChen has quit IRC03:29
*** RuiChen has joined #openstack-sdks03:31
*** yuanying has joined #openstack-sdks03:50
*** amotoki has joined #openstack-sdks04:05
*** gouthamr has joined #openstack-sdks04:19
openstackgerritMerged openstack/python-openstackclient: Add unit test for volume type in volume v1  https://review.openstack.org/36723004:27
*** salv-orlando has joined #openstack-sdks04:52
*** chlong_ has quit IRC05:03
*** chlong has quit IRC05:03
*** chlong_ has joined #openstack-sdks05:16
*** chlong has joined #openstack-sdks05:20
*** chlong has quit IRC05:25
openstackgerritlvdongbing proposed openstack/python-openstacksdk: Fix cluster query mapping  https://review.openstack.org/36787805:57
*** chlong_ has quit IRC06:05
reedipamotoki: ping06:13
*** hoangcx2 has joined #openstack-sdks06:27
*** hoangcx has quit IRC06:27
openstackgerritRui Chen proposed openstack/python-openstackclient: Support "--no" and "--all" option in aggregate set and unset  https://review.openstack.org/31019306:29
*** gouthamr has quit IRC07:01
*** gouthamr has joined #openstack-sdks07:02
*** gouthamr has quit IRC07:03
*** kevo has quit IRC07:15
*** hoangcx2 has quit IRC07:25
*** hoangcx has joined #openstack-sdks07:27
*** adriant has quit IRC07:30
*** jpenag is now known as jpena07:37
*** hoangcx2 has joined #openstack-sdks07:38
*** hoangcx has quit IRC07:39
openstackgerritRodolfo Alonso Hernandez proposed openstack/python-openstackclient: Add network support for "qos policies"  https://review.openstack.org/35065507:59
*** gildub has quit IRC08:00
*** zhurong has quit IRC08:03
*** hoangcx2 has quit IRC08:06
*** hoangcx2 has joined #openstack-sdks08:06
*** hoangcx has joined #openstack-sdks08:10
*** hoangcx2 has quit IRC08:10
*** Nh3 has joined #openstack-sdks08:12
*** Romanenko_K has joined #openstack-sdks08:14
*** lucas-afk is now known as lucasagomes08:17
*** zhurong has joined #openstack-sdks08:28
*** salv-orl_ has joined #openstack-sdks08:31
*** salv-orlando has quit IRC08:34
*** openstackgerrit has quit IRC09:04
*** openstackgerrit has joined #openstack-sdks09:05
*** hoangcx has quit IRC09:08
*** hoangcx has joined #openstack-sdks09:09
*** mfedosin has joined #openstack-sdks09:43
*** hoangcx has quit IRC09:58
*** zhurong has quit IRC10:04
*** markvoelker has joined #openstack-sdks10:22
*** markvoelker has quit IRC10:26
*** e0ne has joined #openstack-sdks10:27
*** Nh3 has quit IRC10:33
*** shu-mutou is now known as shu-mutou-AFK10:39
*** cdent has joined #openstack-sdks10:52
*** fzdarsky has joined #openstack-sdks11:02
*** rtheis has joined #openstack-sdks11:06
*** Nh3 has joined #openstack-sdks11:22
*** lucasagomes is now known as lucas-hungry11:25
*** namnh has quit IRC11:27
*** thrash|g0ne is now known as thrash11:32
*** sdague has joined #openstack-sdks11:34
openstackgerritUkesh Kumar proposed openstack/osc-lib: Incorrect usage message when no auth param passed  https://review.openstack.org/36876811:37
*** mliima has joined #openstack-sdks11:47
openstackgerritMonty Taylor proposed openstack/os-client-config: Fix a bunch of tests  https://review.openstack.org/36877611:51
openstackgerritMonty Taylor proposed openstack/os-client-config: Split auth plugin loading into its own method  https://review.openstack.org/36877711:51
openstackgerritMonty Taylor proposed openstack/os-client-config: Remove validate_auth_ksc  https://review.openstack.org/36877811:51
openstackgerritMonty Taylor proposed openstack/os-client-config: Defer plugin loading until it's needed  https://review.openstack.org/36877911:51
mordreddtroyer: I poked a little at the occ auth plugin loading thing over the weekend - but I know you were also poking, so I changed the change-id's on https://review.openstack.org/368777 and https://review.openstack.org/368778 to make new changes so I wouldn't step on you11:52
mordreddtroyer: mostly wanted to get to https://review.openstack.org/368779 ... that's an idea I've been mulling recently and wanted to see what you think11:52
*** markvoelker has joined #openstack-sdks12:02
*** jpena is now known as jpena|lunch12:07
*** fzdarsky has quit IRC12:11
*** lucas-hungry is now known as lucasagomes12:29
openstackgerritMerged openstack/python-openstacksdk: Fix cluster query mapping  https://review.openstack.org/36787812:33
*** Nh3 has quit IRC12:43
*** Nh3 has joined #openstack-sdks12:43
openstackgerritMerged openstack/python-openstackclient: remove duplicate unit test  https://review.openstack.org/36823712:45
reedipRuiChen : commented on the bug https://review.openstack.org/30820112:48
reediptangchen : Can you also see my response on ^^ ??12:48
*** cleong has joined #openstack-sdks12:54
*** mfedosin has quit IRC13:11
*** openstackgerrit has quit IRC13:19
*** openstackgerrit has joined #openstack-sdks13:20
openstackgerritMerged openstack/python-openstacksdk: Rebase keystone resources onto resource2  https://review.openstack.org/36531413:20
openstackgerritQiming Teng proposed openstack/python-openstacksdk: Fix 'config_drive' and 'networks' for compute server  https://review.openstack.org/36883713:21
*** jpena|lunch is now known as jpena13:22
openstackgerritMonty Taylor proposed openstack/os-client-config: Remove validate_auth_ksc  https://review.openstack.org/36877813:23
openstackgerritMonty Taylor proposed openstack/os-client-config: Defer plugin loading until it's needed  https://review.openstack.org/36877913:23
openstackgerritMonty Taylor proposed openstack/os-client-config: Fix a bunch of tests  https://review.openstack.org/36877613:23
openstackgerritMonty Taylor proposed openstack/os-client-config: Split auth plugin loading into its own method  https://review.openstack.org/36877713:23
*** fzdarsky has joined #openstack-sdks13:26
openstackgerritMerged openstack/python-openstacksdk: Add network segment create, delete and update support  https://review.openstack.org/30222313:29
*** annegentle has joined #openstack-sdks13:29
*** hoangcx has joined #openstack-sdks13:35
*** annegentle has quit IRC13:36
*** annegentle has joined #openstack-sdks13:37
*** mfedosin has joined #openstack-sdks13:37
*** zhurong has joined #openstack-sdks13:38
*** tamilhce has joined #openstack-sdks13:44
*** hoangcx has quit IRC13:51
*** hoangcx has joined #openstack-sdks13:52
*** hoangcx2 has joined #openstack-sdks13:57
*** rvasilets__ has left #openstack-sdks13:58
*** hoangcx has quit IRC13:59
*** fguillot has joined #openstack-sdks14:15
openstackgerritMerged openstack/python-openstackclient: Unit tests of quota command refactor  https://review.openstack.org/35228514:17
openstackgerritQiming Teng proposed openstack/python-openstacksdk: Fix 'config_drive' and 'networks' for compute server  https://review.openstack.org/36883714:30
*** salv-orlando has joined #openstack-sdks14:30
*** salv-orl_ has quit IRC14:33
openstackgerritQiming Teng proposed openstack/python-openstacksdk: Rebase keystone v3 proxy to proxy2  https://review.openstack.org/36533114:38
*** annegentle has quit IRC14:39
*** beekneemech is now known as bnemec14:43
kzaitsev_wsis check-osc-plugins red by default in stable/mitaka?14:52
*** annegentle has joined #openstack-sdks14:53
openstackgerritMerged openstack/python-openstacksdk: Fix 'config_drive' and 'networks' for compute server  https://review.openstack.org/36883714:54
*** zhurong has quit IRC14:55
*** lucasagomes is now known as lucas-afk15:02
*** jgriffith has quit IRC15:03
*** Nh3 has quit IRC15:04
*** Nh3 has joined #openstack-sdks15:06
openstackgerritQiming Teng proposed openstack/python-openstacksdk: Fix connection init when session is provided  https://review.openstack.org/36890715:08
openstackgerritMerged openstack/python-openstacksdk: Rebase keystone v3 proxy to proxy2  https://review.openstack.org/36533115:08
Qimingrtheis, please help take a look at #368907 above when you have bandwidth15:09
*** gouthamr has joined #openstack-sdks15:09
Qimingit is a fix to problems raised in rally15:09
Qimingthanks15:09
rtheislgtm15:12
*** thrash is now known as thrash|biab15:13
openstackgerritQiming Teng proposed openstack/python-openstacksdk: Fix connection init when session is provided  https://review.openstack.org/36890715:13
*** Nh3 has quit IRC15:22
*** Nh3 has joined #openstack-sdks15:28
*** e0ne has quit IRC15:41
*** Nh3 has quit IRC15:42
*** hoangcx2 has quit IRC15:52
jidaris there no way to do this: http://docs.openstack.org/user-guide/cli-nova-launch-instance-from-volume.html#create-volume-from-image-and-boot-instance with the python-openstackclient ?15:55
*** kevo has joined #openstack-sdks15:56
*** kevo has quit IRC15:57
*** fzdarsky has quit IRC15:57
openstackgerritBrian Curtin proposed openstack/python-openstacksdk: Add extended Glance Image properties  https://review.openstack.org/36894316:04
*** lucas-afk is now known as lucasagomes16:04
openstackgerritMerged openstack/python-openstacksdk: Fix connection init when session is provided  https://review.openstack.org/36890716:05
*** mfedosin has quit IRC16:21
*** jgriffith_ has joined #openstack-sdks16:24
*** thrash|biab is now known as thrash16:26
*** jgriffith_ has quit IRC16:29
*** jgriffith has joined #openstack-sdks16:35
*** annegentle has quit IRC16:40
*** annegentle has joined #openstack-sdks16:42
*** tamilhce has quit IRC16:49
openstackgerritMerged openstack/python-openstackclient: Trivial: Rename ListTransferRequests to ListTransferRequest  https://review.openstack.org/36262517:06
*** jpena is now known as jpena|off17:06
*** kevo has joined #openstack-sdks17:10
Anticimexbriancurtin: did you have a chance to look at the compute list issue?17:11
briancurtinAnticimex: i looked briefly and nothing stuck out. i will try to take a look again later17:12
openstackgerritMerged openstack/python-openstackclient: Add functional tests for unset multiple volume type props  https://review.openstack.org/33533817:23
*** fzdarsky has joined #openstack-sdks17:23
*** e0ne has joined #openstack-sdks17:38
openstackgerritMerged openstack/python-openstackclient: Set quota "per_volume_gigabytes", "backup_gigabytes" and "backups"  https://review.openstack.org/35228617:59
*** ukesh has joined #openstack-sdks18:04
ukeshjoin18:04
ukeshhttps://bugs.launchpad.net/python-ironicclient/+bug/161909118:06
openstackLaunchpad bug 1619091 in python-ironicclient "[RFE] Extend OSC "node list" command to fetch nodes without instance UUID" [Wishlist,Confirmed] - Assigned to Ukesh (ukeshkumar)18:06
ukeshI couldn't find the code for the command 'openstack baremetal node list'18:07
ukeshin openstackclient project18:07
*** ukesh has quit IRC18:10
stevemarwhy did ukesh run away :(18:15
*** lucasagomes is now known as lucas-dinner18:16
*** fzdarsky has quit IRC18:19
*** fzdarsky has joined #openstack-sdks18:21
dtroyerstevemar: looks like we're not going to get a release until g-r is branched, end of this week at the earliest18:24
dtroyerso let's start (carefully!) merging stuff.  carefully == not all at once, and things that make sense to go together.  We can see where we are Wednesday afternoon and re-cut the release review then.  no sense in wasting a whole week (again)18:25
*** Romanenko_K has quit IRC18:34
stevemardtroyer: the next release will be for the "ocata" series, right?18:42
dtroyeryes18:42
stevemardtroyer: okay, we merged a bunch of patches over the weekend (bug fixes and such) -- i thought the flood gates were open?18:44
stevemar10 or so18:44
dtroyerI thought for cleanups and tests and whatnot.18:45
dtroyerno reason to hold back now, just not all at once18:45
stevemardtroyer: okay, i also abandoned as many patches :)18:45
dtroyerI _really_ don't know where we stand these days18:46
*** fzdarsky has quit IRC18:47
*** fzdarsky has joined #openstack-sdks18:48
openstackgerritBrian Curtin proposed openstack/python-openstacksdk: Add extended Glance Image properties  https://review.openstack.org/36894318:55
openstackgerritTom Jose Kalapura proposed openstack/python-openstackclient: Add sort support to project list  https://review.openstack.org/33520418:55
openstackgerritMerged openstack/python-openstacksdk: Obtain Image checksum via additional GET  https://review.openstack.org/36745919:05
*** e0ne has quit IRC19:08
openstackgerritMerged openstack/python-openstacksdk: Add extended Glance Image properties  https://review.openstack.org/36894319:18
stevemardtroyer: sorry, was in a meeting, i figure we are restricted by the release team19:31
dtroyeryes19:31
briancurtinrtheis, Qiming: i just pushed 0.9.6 of the SDK to get a lot of the recent changes out there: https://pypi.python.org/pypi/openstacksdk/0.9.619:33
stevemardtroyer: the osc version in "stable/newton" is 3.2.0, the only critical fix not included is the prompting one; 3.3.0 will be released in ocata; i figure it can contain non-critical fixes too, like we did with the 2.x.0 releases19:33
rtheisbriancurtin: thank you19:33
dtroyerstevemar: right, we can go forward sensibly now19:33
Anticimexbriancurtin: i guess i can 'triage' with older pip-versions of openstacksdk to find one that works19:35
briancurtinAnticimex: i would try 0.9.1 — that’s the release before we changed endpoint determination from straight out of the service catalog to using what the service tells us19:36
briancurtinAnticimex: also, can i ask more about what kind of cloud you’re connecting to? is this one you’ve setup on your own (ie. devstack) or is this something inside your company, or something you’re paying a vendor for? so far our changes have worked everywhere except one case we had to adjust, so I’m wondering what’s going on out in the world that this19:38
briancurtindoesn’t work once again. there are some moving parts that don’t seem to be working together19:38
Anticimexbriancurtin: i'm connecting to our own cloud, we're a cloud provider19:40
Anticimexusing what the service tells the user would probably be fine, except, the URL fed to connect to the service is wrong in my bug case19:41
Anticimexso problem is before the query to the base API of the compute service19:41
Anticimexwhere "base API" == https://$nova-url/19:42
stevemarbriancurtin: do you not use the releases repo for sdk releases?19:43
briancurtinwe get the URL to connect to the service out of the service catalog, but we just use the root of the service (which then spits out versioned URLs we take). which provider is this? maybe i can just make an account and try it myself?19:44
briancurtinstevemar: no idea what that is19:44
stevemarbriancurtin: https://github.com/openstack/releases19:44
stevemar:)19:44
briancurtini push a tag and magic happens19:44
stevemarbriancurtin: its all good19:44
Anticimex0.9.1:  RESP BODY: {"servers": []}19:45
stevemarbriancurtin: the upper-constraints won't change: https://github.com/openstack/requirements/blob/master/upper-constraints.txt19:45
Anticimexwhich is correct in my case, so problem there somewhere19:45
Anticimexdiff'ing time19:45
stevemarbriancurtin: we'll merge patches in a bit once the requirements repo opens up again19:45
briancurtinAnticimex: yeah, there’s some disconnect then between what your service catalog has for the nova endpoint and what we’re calling and/or what we’re receiving from nova itself. hmm19:46
Anticimexi basically stopped debugging it on the finish line on friday. i think i'll now soon see the changes in the function that i had reached then19:48
Anticimexyeah. one of these: https://github.com/openstack/python-openstacksdk/blob/0.9.5/openstack/session.py#L89 , https://github.com/openstack/python-openstacksdk/blob/0.9.5/openstack/session.py#L11019:51
Anticimexi think the latter19:51
Anticimexthat's where i ended up the debugging on friday19:51
Anticimexi.e. "just take the root" fails in our case for some reason19:51
briancurtinAnticimex: i think you mentioned that some other service worked despite that issue with nova, perhaps it was like neutron list networks or something? i wonder what is different between your nova and neutron roots or url structures?19:53
briancurtin(or whichever one it was that worked)19:53
Anticimexyeah, i can test that too19:53
Anticimexfirst just figure out why _get_endpoint_versions given the input in this case doesn't give the expected output19:54
Anticimexbriancurtin: https://gist.github.com/Millnert/5294ae0e0efc9d574509f04a652afe6420:05
Anticimexrepresenting https://github.com/openstack/python-openstacksdk/blob/0.9.5/openstack/session.py#L117-L12120:05
*** cleong has quit IRC20:05
Anticimexthe if seems wrong20:06
Anticimexadded a comment20:07
briancurtinhmm, yeah…let me see what that’s doing there20:07
Anticimexdevstack has : for port always? :]20:08
* Anticimex has no idea20:08
Anticimex:-)20:08
Anticimexok the Markdown ate my comment..20:08
briancurtinAnticimex: ah, so that was changed for https://github.com/openstack/python-openstacksdk/commit/56cd1a924725d7b52edeeb984d6e66fd17f42b5c — devstack has port numbers, but apache services don’t end up using ports i guess20:09
Anticimexbut anyway20:09
Anticimexright, once it's live on the internets the nicest thing is to put it on default https right20:09
briancurtinso in your case, we really need “https://nova.api.cloud.ipnett.se/“ to be what’s returned there20:09
Anticimexright20:09
Anticimexwhat's the actual objective of that part of the function?20:10
Anticimexstrip away the path and keep url up to first / ?20:10
Anticimexat any rate parts.netloc doesn't appear to be the thing one wants there20:11
briancurtinAnticimex: that part should be returning the root of the service. in your case it should be giving https://nova.api.cloud.ipnett.se/ and in the case of something like devstack it’d give http://mydevstack:1234/20:11
Anticimexno that's wrong of me. parts.netloc is the thing, but the : isn't always there20:12
Anticimexnod, so it's to catch the port number if there is such a thing?20:12
Anticimexroger20:13
briancurtinyep, so yeah that’s a little off given these cases20:13
*** mfedosin has joined #openstack-sdks20:14
briancurtinhm, although if you have a port in there it keeps it in the netloc anyway…so now I’m not sure why we changed this...20:14
Anticimexso that change has the right intention but, shrug, wasn't tested at whatever set of things we have running that makes our catalogue return something like 'https://nova.api.cloud.ipnett.se/v2/<some_tenant_uuid>'20:14
Anticimexi'm slightly confused as well for the actual code of the change :)20:14
Anticimexnetloc isn't complete without the port20:15
Anticimex(as per http or similar)20:15
Anticimexaha, it's by intention preserving the path, because "the path part is the identity of the service"20:16
*** fangxu has joined #openstack-sdks20:16
Anticimexthat's a pretty wild assumption20:16
*** fguillot has quit IRC20:17
*** mliima has quit IRC20:18
briancurtinyeah, your case is a mixture of both things. no port, but you also don’t want the path parts. i wonder if we should try to make a request without the path, see if it works, if not make one with the path, and then if *that* one doesn’t work, raise an exception or something saying we can’t figure out wtf is going on? i don’t love this, but don’t have20:20
briancurtina great suggestion to handle three different cases unless we resort to making users pass in something (which i don’t want to have to rely on)20:20
Anticimexno, code trialing is much better20:20
Anticimexso the assumed counter case to the one with non-default port http/https, seems something like the case where you have something like "api.example.com/nova" or some such?20:21
Anticimexthere are quite large dragons around these assumptions :]20:21
briancurtinyeah, i think that’s it20:21
briancurtinAnticimex: yeah, this whole project exists to fight the million openstack dragons20:22
Anticimexone could perhaps add some "intelligence" and make guesses if the first part of the path is something like 'vX[.y]' or so, but that's also errorprone i guess20:22
Anticimexbriancurtin: awesome!20:22
Anticimexi'm not sure how much one can rely on the fact that the service catalogue, when having per-service dns names such as in our case, always will contain "$hostname/vX[.y/foo"20:23
Anticimexespecially if this is to be generic over all endpoints20:24
Anticimex"... rely on the [presumed] fact ..."20:24
openstackgerritMerged openstack/python-openstackclient: Fix regular expression for uptime in hypervisor show  https://review.openstack.org/35355520:25
Anticimexi guess the heuristics approach such as i suggested is also insufficient. but it could at least be used as an heuristics to suggest which query to try first20:27
briancurtinAnticimex: so should we do the urlsplit, then make requests for x.scheme+"://“+x.netloc as well as x.scheme+”://“+x.netloc+x.path — one of those should give the root of the service, right? although i guess if there’s a tenant in there, the second way wouldn’t work either20:27
Anticimexi still don't like the whole ':' part either. anyone running api.example.com:8443/nova will be screwed :]20:28
Anticimexright20:28
Anticimexthat should work i guess20:28
briancurtinthough i guess we could also check if your tenant id is included in the path and remove it?20:28
Anticimexright, tenant one wouldn't be base of query20:28
*** d0ugal has quit IRC20:28
*** cdent has quit IRC20:28
Anticimexbriancurtin: yeah, but i guess there are a myriad different ways these can show up20:29
Anticimexi mean, whatever comes after the $service20:29
briancurtinyeah, you can literally do anything you want and it’s called openstack20:29
Anticimex:)20:29
Anticimexthe source of the tenant confusion is the request to the service catalogue right20:30
Anticimexis it possibly possible to learn something from the state at the time of that request?20:30
Anticimexi'm assuming here you can have different OS_ENVs or whatever and perhaps not get a tenant back from the service catalogue always20:30
*** salv-orl_ has joined #openstack-sdks20:31
* Anticimex doens't know the strictness of the service catalogue either, so a bit hard to speculate20:31
briancurtini think what we could do is make that request with no path, make a request with a path, and if those two fail, rely on the service catalog itself? after that, if your requests aren’t going through, you may have to call an exorcist20:31
dtroyerfwiw, getting $tenant_id out of the service catalog is a goal, but one that has to be done carefully.  Part of that is making clients be able to handle both ways…20:32
briancurtindtroyer: so us trying a few different requests up front (once per Connection instance) depending on what we get is fine/acceptable/what is expected right now?20:33
*** salv-orlando has quit IRC20:34
briancurtindtroyer: this started because we couldn’t find identity v3 in the SC, so we had to go to the root, and then it was mentioned that we should always go to the root, and now finding the root is sometimes a challenge. i think ultimately we’re moving the right way, right?20:34
briancurtin(the root=the root of a given service)20:34
Anticimexseems to me, more discovery less assumption is better, at least20:34
openstackgerritTom Jose Kalapura proposed openstack/python-openstackclient: Add sort support to project list  https://review.openstack.org/33520420:35
Anticimexbriancurtin: i guess so, ie the ultimate fallback is what's actually in the service catalogue (i didn't get why that can't be used always)20:35
*** fzdarsky has quit IRC20:36
Anticimexah, a specific service version wasn't in SC20:36
Anticimexisn't that possibly the problem? :]20:36
briancurtinAnticimex: there are some cases where *only* it can be used (object store), and some cases where it can’t be used at all (identity v3). in the middle of that, some services provide both!20:36
Anticimexok20:36
briancurtinAnticimex: that one is on purpose, as they’re moving toward the version-less SC20:37
Anticimexoh, ack20:37
Anticimexbriancurtin: i think you're on the right track anyway20:37
Anticimexgeneric first, special case later20:38
briancurtinAnticimex: I’m going to rework that method to try a few cases with the SC fallback. do you have an account on gerrit so i can add you to the review?20:38
*** sigmavirus is now known as sigmavirus|awa20:38
Anticimexyes, uh, not sure what my identifier is. email: martin@millnert.se20:39
briancurtinok cool20:39
openstackgerritMerged openstack/python-openstackclient: Display hypervisor information without uptime  https://review.openstack.org/35384620:43
*** d0ugal has joined #openstack-sdks20:44
*** fangxu has quit IRC20:47
*** fangxu has joined #openstack-sdks20:51
*** sdague has quit IRC21:02
*** rtheis_ has joined #openstack-sdks21:03
*** rtheis_ has quit IRC21:03
*** rtheis has quit IRC21:05
Anticimexnow the openstacksdk user question becomes, how to query for all projects servers, not just a specific tenant's, using the "conn.compute.servers()" iterator21:13
briancurtinAnticimex: can you do that with anything else? (i have no idea, though maybe with admin level creds?)21:26
Anticimexyes, openstack server list --all-projects21:28
briancurtinif you can create a URL at which a request can be made and a response can be returned, we can make it work. we just haven’t done it all, through a combination of manpower and lack of documentation21:28
Anticimexby debug/timing output, it seems the secret(?) parameter ?all_tenants=True is appended21:28
Anticimexi was just this very second checking the compute api spec though21:28
Anticimexand don't see it :)21:28
briancurtinthen we probably just need to add all_tenants as a query param and allow you to then call compute.servers(all_tenants=True)21:29
Anticimexhttp://developer.openstack.org/api-ref-compute-v2.1.html#listServers doesn't list it21:29
Anticimexbriancurtin: yep21:29
Anticimexperhaps these operator things are hidden? a bit weird tho21:29
Anticimex(or someone removed that since liberty - we run liberty)21:29
briancurtinAnticimex: if “all_tenants” was added to this https://github.com/openstack/python-openstacksdk/blob/master/openstack/compute/v2/server.py#L32 you would be able to get what you want21:30
Anticimexoh, that's it?21:30
Anticimexsuch abstraction21:30
Anticimexi'll try :]21:30
Anticimexworked :)21:31
Anticimexok let me contribute by adding that :]21:32
Anticimexdo you have tests for these?21:32
briancurtinAnticimex: yep, for that you should just update https://github.com/openstack/python-openstacksdk/blob/master/openstack/tests/unit/compute/v2/test_server.py#L80 and that should be it21:33
Anticimexah, i was inside functional tests folder looking21:34
Anticimexok21:34
Anticimexthx21:34
Anticimexbriancurtin: does the project use launchpad or.. something else?21:34
briancurtinwe might have functional tests that would apply, but i don’t think so. we’re kind of light on functional tests21:34
Anticimexi mean, the parameter is quite simple data, so unit's probably fine21:35
briancurtinAnticimex: we do use launchpad, sort of. https://bugs.launchpad.net/python-openstacksdk is the bug tracker, but if you have a code fix we just usually go straight into gerrit with it21:35
Anticimexok21:35
briancurtinbefore you said “let me contribute” i was about to say feel free to file a bug report there, but code in hand works quite well21:36
*** mfedosin has quit IRC21:44
Anticimexbriancurtin: openstack workflow i'm used to is basically: git checkout -B bug/foo ; make_changes ; git review21:44
Anticimex(it's been 6 months)21:45
Anticimexgerrit now told me "FU, i see no change-id"21:45
* Anticimex goes to openstack/git review docs :s21:45
briancurtinAnticimex: that’s what i do. in your “make_changes” step, do you have just one commit to represent both the code and test changes? i think if you make multiple commits it might complain about that21:47
Anticimexnod, just one commit21:47
*** fzdarsky has joined #openstack-sdks21:48
Anticimexdo you setup gerrit with commit hook? perhaps i missed a flag in "git review -s" to set it up :s21:48
briancurtinAnticimex: im not really sure then. maybe something wrong with git review? i think you need to do a git review -s?21:48
briancurtinnah we don’t have any hooks going on21:48
Anticimexyeah i'll google it, not your fault :)21:48
briancurtini just did a git commit —amend on my my last change and it throws the Change-Id automatically at the end of the message21:49
Anticimexthat may be what i missed21:49
Anticimexhm nope. found the relevant docs: https://review.openstack.org/Documentation/user-changeid.html#creation21:50
Anticimexout of curiosity, do you have a $repo/.git/hooks/commit-msg there?21:50
briancurtini do21:51
Anticimexme too actually. perhaps it didn't like my branch name. *reading commit-msg'21:51
Anticimexok now it appeared on git commit --amend. this was really odd. oh well21:53
openstackgerritMartin Millnert proposed openstack/python-openstacksdk: compute/v2/server: add ?all_tenants=bool to list  https://review.openstack.org/36905721:53
*** annegentle has quit IRC21:54
briancurtinAnticimex: cool, looks good now. since this is trivial and i can see it’s fine, sending it through now (though it’ll still run the jenkins tests and wait to pass for anything to move forward)21:56
Anticimexack21:56
*** craigs has joined #openstack-sdks21:57
*** amotoki has quit IRC21:58
*** zigo has quit IRC22:08
*** craigs has quit IRC22:09
*** csterret_ has joined #openstack-sdks22:09
*** zigo has joined #openstack-sdks22:11
*** zigo is now known as Guest4138822:11
openstackgerritMerged openstack/python-openstacksdk: compute/v2/server: add ?all_tenants=bool to list  https://review.openstack.org/36905722:16
*** Guest41388 is now known as zigo_22:17
*** adriant has joined #openstack-sdks22:17
*** openstackgerrit has quit IRC22:48
*** openstackgerrit has joined #openstack-sdks22:49
*** salv-orlando has joined #openstack-sdks22:53
*** salv-orl_ has quit IRC22:54
*** sdague has joined #openstack-sdks22:56
*** annegentle has joined #openstack-sdks22:59
*** annegentle has quit IRC23:00
*** sdague has quit IRC23:04
*** fzdarsky has quit IRC23:14
*** sdague has joined #openstack-sdks23:15
*** annegentle has joined #openstack-sdks23:43
*** zhurong has joined #openstack-sdks23:48
*** annegentle has quit IRC23:48

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