renamings going on
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 3 Jul 2009 00:52:38 +0000 (00:52 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 3 Jul 2009 00:52:38 +0000 (00:52 +0000)
18 files changed:
CHANGES-0.2-to-0.8.txt [new file with mode: 0644]
INSTALL.txt
cmdline/genidump.py
cmdline/getNodes.py
cmdline/getRecord.py
cmdline/sfi.py
config/sfa-config-tty
geni/aggregate.py
geni/init.d/sfa
geni/methods/delete_slice.py
geni/methods/list.py
geni/methods/resolve.py
geni/registry.py
geni/sfa-import-plc.py [moved from geni/gimport.py with 100% similarity]
geni/sfa-plc.py [moved from geni/plc.py with 96% similarity]
geni/util/nodes.py
geniwrapper.spec
setup.py

diff --git a/CHANGES-0.2-to-0.8.txt b/CHANGES-0.2-to-0.8.txt
new file mode 100644 (file)
index 0000000..5660e58
--- /dev/null
@@ -0,0 +1,28 @@
+changes between 0.2 and 0.8 from a user's perspective
+
+--------------------
+- 3 packages named
+-- sfa (libraries)
+-- sfa-plc (server side)
+-- sfa-client (client-side)
+
+-------------------- new names for commands
+gimport.py          ->   sfa-import-plc.py
+plc.py              ->   sfa-plc.py
+geni-config-tty      ->          sfa-config-tty
+
+-------------------- new names for config files & miscell
+/etc/geni                      -> /etc/sfa
+/etc/geni/configSfi.sh         ->  /etc/sfa/sfa_config
+/etc/init.d/geniwrapper                -> /etc/init.d/sfa
+
+/etc/sfa/config_sfa, 
+/etc/sfa/config_sfi, 
+/etc/sfa/aggregates.xml, 
+/etc/sfa/registries.xml
+       are now preserved across rpm updates
+
+-------------------- deprecated
+gacks/
+gui/
+dummy/
index dd26eda..e5e0eea 100644 (file)
@@ -25,7 +25,7 @@ write and quit
 ---
 run gimport
 
-[2009.06.09--1l-f8-32-vplc07] / # gimport.py 
+[2009.06.09--1l-f8-32-vplc07] / # sfa-import-plc.py 
 Import: creating top level authorities
 Hierarchy: creating authority: plc
 plc : 
@@ -60,16 +60,16 @@ Run:
 
 First run:
 # initialize the registry by running the registry import tool 
-python gimport.py
+python sfa-import-plc.py
 
 # start the services
 service sfa start
 
 or 
 
-plc.py -r -d
-plc.py -a -d
-plc.py -s -d
+sfa-plc.py -r -d
+sfa-plc.py -a -d
+sfa-plc.py -s -d
 
 
 Use:
index c604c88..99812cd 100644 (file)
@@ -5,14 +5,15 @@ import sys
 import os, os.path
 import tempfile
 import xmlrpclib
+from types import StringTypes, ListType
 from optparse import OptionParser
+
 from geni.util.certificate import Keypair, Certificate
 from geni.util.credential import Credential
 from geni.util.geniclient import GeniClient, ServerException
 from geni.util.gid import create_uuid
 from geni.util.record import GeniRecord
 from geni.util.rspec import Rspec
-from types import StringTypes, ListType
 
 def determine_geni_filekind(fn):
     from geni.util.certificate import Certificate
index df252a5..6e321f8 100644 (file)
@@ -5,6 +5,7 @@ import os
 from optparse import OptionParser
 from pprint import pprint
 from types import StringTypes
+
 from geni.util.rspec import Rspec
 
 def create_parser():
index e048742..fc6b3db 100755 (executable)
@@ -16,6 +16,7 @@ import os
 from optparse import OptionParser
 from pprint import pprint
 from xml.parsers.expat import ExpatError
+
 from geni.util.rspec import RecordSpec
 
 
index ab07639..cc37eb0 100755 (executable)
@@ -6,14 +6,15 @@ from __future__ import with_statement
 import sys
 import os, os.path
 import tempfile
+from types import StringTypes, ListType
 from optparse import OptionParser
+
 from geni.util.certificate import Keypair, Certificate
 from geni.util.credential import Credential
 from geni.util.geniclient import GeniClient, ServerException
 from geni.util.gid import create_uuid
 from geni.util.record import *
 from geni.util.rspec import Rspec
-from types import StringTypes, ListType
 
 # xxx todo xxx auto-load ~/.sfi/sfi_config
 
index 9cda7f5..208eca5 100755 (executable)
@@ -264,7 +264,7 @@ def setup_server_key(config_dict):
     try:
         distutils.file_util.copy_file(src=new_server_key, dst=old_server_key, verbose=1)
         print "\t\t%(old_server_key)s\ncopied from\t%(new_server_key)s" % locals()
-    # this is expected when running this tool for the first time (before gimport.py)
+    # this is expected when running this tool for the first time (before sfa-import-plc.py)
     except:
         print "Could not create %(old_server_key)s - ignore if you haven't run gimport yet"%locals()
     
index 8c05626..f90332d 100644 (file)
@@ -10,14 +10,14 @@ from types import StringTypes, ListType
 
 from geni.util.geniserver import GeniServer
 from geni.util.geniclient import GeniClient
+from geni.util.storage import *
+from geni.util.faults import *
 
 # GeniLight client support is optional
 try:
     from egeni.geniLight_client import *
 except ImportError:
     GeniClientLight = None
-from geni.util.storage import *
-from geni.util.faults import *
 
 
 class Aggregate(GeniServer):
index 52ea5f8..d438093 100755 (executable)
@@ -21,17 +21,17 @@ start() {
 
         if [ "$GENI_REGISTRY_ENABLED" ]; then
             echo "Registry"
-            daemon /usr/bin/plc.py -r -d $OPTIONS
+            daemon /usr/bin/sfa-plc.py -r -d $OPTIONS
         fi
 
         if [ "$GENI_AGGREGATE_ENABLED" ]; then
             echo "Aggregate"
-            daemon /usr/bin/plc.py -a -d $OPTIONS
+            daemon /usr/bin/sfa-plc.py -a -d $OPTIONS
         fi
         
         if [ "$GENI_SM_ENABLED" ]; then
             echo "SliceMgr"
-            daemon /usr/bin/plc.py -s -d $OPTIONS
+            daemon /usr/bin/sfa-plc.py -s -d $OPTIONS
         fi
 
         RETVAL=$?
@@ -42,7 +42,7 @@ start() {
 
 stop() {
     echo -n $"Shutting down GENIWrapper: "
-    killproc plc.py
+    killproc sfa-plc.py
     RETVAL=$?
 
     echo
index f5b86cf..b6be797 100644 (file)
@@ -6,8 +6,9 @@ from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
-from geni.aggregate import Aggregates
+
 from geni.util.slices import Slices
+from geni.aggregate import Aggregates
 
 class delete_slice(Method):
     """
index 5034850..86ec928 100644 (file)
@@ -6,6 +6,7 @@ from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
 from geni.util.record import GeniRecord
+
 from geni.registry import Registries
 
 class list(Method):
index bb43f2b..09a068b 100644 (file)
@@ -6,9 +6,10 @@ from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
 from geni.util.record import GeniRecord
-from geni.registry import Registries
 from geni.util.debug import log
 
+from geni.registry import Registries
+
 class resolve(Method):
     """
     Resolve a record.
index 7b705c3..7ab6346 100644 (file)
@@ -12,14 +12,15 @@ import sys
 
 from geni.util.geniserver import GeniServer
 from geni.util.geniclient import GeniClient
+from geni.util.genitable import GeniTable
+from geni.util.faults import *
+from geni.util.storage import *
+
 # GeniLight client support is optional
 try:
     from egeni.geniLight_client import *
 except ImportError:
     GeniClientLight = None            
-from geni.util.genitable import GeniTable
-from geni.util.faults import *
-from geni.util.storage import *
 
 ##
 # Registry is a GeniServer that serves registry and slice operations at PLC.
similarity index 100%
rename from geni/gimport.py
rename to geni/sfa-import-plc.py
similarity index 96%
rename from geni/plc.py
rename to geni/sfa-plc.py
index 46e8780..8829321 100644 (file)
 # is up to date and accurate.
 #
 # 1) Import the existing planetlab database, creating the
-#    appropriate geni records. This is done by running the "gimport.py" tool.
+#    appropriate geni records. This is done by running the "sfa-import-plc.py" tool.
 #
 # 2) Create a "trusted_roots" directory and place the certificate of the root
-#    authority in that directory. Given the defaults in gimport.py, this
+#    authority in that directory. Given the defaults in sfa-import-plc.py, this
 #    certificate would be named "planetlab.gid". For example,
 #
 #    mkdir trusted_roots; cp authorities/planetlab.gid trusted_roots/
index 765b7d1..d77b3f3 100644 (file)
@@ -14,8 +14,8 @@ from geni.util.storage import *
 from geni.util.debug import log
 from geni.util.rspec import *
 from geni.util.specdict import * 
-from geni.aggregate import Aggregates 
 from geni.util.policy import Policy
+from geni.aggregate import Aggregates 
 
 class Nodes(SimpleStorage):
 
index 3319c02..bb5e2ea 100644 (file)
@@ -75,8 +75,8 @@ rm -rf $RPM_BUILD_ROOT
 %config (noreplace) /etc/sfa/registries.xml
 /etc/init.d/sfa
 %{_bindir}/sfa-config-tty
-%{_bindir}/gimport.py*
-%{_bindir}/plc.py*
+%{_bindir}/sfa-import-plc.py*
+%{_bindir}/sfa-plc.py*
 
 %files client
 %config (noreplace) /etc/sfa/sfi_config
index fe9c75f..b6bd2e0 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,8 @@ import os, sys
 import shutil
 from distutils.core import setup, Extension
 
-scripts = [ 'geni/gimport.py', 
-            'geni/plc.py', 
+scripts = [ 'geni/sfa-import-plc.py', 
+            'geni/sfa-plc.py', 
             'config/sfa-config-tty',
             'cmdline/sfi.py', 
             'cmdline/getNodes.py',
@@ -30,7 +30,7 @@ if sys.argv[1] in ['uninstall', 'remove', 'delete', 'clean']:
     python_path = sys.path
     site_packages_path = [ path + os.sep + 'geni' for path in python_path if path.endswith('site-packages')]
     remove_dirs = ['/etc/sfa/'] + site_packages_path
-    remove_files = ['/usr/bin/gimport.py', '/usr/bin/plc.py', '/usr/bin/sfi.py', '/usr/bin/sfa-config-tty'] + \
+    remove_files = ['/usr/bin/sfa-import-plc.py', '/usr/bin/sfa-plc.py', '/usr/bin/sfi.py', '/usr/bin/sfa-config-tty'] + \
                     symlinks + initscripts
     
     # remove files