Thursday, 2016-06-16

*** openstack has joined #openstack-mistral05:58
ddejarakhmerov: no problem06:10
openstackgerritMarcos Fermín Lobo proposed openstack/mistral: Release note for magnum actions support  https://review.openstack.org/32989406:39
openstackgerritMarcos Fermín Lobo proposed openstack/mistral: Release note for magnum actions support  https://review.openstack.org/32989406:40
*** shardy has joined #openstack-mistral07:30
d0ugal"YaqlEvaluationException: Can not evaluate YAQL expression:  $.status or 'SUCCESS' , data=....."08:02
d0ugalWhat would caust that YAQL to fail?08:02
d0ugalIs it because the 'status' key can't be found?08:02
d0ugalIt does say "error: u'status'  " at the end, after the data - which is a bit big to paste here08:03
d0ugalI am looking at http://paste.openstack.org/show/516493/08:03
d0ugaland I can't see status in the data, so I guess that must be in08:04
d0ugals/in/it/08:04
d0ugalIs there a way to determine where in the workflow that is happening? That YAQL is used in a few places.08:05
therved0ugal, I don't know that, but I think $.get('status', 'SUCCESS') is what you want08:15
d0ugaltherve: aha, thanks! I'll try that :)08:23
ddejarakhmerov: are you there? I have one question regrding RPC patches08:25
rakhmerovddeja: here08:25
ddejacool08:25
rakhmerovd0ugal: wait a sec, I'll take a look..08:25
ddejarakhmerov: kombu message object has 'type' property08:26
ddejaif on server side something wrong happens during message proccesing, server would send message to client with exception as a message body and woudl set type to 'error'08:27
rakhmerovd0ugal: I'd like to look at your WF, seems like the problem in task "send_message"08:28
ddejathan, on client side, if we receive message with type error, we are raising exception, which woudl go directly to kombu, which doesn't seems like desire behaviour, but I may miss something08:28
ddejarakhmerov: what do you think?08:29
rakhmerovddeja: reading..08:29
ddejalink to code https://review.openstack.org/#/c/194117/20/mistral/engine/rpc_direct/kombu/kombu_client.py L10908:30
rakhmerovwhat do you call client and server here?08:30
ddejaclient and server in RPC manner08:30
ddejaclient is sending a message to server to do something and wait for response08:30
rakhmerovok08:31
rakhmerovok, what do you mean directly to kombu?08:32
rakhmerovdon't 100% follow08:32
ddeja_on_response method is called by kombu library08:33
ddejaso if we raise exception in it, flow goes back to kombu08:33
ddejaand we can't controll it08:33
rakhmerovok, yeah08:36
rakhmerovI see now, so _on_response() is just a callback that we provide for kombu08:36
ddejarakhmerov: yup08:36
rakhmerovwell, I guess there should be a defined contract for this type of callback08:37
rakhmerovthat defines how callbacks should behave08:37
rakhmerovusually, it's should be explained, particularly, what exceptions are handled and what are bubbled up to kombu users08:38
ddejarakhmerov: OK08:38
rakhmerovtry to look at the doc or their source code08:38
rakhmerovit might be explained08:38
rakhmerovbut generally, yes, this is a concern08:38
ddejaok, will do08:38
ddejathanks08:38
rakhmerovif, for example, it handles exceptions somehow then we need to understand what we'll get as a result in this case08:39
rakhmerovyeah, it requires some research08:39
ddejarakhmerov: yup. I wrote some tests for kombu and find a lot, unfortunately08:40
rakhmerov:)08:40
ddejaplaces that needs some research ;)08:40
rakhmerovI see08:40
d0ugalrakhmerov: https://review.openstack.org/#/c/300200/17/workbooks/baremetal.yaml08:41
rakhmerovd0ugal: yeah, it's send_message08:41
rakhmerov<% $.status or 'SUCCESS' %>08:41
rakhmerovit's not a valid YAQL08:41
d0ugalaha :)08:42
d0ugalso is $.get what I want?08:42
rakhmerovnot sure, let me check08:42
rakhmerovd0ugal: ok, seems like YAQL function coalesce() will work for you08:49
rakhmerovthis is how I made this conclusion: https://github.com/openstack/yaql/blob/master/yaql/tests/test_branching.py#L5108:50
rakhmerov:)08:50
rakhmerovthe doc is still really pure for YAQL unfortunately08:50
d0ugalrakhmerov: oh, interesting. I didn't know about that function, I'll try it08:52
rakhmerovd0ugal: ok08:53
d0ugalYeah, I was considering trying to improve the docs but I am still learning08:53
d0ugalThanks!08:53
rakhmerovme too )08:53
rakhmerovat some point we'll have to improve the doc )08:53
rakhmerovotherwise we'll be spending most of our time sitting in IRC and answering YAQL syntax questions08:54
*** dmk0202 has joined #openstack-mistral09:02
kongmflobo: ping09:20
openstackgerritLingxian Kong proposed openstack/mistral: Release note for magnum actions support  https://review.openstack.org/32989409:23
d0ugalrakhmerov: I get the same error with coalesce btw, so I think it is because the status key doesn't exist.09:24
rakhmerovd0ugal: did you change this YAQL everywhere in WF?09:25
d0ugalrakhmerov: Yeah, search and replace09:25
d0ugalrakhmerov: The new error was the same but with coalesce in it :)09:25
rakhmerovhm.. as far as I remember, it shouldn't curse if a key doesn't exist09:25
d0ugalusing .get like therve suggested seemed to work09:25
rakhmerovshould just return None09:25
d0ugal<% $.get('status', 'SUCCESS') %>09:25
rakhmerovooh, ok09:26
rakhmerovthere might have been some changes recently in semantics of $.key_name thing09:26
rakhmerovok09:26
d0ugalRight, possibly.09:26
d0ugalI think the current approach did work at some point for us too09:26
ddejarakhmerov: one short question regarding RPC: all implementation should follow oslo.messaging patterns? I mean, all clients should implements two methods: call_sync and call_async and can I assume that they should behave similar to oslo.messaging call and cast? http://docs.openstack.org/developer/oslo.messaging/rpcclient.html#oslo_messaging.RPCClient.call09:36
ddejarakhmerov: And another one: is there a document describing how engine communicates with executor?09:38
ddejathat would help me a lot09:38
rakhmerovddeja: on the first one: absolutely no09:39
rakhmerovwe have our own protocol which is expressed by our RPC interfaces09:40
rakhmerovand whatever implements them can be used09:40
rakhmerovregardless of what oslo.messaging provides09:40
ddejarakhmerov: OK, but our kombu driver should be similar to oslo.messaging right? (despite ACK-then-process vs process-then-ACK feature)09:41
rakhmerovon the second question: there's no good doc I think, it's basically just classes in rpc.py that tell how communications look like09:41
rakhmerovEngineClient, ExecutorClient09:41
rakhmerovthis is all our protocol09:42
rakhmerovddeja: why similar?09:42
ddejarakhmerov: on second - oh, OK, I was wondering if there is something else ;)09:42
rakhmerovddeja: basically the idea is the following: we have several methods in EngineClient and ExecutorClient09:42
rakhmerovfor example, ExecutorClient.run_action()09:43
ddejarakhmerov: I mean - kombu async_call should behave like oslo.messaging cast - send a message and return imidiately. And same kombu sync_call should behave like oslo.messaging call - send a message and wait for response09:43
rakhmerovthis is a part of our high-level protocol09:43
rakhmerovyeah, but you're talk about impl details09:43
ddejarakhmerov: yup, that's what I wanted to confirm :)09:44
rakhmerovunderneath it can be implemented in different ways, but maybe yes, you're right09:44
rakhmerovwhenever we have to deal with sync calls we have to do some waitings09:44
ddejaOK, cool09:44
rakhmerovalthough those waitings are evil, IMO09:44
ddejathanks, I was a little confused after going deep into code and need some clarification so I can sort everything out in my mind :)09:45
ddejabut now everything is clear for me09:45
szaherrakhmerov: Hi, Yes I am using liberty09:52
rakhmerovszaher: then you pain is explainable09:52
rakhmerov..your pain..09:52
rakhmerovis there a possibility to switch to a newer version?09:53
szaherI am Ok as long as this has no effect/conflict on my liberty env09:53
rakhmerovddeja: yeah, don't stick too much to existing Nikolay's code09:53
rakhmerovszaher: I see, that stack trace is a known problem which is caused by oslo.messaging and the patch has been backported into Mitaka09:54
rakhmerovbut may be pretty hard to backport it to Liberty09:54
ddejarakhmerov: I helped him with this yesterday ;)09:55
ddejabut there was still some authentication issue09:55
rakhmerovooh, ok09:55
ddejathat didn't show in liberty09:55
ddejawith same mistral.conf09:55
*** saphi has joined #openstack-mistral09:56
szaherby the way according to the log mistral was able to list images but he failed in getting the requested Image !09:56
ddejaszaher: One thing, can you show your workflow?09:58
szaherddeja rakhmerov: http://paste.openstack.org/show/516531/09:58
szaherddeja: This is the action that I would like to run https://github.com/openstack/mistral-extra/blob/stable/liberty/examples/v2/openstack/glance_actions.yaml09:58
rakhmerovyeah, I remember something like this...09:59
rakhmerovnmakhotkin: hi Nikolay, can you please look at this printout? As far as I remember you worked on fixing this or similar problem10:00
*** cheneydc has quit IRC10:01
szaherrakhmerov: any idea about the authentication error ?10:11
rakhmerovnot yet, I want to wait for nmakhotkin, he should know10:12
szaherOk. Please, let me know if you got any update.10:12
openstackgerrithardik proposed openstack/mistral: Refactored tempest tests  https://review.openstack.org/33043810:20
rakhmerovszaher: ok, sorry for this10:20
nmakhotkinhi, szaher, rakhmerov10:23
nmakhotkinas far as I remember, this error was related to inproper initialization of API client10:23
nmakhotkinor it also might be due to the trust-scoped token (but as I see, the token is not trust-scoped)10:24
nmakhotkinthe similiar thing I saw in novaclient when requesting servers_list using trusted token10:25
nmakhotkinbut here it seems it is a bit another issue10:26
szahernmakhotkin: http://paste.openstack.org/show/516536/10:26
szahernmakhotkin: Hi. I pasted my keystone auth configuration in this paste10:28
szahercould you please, take a look and let me know what am doing wrong ?10:29
nmakhotkinszaher, could you please try the same workflow using your admin credentials from this conf?10:29
nmakhotkinis it succeed?10:29
szahermistral user is admin10:29
szahernmakhotkin: http://paste.openstack.org/show/516531/ This is the log for this action10:30
nmakhotkinszaher: what credentials are you using when you start workflow?10:31
nmakhotkinthe same as in conf or another?10:31
szahernmakhotkin: I didn't provide additional credentials and I don't know even how to do that10:34
nmakhotkinhmm10:34
nmakhotkinszaher: Do you use mistral CLI for starting workflows?10:35
nmakhotkinthen you should have in your env variables named 'OS_USERNAME', 'OS_PASSWORD' and so on10:35
szaherYes10:36
szaherI am using different credentials10:36
nmakhotkinand these variables are used when you start workflow10:36
nmakhotkintry to provide admin credentials and start workflow10:36
szaherOS_USERNAME=admin10:36
nmakhotkinI mean credentials which are in mistral.conf10:36
szaherinstead of mistral user (which is admin) I should provide the admin credentials ?10:37
nmakhotkinno no10:37
nmakhotkinTry to use credentials from mistral.conf10:38
nmakhotkinfor you it would be OS_USERNAME=mistral10:38
szaherOk, I need to export the same credentials in my client env10:38
szaherrakhmerov: by the way you have this bug in mitaka branch http://paste.openstack.org/show/516538/10:38
*** saphi has quit IRC10:43
openstackgerritMerged openstack/mistral: Release note for magnum actions support  https://review.openstack.org/32989410:49
szahernmakhotkin: I don't why I am keep getting this error even in mitaka branch http://paste.openstack.org/show/516542/10:56
szaherrakhmerov: I would say mistral mitaka is broken as well !10:57
szaherstable/mitaka is broken10:57
szahernmakhotkin: I used the same credentials and it's not working11:03
rakhmerovszaher: ok, I see11:05
rakhmerovwe'll look at it11:06
szaherrakhmerov: Could you please, suggest one single branch that I can use to install mistral ?11:06
szaherrakhmerov: till now I spent 3 days installing mistral and till now it's causing a lot of problems and it's not working !11:07
openstackgerritAndras Kovi proposed openstack/mistral: Use client credentials to retrieve service list  https://review.openstack.org/33046911:09
szaherrakhmerov: are you here ?11:14
rakhmerovon a meeting11:14
rakhmerovszaher: people use both Liberty and Mitaka, Mitaka is more stable apparently11:15
rakhmerovthe issue you have is probably not an installation issue11:16
rakhmerovit's a problem with some OpenStack actions11:16
rakhmerovwe'll have to look at it11:16
rakhmerovszaher: please file bugs at Launchpad, we'll be addressing them11:17
rakhmerovbugs are possible :)11:17
szaherrakhmerov: I would say if people are using mistral so this means at least something should work !11:21
szaherThe basic test which is getting the first image id or name is not working11:22
rakhmerovszaher: I got it11:22
rakhmerovno need to repeat11:22
rakhmerovwe'll look at it11:22
rakhmerovthese OpenStack actions is not a core part of Mistral btw, it's rather an extension11:23
rakhmerovand it's hard to maintain for a huge number of reasons11:23
rakhmerovsomething might not work, so we need to look at it and fix it11:24
szaher\q11:24
rakhmerovszaher: it's also Open Source and you can help us fix it11:25
rakhmerovresources are kind of limited11:25
rakhmerovszaher: do you have any other problems except not working Glance action?11:34
rakhmerovwhere we could try to help11:34
rakhmerovszaher: btw, these OpenStack actions are not being completely reworked since we realized some time ago that they are not designed well enough11:35
rakhmerovthey will be changed almost completely in this cycle11:36
rakhmerovin Newton11:36
openstackgerritDawid Deja proposed openstack/mistral: New RPC layer implementation  https://review.openstack.org/19411711:48
openstackgerritDawid Deja proposed openstack/mistral: Integrating new RPC layer with Mistral  https://review.openstack.org/19756311:48
openstackgerritDawid Deja proposed openstack/mistral: Make RPC implementation configurable  https://review.openstack.org/19756211:48
openstackgerritDawid Deja proposed openstack/mistral: Adding OsloRPC server and client  https://review.openstack.org/19756111:48
openstackgerritDawid Deja proposed openstack/mistral: Add tests for Kombu driver  https://review.openstack.org/33048311:48
mflobokong, pong11:48
*** dprince has joined #openstack-mistral11:54
openstackgerritDawid Deja proposed openstack/mistral: Integrating new RPC layer with Mistral  https://review.openstack.org/19756312:00
openstackgerritDawid Deja proposed openstack/mistral: Add tests for Kombu driver  https://review.openstack.org/33048312:00
*** shardy has quit IRC12:04
*** bobh has joined #openstack-mistral12:19
*** bobh has quit IRC12:47
*** bobh has joined #openstack-mistral13:19
szaherrakhmerov: How can I debug the messages to fix this https://bugs.launchpad.net/mistral/+bug/1593227 ?14:05
openstackLaunchpad bug 1593227 in Mistral "mistral messaging error " [Undecided,New]14:05
szahernmakhotkin: still getting the auth problem14:20
szaherHow can I solve it, any ideas ?14:20
*** jistr is now known as jistr|mtg14:28
nmakhotkinszaher: Try to use glance CLI14:30
nmakhotkincommand glance image-list14:30
nmakhotkinit seems even in this case you should get auth problem14:31
szaherworking fine14:31
szahernmakhotkin: do you want it from server side or client side ?14:34
*** rrecio has joined #openstack-mistral15:05
*** rrecio_ has joined #openstack-mistral15:12
*** rrecio has quit IRC15:12
*** jistr|mtg is now known as jistr15:19
*** rbrady has quit IRC15:20
*** rbrady has joined #openstack-mistral15:31
*** openstackgerrit has quit IRC15:34
*** openstackgerrit has joined #openstack-mistral15:34
*** dprince has quit IRC16:01
*** dprince has joined #openstack-mistral16:02
*** gyee has joined #openstack-mistral16:06
*** dprince has quit IRC16:20
*** dprince has joined #openstack-mistral16:21
*** dmk0202 has quit IRC16:42
openstackgerritAndras Kovi proposed openstack/mistral: Use client credentials to retrieve service list  https://review.openstack.org/33046918:11
*** gyee has quit IRC18:25
*** tonytan4ever has joined #openstack-mistral18:43
*** dmk0202 has joined #openstack-mistral18:44
*** dmk0202 has quit IRC18:45
openstackgerritAndras Kovi proposed openstack/mistral: Example Mistral docker container broke due to oslo.policy update  https://review.openstack.org/33074818:57
*** dprince has quit IRC19:27
*** dmk0202 has joined #openstack-mistral19:40
*** dmk0202 has quit IRC19:43
*** tonytan4ever has quit IRC20:19
*** dmk0202 has joined #openstack-mistral20:23
*** gyee has joined #openstack-mistral20:24
*** rrecio_ has quit IRC21:23
*** dmk0202 has quit IRC21:38
*** bobh has quit IRC21:39
*** dmk0202 has joined #openstack-mistral22:04
*** dmk0202 has quit IRC22:39
*** chlong has quit IRC23:42
*** bobh has joined #openstack-mistral23:49
*** bobh has quit IRC23:53
*** bobh has joined #openstack-mistral23:59

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