Wednesday, 2017-08-23

*** thrash is now known as thrash|g0ne00:40
*** zhurong has joined #openstack-mistral00:57
*** dixiaoli has joined #openstack-mistral00:59
*** tung_doan has quit IRC01:32
*** dixiaoli has quit IRC02:15
*** dixiaoli has joined #openstack-mistral02:19
*** weshay is now known as weshay_PTO_AM02:37
*** zhurong has quit IRC02:58
*** gkadam has joined #openstack-mistral03:40
*** jtomasek_ has joined #openstack-mistral05:01
*** jtomasek has quit IRC05:02
*** zhenguo has quit IRC05:02
*** aspiers has quit IRC05:02
*** doriftoshoes__ has quit IRC05:02
*** zhenguo has joined #openstack-mistral05:02
*** doriftoshoes__ has joined #openstack-mistral05:02
*** rook has quit IRC05:06
*** aspiers has joined #openstack-mistral05:10
*** rook has joined #openstack-mistral05:12
*** rook is now known as Guest9146405:12
*** nkoffman has joined #openstack-mistral05:29
*** zhurong has joined #openstack-mistral05:31
*** shardy has joined #openstack-mistral06:13
*** vishwana_ has joined #openstack-mistral06:15
*** vishwanathj has quit IRC06:18
*** shardy has quit IRC06:58
*** shardy has joined #openstack-mistral06:59
*** nkoffman has quit IRC07:00
*** jpich has joined #openstack-mistral07:04
*** oidgar has joined #openstack-mistral07:20
*** nkoffman has joined #openstack-mistral07:22
*** dixiaoli_ has joined #openstack-mistral07:29
*** oidgar has quit IRC07:30
*** dixiaoli has quit IRC07:32
*** livelace has joined #openstack-mistral07:59
*** openstackgerrit has quit IRC08:03
*** oidgar has joined #openstack-mistral08:51
*** doriftoshoes__ has quit IRC08:51
*** zhenguo has quit IRC08:52
*** doriftoshoes__ has joined #openstack-mistral08:52
*** zhenguo has joined #openstack-mistral08:52
*** pratapagoutham has joined #openstack-mistral09:11
*** nkoffman has quit IRC09:17
*** nkoffman has joined #openstack-mistral09:23
*** pratapagoutham has quit IRC09:34
*** dixiaoli_ has quit IRC09:52
*** pratapagoutham has joined #openstack-mistral10:03
d0ugallivelace: Hi10:12
d0ugallivelace: Did you get an answer to your question?10:12
pratapagouthamHi all i think 'OS_PROJECT_DOMAIN_NAME'  -- should be replaced with DOMAIN_ID in this https://github.com/openstack/python-mistralclient/blob/master/mistralclient/shell.py#L31510:24
d0ugalhttp://codesearch.openstack.org/?q=OS_PROJECT_DOMAIN_&i=nope&files=%2C*client.*%5C.py&repos=10:26
d0ugalIt looks like we want to support both.10:26
*** Ritesh has joined #openstack-mistral10:26
RiteshHI10:26
d0ugalhi10:26
RiteshDoes any one can share me how to provide input as file to mistral execution-create command10:26
Riteshthanks10:26
Riteshlike this :10:28
pratapagouthamyes so then mistral has to have suport for both but in the end it will be used here https://github.com/openstack/python-mistralclient/blob/master/mistralclient/auth/keystone.py#L9810:28
d0ugalRitesh: You can provide it a file path I think10:28
d0ugalRitesh: mistral execution-create WORKFLOW_NAME path/to/input.json10:29
d0ugalRitesh: it must be a JSON file10:29
d0ugalhttps://github.com/openstack/python-mistralclient/blob/master/mistralclient/commands/v2/executions.py#L19910:29
pratapagouthamso i think the variable which goes into that session plugin function has to be a one off domain_name or domain_id10:29
Riteshd0ugal : I am getting Error : app : No JSON object could be decoded10:30
d0ugalRitesh: that suggests the file is not valid JSON - is it?10:30
pratapagouthamin pike my env has only ID so suggested ID in the place of name but may be name is used in newton cycle so older one10:31
pratapagouthamnewton cycle or older one's ...**10:31
Riteshthanks d0ugal, it seems to be working , I have validated the JSON10:31
d0ugalpratapagoutham: My Pike env only has NAME :)10:31
d0ugalRitesh: great.10:32
* d0ugal will bbiab10:33
pratapagouthamdougal so then i think we have to both ID and name10:33
pratapagouthamso that there will be support for both10:33
pratapagouthamwhat say??10:33
*** Guest91464 is now known as rook10:39
livelaced0ugal, Hello. Sorry, was at the meeting. No, I started to use the workaround which I posted yesterday.10:41
*** jkilpatr has quit IRC10:42
*** zhurong has quit IRC10:49
*** nkoffman has quit IRC10:50
d0ugallivelace: so I was using this example thrash|g0ne created: http://paste.openstack.org/show/618946/10:53
d0ugaland I done some testing and think I figured it out10:53
d0ugaljoin expects all  tasks that reference the joining task to join directly10:54
d0ugalso, task1 references stop in on-error, but doesn't always join (it only joins if there is an error)10:54
d0ugalif you change on-error to on-success on task1, then it will work fine10:54
d0ugalor, you can change join to "join: 2" if you want it to work when only two of the three tasks join10:55
d0ugallivelace: ^ hopefully that makes sense10:55
d0ugalpratapagoutham: yes, I agree - that sounds like the best option.10:55
d0ugalpratapagoutham: can you open a bug for this?10:56
* d0ugal is going for a run, will be back in ~1hr10:57
livelaced0ugal, I think - you are wrong (if I figured it right), because I did "on-complete" too and there was the same behavior. "on-complete" must be executed always and all "on-complete" tasks must be subscribed to "join all".10:59
*** nkoffman has joined #openstack-mistral11:00
d0ugallivelace: I tested it with on-complete and it worked for me :)11:00
d0ugalwe can continue in 1hr if you like11:00
livelaceOk11:00
d0ugalI can show you multiple examples.11:00
livelaceGreat!11:00
*** shardy has quit IRC11:01
pratapagouthamYes dougal i will fix it also11:03
*** sharatss has joined #openstack-mistral11:15
*** jkilpatr has joined #openstack-mistral11:20
*** sharatss has quit IRC11:21
*** thrash|g0ne is now known as thrash11:50
*** bobh has joined #openstack-mistral12:02
*** bobh has quit IRC12:03
*** dprince has joined #openstack-mistral12:04
*** lkannan has quit IRC12:12
d0ugalpratapagoutham: thanks12:22
d0ugallivelace: okay, I'm back -  I'll get your an example shortly.12:22
d0ugalRitesh: What was your question?12:23
Ritesh i tried different ways get to this equation correct, but could not happen12:25
Riteshwith-items: project in <% $.projects %>12:25
Riteshaction: nova.servers_list search_opts={ 'tenant_id':<% $.project %> }12:25
Riteshaction: nova.servers_list search_opts={ 'tenant_id':<% $.project %> }12:25
Riteshpublish:           vm_ids: <% task(get_vms).result[0].id %>12:25
Riteshcould you please help12:25
RiteshBascially looking for vm's inside a tenant12:26
RiteshI will provide the input as list of tenants12:26
*** openstackgerrit has joined #openstack-mistral12:26
openstackgerritGoutham Pratapa proposed openstack/python-mistralclient master: Support for Project_domain_id and user_domain_id.  https://review.openstack.org/49668712:26
d0ugalRitesh: ah, interesting - so you need to generate JSON for the search_opts?12:26
d0ugalI think this might work...12:27
RiteshI need list of vm's inside a tenant12:27
livelaced0ugal, Take a look https://paste.fedoraproject.org/paste/nps4HsNXiJQz0hiUF--Dmw12:27
livelacefirst task failed and "stop" was executed with "on-error" condition12:28
d0ugalsearch_opts=<% {"tenant_id" => $.project } %>12:28
d0ugalRitesh: ^12:28
Riteshd0ugal let me try this one12:29
d0ugallivelace: when I run that workflow it calls "aaa" not "bbb" - which is what I expect12:31
d0ugallivelace: none of the tasks failed for me.12:31
livelaced0ugal, https://paste.fedoraproject.org/paste/jwDmC1BfQhQye5FYgNwecw12:32
livelaceseveral minutes ago12:32
livelaceplain mistral12:32
d0ugallivelace: which version of Mistral do you have?12:33
livelaced0ugal, https://paste.fedoraproject.org/paste/hqV8Q1wEaQpyvbna0hZUfw12:34
livelacecentos ocata repo12:34
d0ugallivelace: right, I am testing on Pike (git master), so maybe there is a bug here that was fixed but never backported12:35
d0ugalI don't remember one, rakhmerov probably might, but he is on vacation until Monday12:35
d0ugalpratapagoutham: thanks - I'll take a look at that patch shortly!12:35
Riteshd0ugal that line you pasted above did not work, i still get empty list of vm's12:36
livelaced0ugal, Could you post your results of executions ?12:36
d0ugalRitesh: hmm, then I am not sure or maybe I don't understand the problem fully.12:36
d0ugallivelace: http://paste.openstack.org/show/619172/12:37
Riteshd0gual : http://www.paste.org/8570712:37
Riteshcan you check above link12:37
Riteshi pasted the workflow there12:37
livelaced0ugal, Your execution doesn't have failed task112:39
d0ugallivelace: yup, it didn't fail - that is what I said above.12:40
livelaced0ugal, Could you run my configuration ?12:40
d0ugalWhat is your configuration?12:40
livelaced0ugal, Take a look https://paste.fedoraproject.org/paste/nps4HsNXiJQz0hiUF--Dmw12:40
pratapagouthamdougal: ok have a good day12:41
d0ugallivelace: that is the one you sent already and I tried12:41
d0ugallivelace: why would task1 fail?12:41
livelaced0ugal, wrong address action: std.http url='http://1ya.ru'12:41
d0ugallivelace: if you want to test passing and failing use "std.fail" for failing tasks and "std.noop" for passing12:42
d0ugallivelace: that address works for me?12:42
livelaceIt doesn't matter what std.* to use.12:42
livelaceit shouldn't work12:42
d0ugalOkay, then I guess I just don't understand why12:43
*** rbrady has joined #openstack-mistral12:43
*** rbrady has joined #openstack-mistral12:43
*** gkadam has quit IRC12:43
d0ugaltask1 passes for me and I don't understand why it shouldn't12:43
d0ugalYou say it is the wrong address, but it seems to be a valid address.12:43
livelaceSorry, thought about another things12:44
livelaced0ugal, Could you run in on 4.0 version of Mistral ?12:44
d0ugallivelace: not very easily, I don't have an environment with available12:45
*** shardy has joined #openstack-mistral12:55
*** oidgar has quit IRC13:01
*** bobh has joined #openstack-mistral13:05
*** Ritesh has quit IRC13:09
*** oidgar has joined #openstack-mistral13:18
*** oidgar has quit IRC13:34
*** nkoffman has quit IRC13:36
d0ugalRitesh: tenant_id doesn't seem to be a valid request filter13:43
d0ugalhrm, actually, it is, but it is deprecated.13:44
d0ugalproject_id seems to be the correct one13:44
d0ugaloh, Ritesh left13:44
* d0ugal is too slow13:44
pratapagouthamyes project_id is the correct one13:45
d0ugalThanks :)13:45
*** oidgar has joined #openstack-mistral14:01
*** lkannan has joined #openstack-mistral14:12
openstackgerritKupai József proposed openstack/mistral master: Removed NOT IN query from expiration policy.  https://review.openstack.org/49672114:14
*** bobh has quit IRC14:56
*** livelace has quit IRC14:58
*** catintheroof has joined #openstack-mistral15:25
*** oidgar has quit IRC15:36
*** dixiaoli has joined #openstack-mistral15:53
*** bobh has joined #openstack-mistral15:56
*** dixiaoli has quit IRC15:57
*** bobh has quit IRC16:01
*** jkilpatr has quit IRC16:08
*** shardy has quit IRC16:16
*** weshay_PTO_AM is now known as weshay16:25
*** jpich has quit IRC16:48
*** jkilpatr has joined #openstack-mistral16:53
*** thrash is now known as thrash|biab17:07
*** bobh has joined #openstack-mistral17:29
*** livelace has joined #openstack-mistral17:51
*** thrash|biab is now known as thrash17:56
*** livelace has quit IRC17:58
*** catintheroof has quit IRC18:07
*** apetrich has quit IRC18:18
*** apetrich has joined #openstack-mistral18:20
*** dixiaoli has joined #openstack-mistral18:24
*** dixiaoli has quit IRC18:28
*** oidgar has joined #openstack-mistral18:29
*** livelace has joined #openstack-mistral18:37
*** livelace has quit IRC18:41
*** jtomasek_ has quit IRC18:52
*** shardy has joined #openstack-mistral18:57
*** oidgar has quit IRC19:11
*** shardy has quit IRC20:00
*** jkilpatr has quit IRC20:22
*** toure is now known as toure_biab20:26
*** dprince has quit IRC20:26
*** jkilpatr has joined #openstack-mistral21:29
*** bobh has quit IRC22:21

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