Sapan Bhatia [Mon, 8 Jun 2009 03:24:40 +0000 (03:24 +0000)]
First approximation of WSDL generator for PLCAPI
Thierry Parmentelat [Sun, 7 Jun 2009 08:50:28 +0000 (08:50 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-19
bugfix for some rare pattern-based filters
Thierry Parmentelat [Fri, 5 Jun 2009 04:19:47 +0000 (04:19 +0000)]
bugfix for filters based on a pattern with *f or *d
e.g. GetPersons({'email':'*fake*'}) resulted in an sql fragment "email LIKE '%sake%'"
Thierry Parmentelat [Wed, 3 Jun 2009 21:41:17 +0000 (21:41 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-18
improvements in the 4.2 legacy layer
Marc Fiuczynski [Tue, 2 Jun 2009 14:29:46 +0000 (14:29 +0000)]
v42 backwards compatibility to make scripts like gen-sites-xml.py etc. work
Marc Fiuczynski [Tue, 2 Jun 2009 14:11:23 +0000 (14:11 +0000)]
Improved filter v42 backward compatibility handling for both argument
and return filters.
Thierry Parmentelat [Sat, 30 May 2009 10:23:36 +0000 (10:23 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-17
bugfix required for slice tags set on nodegroups
Marc Fiuczynski [Fri, 29 May 2009 20:54:46 +0000 (20:54 +0000)]
hotfix: slice_tags is a list of Table dictionary entries and slice_tag['tagname'] is a unique string for which the __eq__ in Table.py croaks
Thierry Parmentelat [Thu, 28 May 2009 07:14:54 +0000 (07:14 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-16
more complete compatibility layer - second iteration, with legacy code isolated in Legacy/
Marc Fiuczynski [Wed, 27 May 2009 16:55:07 +0000 (16:55 +0000)]
bug fix: instantiating Roles() only takes 2 args, not three.
Marc Fiuczynski [Wed, 27 May 2009 16:05:14 +0000 (16:05 +0000)]
Updated can_update() and can_view() to check on "roles" capabilities
rather than use the relative values of role_ids. The code now
functions even when a person has no roles whatsoever, which under
certain error conditions can occur.
Marc Fiuczynski [Tue, 26 May 2009 21:40:41 +0000 (21:40 +0000)]
move legacy v42 methods to Legacy/ sub directory
Marc Fiuczynski [Tue, 26 May 2009 21:13:55 +0000 (21:13 +0000)]
re-introduce a Legacy directory to clear out deprecated methods from the Methods directory
Marc Fiuczynski [Tue, 26 May 2009 17:19:00 +0000 (17:19 +0000)]
php/methods.py requires that the class in each of these Methods/* files matches the name of the file
Marc Fiuczynski [Tue, 26 May 2009 15:13:35 +0000 (15:13 +0000)]
Needed to add documentation for the class definition
Thierry Parmentelat [Tue, 26 May 2009 13:48:49 +0000 (13:48 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-15
more powerful legacy layer with 4.2
Marc Fiuczynski [Sun, 24 May 2009 19:30:05 +0000 (19:30 +0000)]
Lets leave PL type checking enabled, as the type check on the 'auth'
argument sets up self.caller that is needed in some of the calls.
Tests of AddInterface & DeleteNodeNetwork and vice versa function
correctly. Still need to validate the same for the others such as
SliceAttributes & SliceTags, NodeNetworkSettings & InterfaceTag, and
*Type calls.
Marc Fiuczynski [Sun, 24 May 2009 00:55:23 +0000 (00:55 +0000)]
fix import error, v2rename->v42rename
Marc Fiuczynski [Sun, 24 May 2009 00:50:18 +0000 (00:50 +0000)]
match 'call' signature exactly
Marc Fiuczynski [Sat, 23 May 2009 03:32:55 +0000 (03:32 +0000)]
fix mojito+caiprinha induced typo
Marc Fiuczynski [Sat, 23 May 2009 03:30:47 +0000 (03:30 +0000)]
only use has_key method on dict instances
Marc Fiuczynski [Fri, 22 May 2009 04:43:11 +0000 (04:43 +0000)]
More complete handling of 4.2 calls mapped to 4.3 calls.
Marc Fiuczynski [Fri, 22 May 2009 04:13:42 +0000 (04:13 +0000)]
Mark these as 'deprecated'
Marc Fiuczynski [Fri, 22 May 2009 03:55:18 +0000 (03:55 +0000)]
v4.2 backwards compatibility
Marc Fiuczynski [Fri, 22 May 2009 03:54:35 +0000 (03:54 +0000)]
make sure GetNodes has a doc section
Marc Fiuczynski [Fri, 22 May 2009 03:27:01 +0000 (03:27 +0000)]
Implemented legacy support for GetNodes using proper inheritance
rather than behind the scenes python trickery.
Marc Fiuczynski [Thu, 21 May 2009 22:08:49 +0000 (22:08 +0000)]
This replaces the existing Legacy/* support with a new approach that
attempts to more cleanly integrate with the way the API functions in
terms of the way authentication, documentation/help, etc. operates.
Marc Fiuczynski [Thu, 21 May 2009 01:49:47 +0000 (01:49 +0000)]
auth fix
Marc Fiuczynski [Thu, 21 May 2009 01:45:09 +0000 (01:45 +0000)]
get self.caller to work
Marc Fiuczynski [Thu, 21 May 2009 01:44:44 +0000 (01:44 +0000)]
break out mapping to auth class into map_auth() function
Marc Fiuczynski [Thu, 21 May 2009 01:42:33 +0000 (01:42 +0000)]
rename argument type to typeval to avoid using a built-in
Marc Fiuczynski [Wed, 20 May 2009 22:16:11 +0000 (22:16 +0000)]
cleaner approach to wrapping the 'call'
Marc Fiuczynski [Wed, 20 May 2009 21:43:38 +0000 (21:43 +0000)]
support returning nodenetwork_ids, which are identical to interface_ids
Marc Fiuczynski [Wed, 20 May 2009 18:16:53 +0000 (18:16 +0000)]
modularized more... probably only Get* functions work
Marc Fiuczynski [Wed, 20 May 2009 17:53:37 +0000 (17:53 +0000)]
modularize better
Marc Fiuczynski [Wed, 20 May 2009 17:50:40 +0000 (17:50 +0000)]
slightly better compatibility
Thierry Parmentelat [Fri, 15 May 2009 13:45:41 +0000 (13:45 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-14
RefreshPeer sets lock per-peer to avoid multiple concurent instances
migration script has an option for running interactively
Stephen Soltesz [Thu, 14 May 2009 19:04:04 +0000 (19:04 +0000)]
run in batch mode using default answers.
Barış Metin [Wed, 13 May 2009 13:05:31 +0000 (13:05 +0000)]
I forgot the commit this one.
return from the real call...
Barış Metin [Mon, 11 May 2009 11:16:17 +0000 (11:16 +0000)]
implement file lock based on peername to prevent running two RefreshPeer at a time.
Thierry Parmentelat [Wed, 6 May 2009 08:02:22 +0000 (08:02 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-13
skips already added entries
Barış Metin [Wed, 29 Apr 2009 14:39:04 +0000 (14:39 +0000)]
guard RefreshPeer():sync() not to insert the same record twice.
The problem is sync() inserts duplicated records, but when we try to
insert into peer_* tables it fails for the second one. That creates
strange problems like federated objects appear as local objects.
We still need to find why sync is called with duplicated records but
this patch should prevent the db problems.
Thierry Parmentelat [Tue, 28 Apr 2009 21:32:44 +0000 (21:32 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-12
yet another set of fixes for external dummynet boxes
Marta Carbone [Thu, 23 Apr 2009 19:30:29 +0000 (19:30 +0000)]
Add update on the dummynet key.
Fixed a non-typo.
Marta Carbone [Thu, 23 Apr 2009 16:04:41 +0000 (16:04 +0000)]
Fix, update the dummynet key.
Thierry Parmentelat [Thu, 23 Apr 2009 14:00:09 +0000 (14:00 +0000)]
enable dummynet accessors
Thierry Parmentelat [Wed, 22 Apr 2009 17:47:08 +0000 (17:47 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-11
GetDummyBoxMedium returns a base64-encoded boot image, doc is updated
and tmp file is cleaned up
Thierry Parmentelat [Wed, 22 Apr 2009 17:43:21 +0000 (17:43 +0000)]
review doc to mention base64 encoding, and unlink tmp file
Thierry Parmentelat [Wed, 22 Apr 2009 15:45:09 +0000 (15:45 +0000)]
typos
Marta Carbone [Wed, 22 Apr 2009 15:41:05 +0000 (15:41 +0000)]
Return base64 encoded image.
Thierry Parmentelat [Wed, 22 Apr 2009 06:41:40 +0000 (06:41 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-10
restore missing ResolveSlices
Thierry Parmentelat [Wed, 22 Apr 2009 06:40:08 +0000 (06:40 +0000)]
add missing ResolveSlices in 4.3
Thierry Parmentelat [Mon, 20 Apr 2009 19:30:52 +0000 (19:30 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-9
new method GetDummyBoxMedium
Thierry Parmentelat [Mon, 20 Apr 2009 19:28:30 +0000 (19:28 +0000)]
svn-keywords
Thierry Parmentelat [Mon, 20 Apr 2009 19:28:10 +0000 (19:28 +0000)]
for robustness
Marta Carbone [Mon, 20 Apr 2009 14:41:48 +0000 (14:41 +0000)]
Added a Method to generate dummynet box images.
Fixed typo in the Get Users script.
Thierry Parmentelat [Fri, 17 Apr 2009 12:45:49 +0000 (12:45 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-8
remove duplicate in Methods/__init__ that was breaking build of myplc-docs
Thierry Parmentelat [Fri, 17 Apr 2009 12:44:12 +0000 (12:44 +0000)]
remove duplicate
Thierry Parmentelat [Fri, 17 Apr 2009 10:50:13 +0000 (10:50 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-7
support for external dummynet boxes back in 4.3 - first draft
Marta Carbone [Fri, 17 Apr 2009 08:43:52 +0000 (08:43 +0000)]
Added authentication for dummynet boxes.
Marta Carbone [Thu, 16 Apr 2009 12:22:40 +0000 (12:22 +0000)]
Added PLCAPI support for Dummynet Boxes.
Thierry Parmentelat [Thu, 9 Apr 2009 12:53:41 +0000 (12:53 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-6
fixes for smooth federation between 4.2 and 4.3
peername is not UNIQUE in schema anymore, was preventing delete/recreate
Thierry Parmentelat [Thu, 9 Apr 2009 12:47:07 +0000 (12:47 +0000)]
fix for smooth federation between 4.2 and 4.3
Thierry Parmentelat [Thu, 9 Apr 2009 11:43:09 +0000 (11:43 +0000)]
remove UNIQUE constraint on peername as that was preventing from re-creating the same peername again
Thierry Parmentelat [Tue, 7 Apr 2009 10:11:16 +0000 (10:11 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-5
support for BootCD variants (GetBootMedium ['variant:centos5'])
fix corner case with filters like {'~slice_id':[]}
fix transaction leak that caused the db connections pool to exhaust
properly expose all methods, including Legacy/, and not only Methods/
Thierry Parmentelat [Mon, 6 Apr 2009 12:44:31 +0000 (12:44 +0000)]
fix corner case like ~slice_id:[]
Thierry Parmentelat [Fri, 3 Apr 2009 16:45:22 +0000 (16:45 +0000)]
- refactored marc's kupdate.sh into a new script kvariant.sh
- this allows to create a 'variant' stored in /usr/share/bootcd/<variant>
from the standard /usr/share/bootcd/build tree but with a different kernel
- GetBootMedium has a new option to use a given variant
Thierry Parmentelat [Thu, 2 Apr 2009 14:55:53 +0000 (14:55 +0000)]
avoid leaking transactions - merged changeset 12836 from 4.2
Anil-Kumar Vengalil [Wed, 1 Apr 2009 12:01:27 +0000 (12:01 +0000)]
Minor modification to Peers.py to improve the verbose of AddPeer
Barış Metin [Mon, 30 Mar 2009 16:27:47 +0000 (16:27 +0000)]
fix system.listMethods call
Thierry Parmentelat [Tue, 24 Mar 2009 12:03:44 +0000 (12:03 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-4
renumbered as 4.3
nodes have new fields run_level (in addition to boot_state) and verified
tweaked migration from 4.2
tuned rpm dependencies
doc generation more explicit about errors like missing python modules
removed obsolete method GetSlicesMD5
Barış Metin [Thu, 19 Mar 2009 16:09:59 +0000 (16:09 +0000)]
fixes the problem adding new nodes using the API
as boot_states changed we should change the default value for the node
Barış Metin [Wed, 18 Mar 2009 17:35:09 +0000 (17:35 +0000)]
- create node_types table
- add node_type column to nodes as a reference to node_types
Stephen Soltesz [Wed, 18 Mar 2009 16:08:08 +0000 (16:08 +0000)]
back out 'extrainfo' field from extended/new API functions
Stephen Soltesz [Wed, 18 Mar 2009 15:59:26 +0000 (15:59 +0000)]
remove extrainfo field from db. should use 'tags' instead.
Thierry Parmentelat [Wed, 18 Mar 2009 12:22:28 +0000 (12:22 +0000)]
new run-levels table was created too late (is referenced in nodes)
applying Baris's patch (no svn access yet) -- Thank you Baris
Marc Fiuczynski [Tue, 17 Mar 2009 14:53:31 +0000 (14:53 +0000)]
minor cleanup to be more verbose when there are errors; most of the time when we have these errors its because the environment we are building in is missing some required python module
Marc Fiuczynski [Tue, 17 Mar 2009 14:52:07 +0000 (14:52 +0000)]
clean up callable() implementation and be more verbose when there is an ImportError
Marc Fiuczynski [Tue, 17 Mar 2009 13:55:35 +0000 (13:55 +0000)]
sed expression should be in quotes for it to work
Thierry Parmentelat [Tue, 17 Mar 2009 08:36:31 +0000 (08:36 +0000)]
again
Thierry Parmentelat [Tue, 17 Mar 2009 07:06:38 +0000 (07:06 +0000)]
oops
Thierry Parmentelat [Tue, 17 Mar 2009 07:03:58 +0000 (07:03 +0000)]
rename in packaging
Thierry Parmentelat [Mon, 16 Mar 2009 20:45:08 +0000 (20:45 +0000)]
more renumbering 5.0 into 4.3
Thierry Parmentelat [Mon, 16 Mar 2009 14:38:25 +0000 (14:38 +0000)]
renumbering
Thierry Parmentelat [Mon, 16 Mar 2009 14:21:11 +0000 (14:21 +0000)]
mass-renaming 5.0 into 4.3 - db still named planetlab5 and planetlab5.sql
Thierry Parmentelat [Mon, 16 Mar 2009 14:06:41 +0000 (14:06 +0000)]
add a note
Thierry Parmentelat [Wed, 25 Feb 2009 16:24:57 +0000 (16:24 +0000)]
svn:keywords
Thierry Parmentelat [Sun, 22 Feb 2009 23:26:24 +0000 (23:26 +0000)]
review dependencies globally : fewer are attached to myplc directly, and more are attached to the other PL subcomponents
Thierry Parmentelat [Fri, 20 Feb 2009 15:00:43 +0000 (15:00 +0000)]
deprecate broken method
Stephen Soltesz [Wed, 18 Feb 2009 23:45:26 +0000 (23:45 +0000)]
Add new capability to API for a node to report its current runlevel.
Additional motivation is available in message to devel@lists.planet-lab.org:
http://lists.planet-lab.org/pipermail/devel/2009-February/003283.html
Briefly:
this patch differentiates between boot_states (declared by user) and
run_levels (reported by node) a user would specify that the node should be
in 'boot' or 'reinstall', and the node will report what state it is in,
i.e, it is installing, or it has failed to boot, or it is in boot.
because updates are continuous, other service routines can get involved to notify
admins, users, or automated scripts when the values are out-of-sync.
Thierry Parmentelat [Thu, 5 Feb 2009 17:15:04 +0000 (17:15 +0000)]
protect against spaces in filenames
Thierry Parmentelat [Wed, 28 Jan 2009 22:43:38 +0000 (22:43 +0000)]
Tagging module PLCAPI - PLCAPI-5.0-3
unified all tags
renamed interface settings into interface tags and slice attributes into slice tags
nodes have a node_type
various changes on the way to 5.0
Thierry Parmentelat [Mon, 26 Jan 2009 09:53:46 +0000 (09:53 +0000)]
Peer object now has hrn_root
Thierry Parmentelat [Tue, 13 Jan 2009 06:17:39 +0000 (06:17 +0000)]
add shortname to peers for the new www ui
Thierry Parmentelat [Tue, 6 Jan 2009 07:59:20 +0000 (07:59 +0000)]
svn:keywords
Thierry Parmentelat [Tue, 6 Jan 2009 07:44:13 +0000 (07:44 +0000)]
broken build - please review
Thierry Parmentelat [Tue, 6 Jan 2009 06:10:19 +0000 (06:10 +0000)]
broken build - please review
Stephen Soltesz [Mon, 5 Jan 2009 18:51:46 +0000 (18:51 +0000)]
added missing imports
Stephen Soltesz [Mon, 5 Jan 2009 16:52:08 +0000 (16:52 +0000)]
add RebootNodeWithPCU call. fails gracefully if dependencies are not met.
Stephen Soltesz [Mon, 5 Jan 2009 16:51:56 +0000 (16:51 +0000)]
add RebootNodeWithPCU call. fails gracefully if dependencies are not met.