Friday, 2016-09-09

*** Zer0Byte__ has quit IRC00:08
*** _ody has joined #murano00:10
*** sergmelikyan has quit IRC00:21
*** sergmelikyan has joined #murano00:21
*** sergmelikyan has quit IRC00:26
*** sergmelikyan has joined #murano00:29
*** wasmum has joined #murano00:37
*** sergmelikyan has quit IRC00:39
*** sergmelikyan has joined #murano00:40
*** sergmelikyan has quit IRC00:44
*** StanLagun has quit IRC00:47
*** kzaitsev_mb has joined #murano00:49
openstackgerritMerged openstack/murano: [Docs] Add info about using abstract dependencies between applications  https://review.openstack.org/36610300:54
*** kzaitsev_mb has quit IRC01:02
*** zhurong has joined #murano01:05
*** StanLagun has joined #murano01:51
*** kzaitsev_mb has joined #murano01:59
*** lexplua has quit IRC02:56
*** fragatina has quit IRC03:03
openstackgerritArtem Tiumentcev proposed openstack/murano: [Doc] Add auth params to core library import instruction and add note about devstack  https://review.openstack.org/36690403:25
openstackgerritArtem Tiumentcev proposed openstack/murano: [Doc] Add auth params to core library import instruction  https://review.openstack.org/36690403:29
*** stanchan has joined #murano03:35
*** kzaitsev_mb has quit IRC04:14
openstackgerritArtem Tiumentcev proposed openstack/murano: [Doc] Add auth params to core library import instruction  https://review.openstack.org/36690404:15
*** fragatina has joined #murano04:26
*** fragatina has quit IRC04:30
*** kzaitsev_mb has joined #murano04:58
*** kzaitsev_mb has quit IRC05:04
*** kzaitsev_mb has joined #murano06:01
*** Zer0Byte__ has joined #murano06:19
*** Zer0Byte__ has quit IRC06:40
*** Zer0Byte has joined #murano06:42
openstackgerritStan Lagun proposed openstack/murano: On-demand garbage collection  https://review.openstack.org/36409006:58
openstackgerritStan Lagun proposed openstack/murano: Raise exception on call of method of destroyed object  https://review.openstack.org/36656006:58
openstackgerritStan Lagun proposed openstack/murano: Pass receiver to :GC.subscribeDestruction explicitly  https://review.openstack.org/36656106:59
openstackgerritStan Lagun proposed openstack/murano: Pass receiver to :GC.subscribeDestruction explicitly  https://review.openstack.org/36656107:02
openstackgerritStan Lagun proposed openstack/murano: Serialization of destroyed objects  https://review.openstack.org/36656207:02
openstackgerritStan Lagun proposed openstack/murano: Serialization of destruction dependencies  https://review.openstack.org/36656307:05
*** Zer0Byte has quit IRC07:05
openstackgerritStan Lagun proposed openstack/murano: GC.isDoomed() and GC.isDestroyed() functions were added  https://review.openstack.org/36656407:12
*** Zer0Byte has joined #murano07:26
*** akholkin has joined #murano07:33
openstackgerritStan Lagun proposed openstack/murano: Remove duplicate Heat stack delete  https://review.openstack.org/36779607:48
*** kzaitsev_mb has quit IRC07:48
*** StanLagun has quit IRC07:50
*** samuelBartel has joined #murano07:57
*** sdake has joined #murano09:02
*** stanchan has quit IRC09:11
*** sdake_ has joined #murano09:16
*** caowei has joined #murano09:18
*** sdake has quit IRC09:18
*** kzaitsev_mb has joined #murano09:46
*** sergmelikyan has joined #murano09:50
*** sdake has joined #murano09:57
*** sdake_ has quit IRC10:00
*** lexplua has joined #murano10:02
*** zhurong has quit IRC10:03
openstackgerritMerged openstack/murano-agent: TrivialFix: Remove logging import unused  https://review.openstack.org/36706710:16
*** Nikolay_St has joined #murano10:26
*** sdake_ has joined #murano10:31
*** sdake has quit IRC10:33
openstackgerritMerged openstack/murano-pkg-check: Improve logging system  https://review.openstack.org/36227610:56
openstackgerritMerged openstack/murano-pkg-check: Add i18n support  https://review.openstack.org/36561210:57
openstackgerritVictor Ryzhenkin (freerunner) proposed openstack/murano: Adjust region name for network selection in devstack  https://review.openstack.org/36488511:11
openstackgerritVictor Ryzhenkin (freerunner) proposed openstack/murano: Adjust region name for network selection in devstack  https://review.openstack.org/36488511:11
*** caowei has quit IRC11:17
*** lexplua has quit IRC11:49
*** lexplua has joined #murano11:55
openstackgerritOmar Shykhkerimov proposed openstack/murano-agent: TrivialFix: Remove cfg import unused  https://review.openstack.org/36706812:14
openstackgerritKirill Zaitsev proposed openstack/murano: Cleanup, clarify newton release-notes  https://review.openstack.org/36742712:15
*** lexplua has quit IRC12:16
*** lexplua has joined #murano12:30
openstackgerritMerged openstack/murano: Adjust region name for network selection in devstack  https://review.openstack.org/36488512:31
*** vakovalchuk has joined #murano12:34
*** sdake_ is now known as sdake12:47
openstackgerritKirill Zaitsev proposed openstack/murano: Delete alternate DB migration branches  https://review.openstack.org/36514812:48
openstackgerritTetiana Lashchova proposed openstack/murano: [Docs] Murano plug-ins  https://review.openstack.org/34891412:58
*** sdake has quit IRC13:05
*** lexplua has quit IRC13:08
*** lexplua has joined #murano13:08
*** StanLagun has joined #murano13:27
*** sdake has joined #murano13:30
*** sergmelikyan has quit IRC13:31
*** sergmelikyan has joined #murano13:32
*** StanLagun has quit IRC13:39
*** AlexeyAbashkin has joined #murano13:58
*** StanLagun has joined #murano14:00
*** fragatina has joined #murano14:01
*** fragatina has quit IRC14:06
*** lexplua has quit IRC14:20
*** zhurong has joined #murano14:20
*** kzaitsev_mb has quit IRC14:27
*** lexplua has joined #murano14:30
*** lexplua has quit IRC14:30
*** Nikolay_St has quit IRC14:30
*** lexplua has joined #murano14:30
*** ducttape_ has joined #murano14:41
*** zhurong has quit IRC14:48
openstackgerritMerged openstack/python-muranoclient: Cleanup, clarify newton release-notes  https://review.openstack.org/36763614:51
*** lexplua has quit IRC14:56
*** lexplua has joined #murano15:09
*** kzaitsev_mb has joined #murano15:09
*** wasmum has quit IRC15:10
*** Zer0Byte__ has joined #murano15:10
*** Nikolay_St has joined #murano15:44
*** openstackgerrit has quit IRC15:49
*** openstackgerrit has joined #murano15:49
-openstackstatus- NOTICE: New setuptools release appears to have a circular import which is breaking many jobs - check for ImportError: cannot import name monkey.15:50
*** ChanServ changes topic to "New setuptools release appears to have a circular import which is breaking many jobs - check for ImportError: cannot import name monkey."15:50
*** Nikolay_St has quit IRC15:54
openstackgerritKirill Zaitsev proposed openstack/murano: Delete alternate DB migration branches  https://review.openstack.org/36514815:58
openstackgerritOpenStack Proposal Bot proposed openstack/murano: Updated from global requirements  https://review.openstack.org/36811216:05
*** sergmelikyan has quit IRC16:07
*** sergmelikyan has joined #murano16:08
*** sergmelikyan has quit IRC16:08
*** sergmelikyan has joined #murano16:09
*** sdake has quit IRC16:28
*** fragatina has joined #murano16:32
*** samuelBartel has quit IRC16:37
*** kzaitsev_mb has quit IRC16:41
*** lexplua has quit IRC16:45
*** sergmelikyan has quit IRC16:50
*** sergmelikyan has joined #murano16:50
*** sergmelikyan has quit IRC16:51
*** sergmelikyan has joined #murano16:51
*** ChanServ changes topic to "Wiki: https://wiki.openstack.org/wiki/Murano | Launchpad: https://launchpad.net/Murano"16:54
-openstackstatus- NOTICE: setuptools 27.1.2 addresses the circular import16:54
*** sergmelikyan has quit IRC16:56
*** sergmelikyan has joined #murano17:00
*** kzaitsev_mb has joined #murano17:04
*** StanLagun has quit IRC17:06
*** sergmelikyan has quit IRC17:12
*** sergmelikyan has joined #murano17:14
*** kzaitsev_mb has quit IRC17:17
*** learnmore has joined #murano17:19
learnmoreIs it possible to sleep/wait in a Yaql while loop?  I would like to test for a certain condition and if it is not met, wait for several seconds and then re-check.17:21
*** sergmelikyan has quit IRC17:33
*** sergmelikyan has joined #murano17:33
*** sergmelikyan has quit IRC17:35
*** sergmeli_ has joined #murano17:35
*** sergmeli_ has quit IRC17:37
*** fragatina has quit IRC17:39
*** StanLagun has joined #murano17:39
*** osh has joined #murano17:42
*** sergmelikyan has joined #murano17:42
*** fragatina has joined #murano17:43
osh learnmore: hi! there is no way to make cycle in YAQL17:44
oshbut in murano DSL you can use defined "sleep(seconds)" function17:45
learnmoreosh:  Thank you.  Where is the sleep function defined?   I am deploying 2 applications in my environment.  Each application creates an instance.  The 2nd application needs to wait until the 1st applications' instance is created (need the floating ip) before it can proceed.  Make sense?17:47
*** fragatina has quit IRC17:48
*** sergmelikyan has quit IRC17:48
*** sergmelikyan has joined #murano17:49
*** lexplua has joined #murano17:49
*** sergmelikyan has quit IRC17:53
oshlearnmore: it is defined here https://github.com/openstack/murano/blob/master/murano/dsl/yaql_functions.py#L12017:54
learnmoreMy idea was to check if the instance is deployed and if not, then wait a few seconds and check again.  Since this is not possible in yaql , I do not have a solution.  When I deploy my environment, both applications create an instance simultaneously.  But the 1st application's instance takes longer to create than the 2nd.17:54
learnmoreosh:  Thanks for the pointer.17:55
oshlearnmore: how your applications are related with each other?17:55
oshAccording to how I undestood what you said - you can build your applications as ZabbixAgent and ZabbixAgent are created.17:57
learnmoreosh:  The first application is a database that will run on its own instance.  The 2nd application on another instance requires the database.  Before the 2nd application can complete, it needs the ip address of the database.17:57
oshone depends on deploying of another17:57
learnmoreosh:  I will look at the ZabbixAgent and Server packages.  Thanks!  I appreciate the help here.18:01
oshYou can take a look at WordPress app here https://github.com/openstack/murano-apps/blob/master/WordPress/package/Classes/WordPress.yaml#L49 It executes .deploy() method of Apach and will not move further in class untill deploy is finished18:02
*** xiangxinyong_ has joined #murano18:03
oshlearnmore: you are welcome to ask your questions here!18:04
*** xiangxinyong has quit IRC18:06
learnmoreosh:  I initially tried to do something like in Wordpress and that is I had app. 2 deploy app.1   But this did not work because app. 1 deployed by itself as well.  So I had the database starting on 2 instances.18:13
learnmoreosh:  I will try this idea again and see if the same thing happens.18:15
*** lexplua has quit IRC18:15
openstackgerritValerii Kovalchuk proposed openstack/murano-dashboard: Add ability to delete any component in functional tests  https://review.openstack.org/36817518:17
openstackgerritValerii Kovalchuk proposed openstack/murano-dashboard: Add ability to delete arbitrary component in functional tests  https://review.openstack.org/36817518:19
*** vakovalchuk has quit IRC18:22
*** Ablu has joined #murano18:24
AbluHello, I am trying to install murano into my testbed18:24
AbluI installed the testbed with packstack and manually installed the murano-api rpm package afterwards18:25
Ablunow how do I activate the murano dashboard with the openstack-dashboard which I installed via rpm?18:25
oshlearnmore: ok, let me know the results18:26
oshAblu: hi! I'm afraid that no one here has expertise in testbed, but you can try to ping kzaitsew_ws18:27
Abluosh: well you justed pinged him :P18:28
Abluosh: anyway thanks for the info18:28
Abluthe setup.py of the murano dashboard looks like it would install some stuff at least... just not sure how to tell the openstack-dashboard to also include those parts...18:29
*** lexplua has joined #murano18:31
*** fragatina has joined #murano18:34
*** fragatina has quit IRC18:34
*** fragatina has joined #murano18:34
oshAblu: have you tried https://murano.readthedocs.io/en/stable-liberty/install/manual.html#install-murano-dashboard ? Starting from step 3 "tox -e venv -- pip install -e ../murano-dashboard" will install murano-dashboard to Horizon18:35
*** lexplua has quit IRC18:46
*** lexplua has joined #murano18:47
*** kzaitsev_mb has joined #murano19:16
learnmoreosh:  It did not work.  Both apps deploy methods are being called at the same time.  So it appears that Murano calls the 1st app (db app) and it does an instance deploy.  Then my second app also calls the 1st apps deploy method and another instance deploy is done.  It seems that there is some synchronization missing here.19:27
oshlearnmore: is it possible to share your applications?19:28
learnmoreosh:  I do have the standard check:   - If: not $.getAttr(deployed, false)19:28
*** akholkin has quit IRC19:38
learnmoreosh:  would it help if I showed you the yaml code in my class file.19:38
oshlearnmore: let's try!19:39
learnmoreosh:  should I just paste it here?19:39
oshplease use paste.openstack.org19:39
*** sdake has joined #murano19:44
learnmoreosh:  see Paste #570304 for the code in my application that deploys the database first.19:51
learnmoreosh:  see Paste #570306 for the code in my database application.19:55
oshlearnmore: anyway i'm 100% sure that the line ```- $._environment.reporter.report($this, 'Database has deployed.')``` is executed after ```- $.database.deploy()```. So what the logs in your environment do you receive?19:59
oshthe provided code seems correct to me19:59
oshso you add to the environment only main application, yes?20:00
oshbtw: can you share the whole apps?20:00
*** ducttape_ has quit IRC20:03
learnmoreosh:  I put the output log here:  Paste #570309.  Sorry I can not share the whole app.20:06
Zer0Byte__learnmore what are you trying to do exactly?20:06
learnmoreosh:  I do a quick deploy of the main app and since it requires a database app, it pulls in the database app too.  Is this the problem?20:07
lexpluahi folks !20:13
Zer0Byte__hi20:14
learnmoreosh:  In my manifest.yaml for my main app, I have this line:  Require:  com.example.database.xxxx:20:14
oshlearnmore: that's ok that you're not able to share it. (: Can I be sure that you just press quick deploy on your main app, fill in the whole information for your main app and subapp, and then deploy it? And you do not add your app to the env again? (:20:14
oshit's totally correct (:20:15
lexplualearnmore: If you need only one instance of database, you should call - $.setAttr(deployed, true) in the end of deploy of database application20:15
lexpluawithout this line `not $.getAttr(deployed, false)` condition always false )20:17
lexpluaand deployment run again20:18
lexplualearnmore ^^20:18
learnmorelexplua:  Yes, I do have that line - $.setAttr(deployed, true).  But this will only be set after my database is fully up and running and this takes 10 minutes.20:18
lexpluahttp://paste.openstack.org/show/570306/ where ?20:19
*** osh has quit IRC20:19
learnmorelexplua:  see Paste #57031220:23
Zer0Byte__and where20:23
lexpluawell, ok20:23
Zer0Byte__you set20:23
Zer0Byte__the attribute20:23
Zer0Byte__$.setAttr(deployed,true)20:23
lexpluaZor0Byte__ line4420:24
lexpluaZer0Byte__ line4420:24
Zer0Byte__i see just line 3920:24
lexplualearnmore , ok. In this case only 1 deploy, right ?20:24
Zer0Byte__wrong paste20:24
learnmorelexplua:  Yes it is.20:25
learnmorelexplua:  After I do the quick deploy and before I deploy this environment, the screen shows both my database app and the main app as ready to deploy.  Is this expected?20:25
lexplualearnmore and you want return from database`s deploy() faster, right ?20:25
lexplualearnmore sure20:26
lexpluaoh20:26
learnmorelexplua:  no I don't care about making it faster.  The deploy fails because it tries to deploy the database twice.20:26
lexpluahmmm, can you show me your UI.yaml file ?20:26
lexpluamain app UI20:26
Zer0Byte__is wierd20:27
Zer0Byte__weird should work20:27
Zer0Byte__on this way20:27
Zer0Byte__question lexplua20:27
Zer0Byte__when you deploy the first time20:27
Zer0Byte__the deployment end correctly?20:27
lexplualearnmore >>> both my database app and the main app as ready to deploy - it`s ok, sure. Why not ?20:27
lexplualearnmore wow, i found20:30
learnmorelexplua:  It seems that Murano is deploying my database app and then my main app is deploying the database app too.  So the synchronization should be around the deploy attribute, yes?20:30
lexplua  deploy:20:30
lexplua    Body:20:30
lexplua      - If: not $.database.getAttr(deployed, false)20:30
openstackgerritSergey Slipushenko proposed openstack/murano-pkg-check: Added functional test base  https://review.openstack.org/36753420:31
lexplualearnmore this is wrong, you can`t get attrs from other classes20:31
learnmorelexplua:  Ok. then what do I change it to?20:31
openstackgerritSergey Slipushenko proposed openstack/murano-pkg-check: Added functional test base  https://review.openstack.org/36753420:32
learnmorelexplua:  I am very glad you can help me.20:32
lexplualearnmore: you should just change this line to $.getAttr(deployed, false) for prevent main application double deploy20:33
openstackgerritSergey Slipushenko proposed openstack/murano-pkg-check: Added docs autogeneration for error list  https://review.openstack.org/36673620:34
lexplualearnmore: don`t forget to set attribute to true in the end of main application deployment20:34
learnmorelexplua:  But if I make this change, it won't solve the database being deployed twice.20:34
learnmorelexpua:  I originally had the code the way you suggested and had the same problem.20:35
learnmorelexplua:  If we can't do a getAttr from another class, it would be nice to get an error saying this.  Do you agree?20:36
lexplualearnmore: Sorry, it was mistake, you can. I have checked.20:40
learnmorelexplua:  Thank you for that info.  So the code is ok. except I still have the db deploying twice.  Weird.20:41
learnmorelexplua:  It seems to me that we need to know that a deploy is in progress/has started, not that it has finished.  Is there any way to tell this?20:43
lexplualearnmore AFAIK they run not parallel, consequent.20:44
learnmorelexplua:  If I remove the db deploy from my main app, then the 2 apps run in parallel, both create instances at the same time.20:46
learnmorelexplua:  I am looking for a way for my main app to wait for the db app to finished.  Osh suggested I try to deploy the db app and that would prevent my main app from continuing until the db app was done.20:47
*** openstackstatus has quit IRC20:57
*** openstackstatus has joined #murano20:57
*** ChanServ sets mode: +v openstackstatus20:57
learnmorelexplua:  This does look like a bug to me.  Looking at the log again.  The db app does create an instance and then following that the code in the main21:00
learnmorelexplua:  which was stalled because the first instance was being created is allowed to proceed and create another instance.  I conclude that the synchronization can not be based on whether the deployed  attribute is set.  Do you agree?21:01
lexplualearnmore i see only one "Deploying the database" message in log21:02
kzaitsev_mblearnmore: all methods in MuranoPL are synchronized in java sense of the word21:02
kzaitsev_mbso it's safe to say, that if you have a dependent app and you want to ensure it's deployed — just call it's .deploy21:03
learnmorelexplua:  the Deploying the database message comes from the main app...so you would only see one.   Creating the instance message is coming from the db app and in the log we see 2.21:04
kzaitsev_mbthe catch is that it needs to be idempotent21:04
learnmorekzaitsev_mb:  Ok.  I do call the deploy.  Sorry to bother you.  I just haven't figured out why it is creating an instance for my db app twice.  I will try to figure it out on my own.21:05
kzaitsev_mbhttps://github.com/openstack/murano-apps/blob/master/WordPress/package/Classes/WordPress.yaml#L49 here is a good example21:06
kzaitsev_mbserver is $.class(srv:ApacheHttpServer).notNull()21:06
kzaitsev_mband well if you would try to deploy it — you would see, that it only deploys once21:07
kzaitsev_mbbecause it's .deploy() method is idempotent21:07
kzaitsev_mbit's done in a cheesy way, by setting 'deployed' argument, but I guess you get the idea )21:07
lexplualearnmore: i can provide samples for you. This application written by me: https://github.com/openstack/murano-apps/tree/master/Clearwater/package/Classes. It depends from other application https://github.com/openstack/murano-apps/tree/master/BIND/package and create instance of BIND inside. It works 100%21:10
lexplualeanmore: oh, kzaitsev_mb provide better example21:11
kzaitsev_mblexplua: it's our shortest and easiest example of dependent app =)21:12
*** StanLagu_ has joined #murano21:17
Zer0Byte__hey kzaitsev_mb21:19
*** StanLagun has quit IRC21:20
kzaitsev_mbyep? =)21:23
*** wasmum has joined #murano21:39
*** igormarnat has quit IRC21:44
*** pashkin_ has quit IRC21:44
*** rakhmerov has quit IRC21:44
*** pashkin has joined #murano21:45
*** katyafervent_awa has quit IRC21:45
*** ativelkov_ has quit IRC21:45
*** kzaitsev_ws has quit IRC21:45
*** kzaitsev_ws has joined #murano21:47
*** igormarnat has joined #murano21:47
*** rakhmerov has joined #murano21:47
*** ativelkov has joined #murano21:48
*** katyafervent_awa has joined #murano21:49
Zer0Byte__did you know if exist a way21:57
Zer0Byte__to wait until a package is finished deployed to perform a action?21:57
Zer0Byte__i mean without while or if21:57
lexpluaZer0Byte__ maybe some static actions, but i not sure22:09
Zer0Byte__using while stop the template creating while i got the expected result22:13
Zer0Byte__and is stuck on the tree packages22:13
Zer0Byte__three22:13
Zer0Byte__or exist22:23
Zer0Byte__a way to set package priority22:23
Zer0Byte__?22:23
kzaitsev_mbZer0Byte__: from where do you want to wait?22:24
Zer0Byte__im deploying 3 packages one of them should wait until windows instance is complely deployed to push the settings to the agent22:25
kzaitsev_mbZer0Byte__: you can say .some_app.instance.deploy()22:25
kzaitsev_mbit would ensure it is deployed or would deploy it if it's not22:26
Zer0Byte__ok i give u a example22:28
Zer0Byte__the first package is windows22:29
Zer0Byte__and the second for example sql22:29
Zer0Byte__windows package can deploy standalone22:29
Zer0Byte__or with a sql dependency22:29
kzaitsev_mbmy answer is still the same =)22:29
Zer0Byte__but the second package need wait until the windows package is ready22:30
kzaitsev_mbthat doesn't change anything =)22:30
kzaitsev_mbjust call something.something.instance.deploy()22:31
kzaitsev_mbthe call will only return once the instance has been deployed22:31
Zer0Byte__let me try22:31
*** sdake has quit IRC22:40
*** zhurong has joined #murano22:46
*** lexplua has quit IRC22:50
*** zhurong has quit IRC22:54
openstackgerritMerged openstack/murano: Updated from global requirements  https://review.openstack.org/36811223:12
*** sdake has joined #murano23:22
Zer0Byte__still there kzaitsev_mb ?23:41
*** kzaitsev_mb has quit IRC23:48
*** StanLagun has joined #murano23:51
*** StanLagu_ has quit IRC23:54

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