Hosed this file on alfred when rins'ing. Its RO DB access so (hopefullY) doesn't...
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Wed, 10 Jan 2007 20:06:30 +0000 (20:06 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Wed, 10 Jan 2007 20:06:30 +0000 (20:06 +0000)
*  Contains auth info for RT.

policy.py
rt.py
rt_db [new file with mode: 0644]

index 11e8a68..9bd25d0 100644 (file)
--- a/policy.py
+++ b/policy.py
@@ -3,7 +3,7 @@
 #
 # Faiyaz Ahmed <faiyaza@cs.princeton.edu>
 #
-# $Id: $
+# $Id: policy.py,v 1.4 2006/11/14 19:20:13 faiyaza Exp $
 #
 # Policy Engine.
 
@@ -27,7 +27,8 @@ logger = logging.getLogger("monitor")
 POLSLEEP = 7200
 
 # Where to email the summary
-SUMTO = "pupadm@lists.planet-lab.org"
+#SUMTO = "pupadm@lists.planet-lab.org"
+SUMTO = "faiyaza@cs.princeton.edu"
 TECHEMAIL="tech-%s@sites.planet-lab.org"
 PIEMAIL="pi-%s@sites.planet-lab.org"
 SLICEMAIL="%s@slices.planet-lab.org"
diff --git a/rt.py b/rt.py
index f3ce1ed..0c809b4 100644 (file)
--- a/rt.py
+++ b/rt.py
@@ -77,8 +77,8 @@ def open_rt_db():
                                user=rt_db_constants['RT_DB_USER'],
                                passwd=rt_db_constants['RT_DB_PASSWORD'],
                                db=rt_db_constants['RT_DB_NAME'])
-       except Error:
-               print "Failed to connect to RT database"
+       except Exception, err:
+               print "Failed to connect to RT database: %s" %err
                return -1
 
        return rt_db
diff --git a/rt_db b/rt_db
new file mode 100644 (file)
index 0000000..eba79ec
--- /dev/null
+++ b/rt_db
@@ -0,0 +1,4 @@
+RT_DB_HOST=rt.planet-lab.org
+RT_DB_USER=rt_ro
+RT_DB_PASSWORD=rtropassword
+RT_DB_NAME=rt3