Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Heat custom resource plugin

Hi Team, I am trying to write a custom resource for heat.The plugin's purpose its to copy scripts to remote machine using ssh. handle_create method is not waiting for copy to finish using paramiko (its not even triggering os.system or subprocess.call ) The same piece of code works fine outside heat plugin.

import subprocess pipe=subprocess.Popen(["/usr/bin/scp","-i","/opt/scripts/key_heat.pem","/opt/scripts/cloudadmin.tar.gz" ,"centos@172.20.3.208:/home/centos"],stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait()

Please help me

Thanks Upendra

click to hide/show revision 2
No.2 Revision

Heat custom resource plugin

Hi Team, I am trying to write a custom resource for heat.The plugin's purpose its to copy scripts to remote machine using ssh. handle_create method is not waiting for copy to finish using paramiko (its not even triggering os.system or subprocess.call ) The same piece of code works fine outside heat plugin.

import subprocess
pipe=subprocess.Popen(["/usr/bin/scp","-i","/opt/scripts/key_heat.pem","/opt/scripts/cloudadmin.tar.gz" ,"centos@172.20.3.208:/home/centos"],stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait()

stderr=subprocess.STDOUT).wait()

Please help me

Thanks Upendra