sfa.git
11 years agoSetting tag sfa-2.1-15 sfa-2.1-15
Thierry Parmentelat [Wed, 26 Sep 2012 09:48:23 +0000 (11:48 +0200)]
Setting tag sfa-2.1-15
first stab at a driver for the NITOS/OMF testbed (sep. pkg)
deeper cleanup of the data-dependencies between SFA and the testbed
in particular, sfi create issues Resolve(details=False)
for that purpose, Resolve exposes reg-* keys for SFA builtins
which in turn allows sfi list to show PIs, slice members and keys
NOTE: sfa-config-tty is known to be broken w/ less frequently used func's
Shows stacktrace when startup fails (DB conn, wrong flavour, etc..)

11 years agobefore we expose a sqlalchemy object to the xmlrpc wire, we need to
Thierry Parmentelat [Tue, 25 Sep 2012 14:24:18 +0000 (16:24 +0200)]
before we expose a sqlalchemy object to the xmlrpc wire, we need to
clean up related objects - xmlrpc would not allow it, we expose hrns
instead anyways
the way we did this before this change was to look for lists of
RegRecord or RegKey
however it turns out the lists are actually instances of
sqlalchemy.orm.collections.InstrumentedList
so if a list turns out empty, it did not get filter out but could not
get marshalled either
we simplify the code for filtering out (Record.todict) to exclude
objects only on the value type (not its sons when it's a list)
and the manager does not pass RegRecord or RegKey anymore, but just
InstrmentedList

11 years agosfi calls Resolve (details=False) before issuing CreateSliver
Thierry Parmentelat [Mon, 24 Sep 2012 09:21:38 +0000 (11:21 +0200)]
sfi calls Resolve (details=False) before issuing CreateSliver
this seems to work now again, tested in dual-mode SFA/Plc

11 years agocosmetic
Thierry Parmentelat [Mon, 24 Sep 2012 09:20:16 +0000 (11:20 +0200)]
cosmetic

11 years agofix syntax error
Thierry Parmentelat [Mon, 24 Sep 2012 09:19:59 +0000 (11:19 +0200)]
fix syntax error

11 years agocosmetic changes for sfi list - accepts a -v option and can display keys
Thierry Parmentelat [Mon, 24 Sep 2012 09:05:03 +0000 (11:05 +0200)]
cosmetic changes for sfi list - accepts a -v option and can display keys

11 years agoMerge branch 'geni-v2' of ssh://git.onelab.eu/git/sfa into geni-v2
Thierry Parmentelat [Fri, 21 Sep 2012 16:48:32 +0000 (18:48 +0200)]
Merge branch 'geni-v2' of ssh://git.onelab.eu/git/sfa into geni-v2

11 years agosfi is more flexible when putting together the 'users' arg for CreateSliver
Thierry Parmentelat [Fri, 21 Sep 2012 16:48:14 +0000 (18:48 +0200)]
sfi is more flexible when putting together the 'users' arg for CreateSliver

11 years agoexpose reg-keys as part of Resolve
Thierry Parmentelat [Fri, 21 Sep 2012 16:47:17 +0000 (18:47 +0200)]
expose reg-keys as part of Resolve

11 years agocleanup
Tony Mack [Fri, 21 Sep 2012 15:25:38 +0000 (11:25 -0400)]
cleanup

11 years agofix NameError
Tony Mack [Fri, 21 Sep 2012 15:24:55 +0000 (11:24 -0400)]
fix NameError

11 years agoWhen sfi calls CreateSliver, it uses Resolve beforehand to make up the
Thierry Parmentelat [Fri, 21 Sep 2012 14:36:20 +0000 (16:36 +0200)]
When sfi calls CreateSliver, it uses Resolve beforehand to make up the
'users' arg
This change reverts to using Resolve (details=True) so that
testbed-dependant data gets added to the result of Resolve
It seems like our implementation is not yet testbed-neutral enough, so
for now we need this setting

11 years agocomment
Thierry Parmentelat [Fri, 21 Sep 2012 13:48:35 +0000 (15:48 +0200)]
comment

11 years agoadd an optional 'options' dict to Resolve (checked that old clients
Thierry Parmentelat [Thu, 20 Sep 2012 17:32:02 +0000 (19:32 +0200)]
add an optional 'options' dict to Resolve (checked that old clients
would not break)
go deeper yet in cleaning up the amount of extra fields in records
turns out CreateSliver actually needs to re-synthesize a whole lot of
data about users (for when account creation needs to take place)
in a truly federated environment this is not going to work, the
registry will never have enough data for account creation as this is
testbed-dependent
as far as I can tell this is a blatant flaw in the architecture
this code might work - accidentally - in a simple one-SFA-one-PLC
setup but this needs more work

11 years agoadd to List the same builtin relations as for Resolve
Thierry Parmentelat [Thu, 20 Sep 2012 14:11:04 +0000 (16:11 +0200)]
add to List the same builtin relations as for Resolve
use that to have 'sfi list' display member ships and PI relationships
as well

11 years agosfi create takes advantage of the reg-researchers (builtin hrns of
Thierry Parmentelat [Thu, 20 Sep 2012 14:10:05 +0000 (16:10 +0200)]
sfi create takes advantage of the reg-researchers (builtin hrns of
attached users) instead of the unreliable and testbed-dependant
'researcher'

11 years agoexpose hrns of builtin related entities as a result of Resolve; this
Thierry Parmentelat [Thu, 20 Sep 2012 14:08:39 +0000 (16:08 +0200)]
expose hrns of builtin related entities as a result of Resolve; this
is required now that the default value for 'details' is False, and
that we cannot rely on an underlying testbed

11 years agoAdvertise the Nitos access gateway
Mohamed Larabi [Thu, 20 Sep 2012 09:35:32 +0000 (11:35 +0200)]
Advertise the Nitos access gateway

11 years agoAdd the exclusive tag to nitos nodes in order to show that they are reservables and...
Mohamed Larabi [Thu, 20 Sep 2012 09:30:10 +0000 (11:30 +0200)]
Add the exclusive tag to nitos nodes in order to show that they are reservables and not shared

11 years agothe Resolve method takes an optional argument that tells if we need
Thierry Parmentelat [Wed, 19 Sep 2012 14:49:48 +0000 (16:49 +0200)]
the Resolve method takes an optional argument that tells if we need
details from the testbed (which was named 'full', which was dumb, I renamed
this as 'details')
in any case this change is about using details=False by default, as
SFA data should be self-sufficient, and examples of foreign drivers
have shown the problem...

11 years agoclearer warnings for when things go wrong
Thierry Parmentelat [Wed, 19 Sep 2012 10:11:32 +0000 (12:11 +0200)]
clearer warnings for when things go wrong

11 years agosfadump -x to show a full xml dump of credentials
Thierry Parmentelat [Wed, 19 Sep 2012 10:09:07 +0000 (12:09 +0200)]
sfadump -x to show a full xml dump of credentials

11 years agoprint out explicit warning when xmlsec1 cannot be found in PATH
Thierry Parmentelat [Wed, 19 Sep 2012 10:08:13 +0000 (12:08 +0200)]
print out explicit warning when xmlsec1 cannot be found in PATH

11 years agofix to sfadump that is sometimes helpful
Thierry Parmentelat [Wed, 19 Sep 2012 06:39:11 +0000 (08:39 +0200)]
fix to sfadump that is sometimes helpful

11 years agoUpdate reserveNodes/Channels and releaseNodes/Channels calls arguments
Mohamed Larabi [Tue, 18 Sep 2012 17:40:52 +0000 (19:40 +0200)]
Update reserveNodes/Channels and releaseNodes/Channels calls arguments

11 years agoclean up nitosslices.py
Mohamed Larabi [Tue, 18 Sep 2012 17:34:12 +0000 (19:34 +0200)]
clean up nitosslices.py

11 years agoMake Nitos Rspecs version independante from the Nitos driver
Mohamed Larabi [Tue, 18 Sep 2012 17:32:16 +0000 (19:32 +0200)]
Make Nitos Rspecs version independante from the Nitos driver

11 years agoAdd Nitos package
Mohamed Larabi [Mon, 17 Sep 2012 15:25:31 +0000 (17:25 +0200)]
Add Nitos package

11 years agoUpdate delete_sliver for nitos driver
Mohamed Larabi [Mon, 17 Sep 2012 13:29:46 +0000 (15:29 +0200)]
Update delete_sliver for nitos driver

11 years agoNitos slice's users in slice['user_ids']
Mohamed Larabi [Mon, 17 Sep 2012 13:16:00 +0000 (15:16 +0200)]
Nitos slice's users in slice['user_ids']

11 years agobugs fix
Mohamed Larabi [Mon, 17 Sep 2012 12:09:09 +0000 (14:09 +0200)]
bugs fix

11 years agocraete or parse RSpec according to the requested RSpec Version
Mohamed Larabi [Mon, 17 Sep 2012 12:07:43 +0000 (14:07 +0200)]
craete or parse RSpec according to the requested RSpec Version

11 years agohandle Nitos users also
Mohamed Larabi [Mon, 17 Sep 2012 12:04:52 +0000 (14:04 +0200)]
handle Nitos users also

11 years agobugs fixing
Mohamed Larabi [Mon, 10 Sep 2012 13:13:01 +0000 (15:13 +0200)]
bugs fixing

11 years agoEnforce RSpec Version check
Mohamed Larabi [Mon, 10 Sep 2012 13:11:44 +0000 (15:11 +0200)]
Enforce RSpec Version check

11 years agoAdd nitos module to setup.py
Mohamed Larabi [Mon, 10 Sep 2012 09:37:40 +0000 (11:37 +0200)]
Add nitos module to setup.py

11 years agoFlavour oriented configuration
Mohamed Larabi [Fri, 31 Aug 2012 14:10:58 +0000 (16:10 +0200)]
Flavour oriented configuration

11 years agoFirst draft of the Nitos federation with SFA
Mohamed Larabi [Fri, 31 Aug 2012 14:05:42 +0000 (16:05 +0200)]
First draft of the Nitos federation with SFA

11 years agoSetting tag sfa-2.1-14 sfa-2.1-14
Thierry Parmentelat [Mon, 17 Sep 2012 09:51:25 +0000 (11:51 +0200)]
Setting tag sfa-2.1-14
configurable data-dir (/var/lib/sfa)
no more dependent on myplc-config
some support for hrns with _ instead of \.
fix for PL importing in presence of gpg keys
DeleteSliver returns True instead of 1 in case of success
Various improvements on the openstack/nova side

11 years agotypo
Thierry Parmentelat [Mon, 17 Sep 2012 08:22:37 +0000 (10:22 +0200)]
typo

11 years agomanifest rspec for a slice that doesn't exist should be empyt
Tony Mack [Fri, 14 Sep 2012 01:29:20 +0000 (21:29 -0400)]
manifest rspec for a slice that doesn't exist should be empyt

11 years agoget client_id from slice tag
Tony Mack [Tue, 11 Sep 2012 17:53:39 +0000 (13:53 -0400)]
get client_id from slice tag

11 years agofix NameError
Tony Mack [Tue, 11 Sep 2012 14:50:33 +0000 (10:50 -0400)]
fix NameError

11 years agoclient id should remain as long as slice remains alive
Tony Mack [Tue, 11 Sep 2012 14:33:39 +0000 (10:33 -0400)]
client id should remain as long as slice remains alive

11 years agofix AttributeError
Tony Mack [Mon, 10 Sep 2012 23:48:54 +0000 (19:48 -0400)]
fix AttributeError

11 years agofix bug
Tony Mack [Mon, 10 Sep 2012 19:54:45 +0000 (15:54 -0400)]
fix bug

11 years agoupdated set_authority
Tony Mack [Mon, 10 Sep 2012 19:08:49 +0000 (15:08 -0400)]
updated set_authority

11 years agopreserve node client ids from request to manifest in openstack driver
Tony Mack [Sat, 8 Sep 2012 01:58:51 +0000 (21:58 -0400)]
preserve node client ids from request to manifest in openstack driver

11 years agopreserve node client id from request to manifest
Tony Mack [Sat, 8 Sep 2012 00:37:31 +0000 (20:37 -0400)]
preserve node client id from request to manifest

11 years agofix set_authority()
Tony Mack [Fri, 7 Sep 2012 16:42:11 +0000 (12:42 -0400)]
fix set_authority()

11 years agodont default client_id to node's hostname
Tony Mack [Fri, 7 Sep 2012 16:41:31 +0000 (12:41 -0400)]
dont default client_id to node's hostname

11 years agofix set_authority()
Tony Mack [Fri, 7 Sep 2012 16:41:04 +0000 (12:41 -0400)]
fix set_authority()

11 years agofix bug in hrn_to_urn()
Tony Mack [Fri, 7 Sep 2012 16:25:04 +0000 (12:25 -0400)]
fix bug in hrn_to_urn()

11 years agoupdate a urn's type in Xrn.__init__()
Tony Mack [Fri, 7 Sep 2012 16:02:55 +0000 (12:02 -0400)]
update a urn's type in Xrn.__init__()

11 years agoupdate a urn's type in Xrn.__init__()
Tony Mack [Fri, 7 Sep 2012 15:52:21 +0000 (11:52 -0400)]
update a urn's type in Xrn.__init__()

11 years agofix sliver id in sliver status and list resources
Tony Mack [Fri, 7 Sep 2012 15:45:59 +0000 (11:45 -0400)]
fix sliver id in sliver status and list resources

11 years agofix sliver id in sliver status and list resources
Tony Mack [Fri, 7 Sep 2012 15:43:44 +0000 (11:43 -0400)]
fix sliver id in sliver status and list resources

11 years agoadded cliet_id
Tony Mack [Fri, 7 Sep 2012 15:42:58 +0000 (11:42 -0400)]
added cliet_id

11 years agofix call to Xrn
Tony Mack [Fri, 7 Sep 2012 15:36:01 +0000 (11:36 -0400)]
fix call to Xrn

11 years agopreserve node client ids from request to manifest
Tony Mack [Fri, 7 Sep 2012 15:16:38 +0000 (11:16 -0400)]
preserve node client ids from request to manifest

11 years agofix set_authority(). replace invalid char in sliver_id with '-'
Tony Mack [Fri, 7 Sep 2012 14:37:16 +0000 (10:37 -0400)]
fix set_authority(). replace invalid char in sliver_id with '-'

11 years agouse sfaadmin.py rather than more fragile sfaadmin in scripts
Thierry Parmentelat [Tue, 4 Sep 2012 09:44:17 +0000 (11:44 +0200)]
use sfaadmin.py rather than more fragile sfaadmin in scripts

not all people use rpm to install

11 years agodos2unix
Thierry Parmentelat [Mon, 3 Sep 2012 12:31:25 +0000 (14:31 +0200)]
dos2unix

11 years agoMerge branch 'geni-v2' and master
Thierry Parmentelat [Mon, 3 Sep 2012 12:12:27 +0000 (14:12 +0200)]
Merge branch 'geni-v2' and master

11 years agoreplace urn_to_sliver_id
Mohamed Larabi [Mon, 3 Sep 2012 09:47:18 +0000 (11:47 +0200)]
replace urn_to_sliver_id

11 years agoremove default am_code = None from 'code' return
Tony Mack [Fri, 31 Aug 2012 15:45:59 +0000 (11:45 -0400)]
remove default am_code = None from 'code' return

11 years agoreplace urn_to_sliver_id
Tony Mack [Fri, 31 Aug 2012 14:30:39 +0000 (10:30 -0400)]
replace urn_to_sliver_id

11 years agodos2unix'ed
Thierry Parmentelat [Fri, 31 Aug 2012 07:43:00 +0000 (09:43 +0200)]
dos2unix'ed

11 years agoinclude firewall rules in openstack manifest rspec
Tony Mack [Fri, 31 Aug 2012 01:51:07 +0000 (21:51 -0400)]
include firewall rules in openstack manifest rspec

11 years agoinclude firewall rules in openstack manifest rspec
Tony Mack [Fri, 31 Aug 2012 01:51:07 +0000 (21:51 -0400)]
include firewall rules in openstack manifest rspec

11 years agointerface elements in the manifest rspec should contain a sliver id attribute
Tony Mack [Fri, 31 Aug 2012 00:48:34 +0000 (20:48 -0400)]
interface elements in the manifest rspec should contain a sliver id attribute

11 years agointerface elements in the manifest rspec should contain a sliver id attribute
Tony Mack [Fri, 31 Aug 2012 00:48:34 +0000 (20:48 -0400)]
interface elements in the manifest rspec should contain a sliver id attribute

11 years agoDeleteSliver returns a boolean instead of an int
Tony Mack [Fri, 31 Aug 2012 00:26:01 +0000 (20:26 -0400)]
DeleteSliver returns a boolean instead of an int

11 years agouse 'notready' status instead of unknown
Tony Mack [Fri, 31 Aug 2012 00:11:33 +0000 (20:11 -0400)]
use 'notready' status instead of unknown

11 years agoDeleteSliver returns a boolean instead of an int
Tony Mack [Fri, 31 Aug 2012 00:04:53 +0000 (20:04 -0400)]
DeleteSliver returns a boolean instead of an int

11 years agoOpen ICMP by default, report error if no disk image specified
Andy Bavier [Thu, 30 Aug 2012 14:19:00 +0000 (10:19 -0400)]
Open ICMP by default, report error if no disk image specified

11 years agoDeleteSliver returns a boolean instead of an int
Tony Mack [Fri, 31 Aug 2012 00:26:01 +0000 (20:26 -0400)]
DeleteSliver returns a boolean instead of an int

11 years agouse 'notready' status instead of unknown
Tony Mack [Fri, 31 Aug 2012 00:11:33 +0000 (20:11 -0400)]
use 'notready' status instead of unknown

11 years agoDeleteSliver returns a boolean instead of an int
Tony Mack [Fri, 31 Aug 2012 00:04:53 +0000 (20:04 -0400)]
DeleteSliver returns a boolean instead of an int

11 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/sfa
Andy Bavier [Thu, 30 Aug 2012 21:13:26 +0000 (17:13 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/sfa

11 years agofix aggregate status
Tony Mack [Thu, 30 Aug 2012 19:10:43 +0000 (15:10 -0400)]
fix aggregate status

11 years agoadded client_id attribute to interface elements
Tony Mack [Thu, 30 Aug 2012 19:09:49 +0000 (15:09 -0400)]
added client_id attribute to interface elements

11 years agofix aggregate status
Tony Mack [Thu, 30 Aug 2012 19:10:43 +0000 (15:10 -0400)]
fix aggregate status

11 years agoadded client_id attribute to interface elements
Tony Mack [Thu, 30 Aug 2012 19:09:49 +0000 (15:09 -0400)]
added client_id attribute to interface elements

11 years agoreplace Xrn.get_sliver_id()
Tony Mack [Thu, 30 Aug 2012 16:51:41 +0000 (12:51 -0400)]
replace Xrn.get_sliver_id()

11 years agoreplace Xrn.get_sliver_id()
Tony Mack [Thu, 30 Aug 2012 16:51:41 +0000 (12:51 -0400)]
replace Xrn.get_sliver_id()

11 years agofix type attribute of ip element
Tony Mack [Thu, 30 Aug 2012 16:14:39 +0000 (12:14 -0400)]
fix type attribute of ip element

11 years agofix type attribute of ip element
Tony Mack [Thu, 30 Aug 2012 16:14:39 +0000 (12:14 -0400)]
fix type attribute of ip element

11 years agonode should contain sliver id in manifest rspec
Tony Mack [Thu, 30 Aug 2012 15:14:22 +0000 (11:14 -0400)]
node should contain sliver id in manifest rspec

11 years agonode should contain sliver id in manifest rspec
Tony Mack [Thu, 30 Aug 2012 15:13:35 +0000 (11:13 -0400)]
node should contain sliver id in manifest rspec

11 years agofix potential attribute error
Tony Mack [Thu, 30 Aug 2012 15:10:45 +0000 (11:10 -0400)]
fix potential attribute error

11 years agofix imports
Tony Mack [Thu, 30 Aug 2012 15:10:22 +0000 (11:10 -0400)]
fix imports

11 years agobetter support for sliver ids
Tony Mack [Thu, 30 Aug 2012 14:52:34 +0000 (10:52 -0400)]
better support for sliver ids

11 years agoone node element per sliver in the manifest rspec
Tony Mack [Thu, 30 Aug 2012 14:50:19 +0000 (10:50 -0400)]
one node element per sliver in the manifest rspec

11 years agoOpen ICMP by default, report error if no disk image specified
Andy Bavier [Thu, 30 Aug 2012 14:19:00 +0000 (10:19 -0400)]
Open ICMP by default, report error if no disk image specified

11 years agosleep in between polls
Tony Mack [Thu, 30 Aug 2012 03:14:39 +0000 (23:14 -0400)]
sleep in between polls

11 years agoin delete_instances(), wait until instance is destroyed until attempting to delete...
Tony Mack [Thu, 30 Aug 2012 03:01:25 +0000 (23:01 -0400)]
in delete_instances(), wait until instance is destroyed until attempting to delete instance's security groups. Wait for at most 10 seconds. Executes in a separate thread so main call is not blocked

11 years agopreserve node client id from request rspec
Tony Mack [Wed, 29 Aug 2012 22:01:49 +0000 (18:01 -0400)]
preserve node client id from request rspec

11 years agofix bugs: use sliver['name'] to get slice's name
Mohamed Larabi [Thu, 23 Aug 2012 10:46:48 +0000 (12:46 +0200)]
fix bugs: use sliver['name'] to get slice's name

11 years agoraise exception if security group creation fails
Tony Mack [Thu, 23 Aug 2012 02:49:49 +0000 (22:49 -0400)]
raise exception if security group creation fails