*** alejandrito has quit IRC | 00:41 | |
*** sergmelikyan has joined #murano | 01:26 | |
*** sergmelikyan has quit IRC | 01:38 | |
*** sergmelikyan has joined #murano | 01:44 | |
*** zhurong_ has joined #murano | 02:03 | |
*** zhurong has quit IRC | 02:04 | |
*** kzaitsev_mb has quit IRC | 02:25 | |
*** zhurong_ has quit IRC | 02:28 | |
*** wasmum has quit IRC | 02:49 | |
*** vahidh has joined #murano | 04:39 | |
*** vahidh has quit IRC | 04:44 | |
*** sergmelikyan has quit IRC | 04:50 | |
*** vgridnev has joined #murano | 05:16 | |
*** vgridnev has quit IRC | 05:42 | |
*** vgridnev has joined #murano | 06:12 | |
*** vgridnev has quit IRC | 06:24 | |
*** vgridnev has joined #murano | 07:10 | |
*** vgridnev has quit IRC | 07:15 | |
*** gangadhar has joined #murano | 07:16 | |
*** vgridnev has joined #murano | 07:18 | |
*** vahidh has joined #murano | 08:01 | |
*** vahidh_ has joined #murano | 08:06 | |
*** vahidh has quit IRC | 08:07 | |
*** vahidh has joined #murano | 08:10 | |
*** vahidh_ has quit IRC | 08:11 | |
*** vahidh_ has joined #murano | 08:12 | |
*** vahidh has quit IRC | 08:15 | |
*** vahidh_ has quit IRC | 08:32 | |
*** vahidh has joined #murano | 08:32 | |
openstackgerrit | janonymous proposed openstack/murano-agent: py26 is no longer supported by Infra's CI https://review.openstack.org/261676 | 08:36 |
---|---|---|
*** vahidh has quit IRC | 08:36 | |
*** vgridnev has quit IRC | 09:51 | |
*** kzaitsev_mb has joined #murano | 09:55 | |
*** zhurong has joined #murano | 10:06 | |
*** zhurong has quit IRC | 10:26 | |
*** kzaitsev_mb has quit IRC | 10:28 | |
*** zhurong has joined #murano | 10:29 | |
*** kzaitsev_mb has joined #murano | 10:36 | |
*** vahidh has joined #murano | 10:44 | |
gangadhar | Hi all. I have created a "type: text" in form. I have to write that content to a file in instance. | 10:47 |
gangadhar | But I'm unable to do it | 10:47 |
slagun | gangadhar: hi! | 10:47 |
slagun | why? | 10:47 |
kzaitsev_mb | gangadhar: see =) the channel is alive =)) | 10:48 |
*** vahidh has quit IRC | 10:48 | |
gangadhar | Just let me share the logs | 10:49 |
*** zhurong has quit IRC | 10:49 | |
slagun | The problem with IRC is that you cannot leave a message to a user that already went offline. I saw that gangadhar had a question to me but I couldn't answer because it was too late | 10:52 |
kzaitsev_mb | yeah =) | 10:52 |
kzaitsev_mb | gangadhar: you need to have a bot ;) | 10:52 |
gangadhar | Last time my question is: "How to parse a json string in MuranoPL?" | 10:53 |
kzaitsev_mb | that would stay online in this channel forever, just in case you want to ask smth, but no one's around we would answer to bot and you'll be able to read responses later =) | 10:53 |
gangadhar | I'm not sure how I can do that? | 10:56 |
slagun | gangadhar: currently there is no function to parse JSON string. But you can load JSON file from resources | 11:00 |
slagun | or write Python plugin to have it | 11:00 |
gangadhar | stagun: pls take a look at this image | 11:00 |
gangadhar | http://www.tiikoni.com/tis/view/?id=cb160c1 | 11:01 |
gangadhar | And the error is: u'stderr': u'/bin/sh: 2: account:some@app.com,\n: not found\n/bin/sh: 3: code:1nlk4,\n: not found\n/bin/sh: 4: options:something\n: not found\n/bin/sh: 5: Syntax error: "}" unexpected', u'exitCode': 2}, 'time': u'2015-12-26 10:57:48.531841'} | 11:01 |
slagun | Looks like you're trying to execute it rather than write somewhere | 11:02 |
slagun | Are you using Murano Liberty? | 11:02 |
gangadhar | I want to write that content to some file. So I'm sending it to as a arg to bash script. And while executing that script, it's throwing errors | 11:04 |
gangadhar | slagun: Yes, it's Murano Liberty | 11:04 |
slagun | There is a helper method in core library that does just that | 11:05 |
slagun | https://github.com/openstack/murano/blob/master/meta/io.murano/Classes/configuration/Linux.yaml#L56 | 11:05 |
slagun | - $linux: new(sys:Linux) | 11:05 |
slagun | - $linux.putFile($.instance.agent, $.propertyWithFileContent, '/path/on/vm') | 11:05 |
slagun | This is just a helper. You can do this using regular execution plans. Probably you just did it wrong. You can take a look on putFile implementation to compare it with yours | 11:07 |
gangadhar | Yes, I remember. Example link: https://github.com/openstack/murano-specs/blob/master/specs/liberty/simple-software-configuration.rst | 11:07 |
slagun | yes | 11:07 |
slagun | regarding the json parsing - 3rd option is to do it on VM site. For example using Python script that is execution plan Body | 11:09 |
slagun | gangadhar: is there any new info on agent timeout problem? | 11:11 |
gangadhar | Yes, composing mail. | 11:12 |
*** kzaitsev_mb has quit IRC | 11:20 | |
*** kzaitsev_mb has joined #murano | 11:20 | |
gangadhar | slagun: Have you got a chance to check mail? | 11:35 |
gangadhar | kzaitsev_mb: Sorry, I can't have a bot. What if they take control of our planet away from the human race? :( | 11:40 |
*** zhurong has joined #murano | 11:46 | |
slagun | gangadhar: what have you done to get Broken Pipe error on VM? | 11:48 |
slagun | :)) | 11:48 |
gangadhar | OMG! I didn't do anything. | 11:49 |
slagun | also you don't need jq to parse json | 11:49 |
slagun | Broken pipe means that VM lost connectivity with RabbitMQ | 11:49 |
gangadhar | slagun: Oh! | 11:50 |
slagun | the connection was aborted | 11:50 |
gangadhar | what should we do then? | 11:50 |
slagun | Find out what script and why causes that. If it is not script then something with you hardware or OpenStack setup. Maybe RabbitMQ is unstable for some reason | 11:51 |
slagun | that is something that impossible to tell from murano logs | 11:51 |
gangadhar | I can share the script. | 11:51 |
gangadhar | I thought it's because of error: autoScale.sh' execution stderr: 'dpkg-preconfigure: unable to re-open stdin: No such file or directory | 11:52 |
slagun | maybe it is related | 11:52 |
slagun | I'm not a big expert in Linux and bash | 11:52 |
gangadhar | me either. | 11:54 |
gangadhar | So, there is no problem in Murano. You feel the problem might be in devStack, right? | 11:55 |
slagun | The problem is either in the script (it breaks the agent or something on VM) or in devstack/hardware/RabbitMQ/networking etc. I'm, 95% sure | 11:57 |
slagun | I had similar issue once before. It turned out that it happened due to the script done some changes to firewall rules on VM | 11:57 |
gangadhar | slagun: Here is the script file: http://paste.openstack.org/show/482718/ | 11:57 |
slagun | So what I did to debug it is that I manually sent the same command over RabbitMQ and commented the script line by line to see where it breaks | 11:58 |
gangadhar | And you said no need to use jq for parsing. What does it mean? | 11:59 |
slagun | the first think to start with is to add some sort of logging after each script line to see how it goes | 11:59 |
slagun | I don't know why do you need to parse json at all. Here is an example that works with json: https://github.com/openstack/murano-apps/blob/master/Docker/Kubernetes/KubernetesCluster/package/Resources/UpdatePod.template#L22 | 12:00 |
gangadhar | Here is my question: That script runs in middle of deployment. If that script is blocking the agent then deployment should fail. But deployment finished with success. | 12:03 |
*** enthurohini has joined #murano | 12:04 | |
*** akanksha_ has joined #murano | 12:05 | |
slagun | how does it succeed if you get timeout? | 12:07 |
slagun | if deployment succeed then it is not the problem with this script. It is either with the scripts that are used for actions later or with network connectivity | 12:08 |
slagun | the second is much more likely if you haven't modified all the actions | 12:09 |
slagun | agent can reconnect if it detects the problem and it is temporary | 12:09 |
gangadhar | That script is running under environment deployment time. | 12:10 |
gangadhar | If we invoke action, then it's not responding at first occurrence of $.instance.agent.call(..). | 12:11 |
slagun | So try to deploy and then invoke the action. Instead of waiting for timeout ssh to the instance and check what is going on. Is there a network connectivity to the RabbitMQ? Has what is the script that agent is running at the moment? Did it received the script at all? What happens if you restart the agent? Once you answer those questions you will get much more information | 12:13 |
gangadhar | OK, sure | 12:16 |
gangadhar | on DevStack machine: ps -Af | grep murano-* | 13:10 |
gangadhar | 28860 28858 1 Dec21 pts/29 01:30:42 /usr/bin/python /usr/local/bin/murano-api --config-file /etc/murano/murano.conf | 13:10 |
*** ducttape_ has joined #murano | 13:10 | |
gangadhar | 28919 28918 1 Dec21 pts/30 01:43:13 /usr/bin/python /usr/local/bin/murano-engine --config-file /etc/murano/murano.conf | 13:10 |
gangadhar | 29506 29505 1 Dec21 pts/31 01:23:04 /usr/bin/python /usr/local/bin/murano-api --config-file /etc/murano/murano.conf | 13:10 |
gangadhar | vedams 29562 29561 1 Dec21 pts/32 01:22:27 /usr/bin/python /usr/local/bin/murano-engine --config-file /etc/murano/murano.conf | 13:10 |
gangadhar | slagun: How can two murano-api/engine services are running on same machine? | 13:12 |
slagun | it is possible to have 2 engines, but not 2 APIs since they will try to listen on the same port | 13:15 |
slagun | baybe that is the problem | 13:15 |
slagun | maybe | 13:15 |
*** zhurong has quit IRC | 13:18 | |
*** ducttape_ has quit IRC | 13:19 | |
gangadhar | slagun: We have two devstack machines. One of them have like this. | 13:19 |
*** ducttape_ has joined #murano | 13:37 | |
*** ducttape_ has quit IRC | 14:01 | |
*** ducttape_ has joined #murano | 14:06 | |
*** enthurohini has quit IRC | 14:11 | |
*** enthurohini has joined #murano | 14:13 | |
*** ducttape_ has quit IRC | 14:34 | |
*** enthurohini has quit IRC | 14:39 | |
*** ducttape_ has joined #murano | 14:39 | |
*** jasonsb has quit IRC | 14:40 | |
*** ducttape_ has quit IRC | 14:44 | |
*** sergmelikyan has joined #murano | 14:51 | |
*** kzaitsev_mb has quit IRC | 14:54 | |
*** ducttape_ has joined #murano | 15:11 | |
*** enthurohini has joined #murano | 15:14 | |
*** ducttape_ has quit IRC | 15:15 | |
*** ducttape_ has joined #murano | 15:23 | |
*** akanksha_ has quit IRC | 15:27 | |
*** ducttape_ has quit IRC | 15:30 | |
*** jasonsb has joined #murano | 15:39 | |
*** ducttape_ has joined #murano | 15:43 | |
*** _ducttape_ has joined #murano | 15:45 | |
*** ducttape_ has quit IRC | 15:47 | |
*** _ducttape_ has quit IRC | 16:05 | |
*** sergmelikyan has quit IRC | 16:11 | |
*** ducttape_ has joined #murano | 16:13 | |
*** sergmeli_ has joined #murano | 16:16 | |
*** ducttape_ has quit IRC | 16:17 | |
*** ducttape_ has joined #murano | 17:14 | |
*** ducttape_ has quit IRC | 17:18 | |
*** ducttape_ has joined #murano | 18:14 | |
*** enthurohini has quit IRC | 18:15 | |
*** ducttape_ has quit IRC | 18:19 | |
*** ducttape_ has joined #murano | 19:15 | |
*** ducttape_ has quit IRC | 19:21 | |
*** vahidh has joined #murano | 19:21 | |
*** vahidh has quit IRC | 19:22 | |
*** sergmeli_ has quit IRC | 19:33 | |
*** ducttape_ has joined #murano | 21:18 | |
*** ducttape_ has quit IRC | 21:22 | |
*** ducttape_ has joined #murano | 22:19 | |
*** ducttape_ has quit IRC | 22:23 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!