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.
Thierry Parmentelat [Mon, 5 Jan 2009 12:15:44 +0000 (12:15 +0000)]
again
Thierry Parmentelat [Mon, 5 Jan 2009 11:34:32 +0000 (11:34 +0000)]
bugfix
Thierry Parmentelat [Mon, 5 Jan 2009 11:26:37 +0000 (11:26 +0000)]
bugfix
Stephen Soltesz [Wed, 24 Dec 2008 18:13:29 +0000 (18:13 +0000)]
A disabled or diagnostic-mode node will contact PLC (download BM and interact
with the API), but there is no indication of this via the API.
This modification updates the 'last_contact' field just like GetSlivers.
Specifically, this allows the Node&PCU Registration Wizard to set a node to
'disable', and then wait for a tech to boot it and for the node to contact
PLC. The wizard now has an indication, without entering production mode, that
the node has booted, and therefore that the wizard can continue.
This not fool-proof, since if the tech stops here, the node will remain in the
DB, but it will be 'disabled'.
Thierry Parmentelat [Thu, 18 Dec 2008 20:56:15 +0000 (20:56 +0000)]
update
Thierry Parmentelat [Thu, 18 Dec 2008 20:50:46 +0000 (20:50 +0000)]
an example using regular python
Marta Carbone [Wed, 17 Dec 2008 11:15:34 +0000 (11:15 +0000)]
Added dummynet accessors.
Added UpdateEmulationLink method, used to
create a connection between a node and a dummynet box.
Still need to delete dummynet box related tags when
deleting a dummynet box.
Marta Carbone [Wed, 17 Dec 2008 10:31:27 +0000 (10:31 +0000)]
Create a function used to build che command line according
the node_type and added the 'dummynet' type support.
Added usage comments.
Marta Carbone [Wed, 17 Dec 2008 09:36:14 +0000 (09:36 +0000)]
Moved handle_filename code in a function.
Added the allowed action tables according the node_type and related checks.
Added comments.
Generic node generation will always check for node existence.
Thierry Parmentelat [Thu, 11 Dec 2008 18:29:31 +0000 (18:29 +0000)]
Slice tags can be managed from AddSlice/UpdateSlice/GetSlices
SliceTags now can access the slice name
Set accessors occurences logged in Events
Other minor improvements in some log messages (show names rather than ids as often as possible)
Thierry Parmentelat [Thu, 11 Dec 2008 16:24:35 +0000 (16:24 +0000)]
Interfaces can handle tags through Add/Get/Update
Interfaces can be referenced from their ip rather than just on interface_id
removed remaining references to 'node networks' in text/comment
Thierry Parmentelat [Thu, 11 Dec 2008 16:19:31 +0000 (16:19 +0000)]
cosmetic
Thierry Parmentelat [Thu, 11 Dec 2008 11:08:41 +0000 (11:08 +0000)]
documented tag-based access methods and nodegroup new model
Thierry Parmentelat [Thu, 11 Dec 2008 07:54:15 +0000 (07:54 +0000)]
cleanup - make node/interface/slice similar
Thierry Parmentelat [Wed, 10 Dec 2008 20:58:29 +0000 (20:58 +0000)]
define tags exposed to the API in the Accessors area
Thierry Parmentelat [Tue, 9 Dec 2008 13:35:48 +0000 (13:35 +0000)]
again
Thierry Parmentelat [Tue, 9 Dec 2008 13:04:37 +0000 (13:04 +0000)]
oops
Thierry Parmentelat [Tue, 9 Dec 2008 10:33:20 +0000 (10:33 +0000)]
fix
Thierry Parmentelat [Tue, 9 Dec 2008 08:52:08 +0000 (08:52 +0000)]
keep things simple, use 'value' rather than 'tagvalue' everywhere
GetBootMedium fetches tags through Nodes
Thierry Parmentelat [Sat, 6 Dec 2008 23:15:29 +0000 (23:15 +0000)]
AddNode/UpdateNode/GetNodes should no be 100% tag-friendly
Thierry Parmentelat [Sat, 6 Dec 2008 15:50:19 +0000 (15:50 +0000)]
accepts tags in getnodes filters
Thierry Parmentelat [Sat, 6 Dec 2008 13:43:51 +0000 (13:43 +0000)]
auto init for row classes
Thierry Parmentelat [Sat, 6 Dec 2008 09:21:53 +0000 (09:21 +0000)]
dont print tagvalue - breaks stress test
Thierry Parmentelat [Fri, 5 Dec 2008 19:53:39 +0000 (19:53 +0000)]
boot manager assumes the tagname is identical to the initscript conventions
Thierry Parmentelat [Fri, 5 Dec 2008 08:33:10 +0000 (08:33 +0000)]
defining view_name in the Row class does not work, as Table does not know about its Row class
Thierry Parmentelat [Fri, 5 Dec 2008 08:26:18 +0000 (08:26 +0000)]
node_type can be provided at AddNode time
Thierry Parmentelat [Fri, 5 Dec 2008 08:10:30 +0000 (08:10 +0000)]
node_type object and methods
Thierry Parmentelat [Thu, 4 Dec 2008 22:18:57 +0000 (22:18 +0000)]
nodes have a node_type (NodeType object and api calls still missing)
nodes tags might be exposed through GetNodes (implicit initializations still missing)
cannot filter on tags yet & very ilghtly tested
Thierry Parmentelat [Thu, 4 Dec 2008 22:10:09 +0000 (22:10 +0000)]
svn keywords yet again
Thierry Parmentelat [Thu, 4 Dec 2008 22:09:48 +0000 (22:09 +0000)]
svn keywords yet again
Thierry Parmentelat [Thu, 4 Dec 2008 12:05:43 +0000 (12:05 +0000)]
layout
Thierry Parmentelat [Thu, 4 Dec 2008 09:07:27 +0000 (09:07 +0000)]
syncs plcsh too - useful when debugging a broken api
Thierry Parmentelat [Tue, 2 Dec 2008 14:14:37 +0000 (14:14 +0000)]
cosmetic
Thierry Parmentelat [Tue, 2 Dec 2008 13:18:25 +0000 (13:18 +0000)]
svn kwds
Thierry Parmentelat [Tue, 2 Dec 2008 13:16:51 +0000 (13:16 +0000)]
typo
Thierry Parmentelat [Fri, 28 Nov 2008 14:54:49 +0000 (14:54 +0000)]
scrunch
Thierry Parmentelat [Fri, 28 Nov 2008 14:36:02 +0000 (14:36 +0000)]
renaming SliceAttribute into SliceTag and InterfaceSetting into InterfaceTag
Thierry Parmentelat [Thu, 27 Nov 2008 14:58:04 +0000 (14:58 +0000)]
Tagging module PLCAPI - PLCAPI-5.0-2
Checkpointing : this version still has interface settings and slice attributes
Thierry Parmentelat [Wed, 26 Nov 2008 08:21:42 +0000 (08:21 +0000)]
eventually use the right kernel arg
Thierry Parmentelat [Wed, 26 Nov 2008 04:43:26 +0000 (04:43 +0000)]
add debug to kargs for the no-hangcheck option
Thierry Parmentelat [Tue, 25 Nov 2008 15:20:17 +0000 (15:20 +0000)]
use correct variable - hopefully
Thierry Parmentelat [Tue, 25 Nov 2008 07:54:43 +0000 (07:54 +0000)]
fix event logging
Thierry Parmentelat [Mon, 24 Nov 2008 22:17:52 +0000 (22:17 +0000)]
log getbootmedium calls
Thierry Parmentelat [Mon, 24 Nov 2008 20:47:44 +0000 (20:47 +0000)]
spelling
Thierry Parmentelat [Mon, 24 Nov 2008 20:38:08 +0000 (20:38 +0000)]
oops
Thierry Parmentelat [Mon, 24 Nov 2008 20:26:32 +0000 (20:26 +0000)]
a tag for test nodes