Saturday, 2015-12-26

*** alejandrito has quit IRC00:41
*** sergmelikyan has joined #murano01:26
*** sergmelikyan has quit IRC01:38
*** sergmelikyan has joined #murano01:44
*** zhurong_ has joined #murano02:03
*** zhurong has quit IRC02:04
*** kzaitsev_mb has quit IRC02:25
*** zhurong_ has quit IRC02:28
*** wasmum has quit IRC02:49
*** vahidh has joined #murano04:39
*** vahidh has quit IRC04:44
*** sergmelikyan has quit IRC04:50
*** vgridnev has joined #murano05:16
*** vgridnev has quit IRC05:42
*** vgridnev has joined #murano06:12
*** vgridnev has quit IRC06:24
*** vgridnev has joined #murano07:10
*** vgridnev has quit IRC07:15
*** gangadhar has joined #murano07:16
*** vgridnev has joined #murano07:18
*** vahidh has joined #murano08:01
*** vahidh_ has joined #murano08:06
*** vahidh has quit IRC08:07
*** vahidh has joined #murano08:10
*** vahidh_ has quit IRC08:11
*** vahidh_ has joined #murano08:12
*** vahidh has quit IRC08:15
*** vahidh_ has quit IRC08:32
*** vahidh has joined #murano08:32
openstackgerritjanonymous proposed openstack/murano-agent: py26 is no longer supported by Infra's CI  https://review.openstack.org/26167608:36
*** vahidh has quit IRC08:36
*** vgridnev has quit IRC09:51
*** kzaitsev_mb has joined #murano09:55
*** zhurong has joined #murano10:06
*** zhurong has quit IRC10:26
*** kzaitsev_mb has quit IRC10:28
*** zhurong has joined #murano10:29
*** kzaitsev_mb has joined #murano10:36
*** vahidh has joined #murano10:44
gangadharHi all. I have created a "type: text" in form. I have to write that content to a file in instance.10:47
gangadharBut I'm unable to do it10:47
slagungangadhar: hi!10:47
slagunwhy?10:47
kzaitsev_mbgangadhar: see =) the channel is alive =))10:48
*** vahidh has quit IRC10:48
gangadharJust let me share the logs10:49
*** zhurong has quit IRC10:49
slagunThe 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 late10:52
kzaitsev_mbyeah =)10:52
kzaitsev_mbgangadhar: you need to have a bot ;)10:52
gangadharLast time my question is: "How to parse a json string in MuranoPL?"10:53
kzaitsev_mbthat 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
gangadharI'm not sure how I can do that?10:56
slagungangadhar: currently there is no function to parse JSON string. But you can load JSON file from resources11:00
slagunor write Python plugin to have it11:00
gangadharstagun: pls take a look at this image11:00
gangadharhttp://www.tiikoni.com/tis/view/?id=cb160c111:01
gangadharAnd 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
slagunLooks like you're trying to execute it rather than write somewhere11:02
slagunAre you using Murano Liberty?11:02
gangadharI 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 errors11:04
gangadharslagun: Yes, it's Murano Liberty11:04
slagunThere is a helper method in core library that does just that11:05
slagunhttps://github.com/openstack/murano/blob/master/meta/io.murano/Classes/configuration/Linux.yaml#L5611:05
slagun- $linux: new(sys:Linux)11:05
slagun- $linux.putFile($.instance.agent, $.propertyWithFileContent, '/path/on/vm')11:05
slagunThis 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 yours11:07
gangadharYes, I remember. Example link: https://github.com/openstack/murano-specs/blob/master/specs/liberty/simple-software-configuration.rst11:07
slagunyes11:07
slagunregarding the json parsing - 3rd option is to do it on VM site. For example using Python script that is execution plan Body11:09
slagungangadhar: is there any new info on agent timeout problem?11:11
gangadharYes, composing mail.11:12
*** kzaitsev_mb has quit IRC11:20
*** kzaitsev_mb has joined #murano11:20
gangadharslagun: Have you got a chance to  check mail?11:35
gangadharkzaitsev_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 #murano11:46
slagungangadhar: what have you done to get Broken Pipe error on VM?11:48
slagun:))11:48
gangadharOMG! I didn't do anything.11:49
slagunalso you don't need jq to parse json11:49
slagunBroken pipe means that VM lost connectivity with RabbitMQ11:49
gangadharslagun: Oh!11:50
slagunthe connection was aborted11:50
gangadharwhat should we do then?11:50
slagunFind 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 reason11:51
slagunthat is something that impossible to tell from murano logs11:51
gangadharI can share the script.11:51
gangadharI thought it's because of error: autoScale.sh' execution stderr: 'dpkg-preconfigure: unable to re-open stdin: No such file or directory11:52
slagunmaybe it is related11:52
slagunI'm not a big expert in Linux and bash11:52
gangadharme either.11:54
gangadharSo, there is no problem in Murano. You feel the problem might be in devStack, right?11:55
slagunThe problem is either in the script (it breaks the agent or something on VM) or in devstack/hardware/RabbitMQ/networking etc. I'm, 95% sure11:57
slagunI had similar issue once before. It turned out that it happened due to the script done some changes to firewall rules on VM11:57
gangadharslagun: Here is the script file: http://paste.openstack.org/show/482718/11:57
slagunSo 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 breaks11:58
gangadharAnd you said no need to use jq for parsing. What  does it mean?11:59
slagunthe first think to start with is to add some sort of logging after each script line to see how it goes11:59
slagunI 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#L2212:00
gangadharHere 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 #murano12:04
*** akanksha_ has joined #murano12:05
slagunhow does it succeed if you get timeout?12:07
slagunif 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 connectivity12:08
slagunthe second is much more likely if you haven't modified all the actions12:09
slagunagent can reconnect if it detects the problem and it is temporary12:09
gangadharThat script is running under environment deployment time.12:10
gangadharIf we invoke action, then it's not responding at first occurrence of $.instance.agent.call(..).12:11
slagunSo 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 information12:13
gangadharOK, sure12:16
gangadharon DevStack machine: ps -Af | grep murano-*13:10
gangadhar28860 28858  1 Dec21 pts/29   01:30:42 /usr/bin/python /usr/local/bin/murano-api --config-file /etc/murano/murano.conf13:10
*** ducttape_ has joined #murano13:10
gangadhar28919 28918  1 Dec21 pts/30   01:43:13 /usr/bin/python /usr/local/bin/murano-engine --config-file /etc/murano/murano.conf13:10
gangadhar29506 29505  1 Dec21 pts/31   01:23:04 /usr/bin/python /usr/local/bin/murano-api --config-file /etc/murano/murano.conf13:10
gangadharvedams   29562 29561  1 Dec21 pts/32   01:22:27 /usr/bin/python /usr/local/bin/murano-engine --config-file /etc/murano/murano.conf13:10
gangadharslagun: How can two murano-api/engine services are running on same machine?13:12
slagunit is possible to have 2 engines, but not 2 APIs since they will try to listen on the same port13:15
slagunbaybe that is the problem13:15
slagunmaybe13:15
*** zhurong has quit IRC13:18
*** ducttape_ has quit IRC13:19
gangadharslagun: We have two devstack machines. One of them have like this.13:19
*** ducttape_ has joined #murano13:37
*** ducttape_ has quit IRC14:01
*** ducttape_ has joined #murano14:06
*** enthurohini has quit IRC14:11
*** enthurohini has joined #murano14:13
*** ducttape_ has quit IRC14:34
*** enthurohini has quit IRC14:39
*** ducttape_ has joined #murano14:39
*** jasonsb has quit IRC14:40
*** ducttape_ has quit IRC14:44
*** sergmelikyan has joined #murano14:51
*** kzaitsev_mb has quit IRC14:54
*** ducttape_ has joined #murano15:11
*** enthurohini has joined #murano15:14
*** ducttape_ has quit IRC15:15
*** ducttape_ has joined #murano15:23
*** akanksha_ has quit IRC15:27
*** ducttape_ has quit IRC15:30
*** jasonsb has joined #murano15:39
*** ducttape_ has joined #murano15:43
*** _ducttape_ has joined #murano15:45
*** ducttape_ has quit IRC15:47
*** _ducttape_ has quit IRC16:05
*** sergmelikyan has quit IRC16:11
*** ducttape_ has joined #murano16:13
*** sergmeli_ has joined #murano16:16
*** ducttape_ has quit IRC16:17
*** ducttape_ has joined #murano17:14
*** ducttape_ has quit IRC17:18
*** ducttape_ has joined #murano18:14
*** enthurohini has quit IRC18:15
*** ducttape_ has quit IRC18:19
*** ducttape_ has joined #murano19:15
*** ducttape_ has quit IRC19:21
*** vahidh has joined #murano19:21
*** vahidh has quit IRC19:22
*** sergmeli_ has quit IRC19:33
*** ducttape_ has joined #murano21:18
*** ducttape_ has quit IRC21:22
*** ducttape_ has joined #murano22:19
*** ducttape_ has quit IRC22:23

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