Monday, 2019-03-18

*** slaweq_ has joined #openstack-sdks00:11
openstackgerritMonty Taylor proposed openstack/openstacksdk master: WIP Make factory for a CloudRegion from CONF objects  https://review.openstack.org/64360100:22
mordredI'm stupid00:22
*** slaweq_ has quit IRC00:24
*** dave-mccowan has joined #openstack-sdks00:28
*** dave-mccowan has quit IRC00:31
openstackgerritMonty Taylor proposed openstack/openstacksdk master: WIP Make factory for a CloudRegion from CONF objects  https://review.openstack.org/64360100:31
*** slaweq_ has joined #openstack-sdks01:11
*** slaweq_ has quit IRC01:24
*** slaweq_ has joined #openstack-sdks02:11
*** gkadam_ has joined #openstack-sdks02:11
*** gkadam_ has quit IRC02:17
*** irclogbot_2 has quit IRC02:23
*** slaweq_ has quit IRC02:24
*** edleafe has quit IRC02:27
*** slaweq_ has joined #openstack-sdks03:11
*** slaweq_ has quit IRC03:25
*** whoami-rajat has joined #openstack-sdks03:46
*** ttsiouts has quit IRC03:52
*** slaweq_ has joined #openstack-sdks04:14
*** slaweq_ has quit IRC04:24
*** slaweq_ has joined #openstack-sdks05:16
*** slaweq_ has quit IRC05:24
*** slaweq_ has joined #openstack-sdks06:11
*** slaweq_ has quit IRC06:24
*** e0ne has joined #openstack-sdks06:40
*** Luzi has joined #openstack-sdks06:53
*** e0ne has quit IRC07:02
*** slaweq_ has joined #openstack-sdks07:13
*** tosky has joined #openstack-sdks08:05
*** ttsiouts has joined #openstack-sdks08:06
*** tosky has quit IRC08:07
*** tosky has joined #openstack-sdks08:25
*** jpena|off is now known as jpena08:29
*** jangutter has joined #openstack-sdks08:34
*** tssurya has joined #openstack-sdks08:36
*** gtema has joined #openstack-sdks08:47
*** holser_ has joined #openstack-sdks09:10
*** dtantsur|afk is now known as dtantsur09:11
*** cdent has joined #openstack-sdks09:55
*** e0ne has joined #openstack-sdks10:28
openstackgerritArtem Goncharov proposed openstack/openstacksdk master: Add unit tests for connection.add_service  https://review.openstack.org/64360410:47
openstackgerritArtem Goncharov proposed openstack/openstacksdk master: Create runtime descriptor for new service  https://review.openstack.org/64391811:03
*** slaweq_ is now known as slaweq11:14
*** ttsiouts has quit IRC11:21
*** gtema has quit IRC11:32
*** gtema has joined #openstack-sdks11:46
*** ttsiouts has joined #openstack-sdks11:47
*** edleafe has joined #openstack-sdks12:21
*** markvoelker has quit IRC12:22
*** whoami-rajat has quit IRC12:35
gtemamordred, dtantsur, Shrews: I would like to ask you to have a look at https://review.openstack.org/#/c/642218/ I am currently not very happy how it feels and want to know your opinions12:37
*** ralonsoh has joined #openstack-sdks12:48
mordredgtema: I think it looks great!12:49
gtemaok, I just dislike usage of stuff, which is not belonging to the object and is only present in runtime12:50
gtemabut if you guys are ok with that we can push it and do probably some followup12:50
*** e0ne has quit IRC12:51
gtemathanks mordred12:51
*** e0ne has joined #openstack-sdks12:52
mordredgtema: well, what do you mean - maybe I'm missing the thing that's bothering you12:56
mordredgtema: the mixin classes do make the things part of the object12:56
gtemasure, and that is exactly the "problem" for me. It is ok when the class use stuff from Mixin, but I do no like when one Mixin use stuff from another Mixin12:57
*** jpena is now known as jpena|lunch12:57
gtemaso I am more a fan of a regular inheritance, which is clear from the object description12:58
gtemasomething what I have done with _network_common. The most "clear" way would be if _compute, _network, _floating_ip would inherit from it, and not indirectly use stuff, which is added on a higher level12:59
gtemathis could have also solved initialization of mixins in the connection - how it is currently done is not nice13:01
gtemaok, letme quickly remove WIP from the title13:04
openstackgerritArtem Goncharov proposed openstack/openstacksdk master: Split OpenStackCloud into reasonable pieces  https://review.openstack.org/64221813:05
mordredgtema: ah - yes. I understand your concern there13:07
gtemamordred: great13:08
*** whoami-rajat has joined #openstack-sdks13:08
*** dave-mccowan has joined #openstack-sdks13:09
mordredgtema: I think we'll be fighting to balance a desire to organize stuff into files with the mixin mess just because python doesn't have a better way to organize implementation13:09
gtemaagreed13:10
gtemaok, will continue "thinking" about that issue13:10
mordredall that said - I was originally thinking that once we got things moved into the proxy objects that potentially most of the remaining methods could just turn in to very small wrapper methods - and we could just shove all of OpenStackCloud directly on to Connection13:11
mordredbut it would still be thousands of lines long even in the best case13:11
gtemayes, that's clear. With this change you have only "basic" logic left in the OpenStackCloud and it can be further merged into Connection. But here it is exactly the most prominent that mixins access methods, which they do not really belong13:12
mordredyeah13:12
*** dave-mccowan has quit IRC13:15
gtemamordred: any plans for SDK on PTG?13:15
dtantsurI feel like Forum may be a bit better for SDK13:17
gtemaI mean both, I will be hopefully going to summit (tomorrow appointment in embassy) including PTG13:17
*** needssleep is now known as TheJulia13:18
dtantsurI'll probably spend the whole PTG in the ironic room13:20
gtemaok13:20
mordredI don't think we have any current plans to - in the past most of us have either been absent or too consumed with other rooms13:20
gtemagot it13:20
mordreddtantsur: was there a forum session about the migrate-to-osc goal?13:20
gtemahmm, I haven't seen13:21
gtemashame on me13:21
dtantsurI haven't seen one either13:21
mordredgtema: that said - I'd be happy to sit down in either location and figure stuff out13:21
dtantsurs/either location/a bar/13:22
gtemaok, great. If I'm there - definitely we will find a place :D13:22
*** ttsiouts has quit IRC13:36
dtantsurgtema: good luck with the interview!13:40
*** ttsiouts has joined #openstack-sdks13:41
*** ttsiouts_ has joined #openstack-sdks13:42
*** ttsiouts has quit IRC13:46
gtemadtantsur: thanks13:54
*** e0ne has quit IRC13:58
*** Qiming has quit IRC13:59
openstackgerritArtem Goncharov proposed openstack/openstacksdk master: Split OpenStackCloud into reasonable pieces  https://review.openstack.org/64221813:59
*** Qiming has joined #openstack-sdks14:00
*** jpena|lunch is now known as jpena14:04
*** e0ne has joined #openstack-sdks14:05
mordredgtema: maybe read http://www.qtrac.eu/pyclassmulti.html and then the Steven D'Aprano reply on https://groups.google.com/forum/?hl=en#!topic/comp.lang.python/goLBrqcozNY14:14
mordredgtema: there are maybe some ideas there that you might dislike less14:14
*** gtema has quit IRC14:14
mordredthe class-level import-from is a *fascinating* idea I'd never considered14:15
dtantsuryeah, it's quite creative. I'm not sure if it's a good thing or not ;)14:15
mordredme either14:16
mordredlike - I'm not sure it would be better than the mixin approach - but thought I'd drop it in here for consideration14:16
openstackgerritMonty Taylor proposed openstack/openstacksdk master: Fix wait_for_server docstring  https://review.openstack.org/64395514:18
*** mgariepy has quit IRC14:18
Shrewshrm. my first impression of that is "ewwww"14:21
dtantsurI know a simple solution: let's write a metaclass to inject base classes in runtime14:22
* dtantsur runs really fast14:22
Shrewsfwiw, we did somewhat split up that code in the past. but then put it back together again for some reasons lost to me14:23
mordredShrews: I'm not sure we ever actually landed the patch to do the split14:31
mordredShrews: I feel like we started working on it then gave up14:31
dtantsurthere was a user cloud/admin cloud split, I think14:32
* brtknr is wondering why python-openstackclient doesnt work with 3.6+14:32
mordredbrtknr: I am also wondering about that - since we have gate jobs for 3.6 and 3.714:34
brtknrmordred: Sorry, just realised that this is a problem with python-magnumclient so it might not apply to this14:36
Shrewsmordred: oh we landed it. messed git history up tremendously well14:37
mordredShrews: neat!14:37
mordredbrtknr: awesome. well - for that I can't help much :)14:38
openstackgerritOpenStack Release Bot proposed openstack/keystoneauth master: Update master for stable/stein  https://review.openstack.org/64399614:39
openstackgerritOpenStack Release Bot proposed openstack/openstacksdk master: Update master for stable/stein  https://review.openstack.org/64401614:41
*** e0ne has quit IRC14:41
openstackgerritOpenStack Release Bot proposed openstack/os-client-config master: Update master for stable/stein  https://review.openstack.org/64402414:41
openstackgerritMonty Taylor proposed openstack/openstacksdk master: WIP Make factory for a CloudRegion from CONF objects  https://review.openstack.org/64360114:42
*** e0ne has joined #openstack-sdks14:42
mordredefried: ^^ took a stab at your suggestion from PS814:42
openstackgerritOpenStack Release Bot proposed openstack/osc-lib master: Update master for stable/stein  https://review.openstack.org/64404214:43
efriedmordred: yeah, nice, guess we'll see if it works, I'll recheck the dependents.14:43
mordredcool14:43
mordredefried: once we get a version of it that we're happy with for the downstream patches, I'll work on some unittests for it14:44
efriedmordred: any thoughts on the `valid_interfaces` debacle?14:45
mordredefried: you mean the need to support valid_interfaces as an alternate way of saying interface?14:46
efriedmordred: Well, ksa adapter conf options have valid_interfaces and deprecate interface. And the thing we're doing here is accepting ksa adapter conf opts.14:47
efriedmordred: But the logic that converts the valid_interfaces conf opt into the internal `interface` thingy - which accepts a list IIUC - only lives in the load-from-conf ksa code14:47
mordredheh. well - openstacksdk accepts a list or a scalar for interface14:47
efriedwhich is currently embedded in a factory method that can't easily be invoked from sdk code, from what I can see.14:48
mordredyeah - valid_interfaces is really only a thing in oslo.config files - it's not the actual interface anywhere else14:48
efriedProposal: factor the logic in ksa loading into a helper method that we can call.14:48
mordredwe could - except I don't want to deprecate interface in openstacksdk - so we'd have to make sure not to throw any warnings14:49
mordred(interface is the better option name - I think the issue is that oslo.config doesn't support defining a single thing as list-or-single-value and that's why we had to add valid-interfaces right?14:49
efriedmordred: I refer to: https://github.com/openstack/keystoneauth/blob/master/keystoneauth1/loading/adapter.py#L223-L23214:49
mordredAH14:50
efriedI think it's because we had already defined 'interface' as not a list opt?14:50
mordredthat14:50
efriedyeah, we don't need it to sling a warning. We just need to accept (and in fact prefer) valid_interfaces over interface in oslo conf.14:50
mordredyeah. and oslo.config can't have an option that's both a listopt and a stringopt14:50
mordred++14:50
mordredagree with that14:50
mordredefried: so yeah - I think extracting that into a helper method/function is a great idea14:51
efriedrn that ends with load_from_options which instantiates Adapter, which doesn't work in the Connection flow; so we have to pull that chunk into a method.14:51
mordredefried: we should probably include line 220-22 too14:51
efriedyup14:51
efriedmordred: Okay, I can propose that, will tag ya.14:52
mordredefried: cool14:52
*** e0ne has quit IRC14:53
*** e0ne has joined #openstack-sdks14:55
*** e0ne has quit IRC15:05
dtroyerbrtknr: have you sorted your magnumclient problem yet?  I started chasing something last week that led to it failing in some gate tests elsewhere late last week…15:10
*** Luzi has quit IRC15:13
brtknrnot yet, ive posted a story though: https://storyboard.openstack.org/#!/story/200525715:14
*** e0ne has joined #openstack-sdks15:20
brtknrdtroyer: also, it looks like there's already a fix: https://review.openstack.org/#/c/638077/415:28
brtknrdtroyer: just tested the same command using the master branch and it seems happy now15:29
brtknrmordred: would you be able to comment on this: https://review.openstack.org/#/c/643195/615:37
*** mgariepy has joined #openstack-sdks15:38
mordredbrtknr: seems fine to me!15:39
openstackgerritMonty Taylor proposed openstack/openstacksdk master: Do not disregard tags when updating stacks  https://review.openstack.org/64319515:39
mordredbrtknr: rebased it on top of the latest from gtema15:39
brtknrmordred: thanks :)15:40
brtknrmordred: didn't realise I was speaking to Monty Taylor15:40
brtknrmordred: I'll be attending your talk at OpenInfra days :)15:41
dtantsurThe Monty Taylor. The one and only!15:41
mordreduhoh. that means I might have to say things :)15:42
mordredbrtknr: which one?15:42
openstackgerritEric Fried proposed openstack/keystoneauth master: Factor Adapter conf-processing logic into a helper  https://review.openstack.org/64425115:42
brtknrmordred: the workshop!15:43
mordredsweet! well - hopefully that goes well and you don't all end up throwing rotten vegetables at me15:44
brtknrmordred: you'll do fine I'm sure :)15:45
openstackgerritEric Fried proposed openstack/keystoneauth master: Factor Adapter conf-processing logic into a helper  https://review.openstack.org/64425115:45
efriedoh look, those get posted here too ^15:46
mordredefried: it's almost like these pieces all depend on each other15:46
efriedheh15:46
*** ttsiouts_ has quit IRC16:05
*** ttsiouts has joined #openstack-sdks16:13
*** e0ne has quit IRC16:14
*** e0ne has joined #openstack-sdks16:19
*** tssurya has quit IRC16:44
*** ttsiouts has quit IRC16:57
*** gtema has joined #openstack-sdks17:09
*** e0ne has quit IRC17:14
openstackgerritEric Fried proposed openstack/openstacksdk master: WIP Make factory for a CloudRegion from CONF objects  https://review.openstack.org/64360117:49
efriedmordred: Still need to test locally but ^17:49
efriedahcrap, forgot depends-on...17:50
openstackgerritEric Fried proposed openstack/openstacksdk master: WIP Make factory for a CloudRegion from CONF objects  https://review.openstack.org/64360117:51
*** gtema has quit IRC17:51
mordredefried: update looks good17:59
*** jpena is now known as jpena|off18:06
*** dtantsur is now known as dtantsur|afk18:23
*** gmann is now known as gmann_afk18:34
efriedmordred: It once again suffers the NoSuchOptError problem, and now I don't have a good way to fix it. Going to reinstate your conditional import thing, unless you think I shouldn't bother and should just trap Exception.18:39
mordredefried: can you not do project_name in config? (I guess that didn't work out?)18:42
efriedmordred: that part would work; what breaks is if that group didn't import ksa opts, then you get e.g.18:43
efriedoslo_config.cfg.NoSuchOptError: no such option valid_interfaces in group [cinder]18:43
mordredefried: it looks like a ConfigOpts is a collections.Mapping and defines __contains__18:43
mordredoh! different issue18:43
efriedmordred: so I would have to, like, load up the conf opts and query the group whether it has 'em before invoking the helper method, which seemed like horrible man.18:44
mordredefried: we could have the ksa method do a hasattr before every get? is that a terrible idea?18:45
efriedI could put something in the helper to convert the exception to something standard, or return a bool, or... but all of that is really ugly too.18:45
mordredefried: or we could just trap Exception in sdk until it becomes an issue18:45
efriedyup, that's what I'm setting up now.18:46
openstackgerritEric Fried proposed openstack/openstacksdk master: WIP Make factory for a CloudRegion from CONF objects  https://review.openstack.org/64360118:50
efriedmordred: thar she blows18:50
mordredefried: I believe in her18:50
efriednow dep updates18:51
*** gmann_afk is now known as gmann18:56
*** dave-mccowan has joined #openstack-sdks19:06
*** whoami-rajat has quit IRC19:55
*** cdent_ has joined #openstack-sdks19:59
*** cdent has quit IRC20:02
*** cdent_ is now known as cdent20:02
*** ralonsoh has quit IRC20:05
*** irclogbot_2 has joined #openstack-sdks20:12
*** holser_ has quit IRC20:17
*** irclogbot_2 has quit IRC20:25
*** irclogbot_2 has joined #openstack-sdks20:27
*** e0ne has joined #openstack-sdks20:28
*** dave-mccowan has quit IRC20:39
*** e0ne has quit IRC20:41
*** dave-mccowan has joined #openstack-sdks20:44
*** holser_ has joined #openstack-sdks20:53
*** irclogbot_2 has quit IRC21:05
*** irclogbot_2 has joined #openstack-sdks21:07
*** irclogbot_2 has quit IRC21:26
*** cdent has quit IRC21:28
*** irclogbot_2 has joined #openstack-sdks21:28
*** holser_ has quit IRC22:50
*** tosky has quit IRC23:48
*** holser_ has joined #openstack-sdks23:57

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