sfa.git
7 years agoavoid as much as possible accessing logger through class instances, whenever that...
Thierry Parmentelat [Thu, 24 May 2018 12:02:08 +0000 (14:02 +0200)]
avoid as much as possible accessing logger through class instances, whenever that looked safe
however, this remains as-is in all importers, as well as sfaclientlib/manifolduploader

7 years agorefactored sfalogging to be less awkward and more reliable
Thierry Parmentelat [Thu, 24 May 2018 11:21:25 +0000 (13:21 +0200)]
refactored sfalogging to be less awkward and more reliable

7 years agoavoid using logger.log_exc_critical (will go away) and logger.warn (obsolete)
Thierry Parmentelat [Thu, 24 May 2018 11:18:18 +0000 (13:18 +0200)]
avoid using logger.log_exc_critical (will go away) and logger.warn (obsolete)

7 years agostill more pep8
Thierry Parmentelat [Thu, 24 May 2018 11:12:27 +0000 (13:12 +0200)]
still more pep8

7 years agomore pep8-friendly
parmentelat [Wed, 23 May 2018 21:40:12 +0000 (23:40 +0200)]
more pep8-friendly

7 years agoadd .auto* in gitignore
parmentelat [Wed, 23 May 2018 21:30:20 +0000 (23:30 +0200)]
add .auto* in gitignore

7 years agoFIT IoT-Lab driver: fixed add_user when user login not found
Loic Baron [Fri, 18 May 2018 11:02:24 +0000 (13:02 +0200)]
FIT IoT-Lab driver: fixed add_user when user login not found

7 years agoMerge branch 'master' of git://git.onelab.eu/sfa
Loic Baron [Fri, 18 May 2018 10:22:47 +0000 (12:22 +0200)]
Merge branch 'master' of git://git.onelab.eu/sfa

7 years agoFIT IoT-Lab aggregate: fixed archi and radio format
Loic Baron [Fri, 18 May 2018 10:22:31 +0000 (12:22 +0200)]
FIT IoT-Lab aggregate: fixed archi and radio format

7 years agoFIT IoT-Lab shell: modified add_user category of user is required
Loic Baron [Fri, 18 May 2018 10:21:38 +0000 (12:21 +0200)]
FIT IoT-Lab shell: modified add_user category of user is required

7 years agominor and harmless cosmetic changes
parmentelat [Wed, 16 May 2018 10:13:11 +0000 (12:13 +0200)]
minor and harmless cosmetic changes

7 years agohave geni_api_versions for AM to use https as well
parmentelat [Fri, 4 May 2018 12:49:04 +0000 (14:49 +0200)]
have geni_api_versions for AM to use https as well

7 years agoavoid publishing non-relevant entries in GetVersion
parmentelat [Fri, 4 May 2018 10:22:52 +0000 (12:22 +0200)]
avoid publishing non-relevant entries in GetVersion

7 years agoexpose geni_api_versions URL as https since this it does not make sense to run sfa...
parmentelat [Fri, 4 May 2018 08:50:30 +0000 (10:50 +0200)]
expose geni_api_versions URL as https since this it does not make sense to run sfa on http

7 years agoharmless changes by atom and for pylint
parmentelat [Fri, 4 May 2018 09:31:46 +0000 (11:31 +0200)]
harmless changes by atom and for pylint

7 years agotypo in comment
parmentelat [Fri, 4 May 2018 08:49:48 +0000 (10:49 +0200)]
typo in comment

8 years agoSetting tag sfa-3.1-22 sfa-3.1-22
parmentelat [Fri, 16 Mar 2018 18:30:40 +0000 (19:30 +0100)]
Setting tag sfa-3.1-22
pl: tweaks for exposing country / city on nodes from site tags if set
pl: tweaks for exposing hardware_types on nodes from node tag 'hardware_type' if set
pl: fix exposing granularity
sfaresetgids.py: a utility to reset gids when a update of the tolpevel gis is needed
iotlab: various tweaks
patch backported from plcapi about issues with xmlrpc and unicode under fedora >= 24

8 years agothe hardware_types in a node rspec is now built by
parmentelat [Fri, 16 Mar 2018 14:58:15 +0000 (15:58 +0100)]
the hardware_types in a node rspec is now built by
* first looking for the 'hardware_type' tag on the node; if found this ends up in hardware_types (as a single entry)
* otherwise the former hard-wired default, suitable for plain planetlab, is used

8 years agofix exposing granularity in a node rspec
parmentelat [Fri, 16 Mar 2018 14:56:16 +0000 (15:56 +0100)]
fix exposing granularity in a node rspec

8 years agocode for exposing country & city for a site
parmentelat [Fri, 16 Mar 2018 08:50:09 +0000 (09:50 +0100)]
code for exposing country & city for a site
this applies only to sites that have a latitude and longitude
in this case, the 'country' and 'city' site tags are used; they are set to 'unknown' otherwise

8 years agoFIT IoT-Lab optimized get_users with email filter
Loic Baron [Fri, 9 Feb 2018 17:27:55 +0000 (18:27 +0100)]
FIT IoT-Lab optimized get_users with email filter

8 years agoMerge branch 'master' of git://git.onelab.eu/sfa
Loic Baron [Fri, 9 Feb 2018 17:09:28 +0000 (18:09 +0100)]
Merge branch 'master' of git://git.onelab.eu/sfa

8 years agoFIT IoT-Lab optimized get_users with email filter
Loic Baron [Fri, 9 Feb 2018 16:46:51 +0000 (17:46 +0100)]
FIT IoT-Lab optimized get_users with email filter

8 years agoMerge branch 'master' of git://git.onelab.eu/sfa
Loic Baron [Fri, 9 Feb 2018 16:39:16 +0000 (17:39 +0100)]
Merge branch 'master' of git://git.onelab.eu/sfa

8 years agoFIT IoT-Lab requires organization of new users: generate one from the urn
Loic Baron [Tue, 6 Feb 2018 16:25:10 +0000 (17:25 +0100)]
FIT IoT-Lab requires organization of new users: generate one from the urn

8 years agoFIT IoT-Lab requires organization of new users: generate one from the urn
Loic Baron [Tue, 6 Feb 2018 15:58:19 +0000 (16:58 +0100)]
FIT IoT-Lab requires organization of new users: generate one from the urn

8 years agoFIT IoT-Lab - fixed create user on the fly if coming from trusted Federation
Loic Baron [Mon, 22 May 2017 14:17:26 +0000 (16:17 +0200)]
FIT IoT-Lab - fixed create user on the fly if coming from trusted Federation

8 years agoMerge branch 'master' of git://git.onelab.eu/sfa
Loic Baron [Mon, 22 May 2017 13:52:38 +0000 (15:52 +0200)]
Merge branch 'master' of git://git.onelab.eu/sfa

Conflicts:
sfa/iotlab/iotlabshell.py

8 years agoFIT IoT-Lab - create user on the fly if coming from trusted Federation
Loic Baron [Mon, 22 May 2017 13:39:59 +0000 (15:39 +0200)]
FIT IoT-Lab - create user on the fly if coming from trusted Federation

9 years agoRemove: getCredential only if necessary to contact peers
Loic Baron [Wed, 29 Mar 2017 10:37:20 +0000 (12:37 +0200)]
Remove: getCredential only if necessary to contact peers

9 years agoreset gids passing urn to get the correct type
Loic Baron [Thu, 16 Feb 2017 05:26:55 +0000 (06:26 +0100)]
reset gids passing urn to get the correct type

9 years agosfaresetgids updated to reset the slice GIDs
Loic Baron [Fri, 10 Feb 2017 08:37:21 +0000 (09:37 +0100)]
sfaresetgids updated to reset the slice GIDs

9 years agoMerge branch 'geni-v3' of git://git.onelab.eu/sfa into geni-v3
Loic Baron [Fri, 10 Feb 2017 02:58:20 +0000 (03:58 +0100)]
Merge branch 'geni-v3' of git://git.onelab.eu/sfa into geni-v3

9 years agostricter pep8 mostly for line width
Thierry Parmentelat [Thu, 9 Feb 2017 16:09:32 +0000 (17:09 +0100)]
stricter pep8 mostly for line width

9 years agocosmetic & rename str into string
Thierry Parmentelat [Thu, 9 Feb 2017 15:27:56 +0000 (16:27 +0100)]
cosmetic & rename str into string

9 years agohierarchy.create_auth returns new gid
Thierry Parmentelat [Thu, 9 Feb 2017 15:27:31 +0000 (16:27 +0100)]
hierarchy.create_auth returns new gid

9 years agopatch backported from plcapi about issues
Thierry Parmentelat [Thu, 9 Feb 2017 15:26:23 +0000 (16:26 +0100)]
patch backported from plcapi about issues
with xmlrpc and unicode under fedora >= 24

9 years agosfaresetgids is a script that can refresh gids
Thierry Parmentelat [Thu, 9 Feb 2017 15:25:00 +0000 (16:25 +0100)]
sfaresetgids is a script that can refresh gids
esp. useful when toplevel cert needs to be issued again
requires the sfa service to be stopped

9 years agoMerge branch 'geni-v3' of git://git.onelab.eu/sfa into geni-v3
Loic Baron [Thu, 9 Feb 2017 02:24:33 +0000 (03:24 +0100)]
Merge branch 'geni-v3' of git://git.onelab.eu/sfa into geni-v3

9 years agoX509 Extension Authority Information Access: URI of Registry
Loic Baron [Thu, 9 Feb 2017 02:23:35 +0000 (03:23 +0100)]
X509 Extension Authority Information Access: URI of Registry

9 years agoSetting tag sfa-3.1-21 sfa-3.1-21
Thierry Parmentelat [Fri, 13 Jan 2017 17:12:24 +0000 (18:12 +0100)]
Setting tag sfa-3.1-21
sfax509 command can run openssl x509 on all the parts of a gid
bugfix in sfi when running the discover subcommand
PEP8'ed a substantial part of the code
additional debug in chain verification
sfi myslice more robust - ignores broken slices
new sfi introspect
for myslice: the trust/ package should be python3-ready
* provided that m2crypto is
* although the devel version of m2crypto wroks just fine for us
* even if it's incomplete for other aspects that we do not care about

9 years agono change - only notes on using the openssl command line for debugging
Thierry Parmentelat [Fri, 13 Jan 2017 12:34:23 +0000 (13:34 +0100)]
no change - only notes on using the openssl command line for debugging

9 years agocosmetic
Thierry Parmentelat [Fri, 13 Jan 2017 12:21:52 +0000 (13:21 +0100)]
cosmetic

9 years agofix broken file after pep8
Thierry Parmentelat [Fri, 13 Jan 2017 12:21:41 +0000 (13:21 +0100)]
fix broken file after pep8

9 years agoMerge branch 'geni-v3' into pep8
Thierry Parmentelat [Fri, 13 Jan 2017 12:14:17 +0000 (13:14 +0100)]
Merge branch 'geni-v3' into pep8

* geni-v3:
  more, and more legible, debug messages in the cert verification area
  sfax509 will run openssl x509 on all parts of a gid
  ignore html and pdf files when doing stuff like make tags
  bugfix in sfi when running the discover subcommand

# Conflicts:
# sfa/trust/certificate.py
# sfa/trust/gid.py

9 years agomore, and more legible, debug messages in the cert verification area
Thierry Parmentelat [Fri, 13 Jan 2017 12:10:15 +0000 (13:10 +0100)]
more, and more legible, debug messages in the cert verification area

9 years agosfax509 will run openssl x509 on all parts of a gid
Thierry Parmentelat [Fri, 13 Jan 2017 11:47:48 +0000 (12:47 +0100)]
sfax509 will run openssl x509 on all parts of a gid

9 years agoignore html and pdf files when doing stuff like make tags
Thierry Parmentelat [Fri, 13 Jan 2017 11:10:38 +0000 (12:10 +0100)]
ignore html and pdf files when doing stuff like make tags

9 years agobugfix in sfi when running the discover subcommand
Thierry Parmentelat [Fri, 13 Jan 2017 11:09:17 +0000 (12:09 +0100)]
bugfix in sfi when running the discover subcommand

9 years agoautopep8
Thierry Parmentelat [Wed, 11 Jan 2017 13:30:28 +0000 (14:30 +0100)]
autopep8

9 years agoa possible rewrite for a change suggested by Loic
Thierry Parmentelat [Fri, 6 Jan 2017 14:30:45 +0000 (15:30 +0100)]
a possible rewrite for a change suggested by Loic
not tested at all

9 years agovery few minor pep8 tweaks
Thierry Parmentelat [Fri, 6 Jan 2017 14:30:21 +0000 (15:30 +0100)]
very few minor pep8 tweaks

9 years agoError in Credential logger GID pretty_cert
Loic Baron [Thu, 5 Jan 2017 07:21:18 +0000 (08:21 +0100)]
Error in Credential logger GID pretty_cert

9 years agoapply Loic's changes only in python3 for extra safety
Thierry Parmentelat [Fri, 20 May 2016 08:19:10 +0000 (10:19 +0200)]
apply Loic's changes only in python3 for extra safety

9 years agoPython3 compatibility for Credential & Certificate in save_to_string & save_to_file...
Loic Baron [Thu, 19 May 2016 09:17:47 +0000 (11:17 +0200)]
Python3 compatibility for Credential & Certificate in save_to_string & save_to_file (bytes to string)

10 years agomake references to the OpenSSL and M2Crypto more explicit
Thierry Parmentelat [Mon, 4 Apr 2016 20:51:21 +0000 (22:51 +0200)]
make references to the OpenSSL and M2Crypto more explicit
also m2crypto is imported on the fly so one could at least load the module

10 years agoprettified certificate, credential and speaksfor_util
Thierry Parmentelat [Fri, 1 Apr 2016 10:56:21 +0000 (12:56 +0200)]
prettified certificate, credential and speaksfor_util

prettified speaks_for

10 years agoopen cache files in binary mode for pickle
Thierry Parmentelat [Fri, 1 Apr 2016 10:08:05 +0000 (12:08 +0200)]
open cache files in binary mode for pickle

10 years agoRSpecVersion.todict() needs to turn values() into a list()
Thierry Parmentelat [Fri, 1 Apr 2016 09:49:43 +0000 (11:49 +0200)]
RSpecVersion.todict() needs to turn values() into a list()

10 years agobasestring -> StringType
Thierry Parmentelat [Fri, 1 Apr 2016 09:24:25 +0000 (11:24 +0200)]
basestring -> StringType

10 years ago2to3 -f has_key
Thierry Parmentelat [Fri, 1 Apr 2016 09:41:55 +0000 (11:41 +0200)]
2to3 -f has_key

10 years agoopen() instead of file()
Thierry Parmentelat [Fri, 1 Apr 2016 09:22:25 +0000 (11:22 +0200)]
open() instead of file()

10 years agohttplib has gone too
Thierry Parmentelat [Fri, 1 Apr 2016 08:30:16 +0000 (10:30 +0200)]
httplib has gone too

10 years agosome occurrences of items() that need being converted into list()
Thierry Parmentelat [Fri, 1 Apr 2016 08:31:13 +0000 (10:31 +0200)]
some occurrences of items() that need being converted into list()

10 years agocosmetic + one tab required spaces instead
Thierry Parmentelat [Fri, 1 Apr 2016 09:24:12 +0000 (11:24 +0200)]
cosmetic + one tab required spaces instead

10 years agopurely cosmetic pass on sfaclientlib
Thierry Parmentelat [Fri, 1 Apr 2016 08:49:59 +0000 (10:49 +0200)]
purely cosmetic pass on sfaclientlib

10 years agoconvenience target to push on python3
Thierry Parmentelat [Fri, 1 Apr 2016 08:30:42 +0000 (10:30 +0200)]
convenience target to push on python3

10 years agooffically terminate eucalyptus & xmlbuilder
Thierry Parmentelat [Fri, 1 Apr 2016 09:51:29 +0000 (11:51 +0200)]
offically terminate eucalyptus & xmlbuilder

10 years agodeeper pass on xmlrpclib vs xmlrpc.client as well as configparser
Thierry Parmentelat [Thu, 31 Mar 2016 17:31:37 +0000 (19:31 +0200)]
deeper pass on xmlrpclib vs xmlrpc.client as well as configparser

10 years agoStringIO
Thierry Parmentelat [Thu, 31 Mar 2016 09:12:50 +0000 (11:12 +0200)]
StringIO

10 years agoremove useless imports
Thierry Parmentelat [Thu, 31 Mar 2016 09:08:33 +0000 (11:08 +0200)]
remove useless imports

10 years agodo not depend on types.StringTypes anymore
Thierry Parmentelat [Thu, 31 Mar 2016 08:00:40 +0000 (10:00 +0200)]
do not depend on types.StringTypes anymore

10 years agocosmetic
Thierry Parmentelat [Thu, 31 Mar 2016 08:12:48 +0000 (10:12 +0200)]
cosmetic

10 years ago2to3 -f except
Thierry Parmentelat [Thu, 31 Mar 2016 07:51:27 +0000 (09:51 +0200)]
2to3 -f except

10 years agoxmlrpclib.Fault for py3
Thierry Parmentelat [Thu, 31 Mar 2016 07:49:49 +0000 (09:49 +0200)]
xmlrpclib.Fault for py3

10 years agoa lingering raise
Thierry Parmentelat [Thu, 31 Mar 2016 07:27:01 +0000 (09:27 +0200)]
a lingering raise

10 years ago2to3 -f raise
Thierry Parmentelat [Thu, 31 Mar 2016 06:57:04 +0000 (08:57 +0200)]
2to3 -f raise

10 years ago2to3 -f print
Thierry Parmentelat [Thu, 31 Mar 2016 06:55:05 +0000 (08:55 +0200)]
2to3 -f print
from __future__ import print_function

10 years agodos2unix'ed
Thierry Parmentelat [Thu, 31 Mar 2016 06:41:55 +0000 (08:41 +0200)]
dos2unix'ed

10 years agoApplied patch from GENI by Aaron Helsinger
Thierry Parmentelat [Wed, 24 Feb 2016 09:41:54 +0000 (10:41 +0100)]
Applied patch from GENI by Aaron Helsinger
https://github.com/GENI-NSF/geni-tools/pull/894/files

10 years agosfi.py closer to PEP-8
Thierry Parmentelat [Fri, 5 Feb 2016 16:32:33 +0000 (17:32 +0100)]
sfi.py closer to PEP-8

10 years agosfi myslice more robust - won't fail when one slice is problematic
Thierry Parmentelat [Fri, 5 Feb 2016 16:27:02 +0000 (17:27 +0100)]
sfi myslice more robust - won't fail when one slice is problematic

10 years agobugfix - issue seen on PLE with slice onelab.upmc.fit_demo.wireless_fit
Thierry Parmentelat [Tue, 12 Jan 2016 09:13:04 +0000 (10:13 +0100)]
bugfix - issue seen on PLE with slice onelab.upmc.fit_demo.wireless_fit
there was a remaining underscore in the login_base produced by
hash_loginbase

10 years agosfi introspect
Thierry Parmentelat [Fri, 8 Jan 2016 12:06:17 +0000 (13:06 +0100)]
sfi introspect

10 years agobuild geni_rspec_version in a consistent way
Thierry Parmentelat [Thu, 7 Jan 2016 09:09:34 +0000 (10:09 +0100)]
build geni_rspec_version in a consistent way

10 years agoreview all commands for arg count check
Thierry Parmentelat [Thu, 7 Jan 2016 09:09:06 +0000 (10:09 +0100)]
review all commands for arg count check

10 years agorename get_m2_pkey into get_m2_pubkey in unit test as well
Thierry Parmentelat [Mon, 4 Jan 2016 10:16:17 +0000 (11:16 +0100)]
rename get_m2_pkey into get_m2_pubkey in unit test as well

10 years agoMerge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3
fsaintma [Fri, 18 Dec 2015 12:41:16 +0000 (13:41 +0100)]
Merge branch 'geni-v3' of ssh://git.onelab.eu/git/sfa into geni-v3

10 years agoadd Dead state for unvailable nodes
fsaintma [Fri, 18 Dec 2015 12:40:54 +0000 (13:40 +0100)]
add Dead state for unvailable nodes

10 years agoimprove get_reserve_nodes
fsaintma [Fri, 18 Dec 2015 12:38:25 +0000 (13:38 +0100)]
improve get_reserve_nodes

10 years agoSetting tag sfa-3.1-20 sfa-3.1-20
Thierry Parmentelat [Thu, 17 Dec 2015 13:10:44 +0000 (14:10 +0100)]
Setting tag sfa-3.1-20
minor fixes for migrating on fedora23

10 years agobugfix - m2crypto verification function returns
Thierry Parmentelat [Thu, 17 Dec 2015 10:44:02 +0000 (11:44 +0100)]
bugfix - m2crypto verification function returns
. 1 in case of success
. but otherwise it may be 0 or -1

10 years agorename ambiguous pkey into pubkey
Thierry Parmentelat [Thu, 17 Dec 2015 10:38:05 +0000 (11:38 +0100)]
rename ambiguous pkey into pubkey

10 years agocosmetic changes only
Thierry Parmentelat [Thu, 17 Dec 2015 10:31:23 +0000 (11:31 +0100)]
cosmetic changes only

10 years agobetter patch for unverified_context
Thierry Parmentelat [Wed, 16 Dec 2015 08:22:06 +0000 (09:22 +0100)]
better patch for unverified_context

10 years agoprettified speaksfor a little
Thierry Parmentelat [Thu, 10 Dec 2015 10:56:18 +0000 (11:56 +0100)]
prettified speaksfor a little

10 years agobugfix, correct previous change on locating xmlsec1
Thierry Parmentelat [Thu, 10 Dec 2015 10:47:53 +0000 (11:47 +0100)]
bugfix, correct previous change on locating xmlsec1

10 years agono change, just sfi.py prettyfied wrt spaces and assignments
Thierry Parmentelat [Thu, 10 Dec 2015 09:17:37 +0000 (10:17 +0100)]
no change, just sfi.py prettyfied wrt spaces and assignments

10 years agomore aggressively check for xmlsec1 being installed,
Thierry Parmentelat [Thu, 10 Dec 2015 08:57:35 +0000 (09:57 +0100)]
more aggressively check for xmlsec1 being installed,
raise an exception otherwise

10 years agoSetting tag sfa-3.1-19 sfa-3.1-19
Thierry Parmentelat [Tue, 8 Dec 2015 10:29:29 +0000 (11:29 +0100)]
Setting tag sfa-3.1-19
imported changes from GENI as reported - Aaron Helsinger
minimal changes so that parts can be imported from nepi/py3
iotlab driver : fix ASAP jobs with state != Waiting, Running - Frederic
sfi client more accurately advertises rspec version - Loic
+ bugfix in initscript