[Planetlab-devel] Inconsistencies in records
Danny Y. Huang
yh1 at williams.edu
Thu Jun 18 16:58:48 EDT 2009
Hi,
Having been poking around the sfi.py utility recently, I am getting
inconsistent records from the PLC. Could someone please explain what I have
done wrong?
First, I have observed inconsistencies between SFI and the Planet-Lab.org
web interface. My advisor, a PI, added a new user (David, for the sake of
anonymity) to Williams in Planet-Lab.org yesterday. But when I do "./sfi.py
list plc.williams" today, the user is not listed. And when I do "./sfi.py
show plc.williams.david", sfi returns no record. Furthermore, we have a
slice called "gush", but it, too, fails to show up when I do "./sfi.py list
plc.williams". The Gush slice has been in existence for a long time, but why
doesn't it appear in the result?
Then, I have also noticed inconsistences within the SFI. For the purpose of
testing the resolve() method, I added the following method to sfi.py:
def moo(opts, args):
> global registry
> user_cred = get_user_cred()
> results = registry.resolve(user_cred, args[0])
> print results
>
In order for sfi.py to accept this new command, I added moo() to the list of
accepted commands in create_cmd_parser(). When I run "./sfi.py moo
plc.williams", both "plc.williams.gush" and "plc.williams.david" show up in
the result. Why are they here in the result of moo() yet not in "./sfi.py
list plc.williams"? In addition, my moo() method yields inconsistent
results. Although both David and Gush appear in "./sfi.py moo plc.williams",
their records are blank when I do "./sfi.py moo plc.williams.gush" and
"./sfi.py moo plc.williams.david" respectively.
Have I understood something incorrectly? Could someone please point out my
mistakes? Thank you!
Best,
Danny Y. Huang
http://sysnet1.cs.williams.edu
PS: I'm testing with my advisor's private key because I cannot get my RSA
key pairs to work. She's PI. This is my configSfi.sh file:
export SFI_AUTH=plc.williams
> export SFI_USER=$SFI_AUTH.jeannie
> export SFI_REGISTRY=http://128.112.139.90:12345/
> export SFI_SM=http://www.planet-lab.org:12347/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.planet-lab.org/pipermail/devel/attachments/20090618/94abfda8/attachment.html
More information about the Devel
mailing list