| Summary: | Build failures using system engine template that installs additional packages | ||
|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Steve Reichard <sreichar> |
| Component: | imagefactory | Assignee: | chris alfonso <calfonso> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Kočí <mkoci> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0.0 | CC: | akarol, brad, calfonso, dajohnso, deltacloud-maint, dgao, hbrock, scollier, ssachdev, whayutin |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-30 17:15:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Steve Reichard
2011-12-19 13:56:27 UTC
This appears to be from having template xml elements with \r or \n as the values of the xml elements. If I remove them, it seems to build as expected. I was wrong, repos with spaces in the names is what's causing this.
diff --git a/oz/RedHat.py b/oz/RedHat.py
index 42c3d52..07ffc3b 100644
--- a/oz/RedHat.py
+++ b/oz/RedHat.py
@@ -1042,7 +1042,7 @@ class RedHatCDYumGuest(RedHatCDGuest):
filename = repo.name.replace(" ", "_") + ".repo"
localname = os.path.join(self.icicle_tmp, filename)
f = open(localname, 'w')
- f.write("[%s]\n" % repo.name)
+ f.write("[%s]\n" % repo.name.replace(" ", "_"))
f.write("name=%s\n" % repo.name)
if host and not guest:
remote_tun_port = tunport
Patch posted for review, oz repo commit 5775e9d4199d966d41cf8cd120787ea56dc74dc9 patch was pushed to oz repo 907b0a3be20d0c7010afdf5e0b47b16d62bb24df test passed successfully on rhel62 with for EC2, vsphere and rhevm
]# rpm -qa|grep 'aeolus\|imagefactory-\|oz-\|iwhd'
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.el6.noarch
aeolus-conductor-daemons-0.9.0-0.20120111153517gite55da85.el6.noarch
aeolus-conductor-doc-0.9.0-0.20120111153517gite55da85.el6.noarch
aeolus-configure-2.6.0-0.20120112133633git8701011.el6.noarch
imagefactory-jeosconf-ec2-rhel-1.0.0rc2.1-1.el6.noarch
rubygem-aeolus-image-0.4.0-0.20120111093551git67fdf6f.el6.noarch
rubygem-arel-2.0.10-0.aeolus.el6.noarch
rubygem-ZenTest-4.3.3-2.aeolus.el6.noarch
oz-0.8.0-0.20111219203204git5775e9d.el6.noarch
iwhd-1.2-3.el6.x86_64
imagefactory-jeosconf-ec2-fedora-1.0.0rc2.1-1.el6.noarch
rubygem-aeolus-cli-0.4.0-0.20120111093540git5ec8dc7.el6.noarch
imagefactory-1.0.0rc2.1-1.el6.noarch
aeolus-conductor-0.9.0-0.20120111153517gite55da85.el6.noarch
aeolus-all-0.9.0-0.20120111153517gite55da85.el6.noarch
-----and
<template>
<name>Fedora 15 Audrey Client</name>
<os>
<name>Fedora</name>
<version>15</version>
<arch>x86_64</arch>
<install type='url'>
<url>http://download.devel.redhat.com/released/F-15/GOLD/Fedora/x86_64/os/</url>
</install>
<rootpw>dog8code</rootpw>
</os>
<repositories>
<repository name="aeolus repository with spaces">
<url>http://repos.fedorapeople.org/repos/aeolus/conductor/testing/fedora-15/x86_64/</url>
</repository>
</repositories>
<packages>
<package name="aeolus-audrey-agent"/>
</packages>
<description>A Fedora 15 Template for Audrey Client</description>
</template>
moved bug o VERIFIED
|