Tuesday, 2017-04-04

*** catintheroof has joined #openstack-mistral00:25
*** catintheroof has quit IRC01:02
*** thrash is now known as thrash|g0ne01:44
bobhrakhmerov: ping01:56
bobhQuestion - is the env() available in action execution, or just in tasks?  It appears that I can reference env() variables in tasks but I get an error when trying to reference them in actions02:04
*** harlowja has quit IRC02:06
kongbobh: hi, any log i can see?02:36
kongbobh: rakhmerov may be still sleeping now :)02:36
bobhkong: thanks - give me a minute and I'll copy the error02:45
*** harlowja has joined #openstack-mistral02:50
bobhkong:  I have an action that extends an installed action, and I try to set one of the base-input values of the installed action to an environment value:02:55
bobhhost: '{{ env().msgbus_hostname }}'02:55
bobhand I get a Jinja error:02:55
bobhJinjaEvaluationException: Can not evaluate Jinja expression [expression= env().msgbus_hostname , error='__env', data={u'to': u'Workflow_07cf0462-18df-11e7-a36a-fa163e791a1a',    |02:55
bobh|               | u'message': u'Mode: https, LFP: nfvfp, Port: 5000, MsgBus: nfvfp', u'status_code': 200}]02:55
bobhit seems like it knows to map env() to __env in the context but it cant find __env in the context when the action executes02:56
bobhkong: interesting - it seems to work if I use YAQL instead of Jinja02:59
bobhkong: I'll dig into it some more and file a bug if I can get it isolated03:02
kongbobh: sorry, was distracted by something else. yeah, jinja was supported recently, so maybe it's not fully verified.03:06
kongwould appriciate if you could file a bug03:07
kongbobh: please let me know if you need any help03:07
kongbobh: btw, next time if you want to paste something, you could use paste.openstack.org03:08
bobhkong: thanks, will do03:09
*** bobh has quit IRC03:21
kongd0ugal, ddeja, mgershen, akuznetsova, need your review on https://review.openstack.org/#/c/448340/03:50
*** harlowja has quit IRC03:56
*** harlowja has joined #openstack-mistral04:07
rakhmerovbobh, kong: yes, there might be a problem with Jinja04:22
kongrakhmerov :-)04:22
rakhmerovkong: just got to work )04:22
* kong hands over the channel to renat04:23
rakhmerov:))04:23
rakhmerovkong: question04:23
rakhmerovwait a sec...04:23
kongsure04:24
rakhmerovhttps://review.openstack.org/#/c/414508/04:24
rakhmerovI'm still not sure if we understand each other on this spec04:24
rakhmerovas far as implementing "region" parameter for OpenStack actions first04:24
rakhmerovas the first step I mean04:25
rakhmerovwhat do you think?04:25
kongrakhmerov: it's doable, although it's a little weird to me04:26
rakhmerovwhy?04:26
kongafter all, 'region' is not included in the action original param list04:27
rakhmerovto me it seems logical to be able to run openstack actions in different regions04:27
kongthat's right04:27
rakhmerovyes, I know, but look at this from the user perspective04:27
rakhmerovuser story: as a user I want to run any nova stuff in any region04:27
rakhmerovso under the hood we can make this possible04:28
kongi mean, weird to me because i know the exact params when i want to create a instance in Nova04:28
kongas a developer :)04:28
rakhmerov:)04:28
kongbut as i said, it's doable and it's more clear from the workflow perspective04:29
rakhmerovyes, but 'region' would be just a cool bonus from Mistral :)04:29
rakhmerovand btw one more reason to use Mistral )04:29
rakhmerovkong: ok, if we're on the same page here what do we need to do with this spec in your opinion?04:30
kongrakhmerov: do you know it still needs a spec if we only want to add one more param to actions?04:31
rakhmerovhm.. maybe04:31
rakhmerovthen I'd suggest we either abandon it for now or make it a WIP04:31
kongok, i will update the spec anyway04:32
rakhmerovyes04:32
rakhmerovor we can update it04:32
rakhmerovI just thought that besides this param do you think we still need anything else?04:32
rakhmerovon top of it04:32
konghmm...not for now from what i can see04:33
kongmaybe people will have some other ideas when reviewing04:33
*** harlowja has quit IRC04:33
rakhmerovok04:33
rakhmerovkong: then please take care of the spec one way or another04:34
rakhmerovI'd like to progress with it anyway04:34
kongrakhmerov: sure04:34
kongme too04:34
kongrakhmerov: btw, do you know if 'region' is supported in Heat for different resources?04:34
rakhmerovI don't know, honestly04:34
kongif nested stack is not used04:34
rakhmerovmost likely yes04:34
rakhmerovyep04:35
kongi remember 'region' is only supported in stack level04:35
kongnot resource04:35
kongjust like 'region' is supported in workflow level, not task04:35
kongbut not sure, will ask heat guys04:35
rakhmerovok04:39
kongrakhmerov: do you think it's time for us to deprecate using name as identifier in the api request?05:00
rakhmerovhm.. don't know05:01
kongcurrently, i'm implementing rbac, admin use will be allowed to operate other tenants resouces05:01
rakhmerovyes, I see05:01
kong:)05:01
rakhmerovhm.. yes, may be05:01
rakhmerovmaybe it's time05:01
kongthe rbac feature is important to me, not sure we have requirments from others05:02
rakhmerovok, np05:03
rakhmerovbtw, I'm now reviewing your rbac patches )05:03
kongrakhmerov: thanks05:05
kongi plan to implement workflow and execution first, becuase those are most commonly used05:05
*** vishwana_ has joined #openstack-mistral05:05
kongand after that, will implement client side.05:06
kongthen will do for other resources such as cron-triggers, task, action, etc.05:06
*** doriftoshoes__ has joined #openstack-mistral05:07
*** szaher_ has joined #openstack-mistral05:10
openstackgerritLingxian Kong proposed openstack/mistral master: Allow admin user to get workflow of other tenants  https://review.openstack.org/45302005:11
*** harlowja has joined #openstack-mistral05:11
*** histrio_ has joined #openstack-mistral05:13
kongrakhmerov: you can see the whole series here: https://review.openstack.org/#/q/topic:bp/mistral-rbac05:13
kongall related patches05:13
rakhmerovok05:13
*** histrio has quit IRC05:14
*** szaher has quit IRC05:14
*** vishwanathj has quit IRC05:14
*** zhenguo has quit IRC05:14
*** doriftoshoes_ has quit IRC05:14
*** histrio_ is now known as histrio05:14
*** jamielennox is now known as jamielennox|away05:15
*** doriftoshoes__ is now known as doriftoshoes_05:15
* kong is off05:16
rakhmerovgood night :)05:17
kongrakhmerov: enjoy your day :)05:17
rakhmerovthanks buddy05:17
openstackgerritMerged openstack/mistral master: Remove unnecessary setUp function in testcase  https://review.openstack.org/45176005:21
*** jamielennox|away is now known as jamielennox05:37
*** jaosorior_away is now known as jaosorior06:01
*** harlowja has quit IRC06:02
*** shardy has joined #openstack-mistral07:09
*** sharatss has joined #openstack-mistral07:12
*** zhenguo has joined #openstack-mistral07:15
*** shardy has quit IRC07:25
openstackgerritMerged openstack/mistral master: Change Http action result content encoding  https://review.openstack.org/44914307:26
*** jamielennox is now known as jamielennox|away07:45
openstackgerritKupai József proposed openstack/mistral master: Limit the number of finished executions.  https://review.openstack.org/44668007:50
*** amoralej|off is now known as amoralej07:53
jenner_rakhmerov: hi again! I've got more questions :) HA - I can see how mistral api or mistra executors can be run in a cluster, i.e. multiple instances of both, balanced (round robin or whatever), but what about the engine?07:53
*** jpich has joined #openstack-mistral07:54
jenner_also, how can I monitor for execution failures or status changes? I see a couple of *mq sections in the config file, does that mean I can subscribe to e.g. a rabbitmq channel and mistral will publish the results?07:58
*** tuan_ has joined #openstack-mistral08:03
*** sharat has joined #openstack-mistral08:17
*** sharatss has quit IRC08:17
openstackgerritDougal Matthews proposed openstack/mistral master: Don't create actions when inspection fails  https://review.openstack.org/41243308:37
openstackgerritDougal Matthews proposed openstack/mistral master: Don't create actions when inspection fails  https://review.openstack.org/41243308:39
rakhmerovjenner_: hi, as far as engine: same thing, you can run many instances and they will balance workflow processing08:40
rakhmeroveven one workflow can be processed by many engines08:40
rakhmerovone task by engine #1, another task by engine #2 etc.08:41
rakhmerovas far as monitoring: currently we don't have a special asynchronous mechanism (discussed it many times but didn't come to agreement among contributors on how it should work)08:42
rakhmerovtwo options that are available now: polling (via API) and notifying an external system from the workflow itself08:42
rakhmerovthe latter means that you can explicitly have WF steps that will send notifications to your system (http or anything else)08:43
*** warface has joined #openstack-mistral09:06
*** szaher_ has quit IRC09:19
*** szaher has joined #openstack-mistral09:19
openstackgerritMerged openstack/mistral master: Add check for idempotent id in tempest tests  https://review.openstack.org/45242009:34
openstackgerritMerged openstack/mistral master: Remove unnecessary tearDown function in testcase  https://review.openstack.org/45239609:34
*** shardy has joined #openstack-mistral09:39
openstackgerritLingxian Kong proposed openstack/mistral master: Role based resource access control - delete executions  https://review.openstack.org/45125509:46
openstackgerritLingxian Kong proposed openstack/mistral master: Role based resource access control - update executions  https://review.openstack.org/45116009:46
openstackgerritLingxian Kong proposed openstack/mistral master: Allow admin user to get workflow of other tenants  https://review.openstack.org/45302009:46
*** thrash|g0ne is now known as thrash09:48
*** rook is now known as rook|mobile10:15
*** jkilpatr has quit IRC10:38
*** shardy has quit IRC10:38
*** shardy has joined #openstack-mistral10:40
*** shardy_ has joined #openstack-mistral10:43
*** shardy has quit IRC10:44
*** warface has quit IRC10:52
*** warface has joined #openstack-mistral10:54
*** jamielennox|away is now known as jamielennox11:03
openstackgerritDougal Matthews proposed openstack/mistral master: Don't create actions when inspection fails  https://review.openstack.org/41243311:06
*** warface has quit IRC11:09
*** warface has joined #openstack-mistral11:11
*** jkilpatr has joined #openstack-mistral11:18
jenner_rakhmerov: thanks, balancing tasks between engines sounds really nice :)11:29
rakhmerovyep11:29
jenner_hm, since I'm using a postgres underneatch I could actually LISTEN on a couple of tables and create a trigger to call NOTIFY on updates/inserts11:35
jenner_*underneath11:35
*** bobh has joined #openstack-mistral11:58
*** catintheroof has joined #openstack-mistral12:05
*** amoralej is now known as amoralej|lunch12:08
*** bobh has quit IRC12:08
jenner_rakhmerov: can't find anything about load balancing and corresponding setup in the docs :(12:08
*** shardy_ is now known as shardy_lunch12:08
*** chlong has joined #openstack-mistral12:10
*** dprince has joined #openstack-mistral12:22
*** jkilpatr has quit IRC12:24
*** warface has quit IRC12:25
*** warface has joined #openstack-mistral12:26
*** shardy_lunch is now known as shardy12:40
*** jkilpatr has joined #openstack-mistral12:40
*** rook|mobile is now known as rook-tower12:45
*** tuan_ has quit IRC12:57
*** tuan_ has joined #openstack-mistral13:02
*** xavierhardy has left #openstack-mistral13:06
*** shardy is now known as shardy_mtg13:10
*** amoralej|lunch is now known as amoralej13:14
*** toure|biab is now known as toure13:24
*** bobh has joined #openstack-mistral13:30
d0ugalrakhmerov: hey, are you around still?13:34
*** jaosorior is now known as jaosorior_away13:36
d0ugalkong: or maybe I need to speak with you actually :)13:44
*** shardy_mtg is now known as shardy13:57
*** brunograz has quit IRC14:04
warfacehey, is anyone there?14:15
*** sharat has quit IRC14:35
*** bobh has quit IRC14:40
*** warface has quit IRC14:41
*** tuan_ has quit IRC14:41
* d0ugal is here14:42
*** tuan has joined #openstack-mistral14:44
*** brunograz has joined #openstack-mistral14:58
*** bobh has joined #openstack-mistral15:01
jenner_ахахаха https://www.axios.com/computer-programmers-may-no-longer-be-eligible-for-h-1b-visas-2342531251.html15:11
d0ugal:(15:14
jenner_damn, wrong channel, sorry :)15:16
*** jpich has quit IRC16:23
*** amoralej is now known as amoralej|off17:20
*** d0ugal has quit IRC17:48
*** d0ugal has joined #openstack-mistral17:49
*** dprince has quit IRC18:27
*** shardy has quit IRC18:32
*** tuan has quit IRC18:51
*** tuan has joined #openstack-mistral18:53
*** dprince has joined #openstack-mistral18:57
*** harlowja has joined #openstack-mistral19:24
*** dprince has quit IRC19:26
*** dprince has joined #openstack-mistral19:29
*** tuan has quit IRC20:17
*** tuan_ has joined #openstack-mistral20:20
*** jkilpatr has quit IRC20:45
*** dprince has quit IRC21:01
*** jkilpatr has joined #openstack-mistral21:23
kongd0ugal: hi, i'm online now21:24
bobhkong: got a minute?21:40
kongbobh: i will have stard up meeting soon, you can leave message to me, will ping you when i come back21:41
bobhkong: Thanks.  Just following up on env() support in actions - looks like it's not supported for either YAQL or Jinja21:43
bobhkong: just wondering if it would be a good candidate to be added to the action_context21:43
kongbobh: could you please paste your workflow(jinja version) to paste.openstack.org?21:51
bobhkong: will do tonight when I get home.  Thanks21:56
*** bobh has quit IRC22:00
*** thrash is now known as thrash|g0ne22:27
*** catintheroof has quit IRC22:57
*** bobh has joined #openstack-mistral23:11
*** bobh has quit IRC23:40
*** bobh has joined #openstack-mistral23:48
*** rook-tower is now known as rook23:49

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