You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.0 KiB
55 lines
2.0 KiB
11 years ago
|
From b566eba6f83b151fcc058906a0630f4d9e303490 Mon Sep 17 00:00:00 2001
|
||
|
From: Jay Greguske <jgregusk@redhat.com>
|
||
|
Date: Wed, 16 Apr 2014 11:18:53 -0400
|
||
|
Subject: [PATCH 3/8] upload the tdl priority to building
|
||
|
|
||
|
---
|
||
|
builder/kojid | 14 +++++++-------
|
||
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
||
|
|
||
|
diff --git a/builder/kojid b/builder/kojid
|
||
|
index cee7637..32400c6 100755
|
||
|
--- a/builder/kojid
|
||
|
+++ b/builder/kojid
|
||
|
@@ -2813,13 +2813,7 @@ class BaseImageTask(OzImageTask):
|
||
|
lxml = self.fixImageXML('raw', imgname,
|
||
|
'libvirt-%s-%s.xml' % ('raw', arch),
|
||
|
base.base_image.parameters['libvirt_xml'])
|
||
|
- tdl_path = os.path.join(self.workdir, 'tdl-%s.xml' % arch)
|
||
|
- tdl = open(tdl_path, 'w')
|
||
|
- tdl.write(base.base_image.template)
|
||
|
- tdl.close()
|
||
|
- self.uploadFile(tdl_path)
|
||
|
images['raw'] = {'image': base.base_image.data, 'libvirt': lxml,
|
||
|
- 'tdl': os.path.basename(tdl_path),
|
||
|
'icicle': base.base_image.icicle}
|
||
|
|
||
|
# target-image type images
|
||
|
@@ -2889,6 +2883,12 @@ class BaseImageTask(OzImageTask):
|
||
|
self.logger.debug('IF config object: %s' % config)
|
||
|
ApplicationConfiguration(configuration=config)
|
||
|
|
||
|
+ tdl_path = os.path.join(self.workdir, 'tdl-%s.xml' % arch)
|
||
|
+ tdl = open(tdl_path, 'w')
|
||
|
+ tdl.write(template)
|
||
|
+ tdl.close()
|
||
|
+ self.uploadFile(tdl_path)
|
||
|
+
|
||
|
# ImageFactory picks a port to the guest VM using a rolling integer.
|
||
|
# This is a problem for concurrency, so we override the port it picks
|
||
|
# here using the task ID. (not a perfect solution but good enough:
|
||
|
@@ -2900,9 +2900,9 @@ class BaseImageTask(OzImageTask):
|
||
|
|
||
|
# invoke the image builds
|
||
|
images = self.do_images(arch, template, ozlog, imgname)
|
||
|
+ images['raw']['tdl'] = os.path.basename(tdl_path),
|
||
|
|
||
|
# structure the results to pass back to the hub:
|
||
|
- tdl_path = images['raw']['tdl']
|
||
|
imgdata = {
|
||
|
'arch': arch,
|
||
|
'task_id': self.id,
|
||
|
--
|
||
|
2.0.4
|
||
|
|