Tuesday, 2016-01-26

*** sylwesterB has joined #openstack-bareon07:41
*** sylwesterB has quit IRC07:44
*** sylwesterB has joined #openstack-bareon07:44
*** sylwesterB_ has joined #openstack-bareon09:33
*** sylwesterB has quit IRC09:34
*** sylwesterB_ is now known as sylwesterB09:34
evgenylsylwesterB: hi, could you please rebase your patch https://review.openstack.org/#/c/260453/ since you don't need changes in requirements.txt, and there is typo-comment from Bulat :)09:45
sylwesterByeah, ok09:55
sylwesterB evgenyl: Does the customized order in pipelines is important?10:50
evgenylsylwesterB: it's a good question.10:51
evgenylsylwesterB: ok, for now lets sort by name, in order to have deterministic output, but as a possible future improvment add info that it will be possible to implement custom order using integer field, when there are such cases.10:52
evgenylsylwesterB: I'm not sure if it will be needed, these are not plugins, so we shouldn't override some data, just add new.10:53
sylwesterBevgenyl: I'm also wondering i a pipeline should be a class with one 'main' method like "run" and it will call all other methods10:57
sylwesterBand if we want to change the order we should override "run" in subclass10:57
sylwesterBOR10:57
sylwesterBdefine pipeline like in i.e. python social auth10:57
sylwesterBas a list of functions (string), which are loader dynamicaly (by importlib but we would use stevedore) and run one by one in some for loop10:58
evgenylsylwesterB: hm, I think it's better to have a method, and on level higher go get the data through pipeline which is build in name-based-order.10:59
evgenylsylwesterB: didn't get your suggestion, could you please write some pseudo-code to see how it would looks like?10:59
sylwesterBok11:00
sylwesterBevgenyl: http://paste.openstack.org/show/484982/11:07
sylwesterBthis is how it looks in PSA11:08
sylwesterBmore or less11:08
agordeevhi guys. meanwhile decoupling do_actions from manager into separate files, i found new type of objects which we might need to introduce into bareon.11:11
agordeevat first i would like to show an example of action which can be separated as is. https://github.com/openstack/bareon/blob/master/bareon/manager.py#L333-L39011:12
agordeevnow take a look at the other action which can't be smoothly separated https://github.com/openstack/bareon/blob/master/bareon/manager.py#L654-L76911:13
agordeevtwo methods from manager prevents that: mount_target() and umount_target() https://github.com/openstack/bareon/blob/master/bareon/manager.py#L447-L48811:14
agordeevwhat do you think about adding new type of objects named as 'helpers'? those mentioned method are the first candidates for helpers.11:16
evgenylsylwesterB: http://paste.openstack.org/show/484985/ I'm not sure if we should provide serializer classes are organized as an interface, we may change them easily in the future, on the other hand we have output of serializers, which is already versioned.11:19
agordeevso, the helpers could be reused in multiple actions like utils. But it's a piece of code which needs access to data objects from driver. That will effectively distinct a helper from util. As utils should never use data object directly.11:20
evgenylagordeev: makes sense, but describe those definitions in doc-strings.11:21
agordeevthe amount of code and especially the amount of action which a helper will perform aren't enough to become a pure single action.11:22
evgenylagordeev: so utils is a layer which is closer to OS, higher we have helpers, is it correct?11:22
sylwesterBbtw mount_target and unmount_target looks like ideal candidate to be convert into context manager ;)11:23
agordeevevgenyl: yes, it's absolutely correct11:23
sylwesterBevgenyl: So you suggest to not interrupt current serialization process, and just add some data after it ends?11:25
evgenylsylwesterB: yep, lets do it stupidly simple, if we get more complicated cases - we will improve it, according to those cases, complication will cause a lot of questions :)11:26
sylwesterBThat's a shame. It makes this task less exciting :(11:28
sylwesterBbut OK ;)11:28
sylwesterBI will prepare some PoC11:28
sylwesterBWhen you come here?11:29
evgenylsylwesterB: :)11:31
evgenylsylwesterB: in 3 hours I think I'll be in Poznan office, sitting in Warsaw airport waiting for my flight.11:32
sylwesterBon which one?11:32
sylwesterBModlin or Chopin?11:33
evgenylsylwesterB: oh, there are several airports! :) I'm in Chopin.11:34
sylwesterBhmm11:40
sylwesterBso the same as the train ;)11:41
*** openstackgerrit has quit IRC17:17
*** openstackgerrit has joined #openstack-bareon17:17

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