plcapi.git
14 years agoSetting tag PLCAPI-4.3-35 4.3
Marc Fiuczynski [Mon, 22 Feb 2010 19:02:11 +0000 (19:02 +0000)]
Setting tag PLCAPI-4.3-35
- fix AddSlicetag() to not compare slice tags with sliver tags, and vice versa.

14 years agomerge changes from trunk in
Marc Fiuczynski [Mon, 22 Feb 2010 18:53:46 +0000 (18:53 +0000)]
merge changes from trunk in

14 years agoSetting tag PLCAPI-4.3-34
Thierry Parmentelat [Fri, 12 Feb 2010 08:31:25 +0000 (08:31 +0000)]
Setting tag PLCAPI-4.3-34
log calls to AddSliceToNodes

14 years agoadd message attribute to let AddSliceToNodes method logged.
Barış Metin [Mon, 25 Jan 2010 16:32:13 +0000 (16:32 +0000)]
add message attribute to let AddSliceToNodes method logged.

14 years agoSetting tag PLCAPI-4.3-33
Barış Metin [Thu, 21 Jan 2010 12:05:36 +0000 (12:05 +0000)]
Setting tag PLCAPI-4.3-33
rename migration scripts

14 years agoget Stephen's fix: "db is still using 4.x versioning so change subversion number...
Barış Metin [Thu, 21 Jan 2010 12:01:01 +0000 (12:01 +0000)]
get Stephen's fix: "db is still using 4.x versioning so change subversion number to 11"

14 years agoBranch 5.0 for module PLCAPI created (as new trunk) from tag PLCAPI-4.3-32
Thierry Parmentelat [Thu, 21 Jan 2010 11:24:38 +0000 (11:24 +0000)]
Branch 5.0 for module PLCAPI created (as new trunk) from tag PLCAPI-4.3-32

14 years agoSetting tag PLCAPI-4.3-32 PLCAPI-4.3-32
Thierry Parmentelat [Sat, 9 Jan 2010 07:44:16 +0000 (07:44 +0000)]
Setting tag PLCAPI-4.3-32
support for fedora 12
fix subtle bug in filering with ] and quotes

14 years agoSetting tag PLCAPI-4.3-32
Thierry Parmentelat [Sat, 9 Jan 2010 07:44:14 +0000 (07:44 +0000)]
Setting tag PLCAPI-4.3-32
support for fedora 12
fix subtle bug in filering with ] and quotes

14 years agofor python-2.6
Thierry Parmentelat [Thu, 7 Jan 2010 10:18:14 +0000 (10:18 +0000)]
for python-2.6

14 years agoquote value for all operators (thanks to Jordan for the fix)
Barış Metin [Wed, 6 Jan 2010 15:01:27 +0000 (15:01 +0000)]
quote value for all operators (thanks to Jordan for the fix)

14 years agoSetting tag PLCAPI-4.3-31
Barış Metin [Fri, 18 Dec 2009 17:57:48 +0000 (17:57 +0000)]
Setting tag PLCAPI-4.3-31
* patch for php-5.3 (the one in f12)
* validate email addresses with regex
* add PersonTags and SiteTags
* add additional accessors for node tags (kvariant, serial, ..)

14 years agopatch for php-5.3 (the one in f12)
Thierry Parmentelat [Thu, 17 Dec 2009 17:04:34 +0000 (17:04 +0000)]
patch for php-5.3 (the one in f12)

14 years agoregex fix: escape the first '-' too, add start/end of the string.
Barış Metin [Mon, 14 Dec 2009 10:19:23 +0000 (10:19 +0000)]
regex fix: escape the first '-' too, add start/end of the string.

14 years agohyphen in regular expression needs to be escaped
Anil-Kumar Vengalil [Mon, 14 Dec 2009 09:42:31 +0000 (09:42 +0000)]
hyphen in regular expression needs to be escaped

14 years agonightly was failing with invalid email address, as the host part of e-mail address...
Anil-Kumar Vengalil [Mon, 14 Dec 2009 08:53:38 +0000 (08:53 +0000)]
nightly was failing with invalid email address, as the host part of e-mail address did not allow hyphen to be part of it

14 years agouse regex to validate email address.
Barış Metin [Fri, 11 Dec 2009 14:17:17 +0000 (14:17 +0000)]
use regex to validate email address.
was there a specific reason to try parsing the address manually? if so please let me know and I'll revert this.

14 years agoAdd PersonTags as well. Performed a simple test but not extensive regression
Stephen Soltesz [Tue, 1 Dec 2009 17:08:37 +0000 (17:08 +0000)]
Add PersonTags as well.  Performed a simple test but not extensive regression
tests (i.e. by non-admin users, etc)

14 years agoshould be no change.
Stephen Soltesz [Mon, 30 Nov 2009 23:28:49 +0000 (23:28 +0000)]
should be no change.

14 years agooops
Thierry Parmentelat [Thu, 19 Nov 2009 07:39:02 +0000 (07:39 +0000)]
oops

14 years agooptions override tags - mention tags in __doc__
Thierry Parmentelat [Wed, 18 Nov 2009 20:06:12 +0000 (20:06 +0000)]
options override tags - mention tags in __doc__

14 years agoaccessors for the bootcd tags
Thierry Parmentelat [Wed, 18 Nov 2009 20:03:51 +0000 (20:03 +0000)]
accessors for the bootcd tags

14 years agoexample
Thierry Parmentelat [Sun, 15 Nov 2009 12:51:14 +0000 (12:51 +0000)]
example

14 years agoadd site_tags : GetSites() now returns 'site_tag_ids' attribute.
Stephen Soltesz [Fri, 13 Nov 2009 22:33:07 +0000 (22:33 +0000)]
add site_tags : GetSites() now returns 'site_tag_ids' attribute.
added Add/Delete/Get/UpdateSiteTag*() methods
added SiteTags.py to define the site tags table.  Similar to the other Tag tables

14 years agoadd site and person tags to the planetlab5 schema. Update the subversion to 1.
Stephen Soltesz [Fri, 13 Nov 2009 20:31:08 +0000 (20:31 +0000)]
add site and person tags to the planetlab5 schema.  Update the subversion to 1.

14 years agoSetting tag PLCAPI-4.3-30
Marc Fiuczynski [Tue, 3 Nov 2009 21:11:15 +0000 (21:11 +0000)]
Setting tag PLCAPI-4.3-30
Redacting password, session, and authstring values from the event log.

14 years agoRight now all passwords that showed up via AddPerson/UpdatePerson are
Marc Fiuczynski [Fri, 30 Oct 2009 22:08:52 +0000 (22:08 +0000)]
Right now all passwords that showed up via AddPerson/UpdatePerson are
in the events table.  This is not good from a security perspective.

I've adjusted the log() method to redact passwords, auth string, and
session values in call API method arguments.

14 years agoSetting tag PLCAPI-4.3-29
Thierry Parmentelat [Mon, 19 Oct 2009 08:32:50 +0000 (08:32 +0000)]
Setting tag PLCAPI-4.3-29
let AddSite set ext_consortium_id - required for the poorman registration pages
drop version constraint on Requires: postgresql-python
don't log system calls nor ReportRunLevel

14 years agowww registration page needs to set ext_consortium_id
Thierry Parmentelat [Fri, 16 Oct 2009 17:13:43 +0000 (17:13 +0000)]
www registration page needs to set ext_consortium_id

14 years agodrop the version requirement for postgresql-python altogether. Having the requirement...
Barış Metin [Fri, 16 Oct 2009 09:21:22 +0000 (09:21 +0000)]
drop the version requirement for postgresql-python altogether. Having the requirement for postgresql and postgresql-server is
also sufficiant for Fedora builds.

14 years agodont log system calls
Tony Mack [Fri, 16 Oct 2009 00:34:48 +0000 (00:34 +0000)]
dont log system calls

14 years agodo not log ReportRunLevel
Tony Mack [Fri, 16 Oct 2009 00:13:29 +0000 (00:13 +0000)]
do not log ReportRunLevel

14 years agoreverting last commit. Log everything
Tony Mack [Thu, 15 Oct 2009 21:47:52 +0000 (21:47 +0000)]
reverting last commit. Log everything

14 years agoDont long system, Get or ReportRunlevel calls
Tony Mack [Thu, 15 Oct 2009 21:40:22 +0000 (21:40 +0000)]
Dont long system, Get or ReportRunlevel calls

14 years agoSetting tag PLCAPI-4.3-28
Daniel Hokka Zakrisson [Thu, 15 Oct 2009 00:31:16 +0000 (00:31 +0000)]
Setting tag PLCAPI-4.3-28
Fix requires for CentOS.

14 years agoOnly weaken the R for CentOS.
Daniel Hokka Zakrisson [Thu, 15 Oct 2009 00:25:07 +0000 (00:25 +0000)]
Only weaken the R for CentOS.

14 years agoweaken Requires for postgresql-python, as it would not work on CentOS 5 with a 8...
Marc Fiuczynski [Thu, 15 Oct 2009 00:18:12 +0000 (00:18 +0000)]
weaken Requires for postgresql-python, as it would not work on CentOS 5 with a 8.2 RHEL postgresql installation

14 years agoRequire postgresql 8.2 (for array operators && and @>)
Barış Metin [Fri, 9 Oct 2009 15:47:53 +0000 (15:47 +0000)]
Require postgresql 8.2 (for array operators && and @>)

Setting tag PLCAPI-4.3-27

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: PLCAPI.spec
===================================================================
--- PLCAPI.spec (.../tags/PLCAPI-4.3-26) (révision 15270)
+++ PLCAPI.spec (.../trunk) (révision 15270)
@@ -28,7 +28,7 @@

 # We use set everywhere
 Requires: python >= 2.4
-Requires: postgresql postgresql-server postgresql-python
+Requires: postgresql >= 8.2, postgresql-server >= 8.2, postgresql-python >= 8.2
 Requires: python-psycopg2
 Requires: python-pycurl
 Requires: httpd

14 years agoadd postgresql 8.2 requirement
Barış Metin [Fri, 9 Oct 2009 15:41:22 +0000 (15:41 +0000)]
add postgresql 8.2 requirement

14 years agoSetting tag PLCAPI-4.3-26
Thierry Parmentelat [Thu, 8 Oct 2009 14:59:37 +0000 (14:59 +0000)]
Setting tag PLCAPI-4.3-26
Filter now supports the | and & features to match in sequence values
bugfix in the postgresql wrapper for sequence filter values
reviewed GetSlivers to export admin keys more efficiently
fix checking roles in UpdateSliceTag

14 years ago * a field starting with '&' or '|' should refer to a sequence type
Barış Metin [Mon, 5 Oct 2009 16:18:23 +0000 (16:18 +0000)]
 * a field starting with '&' or '|' should refer to a sequence type
  the semantic is then that the object value (expected to be a list)
  should contain all (&) or any (|) value specified in the corresponding
  filter value. See other examples below.
    example : filter = { '|role_ids' : [ 20, 40 ] }
    example : filter = { '|roles' : ['tech', 'pi'] }
    example : filter = { '&roles' : ['admin', 'tech'] }
    example : filter = { '&roles' : 'tech' }

14 years agoleverages new Filter features to gather all admins and site power users
Thierry Parmentelat [Mon, 5 Oct 2009 16:15:13 +0000 (16:15 +0000)]
leverages new Filter features to gather all admins and site power users

14 years agocleanup for the specialaccounts nodemanager plugin:
Thierry Parmentelat [Wed, 30 Sep 2009 08:51:39 +0000 (08:51 +0000)]
cleanup for the specialaccounts nodemanager plugin:
* root receives keys for all admins regardless of their site
* remove conf_files for root's and site_admin's authorized keys
* root_ssh_key does not get generated in /etc/planetlab anymore
* cleaned up ROOT_SSH_KEY_PUB and ROOT_SSH_KEY from xml config as well

14 years agobugfix for when trying to quote enumerate types
Thierry Parmentelat [Wed, 30 Sep 2009 08:45:54 +0000 (08:45 +0000)]
bugfix for when trying to quote enumerate types

14 years ago> was right
Marc Fiuczynski [Sat, 26 Sep 2009 12:22:54 +0000 (12:22 +0000)]
> was right

14 years ago- Some typos in the documentation were fixed.
Marc Fiuczynski [Sat, 26 Sep 2009 12:09:11 +0000 (12:09 +0000)]
- Some typos in the documentation were fixed.

- UpdateSliceTag check if a node's min_role_id is >= (rather than >)
  to the tag's min_role_id.

Setting tag PLCAPI-4.3-25

14 years agopermit updates for >= role ids
Marc Fiuczynski [Sat, 26 Sep 2009 12:01:01 +0000 (12:01 +0000)]
permit updates for >= role ids

14 years agotypo
Thierry Parmentelat [Tue, 22 Sep 2009 14:56:37 +0000 (14:56 +0000)]
typo

14 years agotypo
Thierry Parmentelat [Mon, 21 Sep 2009 13:34:19 +0000 (13:34 +0000)]
typo

14 years agoSetting tag PLCAPI-4.3-24
Anil-Kumar Vengalil [Fri, 18 Sep 2009 09:20:34 +0000 (09:20 +0000)]
Setting tag PLCAPI-4.3-24

14 years agoremove sfa upcalls
Tony Mack [Mon, 14 Sep 2009 23:19:11 +0000 (23:19 +0000)]
remove sfa upcalls

14 years agoremove sfa upcalls
Tony Mack [Mon, 14 Sep 2009 23:17:29 +0000 (23:17 +0000)]
remove sfa upcalls

14 years agoremove hardcoded variable name
Tony Mack [Mon, 14 Sep 2009 16:15:19 +0000 (16:15 +0000)]
remove hardcoded variable name

14 years agofix typo
Tony Mack [Mon, 14 Sep 2009 16:04:07 +0000 (16:04 +0000)]
fix typo

14 years agoremove unnecessary imports
Tony Mack [Fri, 11 Sep 2009 20:52:26 +0000 (20:52 +0000)]
remove unnecessary imports

14 years agowe will make our own geniclient connection to the registry instead of using sfa.serve...
Tony Mack [Fri, 11 Sep 2009 20:22:42 +0000 (20:22 +0000)]
we will make our own geniclient connection to the registry instead of using sfa.server.registry.Registries

14 years agowe will make our own geniclient connection to the registry instead of using sfa.serve...
Tony Mack [Fri, 11 Sep 2009 20:21:43 +0000 (20:21 +0000)]
we will make our own geniclient connection to the registry instead of using sfa.server.registry.Registries

14 years agoif the record exist dont try to add it, update it
Tony Mack [Fri, 11 Sep 2009 02:00:03 +0000 (02:00 +0000)]
if the record exist dont try to add it, update it

14 years agoadd the key string to the person record before passing it to the sfa upcall
Tony Mack [Thu, 10 Sep 2009 22:23:43 +0000 (22:23 +0000)]
add the key string to the person record before passing it to the sfa upcall

14 years agoSetting tag PLCAPI-4.3-23
Thierry Parmentelat [Mon, 7 Sep 2009 12:39:00 +0000 (12:39 +0000)]
Setting tag PLCAPI-4.3-23
Ongoing work to add upcalls, using new SFA class
new methods BindObjectToPeer, UnBindObjectFromPeer, still for SFA
reviewed type-checking for the 3 taggable classes node-interface-slice
cleanup ald dummynet stuff
expose the 'extensions' accessors to the API
tweaked checks in AddSliceTag
GetPersons exposes roles by default
bugfix in ReportRunLevel for non-string levels
tweaks in GetSlivers ( seems that it now exposes the keys for the root context )

14 years agoadd sfa upcalls to AddPersontToSite and DeletPersonFromSite
Tony Mack [Thu, 3 Sep 2009 17:01:17 +0000 (17:01 +0000)]
add sfa upcalls to AddPersontToSite and DeletPersonFromSite

14 years agoremove sfa upcall, it will cause the person to get delted from plc when we really...
Tony Mack [Thu, 3 Sep 2009 15:09:34 +0000 (15:09 +0000)]
remove sfa upcall, it will cause the person to get delted from plc when we really only want to remove them from the site

14 years agono need for that
Tony Mack [Thu, 3 Sep 2009 14:40:46 +0000 (14:40 +0000)]
no need for that

14 years agofix typo
Tony Mack [Thu, 3 Sep 2009 14:38:18 +0000 (14:38 +0000)]
fix typo

14 years agoadded sfa/geniwrapper upcalls to AddPersonToSite and DeletePersonFrimSite
Tony Mack [Thu, 3 Sep 2009 14:32:41 +0000 (14:32 +0000)]
added sfa/geniwrapper upcalls to AddPersonToSite and DeletePersonFrimSite

14 years agoin get_login_bases, if there are no site_ids then there are no login basees. Return...
Tony Mack [Thu, 3 Sep 2009 14:25:25 +0000 (14:25 +0000)]
in get_login_bases, if there are no site_ids then there are no login basees. Return an empty list instead of throwing an exception.

14 years agobug fix in upcalls
Anil-Kumar Vengalil [Thu, 3 Sep 2009 09:35:59 +0000 (09:35 +0000)]
bug fix in upcalls

14 years agocheck if record exists before trying to add/remove it
Tony Mack [Mon, 24 Aug 2009 20:14:03 +0000 (20:14 +0000)]
check if record exists before trying to add/remove it

14 years agono longer use sfa.plc.sfaImport to add sfa records. SFA authorities direcorty is...
Tony Mack [Mon, 24 Aug 2009 19:55:10 +0000 (19:55 +0000)]
no longer use sfa.plc.sfaImport to add sfa records. SFA authorities direcorty is owned by rood so sfaImport will fail when executed by httpd. Instead make all requests using a GeniClient connection

14 years agodont print the exceptions
Tony Mack [Tue, 18 Aug 2009 17:44:26 +0000 (17:44 +0000)]
dont print the exceptions

14 years agotype should be 'user' not 'person'
Tony Mack [Mon, 17 Aug 2009 22:09:18 +0000 (22:09 +0000)]
type should be 'user' not 'person'

14 years agoSFA object constructor now requires a argument
Tony Mack [Thu, 13 Aug 2009 15:03:22 +0000 (15:03 +0000)]
SFA object constructor now requires a argument

14 years agoNo need to import sfa.plc.api just to get a connection to PLCAPI. Just use plcapi...
Tony Mack [Thu, 13 Aug 2009 04:31:10 +0000 (04:31 +0000)]
No need to import sfa.plc.api just to get a connection to PLCAPI. Just use plcapi directly

14 years agorequired to mark peer_id of key object
Anil-Kumar Vengalil [Tue, 11 Aug 2009 17:50:14 +0000 (17:50 +0000)]
required to mark peer_id of key object

14 years agofix type
Tony Mack [Tue, 11 Aug 2009 17:06:00 +0000 (17:06 +0000)]
fix type

14 years agomove sfa package import inside of __init__()
Tony Mack [Tue, 11 Aug 2009 17:03:11 +0000 (17:03 +0000)]
move sfa package import inside of __init__()

14 years agocheck if the object is alredy bound to the peer
Tony Mack [Mon, 10 Aug 2009 19:47:41 +0000 (19:47 +0000)]
check if the object is alredy bound to the peer

14 years agoDelete the site from sfa before we delete from plc, otherwise sfa wont have enough...
Tony Mack [Tue, 4 Aug 2009 22:08:49 +0000 (22:08 +0000)]
Delete the site from sfa before we delete from plc, otherwise sfa wont have enough information to delete properly

14 years agofix bug, 'node_filter' should be 'person_filter'
Tony Mack [Tue, 4 Aug 2009 22:04:24 +0000 (22:04 +0000)]
fix bug, 'node_filter' should be 'person_filter'

14 years agoadded sfa upcalls
Tony Mack [Tue, 4 Aug 2009 02:26:52 +0000 (02:26 +0000)]
added sfa upcalls

14 years agomove package imports out of __init__()
Tony Mack [Tue, 4 Aug 2009 01:14:46 +0000 (01:14 +0000)]
move package imports out of __init__()

14 years agoinitial checkin of SFA record inport wrapper
Tony Mack [Mon, 3 Aug 2009 21:27:07 +0000 (21:27 +0000)]
initial checkin of SFA record inport wrapper

14 years agothis breaks the build. remove BinaryTest from native_methods.
Barış Metin [Mon, 3 Aug 2009 14:06:58 +0000 (14:06 +0000)]
this breaks the build. remove BinaryTest from native_methods.

14 years agoadded UnBindObjectFromPeer()
Tony Mack [Sat, 1 Aug 2009 03:45:33 +0000 (03:45 +0000)]
added UnBindObjectFromPeer()

14 years agoon second thought, do not allow expires to be set at slice-creation
Thierry Parmentelat [Sat, 25 Jul 2009 17:16:15 +0000 (17:16 +0000)]
on second thought, do not allow expires to be set at slice-creation

14 years agoremove obsolete methods
Thierry Parmentelat [Sat, 25 Jul 2009 16:58:09 +0000 (16:58 +0000)]
remove obsolete methods

14 years agocan set expires upon slice creation
Thierry Parmentelat [Thu, 23 Jul 2009 20:12:23 +0000 (20:12 +0000)]
can set expires upon slice creation

14 years agomake the extensions tag accessible through GetNodes/UpdateNode
Thierry Parmentelat [Thu, 23 Jul 2009 20:10:46 +0000 (20:10 +0000)]
make the extensions tag accessible through GetNodes/UpdateNode

14 years agofix bug in selection of special account ssh keys
Marc Fiuczynski [Tue, 21 Jul 2009 18:40:29 +0000 (18:40 +0000)]
fix bug in selection of special account ssh keys

14 years agosvn keywords
Thierry Parmentelat [Sun, 19 Jul 2009 13:18:50 +0000 (13:18 +0000)]
svn keywords

14 years agothis is getting tedious..
Thierry Parmentelat [Sun, 19 Jul 2009 13:03:16 +0000 (13:03 +0000)]
this is getting tedious..

14 years agorevised type-checking on taggable classes - previous code would reject any tag
Thierry Parmentelat [Sun, 19 Jul 2009 07:55:00 +0000 (07:55 +0000)]
revised type-checking on taggable classes - previous code would reject any tag

14 years agooops
Thierry Parmentelat [Sat, 18 Jul 2009 12:04:30 +0000 (12:04 +0000)]
oops

14 years agoFix big leak in type-checking add/update args for taggable classes
Thierry Parmentelat [Sat, 18 Jul 2009 10:53:35 +0000 (10:53 +0000)]
Fix big leak in type-checking add/update args for taggable classes
Thanks Marc for the heads up

14 years agoThierry's suggested cleanup for GetSlivers
Marc Fiuczynski [Fri, 17 Jul 2009 03:50:47 +0000 (03:50 +0000)]
Thierry's suggested cleanup for GetSlivers

14 years agofix cut-n-paste from AddSliceTag error
Marc Fiuczynski [Fri, 17 Jul 2009 02:35:12 +0000 (02:35 +0000)]
fix cut-n-paste from AddSliceTag error

14 years agomake sure to import PLC.Faults
Tony Mack [Thu, 16 Jul 2009 20:33:26 +0000 (20:33 +0000)]
make sure to import PLC.Faults

14 years agoto get 'roles' from Persons() one must also use 'role_ids' in the return fields
Marc Fiuczynski [Thu, 16 Jul 2009 20:09:11 +0000 (20:09 +0000)]
to get 'roles' from Persons() one must also use 'role_ids' in the return fields

14 years agosupport to return the ssh keys for 'site_admin' and 'root'
Marc Fiuczynski [Thu, 16 Jul 2009 19:50:43 +0000 (19:50 +0000)]
support to return the ssh keys for 'site_admin' and 'root'

14 years agoAdd/Update SliceTag of a system slice
Marc Fiuczynski [Thu, 16 Jul 2009 19:45:44 +0000 (19:45 +0000)]
Add/Update SliceTag of a system slice