Thierry Parmentelat [Mon, 2 Apr 2012 15:15:51 +0000 (17:15 +0200)]
review make sync to push code on a vplc that is lxc-hosted
Thierry Parmentelat [Mon, 2 Apr 2012 15:08:04 +0000 (17:08 +0200)]
fix quoting - was totally wrong on f16
Thierry Parmentelat [Fri, 30 Mar 2012 12:19:56 +0000 (14:19 +0200)]
bump release to 5.1
Thierry Parmentelat [Tue, 27 Mar 2012 12:51:12 +0000 (14:51 +0200)]
rename reload from plc.d/functions into plc_reload
to avoid confusion with builtin /sbin/reload
Thierry Parmentelat [Tue, 27 Mar 2012 12:30:37 +0000 (14:30 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Tue, 27 Mar 2012 11:01:36 +0000 (13:01 +0200)]
get rid of svn keywords once and for good
Thierry Parmentelat [Tue, 27 Mar 2012 10:41:36 +0000 (12:41 +0200)]
rewrite PostgreSQL.quote for f14/f16 reusing pgdb as much as possible
Thierry Parmentelat [Tue, 27 Mar 2012 10:17:55 +0000 (12:17 +0200)]
review use of d.quote: use [ ] instead of deprecated map
Thierry Parmentelat [Tue, 27 Mar 2012 09:59:13 +0000 (11:59 +0200)]
make tags skips .git
Tony Mack [Sun, 25 Mar 2012 20:03:02 +0000 (16:03 -0400)]
fix syntax error
Tony Mack [Sun, 25 Mar 2012 19:52:25 +0000 (15:52 -0400)]
support validating ipv6 addresses
Thierry Parmentelat [Thu, 15 Mar 2012 21:08:26 +0000 (14:08 -0700)]
remove svn kwds
Thierry Parmentelat [Thu, 15 Mar 2012 21:07:11 +0000 (14:07 -0700)]
don't overwite messages already in the db
Marco Yuen [Tue, 6 Mar 2012 17:44:24 +0000 (12:44 -0500)]
Port _quote() from old version of pgdb. Simpliy code.
Marco Yuen [Wed, 29 Feb 2012 20:27:17 +0000 (15:27 -0500)]
Directly call reload() instead of relying on initscript reload.
Thierry Parmentelat [Fri, 24 Feb 2012 10:34:22 +0000 (11:34 +0100)]
fixed error format
Thierry Parmentelat [Fri, 24 Feb 2012 10:30:47 +0000 (11:30 +0100)]
oops
Thierry Parmentelat [Fri, 24 Feb 2012 10:22:23 +0000 (11:22 +0100)]
missing import
Thierry Parmentelat [Fri, 24 Feb 2012 10:19:31 +0000 (11:19 +0100)]
fix GPGAtuh for users
Thierry Parmentelat [Fri, 24 Feb 2012 09:12:15 +0000 (10:12 +0100)]
Setting tag plcapi-5.0-37
fix sorting for methods list in docs
untested but needed tweak for postgres startup in f16
Tony Mack [Thu, 23 Feb 2012 19:34:16 +0000 (14:34 -0500)]
reverting
Thierry Parmentelat [Thu, 23 Feb 2012 10:28:31 +0000 (11:28 +0100)]
add todo note for f16
Thierry Parmentelat [Thu, 23 Feb 2012 10:28:18 +0000 (11:28 +0100)]
cosmetic
Thierry Parmentelat [Thu, 23 Feb 2012 10:25:28 +0000 (11:25 +0100)]
make sure the methods get sorted in the xml doc output
Tony Mack [Thu, 23 Feb 2012 00:50:33 +0000 (19:50 -0500)]
use tabs instead of spaces
Tony Mack [Tue, 21 Feb 2012 21:42:16 +0000 (16:42 -0500)]
Only manage access rules for MyPLC databses (planetlab5 and drupal). Ignore access rules for other database instances
Thierry Parmentelat [Wed, 15 Feb 2012 13:33:54 +0000 (14:33 +0100)]
service postgresql initdb not available with systemd
systemctl is yet broken anyways, at least in current test&build
vserver-based infrastructure
Thierry Parmentelat [Mon, 28 Nov 2011 08:28:18 +0000 (09:28 +0100)]
Setting tag plcapi-5.0-36
tweaks in postgresql setup - in line with sfa
Thierry Parmentelat [Sun, 27 Nov 2011 21:58:01 +0000 (22:58 +0100)]
oops
Thierry Parmentelat [Wed, 23 Nov 2011 17:59:42 +0000 (18:59 +0100)]
separate postgresql launching and checking
Thierry Parmentelat [Mon, 26 Sep 2011 14:20:51 +0000 (16:20 +0200)]
Setting tag plcapi-5.0-35
slight tweaks in Persons.py
Tony Mack [Wed, 7 Sep 2011 18:33:18 +0000 (14:33 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/plcapi
Tony Mack [Wed, 7 Sep 2011 18:33:11 +0000 (14:33 -0400)]
fix bug that prevented certain users from being deleted
Thierry Parmentelat [Tue, 6 Sep 2011 15:09:21 +0000 (17:09 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Tue, 6 Sep 2011 15:09:07 +0000 (17:09 +0200)]
open up visibility amob people on a same site
pis and techs can see all users on their site, regardless of roles
formerly people with admin role were artificially hidden
Thierry Parmentelat [Wed, 31 Aug 2011 09:42:27 +0000 (11:42 +0200)]
Setting tag plcapi-5.0-34
GetSession has support for more than one day sessions
reset_xmpp_pubsub_nodes is much more efficient
reset_xmpp_pubsub_nodes uses the config instead of localhost:5053
bugfix - deleting a person in the middle of the signup process
Tony Mack [Tue, 2 Aug 2011 12:20:54 +0000 (08:20 -0400)]
remove verification_expires from person before deleting
Tony Mack [Mon, 25 Jul 2011 18:07:34 +0000 (14:07 -0400)]
can now delete accounts that still have a pending verification
Baris Metin [Thu, 7 Jul 2011 18:36:01 +0000 (14:36 -0400)]
fix typo
Thierry Parmentelat [Thu, 7 Jul 2011 10:29:08 +0000 (12:29 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Thu, 7 Jul 2011 10:29:00 +0000 (12:29 +0200)]
much faster reset_xmpp_pubsub_nodes - one single API call
to retrieve nodes
Stephen Soltesz [Fri, 17 Jun 2011 00:01:49 +0000 (20:01 -0400)]
Add an optional 'expires' argument to GetSession() to allow longer expirations
Thierry Parmentelat [Tue, 7 Jun 2011 12:02:23 +0000 (14:02 +0200)]
Setting tag plcapi-5.0-33
ratelimit aspects
cache getslivers per node if PLC_GET_SIVERS_CACHE is enabled
requires Django for cache_utils
attempt to expose 'pldistro' to sfa
last_time_spent_online, last_time_spent_offline: new fields in Node
new slice tags 'isolate_loopback' and 'cpu_cores'
refresh-peer federation logs dump exceptions
modpython logs have a timestamp
more verbose/accurate php error reporting
postgresql listens on PLC_DB_HOST+localhost instead of 0.0.0.0
AddNode, UpdateNode: manage tags directly rather than through another method
BootUpdateNode: only update once
GetPersons: techs can access the list of persons on their site
GetSlices and GetSliceTags: techs can see slices on their nodes
GetSlivers: isrootonsite tag; cacheable
Thierry Parmentelat [Tue, 7 Jun 2011 12:00:53 +0000 (14:00 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Tue, 7 Jun 2011 12:00:27 +0000 (14:00 +0200)]
reviewed comments - no change
Tony Mack [Wed, 1 Jun 2011 17:09:15 +0000 (13:09 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/plcapi
Tony Mack [Wed, 1 Jun 2011 17:08:46 +0000 (13:08 -0400)]
fix NameError
Stephen Soltesz [Fri, 27 May 2011 21:12:22 +0000 (17:12 -0400)]
Add two new fields to Nodes & DB to track last run-time and last down-time
add fields: last_time_spent_online & last_time_spent_offline
make BootUpdateNode conditional on parameters passed so these values are
calculated only once per boot.
bootmanager was also updated to enforce this limit in a separate patch.
Tony Mack [Thu, 19 May 2011 01:34:46 +0000 (21:34 -0400)]
techs can view all the users at their site
Tony Mack [Thu, 19 May 2011 00:08:59 +0000 (20:08 -0400)]
Techs can view slices that are running on nodes at their site
Tony Mack [Thu, 19 May 2011 00:06:58 +0000 (20:06 -0400)]
Techs can view slices that are running on nodes at their site
Thierry Parmentelat [Mon, 16 May 2011 09:13:24 +0000 (11:13 +0200)]
tweak the way postgresql.conf defines listen_addresses
now mention PLC_DB_HOST and localhost
in some setups, when run inside a vserver, localhost was found to not
be bound
Thierry Parmentelat [Mon, 16 May 2011 09:09:10 +0000 (11:09 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Stephen Soltesz [Thu, 12 May 2011 21:52:28 +0000 (17:52 -0400)]
Print php.log stack traces in reverse order (a more standard order)
Stephen Soltesz [Thu, 12 May 2011 21:51:21 +0000 (17:51 -0400)]
Add isolate_loopback slice tag to prevent shared loopback at vserver creation
Thierry Parmentelat [Mon, 9 May 2011 08:04:51 +0000 (10:04 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Baris Metin [Wed, 4 May 2011 21:24:44 +0000 (17:24 -0400)]
fix ;
Thierry Parmentelat [Tue, 3 May 2011 06:21:43 +0000 (08:21 +0200)]
expose pldistro tag in sfa
Baris Metin [Fri, 29 Apr 2011 20:40:00 +0000 (16:40 -0400)]
fix typo
Stephen Soltesz [Tue, 26 Apr 2011 19:23:30 +0000 (15:23 -0400)]
Add timestamp to ModPython exceptions to aid in tracking down time-of-failure
Add more detailed stack traces to plc_api.php to identify users and arguments of failed API commands.
Sapan Bhatia [Tue, 26 Apr 2011 14:05:51 +0000 (10:05 -0400)]
Merge branch 'master' of ssh://sapanb@git.planet-lab.org/git/plcapi
Sapan Bhatia [Tue, 26 Apr 2011 14:05:32 +0000 (10:05 -0400)]
Implemented isrootonsite tag for selectively granting site_admins root
Tony Mack [Thu, 21 Apr 2011 02:12:24 +0000 (22:12 -0400)]
add node tags as root not as caller
Tony Mack [Thu, 21 Apr 2011 00:30:21 +0000 (20:30 -0400)]
add node tags as root not as caller
Thierry Parmentelat [Wed, 13 Apr 2011 08:16:38 +0000 (10:16 +0200)]
cosmetic
Thierry Parmentelat [Wed, 13 Apr 2011 08:15:35 +0000 (10:15 +0200)]
also print out stack dump when hrn can't be figured while adding a federated node
Thierry Parmentelat [Tue, 12 Apr 2011 15:49:08 +0000 (17:49 +0200)]
sync aspects/ too
Thierry Parmentelat [Tue, 12 Apr 2011 15:26:47 +0000 (17:26 +0200)]
Tony has reported that in some rare occurences, RefreshPeer creates
nodes that should be remote but remain local
protect the fragment that sets host's hrn
in the case reported by Tony, this fails with, apparently,
the peer's 'hrn_root' being None
this change does not fix the first cause for that, but at least should
let RefreshPeer finish its job cleanly (but with a missing hrn though)
Baris Metin [Mon, 11 Apr 2011 21:59:40 +0000 (17:59 -0400)]
activate cache_utils only when enabled.
Baris Metin [Mon, 11 Apr 2011 20:37:09 +0000 (16:37 -0400)]
use PLC_RATELIMIT_ENABLED to enable ratelimit aspect
Baris Metin [Mon, 11 Apr 2011 19:06:24 +0000 (15:06 -0400)]
more ocaml for plc is a good thing, but not in Python code ;)
root [Tue, 22 Mar 2011 12:26:41 +0000 (08:26 -0400)]
Merge commit 'origin/master'
Thierry Parmentelat [Tue, 22 Mar 2011 12:25:57 +0000 (13:25 +0100)]
Setting tag plcapi-5.0-32
rename initscript_body into initscript_code
root [Mon, 21 Mar 2011 22:15:56 +0000 (18:15 -0400)]
Merge commit 'origin/master'
Thierry Parmentelat [Mon, 21 Mar 2011 21:54:31 +0000 (22:54 +0100)]
rename initscript_body into initscript_code
Thierry Parmentelat [Mon, 21 Mar 2011 21:54:15 +0000 (22:54 +0100)]
rename initscript_body into initscript_code
root [Mon, 21 Mar 2011 00:00:43 +0000 (20:00 -0400)]
Merge commit 'origin/master'
Thierry Parmentelat [Sun, 20 Mar 2011 23:52:12 +0000 (00:52 +0100)]
Setting tag plcapi-5.0-31
new initscript_body tag
root [Wed, 16 Mar 2011 17:00:33 +0000 (13:00 -0400)]
Merge commit 'origin/master'
Thierry Parmentelat [Wed, 16 Mar 2011 16:53:49 +0000 (17:53 +0100)]
add the initscript_body accessor/tag
Sapan Bhatia [Wed, 9 Mar 2011 15:14:49 +0000 (10:14 -0500)]
Added cache_utils to the distribution because it includes a patch and is not packaged by maintainer
Sapan Bhatia [Wed, 9 Mar 2011 15:06:52 +0000 (10:06 -0500)]
Formalized GetSlivers cache, added option to plc_config
root [Wed, 9 Mar 2011 08:34:55 +0000 (03:34 -0500)]
Merge commit 'origin/master'
Thierry Parmentelat [Wed, 9 Mar 2011 08:26:35 +0000 (09:26 +0100)]
Setting tag plcapi-5.0-30
working draft for GetSliceSshKeys
root [Wed, 9 Mar 2011 08:24:51 +0000 (03:24 -0500)]
Merge commit 'origin/master'
Thierry Parmentelat [Wed, 9 Mar 2011 08:18:40 +0000 (09:18 +0100)]
bugfixes
root [Wed, 9 Mar 2011 06:45:17 +0000 (01:45 -0500)]
Merge commit 'origin/master'
Thierry Parmentelat [Wed, 9 Mar 2011 06:41:35 +0000 (07:41 +0100)]
fixes in GetSliceSshKeys
smbaker [Wed, 9 Mar 2011 01:29:42 +0000 (17:29 -0800)]
add cpu_cores slice attribute
Thierry Parmentelat [Tue, 8 Mar 2011 23:24:44 +0000 (00:24 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Tue, 8 Mar 2011 23:17:10 +0000 (00:17 +0100)]
first draft for GetSliceSshKeys
Thierry Parmentelat [Thu, 17 Feb 2011 21:08:53 +0000 (22:08 +0100)]
Setting tag plcapi-5.0-29
trash getbootmedium tmp file if already exists but is longer than 5 minutes old
(this is for people who cancel their download)
Thierry Parmentelat [Fri, 11 Feb 2011 16:12:23 +0000 (17:12 +0100)]
cosmetic error msg - somehow debug_backtrace seems to lack context sometimes
Thierry Parmentelat [Fri, 11 Feb 2011 15:51:31 +0000 (16:51 +0100)]
whoops, stupid me
Thierry Parmentelat [Fri, 11 Feb 2011 15:25:47 +0000 (16:25 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Fri, 11 Feb 2011 15:09:02 +0000 (16:09 +0100)]
trashing existing tmp file if older than 5 minutes
Thierry Parmentelat [Fri, 4 Feb 2011 13:22:36 +0000 (14:22 +0100)]
Setting tag plcapi-5.0-28
fix db-config sequence : accessors step now merged in, and occurs at the right time
db-config also more robust
no more explicit 'accessors' step in plc.d
Thierry Parmentelat [Fri, 4 Feb 2011 11:50:41 +0000 (12:50 +0100)]
running accessors before db not working (misses admin account)
so merged accessors as one of the early stages of db-config.d
Thierry Parmentelat [Fri, 4 Feb 2011 10:26:05 +0000 (11:26 +0100)]
review startup steps 'db' and 'accessors' - run accessors first, make
code more robust
Thierry Parmentelat [Fri, 4 Feb 2011 08:23:44 +0000 (09:23 +0100)]
more robust