Wednesday, 2016-08-03

*** toddjohn has joined #openstack-mistral00:35
*** dprince has quit IRC00:44
*** toddjohn has quit IRC01:24
*** bobh has joined #openstack-mistral01:44
*** bobh has quit IRC02:09
*** rrecio_ has quit IRC02:19
openstackgerritMerged openstack/mistral: Added releasenote for https support  https://review.openstack.org/34947402:37
openstackgerritDawid Deja proposed openstack/mistral: Add state info for synchronous actions run from CLI  https://review.openstack.org/34999304:35
openstackgerritMerged openstack/mistral: Add target parameters to REST API  https://review.openstack.org/33934905:22
rakhmerovddeja: hi, I left a comment in https://review.openstack.org/#/c/34999306:17
rakhmerovbe sure to think about what I wrote carefully, data type in case of action result is a tricky thing06:18
*** janki has joined #openstack-mistral06:23
hparekhrakhmerov, Hi06:25
rakhmerovhi06:25
hparekhrakhmerov, Retry policy will only work if task is in error state right ?06:25
rakhmerovyes06:26
rakhmerovright06:26
hparekhstrange, One person is claiming that it gets executed even if task action is in success06:27
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: removing env update from WF controller  https://review.openstack.org/34946606:28
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: fix obvious workflow controller issues  https://review.openstack.org/34945706:28
*** SonalOjha has joined #openstack-mistral06:28
openstackgerritRenat Akhmerov proposed openstack/mistral: Towards non-locking model: Add 'unique_key' for delayed calls  https://review.openstack.org/34944506:28
rakhmerovhparekh: hm.. interesting06:29
rakhmerovwho is this person and what is he/she trying to do?06:29
rakhmerovwe need more details06:29
SonalOjhaI am trying to upgrade to mitaka version of mistral from liberty .. I see some schema changes and was trying to use mistral-db-manage cli but that doesnt migrate the data06:30
hparekhrakhmerov, Ah. If task is in success and continue-on tag is evaluated to true then Mistral will retry06:30
SonalOjhawhat should be done for data migration?06:30
openstackgerritMerged openstack/mistral: Add _get_fake_client to ironic-inspector actions  https://review.openstack.org/34996806:31
rakhmerovSonalOjha: hi, what data changes you see?06:31
rakhmerovmistral-db-manage upgrade head should help06:31
rakhmerovif if doesn't happen then there might be a bug in migration scripts, please give more details, we'll check it06:32
rakhmerovideally we need a filed bug06:32
SonalOjhathat doesnt help I tried running it with --sql command and what all it shows is create queries06:32
rakhmerovok, what changes in DB schema are you talking about?06:32
SonalOjhaI see executions_v2 table having workflow_id introduced06:34
rakhmerovyes06:34
SonalOjhaI tried "mistral-db-manage --config-file /path/to/mistral.conf upgrade 009:011 --sql"06:35
SonalOjhaand it shows me just the schema upgrade queries06:35
rakhmerovtry without revision numbers06:35
rakhmerovjust upgrade head06:35
rakhmerovI'm now looking at our scripts06:35
rakhmerovwe do have a script for this change06:36
rakhmerovit should work06:36
SonalOjhaI tried that .. it fails as it tries to create table which already exists06:36
SonalOjhado I need to generate the sql and modify it accordingly ?06:37
rakhmerovyes, this is a workaround06:37
rakhmerovI think here's what happened in your case06:37
rakhmerovok, in your mistral database do you see table alembic_version?06:38
SonalOjhayes I do06:38
rakhmerovdo select * from it06:38
rakhmerovwhat do you see?06:38
SonalOjhanothing in there .. empty06:39
SonalOjhaMariaDB [mistral]> select * from alembic_version; Empty set (0.00 sec)06:39
rakhmerovyeah, and that is the reason why it's not working06:39
rakhmerovso06:39
rakhmerovas a workaround you can just set a version in this table manually06:39
SonalOjhaohhkk06:39
rakhmerovif you exactly what version are you at06:39
*** ddeja|away is now known as ddeja06:39
rakhmerovso I guess here's what happened:06:40
rakhmerovinitially mistral DB was not created by alembic initially (e.g. you didn't run mistral-db-manage) but DB was created by just the first run if mistral-server06:41
rakhmerovautomatically06:41
SonalOjhayeah06:41
rakhmerovand for that reason Alembic (migration tool) thought that we were on revision 0 and that's why it tried to create existing tables06:41
rakhmerovmakes sense?06:42
SonalOjhayes it does06:42
rakhmerovso just set a version manually and it should work06:42
rakhmerovhope this helps you :)06:42
SonalOjhahow do I find out the version then , I tried looking here https://github.com/openstack/mistral/tree/stable/liberty/mistral/db/sqlalchemy/migration/alembic_migrations/versions06:42
SonalOjhabased on the migration script I guessed I am on 009 version06:42
SonalOjhais that correct06:42
SonalOjha?06:42
rakhmerovsimply look our migration scripts and compare with your actual DB state06:43
SonalOjhaok06:43
rakhmerovyes, this should work06:43
SonalOjhagreat ! would try that out06:43
rakhmerovhparekh: hm.. this might be a bug06:43
rakhmerovwith continue-on06:43
SonalOjhaso I remember using sync_db script06:43
rakhmerovand btw I remember that nmakhotkin already fixed long ago something like this06:44
SonalOjhashouldnt that do the needful?06:44
hparekhrakhmerov, continue-on is suppose to work with task.state= success right ?06:44
rakhmerovSonalOjha: no, sync_db is used by mistral-db-manage implicitly, no need to use it yourself06:44
rakhmerovwe'll remove it later06:44
hparekhrakhmerov, If so we need to improve our documentation. it is little bit confusing06:44
SonalOjhaohhkk06:44
rakhmerovhparekh: let me recall...06:45
hparekhrakhmerov, https://review.openstack.org/#/c/188385/06:46
rakhmerovhparekh: hm.. in my understanding it's just the opposite of "break-on"06:49
rakhmerovbut it's not supposed to be taken into account if task is in SUCCESS06:49
rakhmerovso we have two options:06:49
rakhmerov1) "break-on" - if need to break retry loop on some condition regardless of iteration count06:50
rakhmerovhm... yeah. this is confusing06:51
rakhmerovseems like I forgot its semantics06:51
hparekhrakhmerov, I guess we should treat continue-on as separate policy. and file a bug for that06:52
rakhmerovno-no, there was a 100% semantics06:52
rakhmerovlet me talk to someone, I'll get back to you06:52
hparekhrakhmerov, No issue06:53
rakhmerov100% clear..06:53
hparekhok06:53
rakhmerovhparekh: here's the thing07:00
rakhmerovI recalled :)07:00
rakhmerovthis is actually the same as "break-on" but!07:01
rakhmerovit switches the task to SUCCESS instead of ERROR07:01
rakhmerovmakes sense?07:01
rakhmerovso it's for a use case when during retry iteration loop we realized that we don't need to continue but we want to mark a task as successful07:02
openstackgerritDawid Deja proposed openstack/mistral: Add state info for synchronous actions run from CLI  https://review.openstack.org/34999307:06
openstackgerritDawid Deja proposed openstack/mistral: Add state info for synchronous actions run from CLI  https://review.openstack.org/34999307:13
hparekhrakhmerov, So you are saying that we want to continue workflow execution on some condition (continue-on)07:19
rakhmerovyes07:19
hparekhhmmm07:19
rakhmerovand leave this task in SUCCESS state07:19
rakhmerovyeah, it's confusing, we definitely need to improve our docs07:20
hparekhrakhmerov, Then there is bug. See comment in source code https://github.com/openstack/mistral/blob/c7aa89e03d46609a4960e26a880f14cbd8d84b3e/mistral/engine/policies.py#L27907:24
hparekhrakhmerov, Also it will stop execution if task is in success and continue_on is not specified. https://github.com/openstack/mistral/blob/c7aa89e03d46609a4960e26a880f14cbd8d84b3e/mistral/engine/policies.py#L33007:25
rakhmerovthe last is correct07:26
rakhmerovthe first one... thinking07:26
openstackgerritDawid Deja proposed openstack/mistral: Add state info for synchronous actions run from CLI  https://review.openstack.org/34999307:26
ddejahi rakhmerov, I've made changes in my patch07:27
rakhmerovddeja: ok, thanks :)07:27
ddejaI know what was purpose of the _prepare_output07:27
rakhmerovddeja: I addressed your comments too in mine )07:27
ddejathat is why I've added the method to_dict to Result class07:27
rakhmerovhparekh: I am confused again... I guess what I told about semantics of "continue-on" is not quite right..07:28
hparekh:)07:28
ddejabut I delted it usage in some places while merging by mistake... :|07:28
rakhmerovhparekh: I still need to talk to someone :) It's the person this requirement was coming from..07:28
ddejait is fixed now07:28
hparekhOk take your time :)07:28
rakhmerovddeja: yeah, it looked like a mistake :)07:28
rakhmerovhparekh: ok )07:28
* ddeja should first take off from bed before git review07:29
d0ugalWhat are the risks with increasing the execution_field_size_limit_kb?07:29
d0ugalWas 1024 chosen for a specific reason as the default?07:30
rakhmerovhparekh: yes, what I said is right07:32
rakhmerovif you think there's a bug pls file it07:32
d0ugalddeja: Did you look at the failures on https://review.openstack.org/#/c/337696/? The change causes some of the other tests to fail - it might just be that they need updated. I'm not sure.07:33
rakhmerovd0ugal: no risk I think, it seemed to enough for investigating all typical errors07:33
rakhmerovd0ugal: I didn't07:33
d0ugalrakhmerov: okay, cool - we hit the limit in TripleO :)07:34
rakhmerovwhat do you mean? It started getting exceptions?07:34
d0ugalrakhmerov: That question was for ddeja, he pushed an update to the review to fix the test I added07:35
rakhmerovit should be shrinked if the actual size exceeds this limit07:35
*** jpich has joined #openstack-mistral07:35
openstackgerritMichal Gershenzon proposed openstack/mistral: DB migration to three execution tables and increase some columns  https://review.openstack.org/35018307:58
*** shardy has joined #openstack-mistral07:59
*** jistr is now known as jistr|training07:59
hparekhrakhmerov, Sorry but I am again confused. Take a look https://blueprints.launchpad.net/mistral/+spec/mistral-retry-continue-on08:02
rakhmerovhparekh: sorry, will do later08:03
hparekhrakhmerov, Ok08:03
ddejad0ugal: oh, I was thinking you will continue the work08:07
ddejaI can take a look on it in an hour08:07
*** Ravikiran_K has joined #openstack-mistral08:18
d0ugalddeja: No, it's fine. I will look.08:18
d0ugalddeja: I just didn't want to duplicate effort if you had looked into the new errors08:18
d0ugalPlease don't feel like I am asking you to finish my work :)08:19
ddejad0ugal: OK :)08:30
*** gmann has joined #openstack-mistral08:48
gmannhparekh: ping08:49
*** dkushwaha has joined #openstack-mistral08:49
*** jistr|training is now known as jistr08:49
openstackgerritOpenStack Proposal Bot proposed openstack/mistral: Updated from global requirements  https://review.openstack.org/35046609:02
*** shardy is now known as shardy_mtg09:02
*** mflobo has joined #openstack-mistral09:21
openstackgerritMichal Gershenzon proposed openstack/mistral: DB migration to three execution tables and increase some columns  https://review.openstack.org/35018309:34
hparekhgmann, hi09:39
*** evgenyl has quit IRC09:42
*** shardy_mtg is now known as shardy09:43
*** evgenyl has joined #openstack-mistral09:44
ddejarakhmerov, all: Just for the record: Thursday and Friday I'm on Openstack Meetup in Wroclaw (Poland). It is around 400km from my city, so I will have limited internet access10:16
rakhmerovddeja: ok, sure10:17
rakhmerovthanks for letting us know10:17
hparekhddeja, Ok Thanks10:20
hparekhrakhmerov, Bug has been filled https://bugs.launchpad.net/mistral/+bug/1609335 Take a look when you get some time10:28
openstackLaunchpad bug 1609335 in Mistral "Retry get executed even if action is success" [Undecided,New]10:28
rakhmerovsure10:29
*** Ravikiran_K has quit IRC10:56
*** mflobo has quit IRC11:18
*** mflobo has joined #openstack-mistral11:28
*** mflobo has quit IRC11:36
openstackgerritMerged openstack/mistral: Updated from global requirements  https://review.openstack.org/35046611:40
*** dprince has joined #openstack-mistral11:45
jtomasekrakhmerov: a quick question, every Mistral api response returns an object with properties and all of the values of those properties are json strings. wouldn't it be better if it was objects?12:44
jtomasekrakhmerov: example: http://paste.openstack.org/show/545045/12:44
jtomasekrakhmerov: I am not sure what the standard is, but every time I want to work with such API response, I need to parse JSON first. e.g. JSON.parse(response.output), JSON.parse(response.input)...12:46
rakhmerovjtomasek: yes, it's basically a side-effect that they are strings12:46
rakhmerovyeah, sorry for this12:46
jtomasekrakhmerov: ok, so there is nothing we can do to improve it, right?12:46
rakhmerovbtw, it's rather an intermediate state, we didn't finish something in the implementation12:46
rakhmerovwe can but it's not finished yet12:46
jtomasekrakhmerov: sounds good!12:47
jtomasekrakhmerov: thanks12:47
rakhmerovnp12:47
jtomasekrakhmerov: is there a blueprint to watch?12:47
rakhmerovno I guess12:48
rakhmerovI just know it )12:48
rakhmerovthere's too many things like this and I don't file BPs for some of them12:48
rakhmerovcould you please file a bug for this?12:48
jtomasekrakhmerov: ok, sure12:48
rakhmerovthank you12:49
jtomasekrakhmerov: https://bugs.launchpad.net/mistral/+bug/160940212:56
openstackLaunchpad bug 1609402 in Mistral "api responses nested properties are JSON strings" [Undecided,New]12:56
jpichjtomasek, rakhmerov: I agree it'd be more convenient though changing it will break existing consumers now?13:03
* jpich subscribes to bug as well13:03
jtomasekjpich: it will, It will have to be taken care of in versioning somehow. or better go through the deprecation process if possible13:04
jpichjtomasek: Gotcha!13:04
rakhmerovjtomasek: what version of Mistral are you using?13:07
jtomasekrakhmerov: 2.0.113:08
rakhmerovooh, ok13:08
rakhmerovin fact, we already broke it a little bit in newton13:08
jtomasekrakhmerov: in which case? is that version old? we're getting Mistral from RDO packages, which are (afaik) udpated on patch basis13:09
rakhmerovno, it's not too old, it's Mitaka13:13
rakhmerovbut we've made some huge changes (no worries, they are to the better and are mostly about the implementation) in Newton13:13
rakhmerovthe format of how we display errors may be slightly different now13:14
rakhmerovalthough it is still represented as a string13:14
jtomasekrakhmerov: cool, I think the package we use is fairly recent, it probably just uses old version tag because newton has not been done yet13:14
rakhmerovyeah13:16
rakhmerovjtomasek: just for your information, we're now working on tremendous performance improvements13:16
rakhmerovwe've already made some13:16
rakhmerovso Newton version will be orders or magnitude faster than Mitaka13:16
rakhmerovand more resistant to concurrent problems13:17
jtomasekrakhmerov: great! Is is about running large amount of workflows at once as discussed on the Summit?13:17
jtomasekrakhmerov: ah, that sounds very good13:18
rakhmerovand this too13:18
rakhmerovright now we have serious problems with highly concurrent workflows13:18
rakhmeroveven if it's just one workflow13:18
rakhmerovfor example, if in a workflow we have >50 tasks running in parallel it will be very slow13:19
jtomasekI see13:19
*** tonytan4ever has joined #openstack-mistral13:32
*** Ravikiran_K has joined #openstack-mistral13:33
*** toddjohn has joined #openstack-mistral13:49
*** krot_sickleave is now known as krotscheck14:00
*** janki has quit IRC14:11
*** janki has joined #openstack-mistral14:34
*** bobh has joined #openstack-mistral14:43
*** bobh has quit IRC14:49
*** dprince has quit IRC15:10
*** rrecio has joined #openstack-mistral15:11
*** SonalOjha has quit IRC15:16
*** brian_price has joined #openstack-mistral15:34
*** mflobo has joined #openstack-mistral15:36
*** jpeeler has quit IRC15:43
*** brunograz has quit IRC15:50
*** jistr is now known as jistr|biab16:06
openstackgerritOpenStack Proposal Bot proposed openstack/mistral: Updated from global requirements  https://review.openstack.org/35067016:10
*** janki has quit IRC16:12
*** brian_price has quit IRC16:18
*** brian_price has joined #openstack-mistral16:19
*** brian_price has left #openstack-mistral16:21
*** jistr|biab is now known as jistr16:22
*** brian_price has joined #openstack-mistral16:28
*** dprince has joined #openstack-mistral16:33
*** bobh has joined #openstack-mistral16:46
*** bobh has quit IRC16:51
*** krotscheck is now known as kro_focused16:53
*** mgershen has quit IRC16:55
*** openstackgerrit_ has joined #openstack-mistral17:06
*** openstackgerrit_ has quit IRC17:08
*** shardy has quit IRC17:44
*** bobh has joined #openstack-mistral17:47
*** bobh has quit IRC17:52
*** harlowja has quit IRC17:58
*** harlowja has joined #openstack-mistral18:00
*** tonytan4ever has quit IRC18:08
*** bobh has joined #openstack-mistral18:11
*** toddjohn has quit IRC18:11
*** toddjohn has joined #openstack-mistral18:13
*** toddjohn_ has joined #openstack-mistral18:14
*** toddjohn has quit IRC18:17
*** jpich has quit IRC18:22
*** mflobo has quit IRC18:27
*** toddjohn_ has quit IRC18:52
*** toddjohn has joined #openstack-mistral18:54
*** tonytan4ever has joined #openstack-mistral19:08
*** tonytan4ever has quit IRC19:13
*** clenimar has quit IRC19:34
*** clenimar has joined #openstack-mistral19:35
*** tonytan4ever has joined #openstack-mistral19:49
*** Ravikiran_K has quit IRC19:57
*** dprince has quit IRC19:58
*** toddjohn has quit IRC20:22
*** toddjohn has joined #openstack-mistral20:22
*** toddjohn_ has joined #openstack-mistral20:24
*** toddjohn has quit IRC20:27
*** toddjohn_ has quit IRC20:29
openstackgerritDougal Matthews proposed openstack/mistral: Fix the use of both adhoc actions and "with-items" in workflows  https://review.openstack.org/33769620:43
*** toddjohn has joined #openstack-mistral20:59
*** bobh has quit IRC22:47
*** toddjohn has quit IRC23:09
*** brian_price has quit IRC23:18
*** tonytan4ever has quit IRC23:33
*** bobh has joined #openstack-mistral23:52
*** toddjohn has joined #openstack-mistral23:54
*** rrecio has quit IRC23:54

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