Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-10 Thread Renat Akhmerov
On 07 Mar 2014, at 01:41, Sandy Walsh sandy.wa...@rackspace.com wrote: Which is why modelling this stuff in code is usually always better and why I'd lean towards the TaskFlow approach to the problem. They're tackling this from a library perspective first and then (possibly) turning it into

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-10 Thread Stan Lagun
On Mon, Mar 10, 2014 at 12:26 PM, Renat Akhmerov rakhme...@mirantis.comwrote: In case of Amazon SWF it works in the opposite way. First of all it's a language agnostic web service, then they have language specific frameworks working on top of the service. The big question here is would SWF

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-10 Thread Renat Akhmerov
On 10 Mar 2014, at 16:53, Stan Lagun sla...@mirantis.com wrote: On Mon, Mar 10, 2014 at 12:26 PM, Renat Akhmerov rakhme...@mirantis.com wrote: In case of Amazon SWF it works in the opposite way. First of all it’s a language agnostic web service, then they have language specific

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-08 Thread Stan Lagun
(not for usage questions) openstack-dev@lists.openstack.org Date: Friday, March 7, 2014 at 9:36 AM To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.org Subject: Re: [openstack-dev] [Mistral] Crack at a Real life workflow Hello everyone! Actually

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-08 Thread Joshua Harlow
To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.orgmailto:openstack-dev@lists.openstack.org Subject: Re: [openstack-dev] [Mistral] Crack at a Real life workflow Hello everyone! Actually it is possible to construct YAML-based DSL that has all the constructs

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-08 Thread Stan Lagun
@lists.openstack.org Date: Friday, March 7, 2014 at 9:36 AM To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.org Subject: Re: [openstack-dev] [Mistral] Crack at a Real life workflow Hello everyone! Actually it is possible to construct YAML

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-07 Thread Stan Lagun
Hello everyone! Actually it is possible to construct YAML-based DSL that has all the constructs of regular OOP language like Python and at the same time be safe enough to be used for execution of untrusted code on shared server. Take a look at Murano DSL. For example the code above defines class

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-07 Thread Joshua Harlow
@lists.openstack.orgmailto:openstack-dev@lists.openstack.org Date: Thursday, March 6, 2014 at 10:36 PM To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.orgmailto:openstack-dev@lists.openstack.org Subject: Re: [openstack-dev] [Mistral] Crack at a Real life

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-07 Thread Joshua Harlow
AM To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.orgmailto:openstack-dev@lists.openstack.org Subject: Re: [openstack-dev] [Mistral] Crack at a Real life workflow Hello everyone! Actually it is possible to construct YAML-based DSL that has all

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Renat Akhmerov
How is this different then chef/puppet/ansible …? Forgive me if that has already been answered, I didn't see an answer to that under the FAQ at https://wiki.openstack.org/wiki/Mistral No problem. Actually forgive us if information on wiki is not enough to understand the purpose of the

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Sandy Walsh
DSL's are tricky beasts. On one hand I like giving a tool to non-developers so they can do their jobs, but I always cringe when the DSL reinvents the wheel for basic stuff (compound assignment expressions, conditionals, etc). YAML isn't really a DSL per se, in the sense that it has no language

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Joshua Harlow
That sounds a little similar to what taskflow is trying to do (I am of course biased). I agree with letting the native language implement the basics (expressions, assignment...) and then building the domain ontop of that. Just seems more natural IMHO, and is similar to what linq (in c#) has

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Renat Akhmerov
IMO, it looks not bad (sorry, I’m biased too) even now. Keep in mind this is not the final version, we keep making it more expressive and concise. As for killer object model it’s not 100% clear what you mean. As always, devil in the details. This is a web service with all the consequences. I

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Sandy Walsh
On 03/06/2014 02:16 PM, Renat Akhmerov wrote: IMO, it looks not bad (sorry, I’m biased too) even now. Keep in mind this is not the final version, we keep making it more expressive and concise. As for killer object model it’s not 100% clear what you mean. As always, devil in the details.

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Dmitri Zimine
Folks, thanks for the input! @Joe: Hopefully Renat covered the differences. Yet I am interested in how the same workflow can be expressed as Salt state(s) or Ansible playbooks. Can you (or someone else who knows them well) take a stub? @Joshua I am still new to Mistral and learning, but

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-06 Thread Dmitri Zimine
I just moved the sample to Git; let's leverage git review for specific comments on the syntax. https://github.com/dzimine/mistral-workflows/commit/d8c4a8c845e9ca49f6ea94362cef60489f2a46a3 DZ On Mar 6, 2014, at 10:36 PM, Dmitri Zimine d...@stackstorm.com wrote: Folks, thanks for the input!

[openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-05 Thread Dmitri Zimine
Folks, I took a crack at using our DSL to build a real-world workflow. Just to see how it feels to write it. And how it compares with alternative tools. This one automates a page from OpenStack operation guide:

Re: [openstack-dev] [Mistral] Crack at a Real life workflow

2014-03-05 Thread Joe Gordon
On Mar 5, 2014 6:58 PM, Dmitri Zimine d...@stackstorm.com wrote: Folks, I took a crack at using our DSL to build a real-world workflow. Just to see how it feels to write it. And how it compares with alternative tools. This one automates a page from OpenStack operation guide: