backend/server/apacheRequest.py | 50 +++++----
backend/spacewalk-backend.spec | 5
client/tools/rhn-virtualization/virtualization/domain_config.py | 4
client/tools/rhn-virtualization/virtualization/domain_control.py | 4
client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py | 2
rel-eng/packages/spacewalk-backend | 2
utils/spacewalk-common-channels.ini | 52 ++++++++++
7 files changed, 94 insertions(+), 25 deletions(-)
New commits:
commit b20fbb94ceeebcfefabeddc0e253d63184b9a9f3
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Wed Mar 27 11:38:09 2013 +0100
Automatic commit of package [spacewalk-backend] release [1.10.14-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 0d43ba7..42959fb 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -12,7 +12,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2
-Version: 1.10.13
+Version: 1.10.14
Release: 1%{?dist}
URL:
https://fedorahosted.org/spacewalk
Source0:
https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -638,6 +638,9 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Wed Mar 27 2013 Michael Mraka <michael.mraka(a)redhat.com> 1.10.14-1
+- do not read rpm into memory before transferring to client (bnc#801151)
+
* Tue Mar 26 2013 Jan Pazdziora 1.10.13-1
- Replacing DECODE with more standard CASE.
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index e6b49c9..589aa9e 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.10.13-1 backend/
+1.10.14-1 backend/
commit 1cd4d7b162f158dc11e4fdd812b8b647d8768eab
Author: Michael Calmer <mc(a)suse.de>
Date: Thu Mar 21 12:04:18 2013 +0100
isInstallerConfig should check for autoyast in commandline
diff --git a/client/tools/rhn-virtualization/virtualization/domain_config.py
b/client/tools/rhn-virtualization/virtualization/domain_config.py
index a0f053d..76f1743 100644
--- a/client/tools/rhn-virtualization/virtualization/domain_config.py
+++ b/client/tools/rhn-virtualization/virtualization/domain_config.py
@@ -175,7 +175,9 @@ class DomainConfig:
# Look for the "method" argument. This is a good indication that
# the instance is in the installer.
- if command_line_dict.has_key("method") or
command_line_dict.has_key("ks"):
+ if (command_line_dict.has_key("method") or
+ command_line_dict.has_key("ks") or
+ command_line_dict.has_key("autoyast")):
result = 1
return result
commit 62b4018da71bef40efd6db79b6e5fa28ac22d759
Author: Michael Calmer <mc(a)suse.de>
Date: Thu Mar 21 10:41:23 2013 +0100
catch libvirtError to return meaningfull error messages
diff --git a/client/tools/rhn-virtualization/virtualization/domain_control.py
b/client/tools/rhn-virtualization/virtualization/domain_control.py
index fa5c8e8..9b29a9d 100755
--- a/client/tools/rhn-virtualization/virtualization/domain_control.py
+++ b/client/tools/rhn-virtualization/virtualization/domain_control.py
@@ -145,6 +145,10 @@ def _call_domain_control_routine(uuid, routine_name, *args):
raise VirtualizationException, \
"Invalid arguments (%s) to %s: %s" % \
(str(args), routine_name, str(te)), sys.exc_info()[2]
+ except libvirt.libvirtError, le:
+ raise VirtualizationException, \
+ "LibVirt Error %s: %s" % \
+ (routine_name, str(le)), sys.exc_info()[2]
# Handle the return code. Anything non-zero is an error.
if result != 0:
commit 7bd360aaee9b016b8194946862d3528761b16e98
Author: Michael Calmer <mc(a)suse.de>
Date: Wed Mar 20 12:07:37 2013 +0100
do not call not existing function
fixes:
Traceback (most recent call last):
File "/usr/sbin/rhn_check", line 343, in __run_action
(status, message, data) = CheckCli.__do_call(method, params, kwargs)
File "/usr/sbin/rhn_check", line 336, in __do_call
retval = method(*params, **kwargs)
File "/usr/share/rhn/actions/kickstart_guest.py", line 52, in initiate
virt_type, name, mem_kb, vcpus, disk_gb, virt_bridge, disk_path, extra_append,
log_notify_handler)
File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 261, in
initiate_guest
error_messages['koan'] = xb.get_error_message() + ' ' +
string.join(traceback.format_list(traceback.extract_tb(tb)))
<type 'exceptions.AttributeError'>: 'VirtDiskPathExistsError'
object has no attribute 'get_error_message'
diff --git a/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
b/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
index 9a2d606..0c5d991 100644
--- a/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
+++ b/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
@@ -258,7 +258,7 @@ def initiate_guest(kickstart_host, cobbler_system_name, virt_type,
name, mem_kb,
print xa
print xb
print string.join(traceback.format_list(traceback.extract_tb(tb)))
- error_messages['koan'] = xb.get_error_message() + ' ' +
string.join(traceback.format_list(traceback.extract_tb(tb)))
+ error_messages['koan'] = str(xb) + ' ' +
string.join(traceback.format_list(traceback.extract_tb(tb)))
return (1, "Virtual kickstart failed. Koan error.", error_messages)
return (0, "Virtual kickstart initiate succeeded", error_messages)
commit e5b6850339676a5177fa7966e0ac94dd576df41f
Author: Hubert Mantel <mantel(a)suse.de>
Date: Thu Mar 14 16:39:43 2013 +0100
do not read rpm into memory before transferring to client (bnc#801151)
diff --git a/backend/server/apacheRequest.py b/backend/server/apacheRequest.py
index cd61870..a30f714 100644
--- a/backend/server/apacheRequest.py
+++ b/backend/server/apacheRequest.py
@@ -264,27 +264,35 @@ class apacheRequest:
# send the headers
self.req.send_http_header()
- # and the file
- read = 0
- while read < response_size:
- # We check the size here in case we're not asked for the entire file.
- if (read + CFG.BUFFER_SIZE > response_size):
- to_read = read + CFG.BUFFER_SIZE - response_size
- else:
- to_read = CFG.BUFFER_SIZE
- buf = response.read(CFG.BUFFER_SIZE)
- if not buf:
- break
- try:
- self.req.write(buf)
- read = read + CFG.BUFFER_SIZE
- except IOError:
- if xrepcon:
- # We're talking to a proxy, so don't bother to report
- # a SIGPIPE
- break
- return apache.HTTP_BAD_REQUEST
- response.close()
+
+ if self.req.headers_in.has_key("Range"):
+ # and the file
+ read = 0
+ while read < response_size:
+ # We check the size here in case we're not asked for the entire file.
+ if (read + CFG.BUFFER_SIZE > response_size):
+ to_read = read + CFG.BUFFER_SIZE - response_size
+ else:
+ to_read = CFG.BUFFER_SIZE
+ buf = response.read(CFG.BUFFER_SIZE)
+ if not buf:
+ break
+ try:
+ self.req.write(buf)
+ read = read + CFG.BUFFER_SIZE
+ except IOError:
+ if xrepcon:
+ # We're talking to a proxy, so don't bother to report
+ # a SIGPIPE
+ break
+ return apache.HTTP_BAD_REQUEST
+ response.close()
+ else:
+ if 'wsgi.file_wrapper' in self.req.headers_in:
+ self.req.output = self.req.headers_in['wsgi.file_wrapper'](response,
CFG.BUFFER_SIZE)
+ else:
+ self.req.output = iter(lambda: response.read(CFG.BUFFER_SIZE), '')
+
return success_response
# send the response (common code)
commit 42c857cac3076c5e7af9f6c25c4352782f058dfa
Author: Michael Calmer <mc(a)suse.de>
Date: Wed Mar 13 16:06:11 2013 +0100
add openSUSE 12.3 to spacewalk-common-channels config
diff --git a/utils/spacewalk-common-channels.ini b/utils/spacewalk-common-channels.ini
index cc5dbac..5a38984 100644
--- a/utils/spacewalk-common-channels.ini
+++ b/utils/spacewalk-common-channels.ini
@@ -723,6 +723,14 @@ checksum = sha1
base_channels = opensuse12_2-%(arch)s
yumrepo_url =
http://download.opensuse.org/update/12.2/
+[opensuse12_2-non-oss-updates]
+label = %(base_channel)s-non-oss-updates
+name = openSUSE 12.2 non oss Updates (%(arch)s)
+archs = i586, x86_64
+checksum = sha1
+base_channels = opensuse12_2-%(arch)s
+yumrepo_url =
http://download.opensuse.org/update/12.2-non-oss/
+
[spacewalk18-client-opensuse12_2]
name = Spacewalk Client 1.8 %(base_channel_name)s
archs = i586, x86_64
@@ -732,3 +740,47 @@ gpgkey_url =
http://download.opensuse.org/repositories/systemsmanagement:/spacew
gpgkey_id = A0E46E11
gpgkey_fingerprint = 68D3 3874 9967 0AEB D988 2DB3 2ABF A143 A0E4 6E11
yumrepo_url =
http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/1...
+
+[opensuse12_3]
+checksum = sha256
+archs = i586, x86_64
+name = openSUSE 12.3 (%(arch)s)
+gpgkey_url =
http://download.opensuse.org/distribution/12.3/repo/oss/suse/repodata/rep...
+gpgkey_id = 3DBDC284
+gpgkey_fingerprint = 22C0 7BA5 3417 8CD0 2EFE 22AA B88B 2FD4 3DBD C284
+yumrepo_url =
http://download.opensuse.org/distribution/12.3/repo/oss/suse/
+dist_map_release = 12.3
+
+[opensuse12_3-non-oss]
+label = %(base_channel)s-non-oss
+name = openSUSE 12.3 non oss (%(arch)s)
+archs = i586, x86_64
+checksum = sha256
+base_channels = opensuse12_3-%(arch)s
+yumrepo_url =
http://download.opensuse.org/distribution/12.3/repo/non-oss/suse/
+
+[opensuse12_3-updates]
+label = %(base_channel)s-updates
+name = openSUSE 12.3 Updates (%(arch)s)
+archs = i586, x86_64
+checksum = sha256
+base_channels = opensuse12_3-%(arch)s
+yumrepo_url =
http://download.opensuse.org/update/12.3/
+
+[opensuse12_3-non-oss-updates]
+label = %(base_channel)s-non-oss-updates
+name = openSUSE 12.3 non oss Updates (%(arch)s)
+archs = i586, x86_64
+checksum = sha256
+base_channels = opensuse12_3-%(arch)s
+yumrepo_url =
http://download.opensuse.org/update/12.3-non-oss/
+
+[spacewalk19-client-opensuse12_3]
+name = Spacewalk Client 1.9 %(base_channel_name)s
+archs = i586, x86_64
+base_channels = opensuse12_3-%(arch)s
+checksum = sha256
+gpgkey_url =
http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/1...
+gpgkey_id = A0E46E11
+gpgkey_fingerprint = 68D3 3874 9967 0AEB D988 2DB3 2ABF A143 A0E4 6E11
+yumrepo_url =
http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/1...