Tuesday, 2016-08-02

*** achanda has joined #openstack-mistral00:39
*** bobh has joined #openstack-mistral00:49
*** toddjohn has joined #openstack-mistral00:55
*** toddjohn has quit IRC00:59
*** achanda has quit IRC01:10
*** rbrady has quit IRC01:13
*** toddjohn has joined #openstack-mistral01:27
*** achanda has joined #openstack-mistral01:31
*** toddjohn has quit IRC01:34
*** bobh has quit IRC02:02
*** toddjohn has joined #openstack-mistral02:31
*** achanda has quit IRC02:32
*** bobh has joined #openstack-mistral02:37
*** toddjohn has quit IRC02:38
*** achanda has joined #openstack-mistral02:44
*** bobh has quit IRC02:52
*** achanda has quit IRC03:14
*** achanda has joined #openstack-mistral03:55
*** achanda has quit IRC03:55
openstackgerritRenat Akhmerov proposed openstack/mistral: Invalidate workflow spec cache on workflow definition updates  https://review.openstack.org/34882804:31
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: removing env update from WF controller  https://review.openstack.org/34946604:31
openstackgerritRenat Akhmerov proposed openstack/mistral: Removing unnecessary workflow specification parsing  https://review.openstack.org/34775804:31
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: fix obvious workflow controller issues  https://review.openstack.org/34945704:31
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: Add 'unique_key' for delayed calls  https://review.openstack.org/34944504:31
openstackgerritRenat Akhmerov proposed openstack/mistral: Splitting executions into different tables  https://review.openstack.org/34717204:31
*** toddjohn has joined #openstack-mistral04:35
*** toddjohn has quit IRC04:39
openstackgerritRenat Akhmerov proposed openstack/mistral: Invalidate workflow spec cache on workflow definition updates  https://review.openstack.org/34882804:48
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: removing env update from WF controller  https://review.openstack.org/34946604:48
openstackgerritRenat Akhmerov proposed openstack/mistral: Removing unnecessary workflow specification parsing  https://review.openstack.org/34775804:48
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: fix obvious workflow controller issues  https://review.openstack.org/34945704:48
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: Add 'unique_key' for delayed calls  https://review.openstack.org/34944504:48
openstackgerritRenat Akhmerov proposed openstack/mistral: Splitting executions into different tables  https://review.openstack.org/34717204:48
rakhmerovhparekh, ddeja: hi, can you please review my patches again starting with https://review.openstack.org/#/c/347172/05:12
rakhmerovI rebased them, tests have almost passed05:12
hparekhrakhmerov, sure05:12
rakhmerovthanks05:13
rakhmerovand looks like all of your comments are addressed too05:13
*** achanda has joined #openstack-mistral05:46
openstackgerritMerged openstack/mistral: Splitting executions into different tables  https://review.openstack.org/34717206:18
*** toddjohn has joined #openstack-mistral06:36
rakhmerovddeja: hey, can you please glance at https://review.openstack.org/#/c/348828/ ?06:38
rakhmerovit's basically an addition to the previous one06:38
*** toddjohn has quit IRC06:40
ddejarakhmerov: looking06:45
rakhmerovddeja: ok06:48
openstackgerritMerged openstack/python-mistralclient: Add cancelled state to executions  https://review.openstack.org/34628006:50
*** brunograz has joined #openstack-mistral07:11
*** achanda has quit IRC07:15
*** jpich has joined #openstack-mistral07:20
*** Venkat has joined #openstack-mistral07:21
*** Venkat has quit IRC07:21
*** venkat has joined #openstack-mistral07:21
*** jpich has quit IRC07:29
*** shardy has joined #openstack-mistral07:30
*** janki has joined #openstack-mistral07:33
jtomasekddeja: Hi, here is the bug https://bugs.launchpad.net/mistral/+bug/1608827 let me know if you need more information07:37
openstackLaunchpad bug 1608827 in Mistral "action error handling" [Undecided,New]07:37
openstackgerritMerged openstack/mistral: Removing unnecessary workflow specification parsing  https://review.openstack.org/34775807:40
*** jpich has joined #openstack-mistral07:41
* ddeja ddeja is looking07:51
*** nmakhotkin has joined #openstack-mistral08:01
*** nmakhotkin has quit IRC08:03
*** nmakhotkin has joined #openstack-mistral08:04
*** achanda has joined #openstack-mistral08:16
*** clenimar has quit IRC08:19
*** kong has quit IRC08:19
*** kong_ has joined #openstack-mistral08:21
*** kong_ has quit IRC08:21
*** kong_ has joined #openstack-mistral08:21
*** kong_ is now known as kong08:21
*** achanda has quit IRC08:22
*** clenimar has joined #openstack-mistral08:23
ddejarakhmerov: are there any guides about using our python client?08:30
openstackgerritAndras Kovi proposed openstack/mistral: Add target parameters to REST API  https://review.openstack.org/33934908:30
rakhmerovddeja: I think this is the only one we have, http://docs.openstack.org/developer/mistral/guides/mistralclient_guide.html08:37
ddejarakhmerov: oh, but it is only for CLI client. I'm trying to use it from python...08:41
rakhmerovthen no docs :)08:42
ddeja:/08:42
rakhmerovbut it should be pretty straightforward actually08:42
rakhmerovyou just need to instantiate Client class properly and you're good to go08:42
ddejawell, right now I'm strugling with getting client class08:42
rakhmerovand then use REST API spec to understand what you can do08:42
rakhmerovok, take a look at how it's instantiated in CLI08:43
ddejait lacks the "password", for example08:43
ddejaok, will do08:43
rakhmerovooh, yeah08:44
rakhmerovit's a confusing place08:44
rakhmerovit's called "api_key"08:44
rakhmerov:)08:44
rakhmerovit's, in fact, a password08:44
rakhmerovit's a legacy from old OpenStack names and conventions08:44
rakhmerovbtw, you can fix it (but accurately) if you want08:45
ddejarakhmerov: ok, I see08:45
openstackgerritRenat Akhmerov proposed openstack/mistral: Update docs and add release not for safe-rerun flag  https://review.openstack.org/34944908:46
ddejaOK, I knowing that api_key == password make it easy08:48
ddejathanks!08:48
nmakhotkinhi rakhmerov08:52
ddejajtomasek: Hi. Good news - I am able to reproduce this on my env08:52
rakhmerovnmakhotkin: hi Nikolay08:53
nmakhotkinI hope we easily can generate docs for mistralclient08:53
jtomasekddeja: cool!:)08:53
nmakhotkinI mean from source08:53
nmakhotkinlike it is done in novaclient08:53
ddejajtomasek: I'm looking for a problem and hopefully will send the fix soon08:53
jtomasekddeja: thanks08:54
rakhmerovnmakhotkin: yes09:12
rakhmerovddeja: is it really a bug?09:12
rakhmerovI wonder what it is09:12
rakhmerovand why it's not been revealed earlier :)09:12
ddejarakhmerov: Yes it is09:14
*** Ravikiran_K has joined #openstack-mistral09:14
rakhmerovhm.. ok09:14
ddejaI think i know why it is happening09:14
rakhmerovwhy?09:14
rakhmerovbriefly09:14
ddejatake a look on method start_action in default engine09:14
rakhmerovlooking09:15
ddejaif action have save_result set to true, we return the object from the DB, which inbcludes State and so on09:15
ddejabut if it does not have 'save_result', we are returning...09:16
ddejahm, only input and output, despite the name09:16
ddejaOK, I'm confused now09:17
rakhmerov:)09:17
ddejaso, this is what happens09:18
ddejaif save_rerun == False09:18
rakhmerovthis is ok because this method just starts an action09:18
rakhmerovno state yet09:18
rakhmerovand result09:18
ddejaaction is run, but nothing returns to engine and so on09:18
ddejasave_state, not save_rerun, to much RPC api ;)09:18
ddejaif save_state is set, we get all info back09:19
ddejathe point is - is it working as designed, rakhmerov?09:19
rakhmerovsave_result09:20
ddejarakhmerov: yes, save_result.09:20
ddejaI write faster than think09:20
rakhmerovyeah, ok09:21
rakhmerovI see now09:21
rakhmerovso, here is the use case that doesn't work properly09:21
rakhmerovwhen "save_result" is True and action is synchronous09:21
rakhmerovno, sorry09:22
rakhmerovif "save_result" is set to False and the action is sync09:23
rakhmerovyes09:23
ddejarakhmerov: yes. Then action is run but there is no way to find out how it ended.09:23
ddejaIs it working as designed?09:24
rakhmerovso when we build db_models.ActionExecution we need to add state and state_info09:24
rakhmerovjust like it happens normally if an action is async09:24
rakhmerovddeja: no, it's a bug09:24
rakhmerovI guess we're lacking tests for this09:25
ddejaok09:25
rakhmerovddeja: it always makes sense to set state properly09:25
ddejato be honest, it is quite complicated at a first glance09:25
rakhmeroveven if we don't store action execution in DB09:25
rakhmerovddeja: yeah, I know. I used to be even more complicated before big refactoring a couple of months ago )09:26
rakhmerovthis code just tries to cover many use cases in one place09:26
ddejaOK, I see09:26
ddejaso, If the action is sync we want it to send additional info to engine?09:27
ddejaor we have this information in engine right now and just have to use it?09:27
rakhmerovddeja: what do you mean by "to engine"?09:28
rakhmerovok, so09:29
ddejarakhmerov: well, if i run action like this: c.action_executions.create(name="std.noop")09:29
ddejathe method on_action_complete is not called09:29
rakhmerovyes, right09:29
rakhmerovit's not needed09:29
rakhmerovif save_result is False09:30
ddejayah, sure, but this is the place where we change state to Success09:30
rakhmerov:)09:30
rakhmerovright09:30
rakhmerovok, let me explain09:30
rakhmerovthis start_action() covers several different use cases09:30
rakhmerov1) Asynchronous action09:31
rakhmerovIn this case we can't get action result after running mistral.actions.base.Action.run() method09:31
rakhmerovso we have to store ActionExecution in order to track execution09:31
ddejayes09:32
rakhmerovso that when on_action_complete() is called we know what to update with result09:32
rakhmerovok09:32
rakhmerovin this case we always save action result because we have to, so "save_result" is ignored09:32
ddejaI think that I got your point09:32
rakhmerovyes09:32
ddejaif action is sync and save_result==true, we just wait for executor to return result, there is no need to store anything in the db09:33
rakhmerov2) Synchronous action for which we want to save a result09:33
rakhmerovyes09:33
ddejaand we just should set state based on that result09:33
rakhmerov3) Synchronous action for which we don't want to store a result in DB (just run-through kind of behaviour)09:33
rakhmerovddeja: exactly right09:34
rakhmerovso our use case is #309:34
rakhmerovif we build ActionExecution manually in the engine we just need to check if result is successful or not09:35
rakhmerovif it's not we should set state to ERROR and state_info from 'error' field of Result09:35
ddejaok09:35
rakhmerovlike we do in other places09:35
rakhmerovok09:35
openstackgerritMerged openstack/mistral: Invalidate workflow spec cache on workflow definition updates  https://review.openstack.org/34882809:36
ddejaok, I got this, thanks!09:36
ddejaFix in progress :)09:36
rakhmerovddeja: cool :)09:42
rakhmerovbtw, guys, has anybody ever implemented "upsert" behavior with SQLAlchemy?09:43
rakhmerovit's when I need to "insert or update" an object09:43
ddejarakhmerov: with SQLAlchemy or with oslo_db?10:01
rakhmerovwith any of them10:01
ddejawith sqlAlchemy it should work like in this anwser http://stackoverflow.com/questions/1382469/sqlalchemy-easy-way-to-insert-or-update10:01
ddejawith oslo_db no idea unfortunately10:01
rakhmerovok, thanks. Will take a look10:06
rakhmerovddeja: yeah, the problem is that this one won't work concurrently10:11
rakhmerovI need this "insert or update" to work in a single SQL expression10:11
rakhmerovit's kind of like INSERT ... ON DUPLICATE KEY UPDATE10:11
kongrakhmerov: hi, need your suggestion to https://review.openstack.org/#/c/320509/, i am not sure what I explained could answer zane's concern.10:15
rakhmerovkong: hi10:15
rakhmerovok10:15
kongrakhmerov: thanks10:15
rakhmerovkong: I actually looked at this discussion briefly some time ago but didn't quite get the details10:17
kongrakhmerov: i will be here for next 1 hour, if you have any question, please ask :-)10:17
rakhmerovkong: so what's the problem? The problem is that we have "owner" in permissions for operations with event triggers?10:19
kongrakhmerov: zane's concern is, we should confine the 'admin_only' rule10:20
rakhmerovok10:20
kongespecially for event trigger feature10:20
rakhmerovand why is it not true in your opinion?10:20
*** achanda has joined #openstack-mistral10:20
kong1. currently, RBAC in Mistral only defines if a user can access Mistral API, it doesn't define if user has access to resources of other users, i.e. in Mistral, you can not list/show/update/delete other user's resources even if you have admin role in admin project.10:21
rakhmerovyeah, because we have isolation10:22
kong2. It makes functional tests even harder if we only allow admin user in admin project to have access to event trigger aip10:22
rakhmerovon API level10:22
kongrakhmerov: yes10:22
rakhmerovhm...10:22
kongrakhmerov: currently, we don't use admin user for our functional testing10:22
kongand I don't think we need one just for event trigger feature10:23
kongit doesn't make any sense10:23
rakhmerovwait a sec..10:23
kongthings will be same with admin role or not10:23
kongok10:23
rakhmerovI'm not sure that his concern is about this..10:23
konghis concern is about notitication10:24
rakhmerovso10:25
rakhmerovhis concerned about a huge security breach10:25
kongbut I don't see there is any security problem with current implementation10:25
rakhmerovwhat is the mechanism? Why do we have this breach?10:25
rakhmerovI'm still trying to get this..10:25
kongrakhmerov: users can only define exchange+topic+event to trigger workflow, they don't have access to notification content actually10:26
*** achanda has quit IRC10:26
kongit's the event-engine service that can do that10:27
rakhmerovbecause notifications are always issued under admin permissions?10:27
kongrakhmerov: nop. whoever have access to rabbitmq can receieve notification10:28
kongin our case, it's mistral itself10:28
rakhmerovooh, goosh...10:28
rakhmerovI can't understand..10:28
rakhmerovok, let me read to the end10:28
kongrakhmerov: ok, sure10:29
rakhmerovHe says: "That doesn't matter, because the oslo.messaging notifications contain data that is private to the operator even if it is about a resource owned by the user, and this features provides a way for the user to extract that private data."10:29
rakhmerovthis is kind of what I said10:30
rakhmerovabout notifications being issued under admin always10:30
rakhmerovso, things I understood:10:33
rakhmerov1) There's a bug with admin_only10:33
rakhmerovits definition in Mistral's policy.json is not correct10:33
rakhmerovand he proposes a alternative way of declaring this: "admin_only": "role:admin and auth_token_info.token.is_admin_project:True"10:34
rakhmerovkong: do you agree with this?10:34
kong"this features provides a way for the user to extract that private data" I don't agree on this10:35
rakhmerovwhy?10:35
rakhmerovcould you explain? I don't know all the details10:35
kongin this feature, as I said, users can only define exchange+topic+event to trigger workflow, they don't have access to notification content actually10:35
rakhmerovooh10:36
rakhmerovI see what you're saying10:36
rakhmerovso Mistral will have access, right? But users of Mistral will never do?10:36
rakhmerovif I understood you10:36
kongabsolutely10:36
rakhmerovok, I see10:36
rakhmerovso, he's saying it must always be admin in admin project, hm...10:37
rakhmerovok10:37
rakhmerovif what you're saying is true then I also don't see any issues10:37
kongand that admin_only thing doesn't affect mistral for now10:37
rakhmerovbecause we don't use it for anything else but API endpoints?10:38
kongcorrect10:38
kongwe didn't totally implement RBAC10:38
rakhmerovwhat do other services do with RBAC?10:38
rakhmerovfor example10:38
rakhmerovbesides API endpoints10:38
konge.g. nova10:38
rakhmerovyep10:38
kongadmin user can list vms of all tenants10:38
rakhmerovand we can set it in policy.json?10:39
kongbut in mistral, admin users can not10:39
kongno. policy.json only affect API access10:39
*** venkat has quit IRC10:40
rakhmerovok, so basically this should be based on auth token inspection somehow10:40
rakhmerovI guess10:40
kongyes10:40
rakhmerovwhich contains info about user roles etc.10:40
rakhmerovok10:40
kongthings in db layer10:40
rakhmerovyeah10:40
rakhmerovkong: your last comment looks reasonable to me10:43
rakhmerovlet me write a comment too10:43
kongrakhmerov: this is what Nova does: https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L198210:44
kongfyi10:44
rakhmerovkong: btw10:46
rakhmerovyou said that we don't have access to notification content actually?10:47
rakhmerovas far as I remember we were supposed to?10:47
rakhmerovaccording to the spec10:47
kongrakhmerov: end user doesn't, but mistral service does.10:48
rakhmerovkong: where can I look at in the code to see that this is right10:48
rakhmerovwhere does it happen in the code?10:48
rakhmerovlink pls?10:48
rakhmerovas far as I remember, we're supposed to pass this notification content to a triggered workflow, no?10:49
kongrakhmerov: yeah, you remind me10:50
rakhmerovso you're saying it's just not implemented differently?10:51
rakhmerovcomparing to the spec10:51
d0ugalWhy isn't this tool added as a standard setuptools entry point command? https://github.com/openstack/mistral/blob/master/tools/sync_db.py10:52
rakhmerovd0ugal: it's implicitly used by mistral-db-manage which is added10:53
d0ugalrakhmerov: I see, then can't we just remove that? :)10:53
rakhmerovd0ugal: yep, we can :)10:53
rakhmerovkong: ok, I'm now looking at the spec: http://specs.openstack.org/openstack/mistral-specs/specs/newton/approved/event-notification-trigger.html10:54
rakhmerovevent_type: <% execution().params.notification_event_type %>10:54
rakhmerovpayload: <% execution().params.notification_payload %>10:54
kongrakhmerov: me too10:54
rakhmerovthis is how we thought we would pass notification payload to workflow10:54
d0ugalrakhmerov: cool, I'll look into doing that at some point :)10:54
rakhmerovd0ugal: sure10:54
rakhmerovkong: and seems like this is the main Zane's concern10:55
rakhmerovbecause he said he didn't look at the whole impl10:55
rakhmerovbut he remembers the discussions around the spec10:55
rakhmerovkong: I guess this is a confusion point10:55
rakhmerovso 1) if it's implemented differently for now then we should explicitly reply to him and point to this difference10:56
rakhmerov2) if it's implemented in this way then 2a) Think how to use admin_only (which I hate) 2b) Rip out sensitive info from notification payload somehow10:57
rakhmerovkong: what do you think?10:58
kongrakhmerov: I will take a look at what info contained in the payload. I still hope this feature will be available to normal users.10:58
rakhmerovkong: yeah, I think we need to drill down to details of what this private data actually contains11:00
rakhmerovbecause w/o this info it all sounds too abstract to me11:00
rakhmerovI'd like to see what exact data we're talking about11:00
kongrakhmerov: yep.11:00
rakhmerovkong: I know you may be anxious about completing this task, I hope it will be soon. But please try to keep patience since it's an important and pretty complicated thing11:01
rakhmerovtry not to hurry and dig into all needed details11:01
rakhmerov:)11:02
kongrakhmerov: yes, it really is tricky.11:02
rakhmerovjust take more time and investigate it11:02
rakhmerovI know man, I hope you'll be able to take something else soon11:02
rakhmerovactually you can if you want11:03
rakhmerovin parallel with this work11:03
kongrakhmerov: btw, do you know any new additional user cases about mistral willing to share?11:03
kongrakhmerov: I am asking because we have been talking about how to provide mistral service in our public cloud11:05
rakhmerovkong: well, there's a bunch of them but the problem is that we don't have enough hands to summarize them on some public resource11:05
rakhmerovwe will at some point11:05
kongrakhmerov: I am keen to see how end user use mistral, rather than how operators or sysadmins use that.11:06
kongbecause I know mistral is really useful to operators and admins.11:06
rakhmerovyeah11:07
kongand that's also the question I am thinking about when I am preparing my speech in pycon11:07
*** shardy is now known as shardy_lunch11:14
*** zhenguo has joined #openstack-mistral11:25
openstackgerritMerged openstack/mistral: Update docs and add release not for safe-rerun flag  https://review.openstack.org/34944911:32
*** Kiall has quit IRC11:34
openstackgerrithardik proposed openstack/mistral: Updated Doc for SSL configuration  https://review.openstack.org/34994511:35
*** Kiall has joined #openstack-mistral11:36
d0ugalddeja: Congrats of becoming core :) Well deserved!11:46
* d0ugal is catching up with emails11:46
ddejad0ugal: thank you :)11:47
*** dprince has joined #openstack-mistral11:55
*** jaosorior has joined #openstack-mistral12:04
jaosoriorHello folks12:04
*** shardy_lunch is now known as shardy12:05
jaosoriorSo, I ran into an issue with the baremetal_introspection actions. Where the action creation is done erronously if python-ironic-inspector is listening on something other than localhost or 0.0.0.012:13
jaosoriorIt seems that the issue is that when populating the actions. No keystone session is passed. And at some point python-ironic-inspector, when donig the __init__ in the class, tries to call itself to get the version12:14
jaosoriorwhich ends up failing12:14
jaosoriordprince ^^12:14
jaosorioranyway guys, anybody has ideas on how to fix it?12:15
dprincejaosorior: http://git.openstack.org/cgit/openstack/mistral/tree/mistral/actions/openstack/actions.py#n38312:16
dprincejaosorior: we should be setting a version=1 there12:17
jaosoriordprince: no, the issue is when populating the database https://github.com/openstack/mistral/blob/master/mistral/actions/openstack/action_generator/base.py#L8612:17
jaosoriordprince: That is before any action is taken. When mistral is getting those actions from the json mapping12:18
dprincejaosorior: right, so perhaps we need a _get_fake_client for the inspector12:18
dprincejaosorior: when populating the actions mistral uses the _get_fake_client functions12:18
dprincejaosorior: some of the actions don't require this function... but perhaps we missed that ironic inspector does?12:19
jaosoriordprince: Can you show an example?12:19
*** SonalOjha has joined #openstack-mistral12:19
dprincejaosorior: http://git.openstack.org/cgit/openstack/mistral/tree/mistral/actions/openstack/actions.py#n54912:19
dprincejaosorior: if you grep for that function you should see its usage12:20
jaosoriorAh12:20
jaosoriorthat seems like it could work!12:20
jaosoriordprince: Thanks dude, I'll submit a fix in a bit12:22
SonalOjhaI have been facing issues with mistral executions deleting from the mistral executions_v2 table, I could see the execution in the logs but somehow it gets deleted from the database12:22
dprincejaosorior: NP. link me and I'll +112:22
SonalOjhacan someone help?12:22
SonalOjhaneed a lead to whats exactly happening12:23
*** achanda has joined #openstack-mistral12:24
jaosoriordprince: Anyway, once this is fixed the ironic-inspector TLS code will work12:26
ddejaSonalOjha: Hi, please provide: logs from executor and engine; command for startign your workflow; workflow definition. Thanks12:26
openstackgerritJuan Antonio Osorio Robles proposed openstack/mistral: Make ironic-inspector use specific version  https://review.openstack.org/34996812:27
*** achanda has quit IRC12:29
openstackgerritJuan Antonio Osorio Robles proposed openstack/mistral: Add _get_fake_client to ironic-inspector actions  https://review.openstack.org/34996812:32
*** szaher has joined #openstack-mistral12:33
SonalOjhaddeja: I am using a direct workflow (cant really share the workflow) .. but every task is dependent on another task like   task1: action : ... on-success: task2 task2: action : ... on-success: task3  and so on12:34
SonalOjhaddeja: I see logs12:34
SonalOjha02/Aug/2016:11:32:48 +0000 WF INFO [-] Starting workflow: 'xxxxx.xxxxx' (execution_id=fc9c0fa2-7cf0-48dc-8291-bf892122bb08) 02/Aug/2016:11:32:50 +0000 WF INFO [-] Task 'xxxxxx' is RUNNING [action_name = <action1>] (execution_id=fc9c0fa2-7cf0-48dc-8291-bf892122bb08 task_id=db3ba52a-374d-49bf-b5a9-250969c1e65b) 02/Aug/2016:11:32:54 +0000 WF INFO [-] Action execution '<action1>' [RUNNING -> SUCCESS, result = {u'token': u'a12:35
SonalOjhaddeja: but after a while I dont see the execution in the database nor could query through mistral cli12:36
openstackgerritJuan Antonio Osorio Robles proposed openstack/mistral: Add _get_fake_client to ironic-inspector actions  https://review.openstack.org/34996812:36
openstackgerritJuan Antonio Osorio Robles proposed openstack/mistral: Add _get_fake_client to ironic-inspector actions  https://review.openstack.org/34996812:37
openstackgerrithardik proposed openstack/mistral-dashboard: Remove requirements satisfied by horizon  https://review.openstack.org/31554212:39
openstackgerrithardik proposed openstack/mistral-dashboard: Remove requirements satisfied by horizon  https://review.openstack.org/31554212:39
*** toddjohn has joined #openstack-mistral12:41
*** toddjohn has quit IRC12:43
*** toddjohn has joined #openstack-mistral12:44
*** bobh has joined #openstack-mistral12:44
*** janki has quit IRC12:48
*** janki has joined #openstack-mistral12:48
*** bobh has quit IRC12:52
ddejaSonalOjha: hm, is there a moment that you can see execution in the DB and then it disappears?12:57
ddejaor it just doesn't appear at all?12:58
*** rbrady has joined #openstack-mistral13:01
*** toddjohn has quit IRC13:06
openstackgerritDawid Deja proposed openstack/mistral: Add state info for synchronous actions run from CLI  https://review.openstack.org/34999313:06
*** toddjohn has joined #openstack-mistral13:06
*** clenimar has quit IRC13:09
ddejajtomasek: https://review.openstack.org/349993 here will land fix for your issue13:09
*** clenimar has joined #openstack-mistral13:10
*** nmakhotkin has quit IRC13:10
*** toddjohn has quit IRC13:10
*** bobh has joined #openstack-mistral13:20
*** nmakhotkin has joined #openstack-mistral13:27
SonalOjhaddeja it appears momentarily13:35
SonalOjhaddeja: I could see the execution details in mistral dashboard / mistral cli but later it just gets deleted13:36
openstackgerritAndras Kovi proposed openstack/mistral: Add target parameters to REST API  https://review.openstack.org/33934913:39
*** rbrady has quit IRC13:42
*** toddjohn has joined #openstack-mistral13:44
*** rbrady has joined #openstack-mistral13:53
*** rbrady has quit IRC13:56
ddejaSonalOjha: To be honest, I'm not aware of any mechanism that would delete anything from the DB... rakhmerov, hparekh are there any?14:03
d0ugalAre action executions often used in production?14:03
ddejad0ugal: no idea14:04
d0ugalI feel like they are mostly useful for development etc. but we have a simple action in TripleO and we are considering documenting that users should call it directly14:04
d0ugalSince providing a workflow to call one action seems a bit silly14:04
d0ugalI just want to check there are no downsides14:04
ddejad0ugal: from Executor point of view, it would be run in a same manner as if it would be part of workflow14:05
ddejaand if it would be run with flag save_result set to true, it would be store in a DB, just like wf action14:05
d0ugalddeja: but I guess it skips scheduling and is just executed directly?14:06
SonalOjhaddeja: I see few database entries having no workflow_execution_id14:06
ddejad0ugal: well, it still uses rabbitmq round-robin capability14:07
d0ugalddeja: oh okay, cool14:07
ddejaSonalOjha: it may happen if you run some action without workflow14:08
ddejausing mistral run-action14:08
*** SonalOjha has quit IRC14:10
*** tonytan4ever has joined #openstack-mistral14:17
*** rbrady has joined #openstack-mistral14:19
jtomasekddeja, d0ugal: using save_result has one implication: In case action-execution is called with save_result flag, then it behaves just like workflow -> does not give result as part of the response to the request that triggered action-execution14:24
d0ugaljtomasek: heh, that is weird14:25
ddejajtomasek: yes, becouse it is scheduled to be run later14:25
jtomasekd0ugal: agree, I got quite confused by it at first14:25
ddejayou can then get the results later using 'get'14:25
jtomasekddeja: yeah, but that is another api call14:26
ddejabut nevertheless, I have a fix for your issue, so do not worry14:26
ddejajtomasek: ^14:26
jtomasekddeja: :) yeah14:26
ddejaI'm just waiting for jenkins to run test to show that there is a problem and I'll push fix14:27
d0ugalNice!14:27
openstackgerritJuan Antonio Osorio Robles proposed openstack/mistral: Add _get_fake_client to ironic-inspector actions  https://review.openstack.org/34996814:28
*** achanda has joined #openstack-mistral14:36
*** achanda has quit IRC14:48
*** ddeja is now known as ddeja|away14:51
*** rrecio has joined #openstack-mistral14:53
*** rrecio_ has joined #openstack-mistral14:59
*** rrecio has quit IRC15:01
*** janki has quit IRC15:13
*** jaosorior has quit IRC15:52
*** venkat has joined #openstack-mistral15:52
*** janki has joined #openstack-mistral15:56
*** gokrokve has joined #openstack-mistral16:02
*** nmakhotkin has quit IRC16:08
*** gokrokve has quit IRC16:17
*** toddjohn has quit IRC16:17
*** brian_price has joined #openstack-mistral16:19
*** krotscheck is now known as krot_sickleave16:27
*** jpich has quit IRC16:47
*** toddjohn_ has joined #openstack-mistral16:53
*** chlong has quit IRC16:58
*** venkat has quit IRC17:00
*** bobh has quit IRC17:08
*** chlong has joined #openstack-mistral17:11
*** janki has quit IRC17:21
*** bobh has joined #openstack-mistral17:38
*** bobh has quit IRC17:39
openstackgerritMichal Gershenzon proposed openstack/mistral: DB migration to three execution tables and increase some columns  https://review.openstack.org/35018317:59
*** shardy has quit IRC18:10
*** toddjohn_ has quit IRC18:12
*** toddjohn has joined #openstack-mistral18:13
*** Ravikiran_K has quit IRC18:14
*** bobh has joined #openstack-mistral18:39
*** bobh has quit IRC18:44
*** toddjohn has quit IRC19:19
*** toddjohn has joined #openstack-mistral19:19
*** toddjohn has quit IRC19:19
*** toddjohn has joined #openstack-mistral19:20
*** toddjohn has quit IRC19:20
*** toddjohn has joined #openstack-mistral19:20
*** toddjohn has quit IRC19:24
*** toddjohn has joined #openstack-mistral19:28
*** bobh has joined #openstack-mistral19:40
*** bobh has quit IRC19:47
*** dprince has quit IRC19:51
*** toddjohn has quit IRC20:25
*** toddjohn has joined #openstack-mistral20:27
*** toddjohn has quit IRC20:31
*** openstackgerrit_ has joined #openstack-mistral20:35
*** openstackgerrit_ has quit IRC20:36
*** tonytan4ever has quit IRC20:46
*** toddjohn has joined #openstack-mistral21:00
*** toddjohn has quit IRC21:03
*** toddjohn has joined #openstack-mistral21:03
*** toddjohn has quit IRC21:09
*** bobh has joined #openstack-mistral21:44
*** tonytan4ever has joined #openstack-mistral21:47
*** bobh has quit IRC21:49
*** tonytan4ever has quit IRC21:52
*** brian_price has quit IRC23:47
*** dprince has joined #openstack-mistral23:56

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