| |
@@ -102,6 +102,7 @@
|
| |
if "$HOSTNAME" in cts_keytab:
|
| |
cts_keytab = cts_keytab.replace("$HOSTNAME", socket.gethostname())
|
| |
os.environ["KRB5_CLIENT_KTNAME"] = cts_keytab
|
| |
+ os.environ["KRB5CCNAME"] = "DIR:%s" % tempfile.mkdtemp()
|
| |
|
| |
try:
|
| |
# Create compose in CTS and get the reserved compose ID.
|
| |
@@ -116,6 +117,7 @@
|
| |
rv.raise_for_status()
|
| |
finally:
|
| |
if cts_keytab:
|
| |
+ shutil.rmtree(os.environ["KRB5CCNAME"].split(":", 1)[1])
|
| |
os.environ.clear()
|
| |
os.environ.update(environ_copy)
|
| |
|
| |
Point KRB5CCNAME to a fresh directory. This should avoid problems if there is a valid existing ticket without the required builder permissions.