Monday, 2017-11-13

openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Replace profile with openstack.config  https://review.openstack.org/50142800:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Strip endpoint_filter  https://review.openstack.org/50142900:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename _Request.uri to _Request.url  https://review.openstack.org/50143000:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Make proxy subclass of adapter  https://review.openstack.org/50143100:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename bare_metal to baremetal  https://review.openstack.org/50143200:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename cluster to clustering  https://review.openstack.org/50143300:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename block_store to block_storage  https://review.openstack.org/50143400:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename telemetry to meter  https://review.openstack.org/50143500:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Create generic proxies for all services in STA  https://review.openstack.org/50143600:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: More connection cleanup  https://review.openstack.org/50143700:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Fix all of the unit tests  https://review.openstack.org/51902400:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add profile back for osc compat  https://review.openstack.org/51920400:12
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rework config and rest layers  https://review.openstack.org/51902900:14
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add notes about moving forward  https://review.openstack.org/50143800:14
*** jkilpatr has quit IRC00:16
*** edmondsw has joined #openstack-sdks00:17
*** edmondsw has quit IRC00:25
openstackgerritMerged openstack/python-openstackclient master: Updated from global requirements  https://review.openstack.org/51916701:25
*** hoangcx has joined #openstack-sdks01:25
*** chenyb4 has joined #openstack-sdks02:13
*** salv-orlando has joined #openstack-sdks02:48
*** salv-orl_ has quit IRC02:51
*** bobh has joined #openstack-sdks03:45
*** bobh has quit IRC03:49
*** dhellmann has quit IRC04:06
*** dhellmann has joined #openstack-sdks04:07
*** Dinesh_Bhor has joined #openstack-sdks04:14
*** hoangcx has quit IRC04:53
*** hoangcx has joined #openstack-sdks04:54
*** edmondsw has joined #openstack-sdks05:41
*** edmondsw has quit IRC05:45
*** bobh has joined #openstack-sdks05:47
*** bobh has quit IRC05:52
openstackgerritchenyb4 proposed openstack/python-openstacksdk master: Add cluster support force delete parameter when cluster/node delete  https://review.openstack.org/51887406:00
openstackgerritchenyb4 proposed openstack/python-openstacksdk master: Add block_store support single volume display image message  https://review.openstack.org/51924407:07
*** bobh has joined #openstack-sdks07:49
*** slaweq has joined #openstack-sdks07:52
*** bobh has quit IRC07:53
*** slaweq has quit IRC07:56
*** ldl has joined #openstack-sdks08:04
openstackgerrityangweiwei proposed openstack/python-openstackclient master: Fix credentials in create, update and list.  https://review.openstack.org/51925408:06
*** slaweq has joined #openstack-sdks08:08
*** slaweq has quit IRC08:10
*** salv-orlando has quit IRC08:11
*** slaweq has joined #openstack-sdks08:11
*** salv-orlando has joined #openstack-sdks08:11
*** salv-orlando has quit IRC08:15
*** ralonsoh has joined #openstack-sdks08:19
*** e0ne has joined #openstack-sdks08:25
*** jpich has joined #openstack-sdks08:34
*** e0ne has quit IRC08:34
*** e0ne has joined #openstack-sdks08:36
*** e0ne has quit IRC08:36
*** salv-orlando has joined #openstack-sdks08:36
*** dtantsur|afk is now known as dtantsur08:55
*** e0ne has joined #openstack-sdks08:59
*** e0ne has quit IRC09:11
*** fzdarsky has joined #openstack-sdks09:15
*** e0ne has joined #openstack-sdks09:17
openstackgerrityangweiwei proposed openstack/python-openstackclient master: Fix credentials in create, update and list.  https://review.openstack.org/51925409:36
*** e0ne has quit IRC10:00
*** e0ne has joined #openstack-sdks10:07
*** e0ne has quit IRC10:42
*** bobh has joined #openstack-sdks10:51
*** ldl has quit IRC10:53
*** bobh has quit IRC10:55
*** e0ne has joined #openstack-sdks10:57
*** e0ne has quit IRC11:01
*** e0ne has joined #openstack-sdks11:04
*** ldl has joined #openstack-sdks11:08
*** sdague has joined #openstack-sdks11:21
*** LindaWang has joined #openstack-sdks11:40
*** bobh has joined #openstack-sdks11:52
*** e0ne has quit IRC11:52
*** jkilpatr has joined #openstack-sdks11:56
*** bobh has quit IRC11:56
*** e0ne has joined #openstack-sdks11:57
*** e0ne has quit IRC12:04
*** e0ne has joined #openstack-sdks12:04
*** dtantsur is now known as dtantsur|bbl12:10
kuzkocan someone tell me if it's possible in shade to change the tenant after having declared my openstack_cloud() element?12:16
kuzkoI would like to list running instances on all the tenants my specified credential has access to, so I list the tenants and for each of them change the auth['project_name'] to the tenant name i'm processing... but it seems the id of the current_project doesn't change...12:18
*** markvoelker has joined #openstack-sdks12:53
*** e0ne has quit IRC12:59
*** e0ne has joined #openstack-sdks13:00
*** edmondsw has joined #openstack-sdks13:19
*** edmondsw has quit IRC13:20
*** edmondsw has joined #openstack-sdks13:20
*** chenyb4_ has joined #openstack-sdks13:25
*** ldl has quit IRC13:29
mordredkuzko: yah - auth['project_name'] will only get read at create time - adding a thing to do what you're talking about it on the list ... was thinking something like "with other_tenant('tenant-name') as new_tenant: new_tenant.list_servers()" or something similar13:38
mordredkuzko: for now the best bet would just be to make another cloud object but overriding the project_name in kwargs ... there's an example in the functional tests of doing that - one sec ...13:39
*** fzdarsky is now known as fzdarsky|afk13:40
kuzkooh good day sir mordred ! thank you for the workaround, the onjly thing that came to my mind would have to create a temporary cloud.yml change the tenant it wazs supposed to point to and create a new openstack_cloud with it... if yyou tell me there is a pure python of doing it i'll teka it ^^13:40
kuzko*take13:40
mordredkuzko: yah - so you can actually overlay values ...13:42
mordredkuzko: https://github.com/openstack-infra/shade/blob/master/shade/tests/functional/test_users.py#L135 is the example I was thinking of13:42
kuzkohow so?13:42
mordredkuzko: so you can just say openstack_cloud(cloud='cloud-name', project_name='new-project') and it'll give you a cloud basd on cloud-name but with project_name set to a different project13:43
mordredor - at least, you should be able to13:43
kuzkooh it's that simple? let me try that right away13:44
*** chenyb4_ has quit IRC13:45
*** chenyb4_ has joined #openstack-sdks13:45
openstackgerritchenyb4 proposed openstack/python-openstacksdk master: Add cluster support force delete parameter when cluster/node delete  https://review.openstack.org/51887413:46
kuzkonope, doing so sends a MissingRequiredOptions auth plugin requires parameters which were not given : auth_url13:47
kuzkomordred : maybe I should specifiy every parameter of the cloud endpoint?13:47
kuzkonope even with that it doesn't return the proper values...13:49
mordredhrm.13:49
mordredgimme a sec ... lemme poke real quick13:50
mordredkuzko: http://paste.openstack.org/show/626160/ <-- this works for me13:52
mordred(I commented project_name out of the clouds.yaml entry for vexxhost)13:52
*** edmondsw_ has joined #openstack-sdks13:53
*** edmondsw has quit IRC13:53
*** edmondsw_ is now known as edmondsw13:54
kuzkoI replied to your paste13:56
*** e0ne has quit IRC13:57
kuzkoit's using keystone V2.0 api endpoint if it means anythings13:57
mordredhrm13:58
kuzkohttp://paste.openstack.org/show/626161/13:58
mordredok. it's not overriding the setting. one sec ...13:59
mordredaha - duh. it's in the auth dict ... try wrapping it in an auth=dict( ...14:00
mordredcloud = shade.openstack_cloud(cloud='vexxhost', auth=dict(project_name=project_name))14:00
kuzkono, it's still giving me the empty list treatment14:02
kuzkoand if I don't specify the auth_url, username and password in the dict() it fails14:04
kuzkocloud2=openstack_cloud(cloud2="cloudwatt_fr1", auth=dict(project_name=tenant["name"]))14:04
kuzkogives keystoneauth1.exceptions.auth_plugins.MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url14:04
mordredoh - I see it14:05
mordredcloud2=openstack_cloud(cloud2="cloudwatt_fr1", auth=dict(project_name=tenant["name"])) needs to be cloud2=openstack_cloud(cloud="cloudwatt_fr1", auth=dict(project_name=tenant["name"]))14:05
kuzkoy am I dumb?14:07
kuzkoit works, thank you very much14:07
*** dtantsur|bbl is now known as dtantsur14:09
*** e0ne has joined #openstack-sdks14:14
mordred\o/14:17
mordredI'll hopefully get a better answer for that soon - it comes up in a bunch of contexts14:18
*** edmondsw has quit IRC14:20
*** edmondsw has joined #openstack-sdks14:20
*** edmondsw has quit IRC14:21
*** edmondsw has joined #openstack-sdks14:21
*** e0ne has quit IRC14:39
*** d0ugal has quit IRC14:42
Shrewsmordred: mmm, that tenant context manager would be nifty14:42
*** lbragstad has joined #openstack-sdks14:44
*** e0ne has joined #openstack-sdks14:46
*** d0ugal has joined #openstack-sdks14:46
*** lbragstad has quit IRC14:48
*** d0ugal_ has joined #openstack-sdks14:48
*** d0ugal_ has quit IRC14:50
*** d0ugal_ has joined #openstack-sdks14:50
*** d0ugal has quit IRC14:51
*** d0ugal_ is now known as d0ugal14:52
*** d0ugal has quit IRC14:53
*** d0ugal has joined #openstack-sdks14:53
*** d0ugal has quit IRC14:53
*** d0ugal has joined #openstack-sdks14:53
mordredShrews: I think I've almost got it written now (got nerdsniped)14:53
mordredShrews, briancurtin, dtroyer, SamYaple: email overview of the outstanding patches send to dev list with subject: "[python-openstacksdk][shade] Reviewing the merge-shade patches"14:54
*** fzdarsky|afk is now known as fzdarsky14:55
Shrewsmordred: oh, so shade as a repo would be no more? that's news to me14:57
Shrewsbut i guess it makes sense14:57
Shrewsmordred: what about the ansible tests? quick scan of that email doesn't show a reference14:59
*** lbragstad has joined #openstack-sdks14:59
*** chenyb4_ has quit IRC15:01
Shrewsactually, i'll reply to that email15:01
*** chenyb4_ has joined #openstack-sdks15:01
*** chenyb4_ has quit IRC15:05
*** salv-orlando has quit IRC15:15
*** salv-orlando has joined #openstack-sdks15:15
*** LindaWang has quit IRC15:18
mordredShrews: well - shade as a repo will stick around - but it'll become a very thin layer that wraps the shade code in openstacksdk15:19
mordredShrews: because we have an opportunity to fix some of the defaults with moving the code to the sdk tree - but we need to keep backwards compat for shade users ...15:20
*** salv-orlando has quit IRC15:20
mordredShrews: so, taking extra_specs as an example (turns out our default behavior of always fetching was stupid) ... we can turn that off by default in the sdk code, but have list_flavors in shade be def list_flavors(self, fetch_extra_specs=True): sdk.list_flavors(fetch_extra_specs=fetch_extra_specs) ...15:21
mordredShrews: I should probably write down thinking about that too shouldn't I?15:22
mordredShrews: btw - same thing with OCC ... opportunity to clean up the code in the sdk tree - as long as we can keep a compat shim for folks using it directly via occ itself15:22
openstackgerritHongbin Lu proposed openstack/python-openstackclient master: Replace %r with %s on printing string variable  https://review.openstack.org/51938515:24
*** e0ne has quit IRC15:35
kuzkohum, I'm back on the same thing but with a new case... how can I deal with v3 domains???15:36
kuzkorunning a cloud.list_projects() returns a 401 , so I'm looking to return the domains and search in them for servers, but I don't really see how... cloud.list_domains() doesn't seem to be a thing15:38
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add ability to work in other auth contexts  https://review.openstack.org/51939415:41
mordredkuzko: ^^ maybe that will actually give you the tools you need15:41
*** gouthamr_ has joined #openstack-sdks15:41
*** gouthamr_ is now known as gouthamr15:42
mordredkuzko: also - list_domains IS a thing, but it's in the OperatorCloud object, so instead of shade.openstack_cloud() you need to use shade.operator_cloud() ... and thanks, that points out a bug in the patch above15:42
*** e0ne has joined #openstack-sdks15:42
Shrewsmordred: k, I get it now. Thx15:43
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add ability to work in other auth contexts  https://review.openstack.org/51939415:43
*** e0ne has quit IRC15:47
*** e0ne has joined #openstack-sdks15:47
mordredkuzko, Shrews: ^^ ... if that looks good to folks, I'll add some tests for it ... I tested it locally with http://paste.openstack.org/show/626175/ ... although I just added one more line to that test and found a place it's unhappy15:47
*** slaweq has quit IRC15:52
*** dave-mccowan has joined #openstack-sdks15:52
kuzkohummmm... I didn't expect to raise a patch ... so I'm kinda stuck because the public cloud I use seems to lock access to operator_cloud() stuff (quite understandable) so ... hmmmmm15:54
mordredkuzko: well - the patch I've got above should handle the domain stuff without needing operator cloud or list_domains ...15:54
mordredkuzko: if the projects are in different domains, then list_projects should return domain-id in the project payload - and connect_as_project / as_project should properly pull that from the project dict returned from list_projects15:55
*** bobh has joined #openstack-sdks15:56
mordredkuzko: you can TOTALLY copy-pasta code from those methods in to your program - but we can also likely get a new shade release cut with those methods within the day if they work for you15:57
mordredspeaking of - I should really get a cloudwatt acount ...15:57
kuzkooh right, i'll try to copy paste my way out of this...15:57
kuzkoand I don't really suggest this, they are quite terrible... for them, an horizon console unavailable is not considered downtime if the API's endpoints on one of the two regions are available...15:58
mordredkuzko: well - that may be - but I like to have accounts on all the public clouds so that I can do testing against them from time to time16:03
mordredkuzko: it wasn't an issue this time, but sometimes if you have an issue on cloudwatt and I try to reproduce it on citycloud I can't ...16:03
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add ability to work in other auth contexts  https://review.openstack.org/51939416:03
mordredthis time with tests16:03
mordredkuzko: if you copy/paste those methods into your program, just replace the self parameter with a parameter that you can pass a cloud object too and they should otherwise work - you'll need to add imports for keystoneauth1.session, copy and contextlib16:04
mordredShrews: ^^ added tests16:05
kuzkowell, I modified openstackcloud.py, and now I'll try to find a way to change that self stuff you mentionned16:06
GreenBloodmordred: kuzko and I, at the office, are always amazed by your work on shade and the speed at which you program stuff16:10
*** e0ne has quit IRC16:14
*** salv-orlando has joined #openstack-sdks16:16
kuzkomordred by any means, do you have an account on opentelekom cloud?16:18
*** e0ne has joined #openstack-sdks16:20
*** salv-orlando has quit IRC16:21
mordredkuzko: I do not - I had one for a little bit but I don't think it works any more - I keep meaning to follow up on that16:31
mordredGreenBlood: thanks - well, it's usually because there is something that's been on the TODO list for a while and someone just gives an excuse to do it - it makes it look like I'm thinking faster than I actually am :)16:32
kuzkowell, I was asking because telefonica's public cloud, t-system open public cloud and oranges cloud for business are the same backend, so verifying on one of these is pretty much validating the 3 of them...16:33
mordredah - neat16:33
mordredcloudwatt moved to using the huawei openstack stuff? I didn't realize that16:34
briancurtinmordred: i’ll look around for that mailing list thread and try to prioritize a few of them. i normally do some open source stuff in the morning before start The Real Job, so i’ll try to get a few of them looked at this week16:35
mordredbriancurtin: woot. the big ugly patch (https://review.openstack.org/#/c/519029/) or its non-squashed equiv (https://review.openstack.org/#/c/501428 through https://review.openstack.org/#/c/519024) is the thing I think your eyes and background are the most essential for - a bunch of the others are just mechanical16:37
mordredbriancurtin: but the stuff that mucks around with Connection and turns the Proxy objects in to subclasses of keystoneauth Adapter are things where you're going to know WAY more about edge cases and gotchas16:38
mordred(that's likely apparent from the email (I hope) - but since you're doing off-hours open source I figure I should try to point out things where your brain is more specifically important)16:39
kuzkomordred : nope cloudwatt and orange cloud for business public cloud based on huawei and cuccurent offers from the same brand...16:45
mordredbriancurtin: also - while I'm bugging you - is there an overview doc anywhere describing what's needed to migrate something from Resource/Proxy to Resource2/Proxy2?16:46
kuzkofrench people, don't try to make sense out of it... cloudwatt is still going vanilla openstack16:46
briancurtinmordred: there’s nothing documented, but i can write something up for that16:46
kuzkos/and cuccurent/are competing16:47
mordredkuzko: awesome. good to know :)16:48
mordredbriancurtin: cool, thanks! I started just trying to infer what was needed by looking at previous patches that had done migrations, but I figured there's probably a saner-way to work on that16:48
*** salv-orlando has joined #openstack-sdks17:09
*** e0ne has quit IRC17:12
*** e0ne has joined #openstack-sdks17:18
*** ralonsoh has quit IRC17:22
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add ability to work in other auth contexts  https://review.openstack.org/51939417:34
SamYaplemordred: yep will get on the reviews today now that all the traveling isdone17:47
mordredSamYaple: were you in Sydney and I just didn't see you?17:49
SamYaplenah ihad to be in california for other business17:49
mordredah. ok.17:56
*** e0ne has quit IRC18:06
*** e0ne has joined #openstack-sdks18:07
*** e0ne has quit IRC18:08
*** e0ne has joined #openstack-sdks18:08
*** e0ne has quit IRC18:08
*** dtantsur is now known as dtantsur|afk18:09
*** e0ne has joined #openstack-sdks18:10
*** e0ne has quit IRC18:10
*** e0ne has joined #openstack-sdks18:11
*** e0ne has quit IRC18:12
*** jpich has quit IRC18:23
*** e0ne has joined #openstack-sdks18:53
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add ability to work in other auth contexts  https://review.openstack.org/51939419:35
*** e0ne has quit IRC20:28
*** salv-orlando has quit IRC20:28
*** salv-orlando has joined #openstack-sdks20:28
*** salv-orlando has quit IRC20:33
*** e0ne has joined #openstack-sdks20:51
briancurtinmordred: the resource/resource2 move is, as you noticed, mostly easily picked up just by looking at other changes, but i can’t really think of anything special outside of what i just wrote here: https://etherpad.openstack.org/p/sdk-resource-transition20:56
briancurtinmost of that work is done, but just a matter of picking up a few remaining ones and making sure they work. i had always wanted to get around to getting object_store done, but i think that’s probably the biggest gap right now20:58
*** salv-orlando has joined #openstack-sdks21:00
openstackgerritOpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements  https://review.openstack.org/51910721:09
openstackgerritOpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements  https://review.openstack.org/51910721:09
openstackgerritOpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements  https://review.openstack.org/51910721:10
*** d0ugal has quit IRC21:10
*** d0ugal has joined #openstack-sdks21:11
openstackgerritOpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements  https://review.openstack.org/51910721:11
openstackgerritOpenStack Proposal Bot proposed openstack/keystoneauth master: Updated from global requirements  https://review.openstack.org/51910721:15
openstackgerritOpenStack Proposal Bot proposed openstack/osc-lib master: Updated from global requirements  https://review.openstack.org/51913421:16
openstackgerritOpenStack Proposal Bot proposed openstack/osc-lib master: Updated from global requirements  https://review.openstack.org/51913421:17
openstackgerritOpenStack Proposal Bot proposed openstack/osc-lib master: Updated from global requirements  https://review.openstack.org/51913421:23
openstackgerritOpenStack Proposal Bot proposed openstack/osc-lib master: Updated from global requirements  https://review.openstack.org/51913421:23
openstackgerritOpenStack Proposal Bot proposed openstack/osc-lib master: Updated from global requirements  https://review.openstack.org/51913421:40
*** vdrok_ has joined #openstack-sdks21:46
*** johnsom_ has joined #openstack-sdks21:46
openstackgerritHongbin Lu proposed openstack/python-openstackclient master: Add RemoveNetwork command to server  https://review.openstack.org/51545321:47
*** Hazelesque_ has joined #openstack-sdks21:49
*** johnsom has quit IRC21:51
*** fungi has quit IRC21:51
*** vdrok has quit IRC21:51
*** Hazelesque has quit IRC21:51
*** vdrok_ is now known as vdrok21:51
*** johnsom_ is now known as johnsom21:51
*** fungi has joined #openstack-sdks21:54
openstackgerritMerged openstack/cliff master: add bandit to pep8 job  https://review.openstack.org/51899422:07
*** gouthamr has quit IRC23:09
*** bobh has quit IRC23:15
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Fix all of the unit tests  https://review.openstack.org/51902423:33
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add syntatic sugar alias for making connections  https://review.openstack.org/51950423:33
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Use task_manager and Adapter from shade  https://review.openstack.org/51950523:33
mordredbriancurtin: sweet! thanks, the writeup is helpful for looking at the remaining ones23:36
*** salv-orlando has quit IRC23:37
*** salv-orlando has joined #openstack-sdks23:38
*** salv-orlando has quit IRC23:42

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