Tony Mack [Wed, 15 Nov 2006 16:53:07 +0000 (16:53 +0000)]
- remove some print statements
Thierry Parmentelat [Wed, 15 Nov 2006 16:50:58 +0000 (16:50 +0000)]
now returns a dict rather than a tuple
Tony Mack [Wed, 15 Nov 2006 16:46:50 +0000 (16:46 +0000)]
- keep up to date with recent changes in planetlab4.sql schema
Tony Mack [Wed, 15 Nov 2006 16:42:12 +0000 (16:42 +0000)]
- fix peer_slice_slice_id_idx
Tony Mack [Wed, 15 Nov 2006 16:04:42 +0000 (16:04 +0000)]
- fix random bugs
Tony Mack [Wed, 15 Nov 2006 15:23:27 +0000 (15:23 +0000)]
- fix bug in archive_db()
Thierry Parmentelat [Wed, 15 Nov 2006 10:59:55 +0000 (10:59 +0000)]
- provides ability to cache foreign slices
only LOCAL nodes are known to foreign slices, with their local id as expected
- RefreshPeer logic currently is
*) invoke GetNodes and cache into ForeignNodes
*) invoke ForeignNodes, not cached for now, used in next step
*) invoke GetSlices, then caches into ForeignSlices,
only local nodes are considered, with their alien node_ids transcoded
to local node_ids
- gets rid of the foreign_id columns in peer_node and peer_slice,
that turned out useless
=== a few pending issues
- GetSlivers not yet updated accordingly
it still works on non-federated plcs
- site_id and creator_person_id in the slices table
are not declared 'NOT NULL' anymore.
as far as GetSlices is concerned these entries are still non null,
as per the WHERE stuff added on view_slices
- refreshing the db to update the slice x node association is done
in a clear-all/add-all fashion that clearly sucks.
- the caching logic is currently in Peers.py which is clearly wrong
there's a need for refactoring these 2 types of cached objects
to provide more genericity
Thierry Parmentelat [Wed, 15 Nov 2006 10:18:36 +0000 (10:18 +0000)]
old commented stuff for indexing (now that we use Table.dict) really deleted
Tony Mack [Tue, 14 Nov 2006 22:08:31 +0000 (22:08 +0000)]
- reconnect to db after utf8 encoding
Tony Mack [Tue, 14 Nov 2006 21:52:00 +0000 (21:52 +0000)]
- initial checking of db upgrade scripts
Thierry Parmentelat [Tue, 14 Nov 2006 10:04:07 +0000 (10:04 +0000)]
rename column is_deleted in slices as deleted for consistency with all other tables
Thierry Parmentelat [Tue, 14 Nov 2006 09:46:48 +0000 (09:46 +0000)]
pkills instances of Shell.py prior to dropping database
Thierry Parmentelat [Tue, 14 Nov 2006 09:44:40 +0000 (09:44 +0000)]
rename column is_deleted in slices as deleted for consistency with all other tables
Thierry Parmentelat [Tue, 14 Nov 2006 09:43:28 +0000 (09:43 +0000)]
take advantage of the new Table::dict method
Mark Huang [Mon, 13 Nov 2006 18:47:34 +0000 (18:47 +0000)]
- add default system slices (those beginning with PLC_SLICE_PREFIX) to
each local node
- use Table.dict()
Mark Huang [Mon, 13 Nov 2006 18:43:37 +0000 (18:43 +0000)]
- allow login_base to be updated
Mark Huang [Mon, 13 Nov 2006 18:43:21 +0000 (18:43 +0000)]
- rename Table.row to Table.classobj for clarity
- add Table.dict() for returning table as a dict keyed on
Row.primary_key
Mark Huang [Mon, 13 Nov 2006 18:41:59 +0000 (18:41 +0000)]
- add unique constraint on peer_node.node_id
Thierry Parmentelat [Mon, 13 Nov 2006 16:24:06 +0000 (16:24 +0000)]
updated
Thierry Parmentelat [Mon, 13 Nov 2006 16:23:40 +0000 (16:23 +0000)]
regenerated
Thierry Parmentelat [Mon, 13 Nov 2006 16:23:11 +0000 (16:23 +0000)]
everything ready to receive foreign slices
the actual part in RefreshPeer still needs to be written
based on what's done with nodes
also, peer_node and peer_slice now hold foreign_id,
i.e. the id as known on the peer side, for being able to
perform the right mapping at the time GetSlivers gets called
Mark Huang [Sat, 11 Nov 2006 17:58:17 +0000 (17:58 +0000)]
- allow max_slices and max_slivers to be set when adding a new site
Mark Huang [Fri, 10 Nov 2006 19:30:10 +0000 (19:30 +0000)]
nodenetworks cannot be referred to by ip (may be NULL)
Thierry Parmentelat [Fri, 10 Nov 2006 17:22:28 +0000 (17:22 +0000)]
works reasonably well, still requires manual tweak in the DB for (*& plain passwd
Mark Huang [Fri, 10 Nov 2006 17:06:35 +0000 (17:06 +0000)]
- fix quoting of message_id
Thierry Parmentelat [Fri, 10 Nov 2006 17:02:22 +0000 (17:02 +0000)]
convenience for test: scratch db, push api, this kind of stuff
Thierry Parmentelat [Fri, 10 Nov 2006 17:00:21 +0000 (17:00 +0000)]
- RefreshPeer & AddSliceToNodes had bugs
- foreign nodes have timestamps
Mark Huang [Fri, 10 Nov 2006 15:54:14 +0000 (15:54 +0000)]
- use php module directory given by php-config
Thierry Parmentelat [Fri, 10 Nov 2006 15:05:52 +0000 (15:05 +0000)]
peer x foreign_node relationship in a separate peer_node table -- uses new db interface
Mark Huang [Fri, 10 Nov 2006 06:34:19 +0000 (06:34 +0000)]
build and install our own custom xmlrpc.so extension
Mark Huang [Fri, 10 Nov 2006 06:32:26 +0000 (06:32 +0000)]
NULL is no longer a special value and can be marshalled; set optional parameters to their appropriate defaults
Mark Huang [Fri, 10 Nov 2006 06:31:50 +0000 (06:31 +0000)]
support marshalling NULL as <nil/>
Mark Huang [Fri, 10 Nov 2006 06:30:44 +0000 (06:30 +0000)]
build xmlrpc.so PHP extension
Mark Huang [Fri, 10 Nov 2006 02:41:39 +0000 (02:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r467,
which included commits to RCS files with non-trunk default branches.
Mark Huang [Thu, 9 Nov 2006 19:56:23 +0000 (19:56 +0000)]
add pldistro and date to release tag
Mark Huang [Thu, 9 Nov 2006 19:49:23 +0000 (19:49 +0000)]
regenerate
Mark Huang [Thu, 9 Nov 2006 19:43:57 +0000 (19:43 +0000)]
- re-enable return_fields specification
- since the primary key of each table may not be specified in
return_fields, Table is now a list instead of a dict, which
mirrors the actual return type of the Get() functions anyway
Mark Huang [Thu, 9 Nov 2006 19:34:04 +0000 (19:34 +0000)]
- selectall: key_field implies hashref
Mark Huang [Thu, 9 Nov 2006 19:32:20 +0000 (19:32 +0000)]
- Filters can be null
Mark Huang [Thu, 9 Nov 2006 03:07:42 +0000 (03:07 +0000)]
allow tuples and sets as sequence filters
Mark Huang [Thu, 9 Nov 2006 03:07:20 +0000 (03:07 +0000)]
oops, allow nodes to be specified by node_id for now
Mark Huang [Wed, 8 Nov 2006 23:27:52 +0000 (23:27 +0000)]
- fix clean rule
Mark Huang [Wed, 8 Nov 2006 23:15:10 +0000 (23:15 +0000)]
regenerate
Mark Huang [Wed, 8 Nov 2006 23:13:11 +0000 (23:13 +0000)]
- use Filter to select rows
- psycopg2 obviates the need for manual aggregation
- remove from pcu_node when deleting
Mark Huang [Wed, 8 Nov 2006 23:11:49 +0000 (23:11 +0000)]
allow filters to be specified in most Get() calls
Mark Huang [Wed, 8 Nov 2006 23:11:35 +0000 (23:11 +0000)]
implement slice_instantiatins modification
Mark Huang [Wed, 8 Nov 2006 23:11:25 +0000 (23:11 +0000)]
added Filter
Mark Huang [Wed, 8 Nov 2006 23:08:47 +0000 (23:08 +0000)]
- fix documentation
- don't accept node_ids, only hostnames
- if caller is a node, just return that node's slivers
Mark Huang [Wed, 8 Nov 2006 23:06:08 +0000 (23:06 +0000)]
- no need for os
- use Filter to select rows
- should be admin-only
Mark Huang [Wed, 8 Nov 2006 23:04:44 +0000 (23:04 +0000)]
- don't validate creator_person_id; if creator is deleted, then slice
cannot be updated
- use Filter to select rows
- psycopg2 obviates the need for manual aggregation
Mark Huang [Wed, 8 Nov 2006 23:03:18 +0000 (23:03 +0000)]
- implement for real
Mark Huang [Wed, 8 Nov 2006 23:03:05 +0000 (23:03 +0000)]
- use Filter to select rows
Mark Huang [Wed, 8 Nov 2006 23:02:39 +0000 (23:02 +0000)]
- use Filter to select rows
- psycopg2 obviates the need for manual aggregation
Mark Huang [Wed, 8 Nov 2006 23:02:10 +0000 (23:02 +0000)]
- use Table.selectall()
Mark Huang [Wed, 8 Nov 2006 22:55:55 +0000 (22:55 +0000)]
- timestamp is r/o
- use Filter to select rows
- psycopg2 obviates the need for manual aggregation
Mark Huang [Wed, 8 Nov 2006 22:53:30 +0000 (22:53 +0000)]
- Auth does not need to be a subclass of dict
- use dict filter for looking up accounts
Mark Huang [Wed, 8 Nov 2006 22:45:20 +0000 (22:45 +0000)]
- use Filter to select rows
- psycopg2 obviates the need for manual aggregation
Mark Huang [Wed, 8 Nov 2006 22:44:02 +0000 (22:44 +0000)]
- use Filter to select rows
Mark Huang [Wed, 8 Nov 2006 22:43:02 +0000 (22:43 +0000)]
- support psycopg2
- fix quote() (require it to be map()-ed onto lists of parameters, so
that we can quote arrays)
Mark Huang [Wed, 8 Nov 2006 22:34:05 +0000 (22:34 +0000)]
- use Filter to select rows
Mark Huang [Wed, 8 Nov 2006 22:11:26 +0000 (22:11 +0000)]
- move python_type and xmlrpc_type to Parameter
- allow min and max for list parameters
Mark Huang [Wed, 8 Nov 2006 22:10:00 +0000 (22:10 +0000)]
- move python_type() and xmlrpc_type() here
Mark Huang [Wed, 8 Nov 2006 22:09:41 +0000 (22:09 +0000)]
- add generic Filter class for Get() requests: eases filtering on one
or more columns of a table, for a specific value for each column, or a
list of possible values for each column
Mark Huang [Wed, 8 Nov 2006 22:08:09 +0000 (22:08 +0000)]
- rename fill to selectall
Mark Huang [Wed, 8 Nov 2006 22:07:29 +0000 (22:07 +0000)]
- remove array_to_string() casts; psycopg2 automatically converts
PostgreSQL array types to Python lists
Mark Huang [Wed, 8 Nov 2006 21:56:32 +0000 (21:56 +0000)]
build and install psycopg2
Mark Huang [Wed, 8 Nov 2006 21:53:50 +0000 (21:53 +0000)]
Unicode array elements are always cast to regular Python strings; always cast strings to unicode objects for now
Mark Huang [Wed, 8 Nov 2006 21:37:49 +0000 (21:37 +0000)]
This commit was generated by cvs2svn to compensate for changes in r431,
which included commits to RCS files with non-trunk default branches.
Thierry Parmentelat [Wed, 8 Nov 2006 17:35:53 +0000 (17:35 +0000)]
testing peers - mostly a convenience for cut&paste right now
Thierry Parmentelat [Wed, 8 Nov 2006 17:34:31 +0000 (17:34 +0000)]
regenerate
Thierry Parmentelat [Wed, 8 Nov 2006 17:34:07 +0000 (17:34 +0000)]
federation in progress - associate a local slice to a foreign node
Mark Huang [Tue, 7 Nov 2006 19:14:39 +0000 (19:14 +0000)]
- clarify Row doc
- add fill() class method to Table
Mark Huang [Tue, 7 Nov 2006 19:13:16 +0000 (19:13 +0000)]
allow admins to manually update boot_nonce
Thierry Parmentelat [Tue, 7 Nov 2006 11:06:11 +0000 (11:06 +0000)]
add target tags
Mark Huang [Mon, 6 Nov 2006 22:05:44 +0000 (22:05 +0000)]
use Makefile to build and install
Mark Huang [Mon, 6 Nov 2006 22:04:58 +0000 (22:04 +0000)]
add install command for development
Mark Huang [Mon, 6 Nov 2006 22:04:30 +0000 (22:04 +0000)]
regenerate
Mark Huang [Mon, 6 Nov 2006 21:29:00 +0000 (21:29 +0000)]
- boot manager passes ints instead of bools
Mark Huang [Mon, 6 Nov 2006 20:48:33 +0000 (20:48 +0000)]
- allow enabled to be specified as a filter
Mark Huang [Mon, 6 Nov 2006 20:48:08 +0000 (20:48 +0000)]
- fix conf_files handling
Mark Huang [Mon, 6 Nov 2006 18:25:08 +0000 (18:25 +0000)]
- Boot Manager cannot marshal None
Mark Huang [Mon, 6 Nov 2006 18:12:52 +0000 (18:12 +0000)]
- #!#$! boot manager cannot handle '=' in node keys
Mark Huang [Mon, 6 Nov 2006 16:17:50 +0000 (16:17 +0000)]
- provide a global $adm PLCAPI() object
Thierry Parmentelat [Sun, 5 Nov 2006 15:38:05 +0000 (15:38 +0000)]
selection on foreign nodes : either on id or hostname, undoes selection on peername
Mark Huang [Fri, 3 Nov 2006 23:44:51 +0000 (23:44 +0000)]
- raise the last fault if a mixed type check fails, to avoid confusing
error messages
Thierry Parmentelat [Fri, 3 Nov 2006 20:36:05 +0000 (20:36 +0000)]
for federation : Peers and ForeignNodes
Mark Huang [Fri, 3 Nov 2006 16:11:42 +0000 (16:11 +0000)]
add messages interface
Mark Huang [Fri, 3 Nov 2006 16:05:31 +0000 (16:05 +0000)]
add messages table and interface
Mark Huang [Fri, 3 Nov 2006 15:01:16 +0000 (15:01 +0000)]
- half-implement BootNotifyOwners
Mark Huang [Fri, 3 Nov 2006 15:00:46 +0000 (15:00 +0000)]
- add node to accepted roles
Mark Huang [Fri, 3 Nov 2006 15:00:32 +0000 (15:00 +0000)]
- add node to acceptable roles
Mark Huang [Fri, 3 Nov 2006 14:59:16 +0000 (14:59 +0000)]
fix insert
Mark Huang [Thu, 2 Nov 2006 22:12:47 +0000 (22:12 +0000)]
- fix check for if xml-rpc options have been specified
Mark Huang [Thu, 2 Nov 2006 22:07:22 +0000 (22:07 +0000)]
- fix interactive check
Mark Huang [Thu, 2 Nov 2006 18:32:55 +0000 (18:32 +0000)]
unset None fields, if allowed
Mark Huang [Thu, 2 Nov 2006 18:32:19 +0000 (18:32 +0000)]
- implement for backward compatibility
Mark Huang [Thu, 2 Nov 2006 18:04:19 +0000 (18:04 +0000)]
- use "" if dns2 is not specified
Mark Huang [Thu, 2 Nov 2006 15:31:02 +0000 (15:31 +0000)]
- fix interactive case
- add begin() and commit() multicall support
Mark Huang [Thu, 2 Nov 2006 15:05:07 +0000 (15:05 +0000)]
- do not parse command line arguments if called by a script
- get method list from cwd API implementation, not from system.listMethods
Tony Mack [Thu, 2 Nov 2006 14:57:25 +0000 (14:57 +0000)]
- if a node has no nodenetworks, make the first one added primary