[PATCH] Fix async operations with delegation for command line

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

 



Hi, 

Attached patch solves async operations with delegation for command line only, API fix hopefully will follow.

[boot.planet-lab.org-rc18] /usr/lib/python2.5/site-packages/func # func "*" call --async --delegate command run "/bin/ls /root"
Async error 2 0

Sub-overlord's log shows following with patched func;

* with async delegation

2010-08-02 21:04:09,566 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 delegation.run called with ('command', 'run', ['ls /root/'], [['planetlab-03.CS.Princeton.EDU'], ['planetlab-01.CS.Princeton.EDU'], ['planetlab-05.CS.Princeton.EDU'], ['planetlab-06.CS.Princeton.EDU'], ['planetlab-02.CS.Princeton.EDU'], ['planetlab-04.CS.Princeton.EDU']], True, 1)
2010-08-02 21:04:09,677 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 command.run called with ('ls /root/',)
2010-08-02 21:04:10,701 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 jobs.job_status called with ('1280783049.5665691-minion',)
2010-08-02 21:04:11,298 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 jobs.job_status called with ('1280783049.677701-minion',)
2010-08-02 21:04:12,491 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 jobs.job_status called with ('1280783049.5665691-minion',)
2010-08-02 21:04:12,892 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 jobs.job_status called with ('1280783049.5665691-minion',)
2010-08-02 21:04:13,253 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 jobs.job_status called with ('1280783049.5665691-minion',)
2010-08-02 21:04:13,634 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 jobs.job_status called with ('1280783049.5665691-minion',)

* with delegation

2010-08-02 21:03:52,349 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 delegation.run called with ('command', 'run', ['ls /root/'], [['planetlab-03.CS.Princeton.EDU'], ['planetlab-01.CS.Princeton.EDU'], ['planetlab-05.CS.Princeton.EDU'], ['planetlab-06.CS.Princeton.EDU'], ['planetlab-02.CS.Princeton.EDU'], ['planetlab-04.CS.Princeton.EDU']], False, 1)
2010-08-02 21:03:53,737 - 128.112.139.91 boot.planet-lab.org-CA-KEY 676979184 command.run called with ('ls /root/',)

Attachment: delegation.patch
Description: Binary data


Best regards,
--
S.Çağlar Onur <caglar@xxxxxxxxxxxxxxxx>

_______________________________________________
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