4 years agofix ASAP jobs with state != Waiting,Running geni-v3 master
fsaintma [Thu, 11 Jun 2015 07:24:10 +0000]
fix ASAP jobs with state != Waiting,Running

4 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
fsaintma [Wed, 10 Jun 2015 07:23:47 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

4 years agofix ASAP duration
fsaintma [Wed, 10 Jun 2015 07:23:32 +0000]
fix ASAP duration

4 years agoSetting tag sfa-3.1-18 sfa-3.1-18
Thierry Parmentelat [Mon, 8 Jun 2015 10:24:45 +0000]
Setting tag sfa-3.1-18
incorporated Frederic Saint Marcel's addition of ASAP management tag

4 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
fsaintma [Mon, 8 Jun 2015 08:41:14 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

4 years agoadd ASAP mgt and fix start_time with ASAP jobs
fsaintma [Mon, 8 Jun 2015 08:41:11 +0000]
add ASAP mgt and fix start_time with ASAP jobs

4 years agoSetting tag sfa-3.1-17 sfa-3.1-17
Thierry Parmentelat [Fri, 5 Jun 2015 12:00:01 +0000]
Setting tag sfa-3.1-17
workaround for 'name' not being exposed properly by List() on authority objects
fix a corner case in PL importer
trashed module registry_manager_openstack

4 years agoworkaround the mysterious issue with sqlalchemy that returns instances of RegAuthorit...
Thierry Parmentelat [Fri, 5 Jun 2015 11:57:41 +0000]
workaround the mysterious issue with sqlalchemy that returns instances of RegAuthority that do not
have their __dict__ in line with the object's contents (specifically missing 'name')
a possibly other instance of that same issue was worked around in Update() using an extra print statement,
which I prefer to leave as is for now as I cannot test that thoroughly, but a similar approach would probably
be a solution in this case as well

4 years agocosmetic
Thierry Parmentelat [Fri, 5 Jun 2015 11:17:08 +0000]
cosmetic

4 years agocosmetic
Thierry Parmentelat [Fri, 5 Jun 2015 10:43:22 +0000]
cosmetic

4 years agoprettyfied registry manager (+format)
Thierry Parmentelat [Fri, 5 Jun 2015 10:43:06 +0000]
prettyfied registry manager (+format)

4 years agowith instead of open/close
Thierry Parmentelat [Fri, 5 Jun 2015 10:40:15 +0000]
with instead of open/close

4 years agoRecord.todict behaves suspisciously
Thierry Parmentelat [Fri, 5 Jun 2015 10:06:23 +0000]
Record.todict behaves suspisciously
no change for now, but we disambiguate between XML.todict() and Record.todict()
so we can more easily spot which is which

4 years agocleaned up saving-to-file functions in sfi - now always displays a message when writi...
Thierry Parmentelat [Fri, 5 Jun 2015 10:03:23 +0000]
cleaned up saving-to-file functions in sfi - now always displays a message when writing a file

4 years agotrashed registry_manager_openstack
Thierry Parmentelat [Fri, 5 Jun 2015 10:02:03 +0000]
trashed registry_manager_openstack

4 years agoremove printing 'name' in low-level record utilities, as UTF-8 values can create...
Thierry Parmentelat [Fri, 5 Jun 2015 08:10:29 +0000]
remove printing 'name' in low-level record utilities, as UTF-8 values can create serious errors on the server side if ill-configured

4 years agofix corner case in PL importer
Thierry Parmentelat [Fri, 5 Jun 2015 08:09:31 +0000]
fix corner case in PL importer

4 years agoall sfi commands that support -t/--type now accept a 2-chars shorthand
Thierry Parmentelat [Fri, 5 Jun 2015 07:41:21 +0000]
all sfi commands that support -t/--type now accept a 2-chars shorthand

4 years agoadd a useless print statement to work around a weird issue we have with sqlalchemy...
Thierry Parmentelat [Fri, 5 Jun 2015 07:14:28 +0000]
add a useless print statement to work around a weird issue we have with sqlalchemy objects and their __dict__ value being wrong
this is the second occurrence of that issue and a better solution is clearly needed
in the mix, record.todict() now expects a tuple of types to exclude; this way we can use isinstance natively

4 years agorepr() of Reg objects shows email and name if present
Thierry Parmentelat [Fri, 5 Jun 2015 07:12:08 +0000]
repr() of Reg objects shows email and name if present

4 years agono change - spaces
Thierry Parmentelat [Fri, 5 Jun 2015 07:11:27 +0000]
no change - spaces

4 years agoSetting tag sfa-3.1-16 sfa-3.1-16
Thierry Parmentelat [Thu, 4 Jun 2015 12:18:29 +0000]
Setting tag sfa-3.1-16
added a new builtin column 'name' for authorities in the sfa registry
this is kept in sync with MyPLC's site names when relevant
sfa update -t authority thus now has a new -n/--name option
sfi register or update can specify record type on only 2 characters (au, us, no, or sl)
reviewed Describe and Allocate wrt slice tags for a PL AM:
Describe now exposes all slice tags with a 'scope' being 'sliver' or 'slice'
Allocate now by default ignores incoming slice tags
Allocate's options can mention 'pltags' among 'ignore', 'append', 'sync'
default being 'ignore'
in 'ignore' mode, slice tags are unchanged in the PL db
in 'append' mode, slice tags from the rspec are added to the db unless
they are already present
in 'sync' mode, the code attempts to leave the PL db in sync with the tags
provided in rspec; this can be dangerous and is thus no longer the default
behaviour

4 years agouser needs to specify 'pltags':'sync' in the options to Allocate to use standard...
Thierry Parmentelat [Thu, 4 Jun 2015 12:07:14 +0000]
user needs to specify 'pltags':'sync' in the options to Allocate to use standard behaviour, insted of more confusing 'match'

4 years agoremoved the 'append' option to Allocate in the PL driver;
Thierry Parmentelat [Wed, 3 Jun 2015 15:54:17 +0000]
removed the 'append' option to Allocate in the PL driver;
replaced with the 'pltags' option that can be either 'ignore' (default), 'append' (only add the provided tags if not yet present) or anything else (try to do the magic, which is known to be a little fragile)

4 years agoadd a docstring note about Allocate and the append option
Thierry Parmentelat [Wed, 3 Jun 2015 15:12:37 +0000]
add a docstring note about Allocate and the append option

4 years agomajor fix about slice tags
Thierry Parmentelat [Wed, 3 Jun 2015 14:17:43 +0000]
major fix about slice tags
no slice tags was exposed by sfi describe before this change
we now expose them properly with a 'scope' field that can be either 'slice' or 'sliver'
note that nodegroup-based tags are still silently ignored at this point
---
using allocate with the 'append' option is probably the best approach anyway, with an empty list of slice tags; this avoid resetting slice tags

4 years agoimproved sfi describe : show help is wrong number of args, use a context manager...
Thierry Parmentelat [Wed, 3 Jun 2015 14:15:18 +0000]
improved sfi describe : show help is wrong number of args, use a context manager for opening input file

4 years agono change - various tweaks here and there
Thierry Parmentelat [Wed, 3 Jun 2015 14:14:38 +0000]
no change - various tweaks here and there

4 years agoprettyfied - spaces
Thierry Parmentelat [Wed, 3 Jun 2015 10:20:32 +0000]
prettyfied  - spaces

4 years agoadded debug traces
Thierry Parmentelat [Wed, 3 Jun 2015 10:13:28 +0000]
added debug traces

4 years agono change - use format instead of % in plimporter pldriver plslices
Thierry Parmentelat [Wed, 3 Jun 2015 10:12:44 +0000]
no change - use format instead of % in plimporter pldriver plslices

4 years agobelongs with previous change
Thierry Parmentelat [Wed, 3 Jun 2015 09:54:53 +0000]
belongs with previous change

4 years agoplanetlab import : site name is authorititative over authority's name
Thierry Parmentelat [Wed, 3 Jun 2015 09:51:36 +0000]
planetlab import : site name is authorititative over authority's name

4 years agosupport for e.g. sfi discover help
Thierry Parmentelat [Wed, 3 Jun 2015 09:50:43 +0000]
support for e.g. sfi discover help

4 years agono change - prettyfied sfi.py (uses format instead of %)
Thierry Parmentelat [Wed, 3 Jun 2015 09:50:22 +0000]
no change - prettyfied sfi.py (uses format instead of %)

4 years agosfi describe/resources shows its default for -r in the help message
Thierry Parmentelat [Tue, 2 Jun 2015 15:40:16 +0000]
sfi describe/resources shows its default for -r in the help message
also we now have a new 'discover' alias for sfi resources

4 years agocleanup in plslices.verify_slice_attributes
Thierry Parmentelat [Tue, 2 Jun 2015 15:13:38 +0000]
cleanup in plslices.verify_slice_attributes
no semantic change though

4 years agopgv2 - fix in the logic for retrieving slice attributes
Thierry Parmentelat [Tue, 2 Jun 2015 15:12:49 +0000]
pgv2 - fix in the logic for retrieving slice attributes

4 years agodocument the options available to Allocate
Thierry Parmentelat [Tue, 2 Jun 2015 15:08:22 +0000]
document the options available to Allocate

4 years agominor tweak in rspec embedded tester - expects an xml filename, not a xml string
Thierry Parmentelat [Tue, 2 Jun 2015 15:08:04 +0000]
minor tweak in rspec embedded tester - expects an xml filename, not a xml string

4 years agominor tweaks in version manager embedded tester
Thierry Parmentelat [Tue, 2 Jun 2015 15:07:17 +0000]
minor tweaks in version manager embedded tester

4 years agono change - prettyfied
Thierry Parmentelat [Tue, 2 Jun 2015 15:06:48 +0000]
no change - prettyfied

4 years agoagain, this change belongs with the addition of the builtin 'name' column for authorities
Thierry Parmentelat [Tue, 2 Jun 2015 13:40:49 +0000]
again, this change belongs with the addition of the builtin 'name' column for authorities

4 years agothis belongs with previous change on authority's name
Thierry Parmentelat [Tue, 2 Jun 2015 12:19:44 +0000]
this belongs with previous change on authority's name
this is how sfi update now does the right thing with both users and authority wrt email and name

4 years agosfi register and sfi update require a -t option; this now accepts 2-letter shorthands...
Thierry Parmentelat [Tue, 2 Jun 2015 12:16:55 +0000]
sfi register and sfi update require a -t option; this now accepts 2-letter shorthands like -t us or -t no
as a matter of fact only the 2 first letters are considered

4 years agosfi list -v will now show user's email and authority's name as well
Thierry Parmentelat [Tue, 2 Jun 2015 12:15:51 +0000]
sfi list -v will now show user's email and authority's name as well

4 years agono change = prettyfied wrt spaces, commas and the like
Thierry Parmentelat [Tue, 2 Jun 2015 12:15:05 +0000]
no change = prettyfied wrt spaces, commas and the like

4 years agoauthorities can also have a 'name' for standalone deployments
Thierry Parmentelat [Tue, 2 Jun 2015 12:09:26 +0000]
authorities can also have a 'name' for standalone deployments
comes with a db migration to that effect as well
authority name can be set in sfi register and/or sfi update
in the mix, bugfix for user emails: sfi update ... --email foo
was not making it to the sfa db

4 years agofix pylint error
fsaintma [Fri, 22 May 2015 09:02:11 +0000]
fix pylint error

4 years agoadd information in Iot-LAB rspec node
fsaintma [Fri, 22 May 2015 08:57:20 +0000]
add information in Iot-LAB rspec node

4 years agofix bug with lease duration in seconds
fsaintma [Tue, 12 May 2015 11:50:02 +0000]
fix bug with lease duration in seconds

4 years agoSetting tag sfa-3.1-15 sfa-3.1-15
Thierry Parmentelat [Thu, 23 Apr 2015 08:53:37 +0000]
Setting tag sfa-3.1-15
major rework of the iotlab driver, that uses an IoT-lab REST API
and so does not need to interact with LDAP and OAR directly
deprecated cortexlab driver altogether
cosmetic changes in displaying credentials, rights and certificates
for hopefully more readable error messages
always start postgresql if not running (ignore /etc/myplc-release)
does not need lxc=enter-namespace anymore for make sync

4 years agodo not rely on /etc/myplc-release to start or stop postgresql
Thierry Parmentelat [Thu, 16 Apr 2015 11:03:11 +0000]
do not rely on /etc/myplc-release to start or stop postgresql
instead: start it when not yet running, and record that in /etc/sfa/postgresql-started so we can stop it properly

4 years agocleanup startup script - no change
Thierry Parmentelat [Thu, 16 Apr 2015 10:56:35 +0000]
cleanup startup script - no change

4 years agohopefully nicer and more helpful messages when verify_parent fails
Thierry Parmentelat [Tue, 14 Apr 2015 15:02:28 +0000]
hopefully nicer and more helpful messages when verify_parent fails
exception should be shorter and easier to read, while full details still go in the logs

4 years agoissue a warning when get_slivers is used against an existing but empty slice
Thierry Parmentelat [Tue, 14 Apr 2015 15:01:45 +0000]
issue a warning when get_slivers is used against an existing but empty slice
e.g. with this code one gets an exception when trying to renew an existing slice that has no node
the warning would help spotting this

4 years agodisambiguate get_subject and pretty_subject
Thierry Parmentelat [Tue, 14 Apr 2015 11:00:07 +0000]
disambiguate get_subject and pretty_subject

4 years agolower noise due to alchemy session -> debug instead of info - ctd
Thierry Parmentelat [Tue, 14 Apr 2015 10:59:33 +0000]
lower noise due to alchemy session -> debug instead of info - ctd

4 years agomore compact, and hopefully nicer versions of pretty_cred and pretty_cert
Thierry Parmentelat [Tue, 14 Apr 2015 10:47:06 +0000]
more compact, and hopefully nicer versions of pretty_cred and pretty_cert

4 years agolower noise due to alchemy session -> debug instead of info
Thierry Parmentelat [Tue, 14 Apr 2015 10:32:13 +0000]
lower noise due to alchemy session -> debug instead of info

4 years agorename the 'cert' attribute of Certificate into 'x509'
Thierry Parmentelat [Tue, 14 Apr 2015 10:01:57 +0000]
rename the 'cert' attribute of Certificate into 'x509'

4 years agodo not use broken lxc-enter-namespace
Thierry Parmentelat [Tue, 14 Apr 2015 09:43:07 +0000]
do not use broken lxc-enter-namespace

4 years agorenamed get_printable_subject into pretty_cert
Thierry Parmentelat [Tue, 14 Apr 2015 09:33:04 +0000]
renamed get_printable_subject into pretty_cert

4 years agotweaked verify_parent for more legible
Thierry Parmentelat [Tue, 14 Apr 2015 09:29:20 +0000]
tweaked verify_parent for more legible
add error in log with details on the comparison when raising "Delegated credential {} not signed by parent {}'s caller"

4 years agorename get_summary_tostring into pretty_cred
Thierry Parmentelat [Tue, 14 Apr 2015 09:27:51 +0000]
rename get_summary_tostring into pretty_cred

4 years agoclean up packaging wrt cortexlab that has now gone
Thierry Parmentelat [Tue, 14 Apr 2015 07:09:02 +0000]
clean up packaging wrt cortexlab that has now gone

4 years agoMerge branch 'iotlab_driver' into geni-v3
fsaintma [Mon, 13 Apr 2015 14:05:57 +0000]
Merge branch 'iotlab_driver' into geni-v3

4 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
fsaintma [Mon, 13 Apr 2015 14:05:01 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

4 years agoadd unused driver method
fsaintma [Mon, 13 Apr 2015 13:52:43 +0000]
add unused driver method

4 years agodelete cortexlab driver (obsolete) + write again Iot-LAB SFA driver with Iot-LAB...
fsaintma [Mon, 13 Apr 2015 11:09:33 +0000]
delete cortexlab driver (obsolete) + write again Iot-LAB SFA driver with Iot-LAB REST API shell

4 years agocosmetic changes about pushing to pypi
Thierry Parmentelat [Thu, 9 Apr 2015 11:37:31 +0000]
cosmetic changes about pushing to pypi

4 years agoSetting tag sfa-3.1-14 sfa-3.1-14
Thierry Parmentelat [Thu, 9 Apr 2015 09:27:42 +0000]
Setting tag sfa-3.1-14
for SSL & python-2.7.9: ignore server verification
assume 2.7: remove compat code - always use HTTPSConnection (not HTTPS anymore)
fix: Reset GIDs works even if user has no pub_key
tweak for ubuntu (that does not have systemctl)
iotlab driver:  fix ldap account creation at each lease
miscell cosmetic & layout

4 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
fsaintma [Tue, 17 Mar 2015 13:59:32 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

4 years agofix iot-lab driver bug ldap connection invalid
fsaintma [Tue, 17 Mar 2015 13:59:22 +0000]
fix iot-lab driver bug ldap connection invalid

4 years agoremove spurrious print
Thierry Parmentelat [Tue, 17 Mar 2015 13:43:19 +0000]
remove spurrious print

4 years agoclean up code for python < 2.7
Thierry Parmentelat [Tue, 17 Mar 2015 13:42:21 +0000]
clean up code for python < 2.7

4 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
Thierry Parmentelat [Tue, 17 Mar 2015 13:38:48 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

4 years agoturn off server verification for python-2.7.9
Thierry Parmentelat [Tue, 17 Mar 2015 13:38:18 +0000]
turn off server verification for python-2.7.9

4 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
Loic Baron [Wed, 4 Mar 2015 12:51:58 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

4 years agoFix: Reset GIDs works even if user has no pub_key
Loic Baron [Wed, 4 Mar 2015 12:47:47 +0000]
Fix: Reset GIDs works even if user has no pub_key

4 years agofix typo that caused a syntax error
Thierry Parmentelat [Mon, 2 Mar 2015 20:05:05 +0000]
fix typo that caused a syntax error

4 years agoclean up unneeded imports
Thierry Parmentelat [Mon, 2 Mar 2015 16:34:27 +0000]
clean up unneeded imports

4 years agocosmetic
Thierry Parmentelat [Mon, 2 Mar 2015 16:34:09 +0000]
cosmetic

4 years agosfi to log the url is uses to bootstrap client stuff
Thierry Parmentelat [Mon, 2 Mar 2015 16:33:35 +0000]
sfi to log the url is uses to bootstrap client stuff

4 years agoforce not using systemctl if not present - suggested by Ciro for ubuntu
Thierry Parmentelat [Mon, 2 Mar 2015 16:32:50 +0000]
force not using systemctl if not present - suggested by Ciro for ubuntu

4 years agofor fedora21
Thierry Parmentelat [Tue, 20 Jan 2015 08:57:36 +0000]
for fedora21
tweak the way the result of xmlsec1 verify is deemed fine or not
formerly we scanned stdout and looked for OK on the first line
now we rely on the exit code of xmlsec1, and read its output only for informating about the error

4 years agonarrower text again
Thierry Parmentelat [Tue, 20 Jan 2015 08:54:54 +0000]
narrower text again

4 years agoadd debug trace when invoking xmlsec1
Thierry Parmentelat [Tue, 20 Jan 2015 08:03:11 +0000]
add debug trace when invoking xmlsec1
+ miscell reformatting for narrower text

4 years agofix ldap bug account creation at each lease
fsaintma [Thu, 8 Jan 2015 16:13:29 +0000]
fix ldap bug account creation at each lease

4 years agoSetting tag sfa-3.1-13 sfa-3.1-13
Thierry Parmentelat [Mon, 1 Dec 2014 15:15:08 +0000]
Setting tag sfa-3.1-13
bugfix - was adding extraneous backslashes in email address when attempting to AddPerson

5 years agofix for Brecht; when forging the email we were adding a hrn that had backslashes...
Thierry Parmentelat [Tue, 18 Nov 2014 22:31:11 +0000]
fix for Brecht; when forging the email we were adding a hrn that had backslashes; get rid of those

5 years agocheck for python-2.7 so that pip installs get a proper message when not under 2.7
Thierry Parmentelat [Thu, 25 Sep 2014 17:21:57 +0000]
check for python-2.7 so that pip installs get a proper message when not under 2.7

5 years agoSetting tag sfa-3.1-12 sfa-3.1-12
Thierry Parmentelat [Mon, 15 Sep 2014 18:56:02 +0000]
Setting tag sfa-3.1-12
getting closer with the pip/pypi packaging

5 years agoprotect for cases where index.html and/or LICENSE.txt are not found (like on the...
Thierry Parmentelat [Mon, 15 Sep 2014 18:54:07 +0000]
protect for cases where index.html and/or LICENSE.txt are not found (like on the pip-install side apparently)

5 years agoremove setup.cfg and put everythin in setup.py
Thierry Parmentelat [Mon, 15 Sep 2014 15:10:30 +0000]
remove setup.cfg and put everythin in setup.py
also the field names need to be description and long_description - and not summary and description that I had read before; this I believe is for a more recent version of setup.py (or older, go figure)

5 years agoSetting tag sfa-3.1-11 sfa-3.1-11
Thierry Parmentelat [Mon, 15 Sep 2014 14:16:33 +0000]
Setting tag sfa-3.1-11
various tweaks for the openlab demo
first stab at uploading onto a pypi (for pip install sfa)

5 years agoa first step towards publishing on pypi (so that one can install this using pip insta...
Thierry Parmentelat [Mon, 15 Sep 2014 14:14:12 +0000]
a first step towards publishing on pypi (so that one can install this using pip install sfa)

5 years agoprovide a more decent default to SCMURL for version.py when not run from within a...
Thierry Parmentelat [Mon, 15 Sep 2014 07:46:01 +0000]
provide a more decent default to SCMURL for version.py when not run from within a build box
hopefully useful for when pushing onto pypi - if we can get that to work

5 years agouse markdown for the README - updated that one with more deatils and links
Thierry Parmentelat [Mon, 15 Sep 2014 07:45:11 +0000]
use markdown for the README - updated that one with more deatils and links

5 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
Thierry Parmentelat [Wed, 10 Sep 2014 15:40:15 +0000]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.