Thursday, 2016-01-28

*** ninag has quit IRC00:28
*** dzimine has joined #openstack-mistral00:58
*** bobh has joined #openstack-mistral01:08
openstackgerritOpenStack Proposal Bot proposed openstack/mistral-extra: Updated from global requirements  https://review.openstack.org/27279801:27
*** bobh has quit IRC02:18
*** bobh has joined #openstack-mistral02:19
*** bobh has quit IRC03:44
*** gyee has joined #openstack-mistral04:03
*** gyee has quit IRC04:03
*** tej has joined #openstack-mistral04:12
*** tej has quit IRC04:16
rakhmerovmriedem, hi05:55
*** bhaskarduvvuri has joined #openstack-mistral06:55
*** tshtilma has joined #openstack-mistral06:56
*** histrio has quit IRC06:57
*** LiatFried_ has joined #openstack-mistral07:27
*** LiatFried_ has quit IRC07:50
*** LiatFried_ has joined #openstack-mistral07:50
*** pbelamge has joined #openstack-mistral08:21
*** pbelamge has quit IRC08:27
*** pbelamge has joined #openstack-mistral08:46
*** pbelamge has quit IRC08:48
*** achanda has quit IRC09:01
*** pbelamge has joined #openstack-mistral09:06
*** LiatFried_ has quit IRC09:13
akuznetsovalane_kong, thanks09:34
openstackgerritMerged openstack/python-mistralclient: Support workflow id for cron trigger creation  https://review.openstack.org/27114511:44
*** dprince has joined #openstack-mistral11:59
*** tshtilma has quit IRC12:20
*** tshtilma has joined #openstack-mistral13:01
dmowrer-rakhmerov: Hi. I know you have been out for awhile. Welcome back. I just wanted to make you aware of an email I sent you last Friday regarding blueprint 'Provide action pack to call Mistral', https://blueprints.launchpad.net/mistral/+spec/mistral-mistral-actions. Thanks!13:08
*** ninag has joined #openstack-mistral13:10
*** pbelamge has quit IRC13:23
*** pbelamge has joined #openstack-mistral13:29
*** bhaskarduvvuri has quit IRC14:07
*** pbelamge has quit IRC14:09
*** pbelamge has joined #openstack-mistral14:10
*** bobh has joined #openstack-mistral14:23
*** bobh has quit IRC14:27
*** bobh has joined #openstack-mistral14:27
*** LimorStotland has quit IRC14:37
openstackgerritDawid Deja proposed openstack/mistral: Fix for not running 'on-success' task after task with 'with-items'  https://review.openstack.org/27357914:37
*** tonytan4ever has joined #openstack-mistral14:52
*** tonytan_brb has joined #openstack-mistral15:23
*** tonytan_brb has quit IRC15:23
*** tonytan_brb has joined #openstack-mistral15:24
*** tonytan4ever has quit IRC15:26
*** pbelamge has quit IRC15:27
*** achanda has joined #openstack-mistral15:32
*** achanda has quit IRC15:43
*** tej has joined #openstack-mistral16:34
*** dprince has quit IRC17:06
*** tonytan_brb has quit IRC17:07
*** tonytan4ever has joined #openstack-mistral17:11
*** dprince has joined #openstack-mistral18:11
*** rbrady has joined #openstack-mistral18:31
*** bhaskarduvvuri has joined #openstack-mistral19:07
*** tshtilma has quit IRC19:18
*** tsufiev has quit IRC20:07
*** tsufiev has joined #openstack-mistral20:07
*** tshtilma has joined #openstack-mistral20:15
rbradyis there a place in the docs anywhere that explains environments well?  specifically creating/updating from within an action20:19
lane_kongrbrady: i'm afraid the env introduction is not covered in dev doc for now20:20
lane_kongrbrady: but you can refer to https://blueprints.launchpad.net/mistral/+spec/mistral-execution-environment for more information20:21
rbradylane_kong: thanks20:23
lane_kongrbrady: :-)20:23
rbradylane_kong: I've already been looking through the code today and it's just not obvious to me.  I tried using the EnvironmentController directly from an action and that failed20:24
lane_kongrbrady: what's your meaning by 'using the EnvironmentController directly from an action'?20:25
rbradylane_kong: I need to use an environment to store state between multiple action-executions and workflow-executions20:26
rbradylane_kong: in digging through the code, I found the only thing that seems to deal with a strongly typed Environment class was the EnvironmentController in https://github.com/openstack/mistral/blob/0e7be02a4812f6d2016e9bdcd31be8135c4d095e/mistral/api/controllers/v2/environment.py20:27
lane_kongrbrady: maybe it's not environment is designed for. using env, you can pre-define some key-values that can be used in workflow, but you can't change it in your execution20:28
lane_kongit can only be changed via API20:28
rbradylane_kong: I might be abusing the original intended purpose, but we have a need to use both the workflow and actions independently.  the actions allow us an immediate response when needed20:30
lane_kongi'm still don't understand your need very well, could you please describe a little more concrete?20:32
*** bhaskarduvvuri has quit IRC20:33
*** bhaskarduvvuri has joined #openstack-mistral20:33
rbradylane_kong: I'm investigating mistral use for tripleo.  The idea is that mistral can provide a general purpose API that can allow us to execute workflows to deploy OpenStack.  The process includes pre-processing some templates for heat and allowing a user to set some values (parameters).20:35
rbradylane_kong: the pre-processing requires some user input to select N optional heat environment files that change the list of parameters provided back to the user20:36
rbradylane_kong: providing a list of available heat environment files and receiving the selections back from the user fit the direct action case more than the workflow20:37
rbradylane_kong: for the actual deployment, I intend to use the workflow and validate the stack with heat before creating the stack with heat20:38
rbradylane_kong: I realize I could use something else to store the state (e.g. swift), but the workflow seems to already be creating a mistral environment that does the exact same thing - storing the params.  It seemed like a good fit for me to add some data there20:40
*** dzimine has quit IRC20:41
lane_kongrbrady: hmm...you can get heat environment provided by user's selection and then pass the variables to subsequent tasks, am I missing something?20:42
rbradylane_kong: workflows don't provide an immediate result.  The methods to get the list of environments and set the list of environments are immediate when using actions20:44
rbradylane_kong: we have both a CLI and GUI use case, a mistral action allows a better case for the GUI20:45
lane_kongrbrady: i'm sorry i don't really understand the process of tripleo, maybe we can use some simple workflow definition, to understand each other better20:51
lane_kongrbrady: and if there is really something missing for mistral adoption in tripleO, i think the mistral core teams are willing to solve that20:55
*** [1]tshtilma has joined #openstack-mistral20:55
rbradylane_kong: I have a mistral environment now and I'm assuming it was created when I called <% env().foo %> in a workflow execution.  I'm not entirely sure how it chose the name or description.20:56
rbradylane_kong: mistral environment output: http://paste.openstack.org/show/485321/20:57
*** tshtilma has quit IRC20:57
*** [1]tshtilma is now known as tshtilma20:57
rbradylane_kong: and here's the simple workflow I have: http://paste.openstack.org/show/485322/20:58
lane_kongrbrady: so, your question?21:06
rbradylane_kong: is there any other way besides using <% env.foo %> in a workflow yaml file to set values to the environment.  How does it decide what to name itself and what to use as its description?21:07
lane_kongwith your workflow, you just need to pass {'env': 'overcloud'} in the params for workflow execution21:07
rbradylane_kong: can I create multiple environment files that I can run through the same workflows?21:07
lane_kongrbrady: you can't use more than one environment in the same workflow, i'm afraid21:09
*** dprince has quit IRC21:10
lane_kongrbrady: but i think it's easy to add this in mistral. but, one thing need to consider, the variable priority, what if you have variables with same name, but belong to different environment.21:12
rbradylane_kong: heat environment or mistral environment?21:13
lane_kongmistral environment21:13
rbradylane_kong: in the mistral environment I'd expect them to be overwritten21:14
rbradylane_kong: that's why I was interested in having an environment decoupled from a workflow21:14
rbradylane_kong: I'd like to create an env and run it through a workflow, allow a user to provide input and run it through the same workflow.  Once the user is content, they would pass that environment onto the 2nd workflow21:15
rbradyin this case the validate and deploy workflows21:16
*** bhaskarduvvuri has quit IRC21:17
rbradylane_kong: in addition to that case, I would need to be able to create another completely separate mistral environment that could be run through both workflows in the same manner21:17
lane_kongyes, you can. it depends on what environment provided to workflow execution.21:19
lane_kongif you pass  {'env': 'overcloud'} in the params for workflow execution, it will use variables you pre-defined21:19
rbradylane_kong: in tripleo we have an deployment cloud (commonly referred to as the undercloud) and N workload clouds (commonly referred to as an overcloud)21:19
rbradymistral is running on my undercloud and I need to create a mistral environment for each planned overcloud I want to deploy21:20
rbradylane_kong: it would be nice to have something similar to: "from mistral import environment; env = environment.Environment("overcloud"); env.save()"21:21
rbradylane_kong: so I could easily access it from an action21:22
lane_kongI wonder if it will solve your problem if Mistral action is provided to be used in action.21:23
lane_kongrbrady: so, in your action, you can invoke environment update to mistral21:23
lane_kongthe env variables will be updated in your subsequent workflows or actions21:24
lane_kongrbrady: make sense?21:24
rbradylane_kong: I'm still reading / trying to comprehend.  I just started using mistral yesterday. :)21:25
lane_kongrbrady: ok, no worries, welcome any questions, if i can understand it very well :-)21:25
lane_kongi think Dan has already understand mistral well, you could talk to him about integration between mistrla and tripleo21:27
rbradylane_kong: I'm not really sure I understand what you're saying21:27
rbradylane_kong: dan didn't have an answer either - tried him first21:27
lane_kongrbrady: you want to update env when your workflow exection is running, right?21:28
lane_kongfrom mistral's prospective, you can pass any env to a same workflow21:29
lane_kongin different workflow execution21:29
lane_kongbut you can use more than one env definition in the same workflow now21:30
lane_kongs/can/can't21:30
lane_kongmaybe i didn't make myself understood :-)21:31
lane_konganyway, you can wait to see what other people's ideas about your question. e.g. rakhmerov, akuznetsova21:32
rbradylane_kong: I'd like to update the env from both a workflow execution and an action exectuion21:36
lane_kongrbrady: http://paste.openstack.org/show/485331/21:40
lane_kongrbrady: please see if it's what you want21:41
rbradylane_kong: partially.  The mistral.environment_update looks good, but there's a step in between update_env and task_using_new_env that requires human interaction21:42
lane_konghmm...21:43
rbradylane_kong: I think this would work though because it doens't look like it requires a workflow21:43
lane_kongsorry, the task_using_new_env must be a workflow21:44
lane_kongrather than an action21:44
rbradylane_kong: http://paste.openstack.org/show/485332/21:44
rbradylane_kong: this is how it would likely be called (plus add the the name and params to the parameters)21:45
rbradyideally the task_using_new_env would just take a mistral environment name21:46
lane_kongyes21:46
lane_kongbut env name can only be used in a workflow execution currently21:47
lane_kongnot for action execution21:47
lane_kongrbrady: https://github.com/openstack/mistral/blob/master/mistral/engine/default_engine.py#L10921:48
rbradylane_kong: does this add the environment (read only) to the context that I could see in an action? https://github.com/openstack/mistral/blob/master/mistral/engine/default_engine.py#L49721:52
lane_kongyes21:52
lane_kongthe environment is shared with all the actions within a workflow execution21:55
rbradylane_kong: I can see where data_flow adds it to the workflow, where does it add it to the action?21:59
lane_kongrbrady: give me a sec22:00
lane_kongrbrady: https://github.com/openstack/mistral/blob/master/mistral/engine/task_handler.py#L9022:03
lane_kongthe action input will take consideration of workflow context22:04
lane_kongrbrady: sorry, i will have a meeting, feel free to leave messages in this channel22:06
rbradylane_kong: thanks.  It's end of day here.  I'll try to reach out again tomorrow22:06
lane_kongrbrady: hope you could find your answer22:07
rbradylane_kong: me too.  mistral looks like a great product and I'd like to use it in tripleo instead of creating an API from scratch22:07
lane_kongrbrady: that's a great choice i have to say22:08
*** tonytan4ever has quit IRC22:47
*** tej has quit IRC23:08
*** tej has joined #openstack-mistral23:08
*** tej has quit IRC23:13
*** chlong has quit IRC23:32
*** bobh has quit IRC23:38
openstackgerrithardik proposed openstack/mistral-specs: Item filtering in Mistral  https://review.openstack.org/26997523:50
*** tej has joined #openstack-mistral23:53

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