Commit abb63141 authored by David Johnson's avatar David Johnson
Browse files

Get rid of some warnings, fix ticket handling problem.

parent 9408fe3a
......@@ -115,7 +115,7 @@ class NM3agent:
DEF_NM_DELEGATE_ACCT = "utah_elab_delegate"
DEF_NM_DELEGATE_KEY = "/root/.ssh/id_rsa.plabdel"
DEF_NM_SSHCMD = "/usr/bin/ssh -oStrictHostKeyChecking=no -l %s -i %s %s"
DEF_NM_SSHCMD = "/usr/bin/ssh -q -oStrictHostKeyChecking=no -l %s -i %s %s"
class NM4agent:
def __init__(self,IP,nodeid,nmport=DEF_NM_PORT,
......@@ -236,7 +236,7 @@ class NMagent_wrapper:
print "NM on %s (%s) does not appear to be legacy." % (IP,
if legacy_nm:
......@@ -648,7 +648,11 @@ class mod_PLC4:
NOKstrs = ["does not exist"])
# Get the updated ticket.
slice.slicemeta = self.getSliceMeta(slice)
# XXX: update for NM4 when we switch. For now we need to record
# the old ticketdata in the db.
#slice.slicemeta = self.getSliceMeta(slice)
slice.slicemeta = self.getSliceMetaLegacy(slice)
ret = 1
if debug:
print "SliceRenew returns: %s" % res
......@@ -736,6 +740,7 @@ class mod_PLC4:
# pass
print "DEBUG: using ticketdata = '%s'" % str(ticketdata)
res = node.nmagent.create_sliver(node.slice.slicename,ticketdata)
if debug:
print res
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment