On Mon, Jan 13, 2014 at 7:32 AM, Bhuvan Arumugam <[email protected]> wrote:
> On Fri, Jan 10, 2014 at 11:24 PM, Sergey Skripnick < > [email protected]> wrote: > >> >> I appreciate that we want to fix the ssh client. I'm not certain that >>> writing our own is the best >answer. >>> >> >> I was supposed to fix oslo.processutils.ssh with this class, but it may >> be fixed without it, not big deal. >> >> >> >> >>> In his comments on your pull request, the paramiko author recommended >>> looking at Fabric. I know that >Fabric has a long history in production. >>> Does it provide the required features? >>> >>> >> Fabric is too much for just command execution on remote server. Spur >> seems like >> good choice for this. >> > > I'd go with Fabric. It support several remote server operations, file > upload/download among them. We could just import the methods we are > interested. It in turn use paramiko supporting most of ssh client options. > If we begin using fabric for file upload/download, it'll open door for more > remote server operations. Bringing in fabric as part of oslo will be cool. > Where are we doing those sorts of operations? Doug > > A quick demo script to upload/download files using fabric. > > from fabric.api import get, put, run, settings > > > > remote_host = 'localhost' > > with settings(host_string=remote_host): > > # what is the remote hostname? > > run('hostname -f') > > # download /etc/hosts file > > get('/etc/hosts') > > # upload /etc/bashrc to /tmp directory > > put('/etc/bashrc', '/tmp/bashrc') > > The output may look like: > > [localhost] run: hostname -f > [localhost] out: rainbow.local > [localhost] out: > > [localhost] download: /Users/bhuvan/localhost/hosts <- /etc/hosts > [localhost] put: /etc/bashrc -> /tmp/bashrc > > -- > Regards, > Bhuvan Arumugam > www.livecipher.com > > _______________________________________________ > OpenStack-dev mailing list > [email protected] > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
_______________________________________________ OpenStack-dev mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
