[Planetlab-devel] nodes booting
"S.Çağlar Onur"
caglar at cs.princeton.edu
Thu Aug 26 15:57:01 EDT 2010
Hi Thierry,
On Aug 25, 2010, at 3:33 PM, S.Çağlar Onur wrote:
> On Aug 25, 2010, at 7:57 AM, Thierry Parmentelat wrote:
>>
>> Anyone has a clue about a recent change that might cause this to happen ?
>
> I might have a clue about the source of the problem. Nearly a month ago I changed a buggy behavior of BootManager. sysexec function at source/utils.py was returning True even if the triggered command reports unsuccessful exit status. I guess that problem was living there for a long time but it just become visible with my latest changes.
>
>> -- thierry
I just realized that gpg command uses shell redirection to create that RPM-GPG-KEY-planetlab file whereas subprocess module captures stdout for itself. So I reverted the problematic commit for now but If you don't have any objections I want to introduce another util function (like sysexec_to_file) and change those shell syntaxes with python ones?
> sysexec >>> gpg --homedir=/root --export --armor --no-default-keyring --keyring /tmp/mnt/sysimg/usr/boot/pubring.gpg >/tmp/mnt/sysimg/etc/pki/rpm-gpg/RPM-GPG-KEY-planetlab
> sysexec >>> chroot /tmp/mnt/sysimg rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-planetlab
Best regards,
--
S.Çağlar Onur <caglar at cs.princeton.edu>
More information about the Devel
mailing list