From fa1ad186b12b53d6fd99264ace493fe61397c4dc Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Wed, 10 Jan 2007 20:06:30 +0000 Subject: [PATCH] Hosed this file on alfred when rins'ing. Its RO DB access so (hopefullY) doesn't pose a serious lack of s3curity. * Contains auth info for RT. --- policy.py | 5 +++-- rt.py | 4 ++-- rt_db | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 rt_db diff --git a/policy.py b/policy.py index 11e8a68..9bd25d0 100644 --- a/policy.py +++ b/policy.py @@ -3,7 +3,7 @@ # # Faiyaz Ahmed # -# $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 --- 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 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 -- 2.47.0