Re: Module getfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

it is not so straightforward if there are more than one minion.

For copyfile, the overlord part uses:
if data:
                self.parent.run("copyfile", "append", [remotepath,
xmlrpclib.Binary(data)])

This applies to all target minions because it is the same file for all.

I can't do the opposite for getfile, because the action differs from
one minion to the other (the files can have different lengths)

I need to do something like this because I cut the files in chunks to get them:
for chunknum in range(chunkslen):
            checksum,chunk =  self.parent.run("getfile", "getchunk",
[chunknum, source]).items()[0][1]

It is fine when I restrict the target to one minion.

Do you know how I could do the run on one single minion (replacing
parent.run), so I just have to loop over the minions ?

I don't.

Louis


2010/9/30 seth vidal <skvidal@xxxxxxxxxxxxxxxxx>:
> On Thu, 2010-09-30 at 20:09 +0200, Louis Coilliot wrote:
>> Ok, but what if we reach the maximum filename length ?
>>
>> Wouldn't it be preferable to put the files in subfolder named with the
>> minion hostname ?
>
>
> sounds fine to me.
>
> -sv
>
>
>

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list


[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux