Tuesday, 2014-06-24

*** gokrokve has quit IRC00:17
*** sjmc7_ has joined #murano00:22
*** sjmc7 has quit IRC00:26
*** asalkeld has quit IRC00:44
*** asalkeld has joined #murano01:02
*** asalkeld has quit IRC01:07
*** ankurrr has quit IRC01:28
*** killer_prince is now known as lazy_prince02:42
*** lazy_prince is now known as killer_prince02:42
*** killer_prince is now known as lazy_prince02:43
*** lazy_prince is now known as killer_prince02:45
*** sjmc7_ has quit IRC03:55
*** killer_prince is now known as lazy_prince04:24
*** lazy_prince has quit IRC04:41
*** gokrokve has joined #murano04:44
*** lazy_prince has joined #murano05:09
*** gokrokve_ has joined #murano05:09
*** gokrokve has quit IRC05:11
*** lazy_prince is now known as killer_prince05:22
*** gokrokve_ has quit IRC06:08
*** killer_prince is now known as lazy_prince06:15
*** openstackgerrit has quit IRC07:10
*** gokrokve has joined #murano07:19
*** tnurlygayanov has quit IRC07:22
*** tnurlygayanov has joined #murano07:23
*** gokrokve has quit IRC07:23
*** sergmelikyan has quit IRC08:28
*** bogdando has quit IRC08:29
*** sergmelikyan has joined #murano08:31
*** openstackgerrit has joined #murano09:47
openstackgerritEkaterina Chernova proposed a change to stackforge/python-muranoclient: Update package-import command  https://review.openstack.org/10216209:51
openstackgerritSergey Murashov proposed a change to stackforge/murano: Define asserts for python 2.6  https://review.openstack.org/10189410:32
openstackgerritStan Lagun proposed a change to stackforge/murano: MuranoPL testing mini-framework  https://review.openstack.org/10137011:42
*** stanlagun has joined #murano11:43
openstackgerritA change was merged to stackforge/murano-deployment: added new parameter for engine tests  https://review.openstack.org/10150612:39
*** sergmelikyan has quit IRC12:40
*** sergmelikyan has joined #murano12:40
sergmelikyan.12:41
*** drupalmonkey has joined #murano12:42
openstackgerritA change was merged to stackforge/murano: fix db-sync execution in Murano setup script  https://review.openstack.org/10191612:56
openstackgerritSergey Murashov proposed a change to stackforge/murano: Add port checks after deployment success  https://review.openstack.org/10119013:13
*** lazy_prince has quit IRC13:13
openstackgerritSergey Murashov proposed a change to stackforge/murano: Define asserts for python 2.6  https://review.openstack.org/10189413:13
*** gokrokve has joined #murano14:01
openstackgerritEkaterina Chernova proposed a change to stackforge/murano-dashboard: Introduces script for updating horizon config  https://review.openstack.org/10157814:11
*** sjmc7 has joined #murano14:26
*** killer_prince has joined #murano14:33
*** killer_prince has quit IRC14:40
*** killer_prince has joined #murano14:45
openstackgerritSergey Murashov proposed a change to stackforge/murano: Add port checks after deployment success  https://review.openstack.org/10119014:47
*** gokrokve has quit IRC15:14
ruhefolks, if anyone has something to discuss today on the meeting, please update https://wiki.openstack.org/wiki/Meetings/MuranoAgenda#Agenda15:30
openstackgerritEkaterina Chernova proposed a change to stackforge/murano-dashboard: Introduces script for updating horizon config  https://review.openstack.org/10157815:38
*** gokrokve has joined #murano15:39
sjmc7i have done so, ruhe, and a blueprint15:39
*** _ruhe_ has joined #murano16:02
*** gokrokve_ has joined #murano16:22
*** gokrokve has quit IRC16:25
openstackgerritEkaterina Chernova proposed a change to stackforge/murano-dashboard: Introduces script for updating horizon config  https://review.openstack.org/10157816:29
*** gokrokve_ has quit IRC16:32
*** _ruhe_ has quit IRC16:47
*** ankurrr has joined #murano16:57
*** akuznetsova_ has joined #murano17:02
*** akuznetsova_ has left #murano17:02
*** gokrokve has joined #murano17:10
*** iyozhikov is now known as IgorYozhikov17:16
*** IgorYozhikov is now known as iyozhikov17:16
openstackgerritStan Lagun proposed a change to stackforge/murano: MuranoPL testing mini-framework  https://review.openstack.org/10137017:17
*** openstackgerrit has quit IRC17:35
*** openstackgerrit has joined #murano17:36
sjmc7ruhe - currently if a call to Heat takes too long, eventually murano times out with an auth failure. is that what keystone trusts solve?18:02
stanlagunsjmc7m not sure trust is the right solution for that18:06
sjmc7there's no way to refresh tokens i don't think. not without a lot more keystone privileges than is sensible18:09
ruhethere is a problem with trusts, they can't be chained18:09
sjmc7i will rephrase my question - if heat takes a long time, the engine times out eventually18:10
sjmc7does anyone have thoughts about handling it?18:10
stanlagunneed to make a research first. Maybe something can be contributed to keystone18:10
ruhei think, chained trusts would solve this problem18:11
sjmc7this will be quite a big deal for large deployments18:11
stanlagunIs it possible to have different trusts for the same user simultaneously? Suppose there are 2 parallel deployments from different users with different privileges18:13
sjmc7i'll file a BP18:15
ruhesolum folks had the same problem. sjmc7 you and me discussed oath approach with Angus on the summit. but from this thread https://www.mail-archive.com/openstack-dev@lists.openstack.org/msg25283.html it seems that oauth also wouldn't solve the problem18:21
sjmc7yep, i remember that18:33
ruhestanlagun: can you please take a look at https://review.openstack.org/#/c/100344/ ; it's been waiting for review for a long time18:33
openstackgerritRyan Peters proposed a change to stackforge/murano-dashboard: Adds test coverage for flavor filter  https://review.openstack.org/10232118:53
sjmc7ruhe - stan didn't like this, i think18:56
sjmc7i have been meeaning to try with multiple inheritance, but i fear it18:56
ruhethen we need to ask stan to help with the approach he's proposing. stanlagun will you help with that?19:06
sjmc7well, he suggested making the heat instance inherit from Instance, and then I think a class to inherit from both Linux and HeatSWConfig to bring them back together19:07
sjmc7my fear is that once two classes combined like this override the same method, you get weird results, and in general i avoid multiple inheritance for that reason19:08
sjmc7i don't think mixins are really the answer though since these examples aren't adding functionality, but overriding it19:09
sjmc7some input from stan would be good though if he's had a chance to think about it19:09
sjmc7worst case i can bundle the class with the application package for now so it's not urgent19:09
*** killer_prince has quit IRC19:24
stanlagunI'm back19:29
stanlagunsjmc7, are there any problems with mixins/multiply inheritance that you've faced?19:35
sjmc7not in this specific instance, no19:35
sjmc7in my career, yes :)19:35
stanlagunIt seems like all this Instanece* hierarchy need to be refactored. Maybe it not a good idea to have all possible Instance combination but rather refactor it into a well-designed mixins19:36
sjmc7i think it would work in this case19:36
sjmc7yeah, that's my impression too19:36
openstackgerritRyan Peters proposed a change to stackforge/murano-dashboard: Adds test coverage for flavor filter  https://review.openstack.org/10232119:37
sjmc7the only problem is that the mixin functions need to override functions in Instance in some cases19:37
stanlagunsure19:37
stanlagunbut maybe it is not a problem19:37
stanlagunI've made some improvements to how methods resolved with multiply inheritance. That may solve the problems. Or may not. If we don't try to make it right we will never know. Maybe it would be better to try to refactor it into mixins and then I something doesn't work improve MuranoPL. And if we fail we gat back to single inheritance and will know exactly that it is unavoidable19:40
sjmc7ok. can a contract enforce multiple requirements?19:40
sjmc7e.g. could an Application rely on an instance that was both a LinuxInstance and HeatSWConfigInstance?19:41
stanlagunhonestly I've never tried. But probably yes. Or at least this can be done with small improvements to contracts code19:43
stanlagunBut you will need to chose one type as a property interface and cast to a second type in workflow19:45
stanlagun$.class(HeatSWConfigInstance).check(isinstanceof($, LinuxInstance))19:46
stanlagunjust need to implement isinstnaceof()19:47
sjmc7ok. well let's leave it for now19:47
sjmc7i'll have a play around with it19:47
stanlagunMaybe we can implement something like $.class(class1, class2)19:53
stanlagunLet me also think about it19:53
stanlagunCan you create etherpad so we can work on this together?19:54
sjmc7yeah19:54
stanlagunsjmc7, just checked Contract: $.class(ParentClass1).class(ParentClass2) works fine and you can invoke methods that are present only in one of those 2 classes20:22
sjmc7splendid! ok20:22
stanlagunThe easiest way to test some MuranoPL feature is to write UT using https://review.openstack.org/#/c/101370/20:25
stanlagunThis case added me one more test suite20:26
stanlagun*test case20:26
sjmc7yup, agreed. that's why i've been reviewing it :)20:27
stanlagun:) thanks!20:29
*** asalkeld has joined #murano20:51
ankurrrhad a question about unit tests for the murano api:  If I want to add unit tests specifically for packages, should they go into murano/tests/api/v1/test_environments.py ?     Or should they go into a new file at murano/tests/api/v1/test_packages.py ?20:55
stanlagunnew file20:57
ankurrrok20:58
*** sergmelikyan has quit IRC21:07
*** asalkeld has quit IRC21:22
sjmc7stanlagun, you still there?21:49
stanlagunyep21:49
sjmc7this is a really dumb question - if i want to cast an integer to a string, how do i do it?21:49
stanlagunstr()21:49
sjmc7in muranopl21:50
sjmc7not python21:50
stanlagunyes21:50
sjmc7ok. str($.value) ?21:50
stanlagunstr($.property)21:50
sjmc7thanks. i'd tried string() but i guess that's just an assertion21:51
stanlagunyou can also do this via string concatenation or '{0}'.format($value)21:51
sjmc7ah, ok21:51
sjmc7where's that defined?21:52
stanlagunsee yaql_funcions.py for a list of functions (there are 2 such files)21:52
sjmc7so i don't need to ask stupid questions :)21:52
stanlagun+ there are built-ins in yaql itself21:52
sjmc7ah, ok21:53
stanlagunthis is not a stupid question :) and this also need to be improved. I don't like having so many functions in global namespace21:53
sjmc7yeah, it's a little confusing right now. maybe we need a sample that uses every built-in21:55
stanlagunUTs21:56
stanlagunI also think about introducing something like modules to group them21:57
sjmc7as long as it's documented i don't think it matters too much21:57
stanlagunit will metter when we will have plugins with ability for plugin to introduce another set of functions21:59
stanlagunBut this is not in J :)21:59
sjmc7yeah. for now i just want to make it easier to write packages22:01
*** drupalmonkey has quit IRC22:01
*** drupalmonkey has joined #murano22:02
*** btully has quit IRC22:06
stanlagunthats cool! i hope you like MuranoPL :)22:07
sjmc7i think it's very powerful; i do think though that it needs to be much easier to debug problems, and that's a problem all languages face22:09
stanlagunagree. Debuggability was greatly improved in J1 and it will be farther improved in J2. But the ultimate solution will be to have our own IDE (for example Eclipse-based or JetBrains MPS-based), interactive debugger and code analysis tools. btw Python have many of those problems either. Especially it had it in its youth22:14
stanlagunat least we have readable stack-traces with MuranoPL and Python frames mixed22:15
sjmc7https://etherpad.openstack.org/p/murano-multiple-inheritance22:16
stanlagunis it linked to any BP?22:30
sjmc7https://blueprints.launchpad.net/murano/+spec/decide-multiple-inheritance22:30
openstackgerritSteve McLellan proposed a change to stackforge/python-muranoclient: Allow deletion of multiple environments  https://review.openstack.org/10237422:44
stanlagunFailed to delete '{}'. Isn't it supposed to be {0}?22:46
stanlagunanswered to myself: {} does work, didn't new such syntax allowed22:49
*** sjmc7_ has joined #murano22:51
sjmc7_if you don't put numbers it does them sequentially22:53
sjmc7_it think mixing {0} and {} is frowned upon22:53
*** sjmc7 has quit IRC22:55
*** drupalmonkey has quit IRC23:27
*** gokrokve has quit IRC23:47

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