backend/satellite_tools backend/spacewalk-backend.spec
by Miroslav Suchý
backend/satellite_tools/rhn-entitlement-report.sgml | 53 ++++++++++++++++++++
backend/spacewalk-backend.spec | 1
2 files changed, 54 insertions(+)
New commits:
commit 2b412018ee1cf17d4d6566e52022a5fecdfd4076
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 22:39:15 2010 +0200
623966 - add man page for rhn-entitlement-report
diff --git a/backend/satellite_tools/rhn-entitlement-report.sgml b/backend/satellite_tools/rhn-entitlement-report.sgml
new file mode 100644
index 0000000..c4e519f
--- /dev/null
+++ b/backend/satellite_tools/rhn-entitlement-report.sgml
@@ -0,0 +1,53 @@
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
+<!ENTITY RHNSAT "Spacewalk Server" >
+
+]>
+<refentry>
+
+<RefMeta>
+<RefEntryTitle>rhn-entitlement-report</RefEntryTitle><manvolnum>8</manvolnum>
+</RefMeta>
+
+<RefNameDiv>
+<RefName><command>rhn-entitlement-report</command></RefName>
+<RefPurpose>
+Helper utility that report entitlement usage.
+</RefPurpose>
+</RefNameDiv>
+
+<RefSynopsisDiv>
+<Synopsis>
+ <cmdsynopsis>
+ <command>rhn-entitlement-report</command>
+ </cmdsynopsis>
+</Synopsis>
+</RefSynopsisDiv>
+
+<RefSect1><Title>Description</Title>
+
+<para>
+ The <emphasis>rhn-entitlement-report</emphasis> is
+ helper utility, that report entitlement usage. Output of this script
+ can be requested by your support to quickly determine your usage of
+ RHN Satellite.
+</para>
+<para>
+ This script probably has no usage in pure Spacewalk.
+</para>
+<para>
+ This script is called from satellite-debug.
+</para>
+</RefSect1>
+
+<RefSect1><Title>See Also</Title>
+<simplelist>
+ <member>satellite-debug(8)</member>
+</simplelist>
+</RefSect1>
+
+<RefSect1><Title>Authors</Title>
+<simplelist>
+ <member>Justin Sherrill <email>jsherril(a)redhat.com</email></member>
+</simplelist>
+</RefSect1>
+</RefEntry>
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index c8f0d0d..efeba48 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -646,6 +646,7 @@ rm -f %{rhnconf}/rhnSecret.py*
%{_mandir}/man8/spacewalk-repo-sync.8*
%{_mandir}/man8/spacewalk-update-signatures.8*
%{_mandir}/man8/update-packages.8*
+%{_mandir}/man8/rhn-entitlement-report.8*
%files xml-export-libs
%defattr(-,root,root)
13 years, 6 months
backend/satellite_tools backend/spacewalk-backend.spec
by Miroslav Suchý
backend/satellite_tools/update-packages.sgml | 103 +++++++++++++++++++++++++++
backend/spacewalk-backend.spec | 1
2 files changed, 104 insertions(+)
New commits:
commit 4bc713ebde895c2ba15568e01fe61ae99c34713f
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 22:19:30 2010 +0200
623964 - add man page for update-packages
diff --git a/backend/satellite_tools/update-packages.sgml b/backend/satellite_tools/update-packages.sgml
new file mode 100644
index 0000000..00b5269
--- /dev/null
+++ b/backend/satellite_tools/update-packages.sgml
@@ -0,0 +1,103 @@
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
+<!ENTITY RHNSAT "Spacewalk Server" >
+
+]>
+<refentry>
+
+<RefMeta>
+<RefEntryTitle>update-packages</RefEntryTitle><manvolnum>8</manvolnum>
+</RefMeta>
+
+<RefNameDiv>
+<RefName><command>update-packages</command></RefName>
+<RefPurpose>
+Migration script for nvrea issue to migrate already existing paths and include the package gpg key id for different providers.
+</RefPurpose>
+</RefNameDiv>
+
+<RefSynopsisDiv>
+<Synopsis>
+ <cmdsynopsis>
+ <command>update-packages</command>
+ </cmdsynopsis>
+</Synopsis>
+</RefSynopsisDiv>
+
+<RefSect1><Title>Description</Title>
+
+<para>
+Running this script is necessary if you are upgrading from RHN Satellite 5.2.
+If you're upgrading from RHN Satellite 5.3, this step can be safely skipped.
+</para>
+<para>
+Run update-packages script as root:
+<code>
+ /usr/bin/update-packages --db=$(spacewalk-cfg-get default_db) \
+ --update-filer \
+ --update-kstrees \
+ --debug
+</code>
+</para>
+<para>
+The --debug option will direct the script to log all actions into /var/log/rhn/update-packages.log
+</para>
+<para>
+* Time estimate: the time required for whole conversion depends on the current
+size of your filer and the speed of your hardware. Assume 60 - 120 GB / hour.
+</para>
+</RefSect1>
+
+<RefSect1><Title>Options</Title>
+<variablelist>
+ <varlistentry>
+ <term>--help</term>
+ <listitem>
+ <para>Display usage and exit.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>-v, --verbose</term>
+ <listitem>
+ <para>Increase verbosity.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>-d DB, --db=DB</term>
+ <listitem>
+ <para>DB string to connect to.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>--debug</term>
+ <listitem>
+ <para>Logs the debug information to a log file /var/log/rhn/update-packages.log</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>--update-sha256</term>
+ <listitem>
+ <para>Update SHA-256 capable packages.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>--update-filer</term>
+ <listitem>
+ <para>Convert filer structure.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>--update-kstrees</term>
+ <listitem>
+ <para>Fix kickstart trees permissions.</para>
+ </listitem>
+ </varlistentry>
+
+</variablelist>
+</RefSect1>
+
+<RefSect1><Title>Authors</Title>
+<simplelist>
+ <member>Pradeep Kilambi <email>pkilambi(a)redhat.com</email></member>
+</simplelist>
+</RefSect1>
+</RefEntry>
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 9001273..c8f0d0d 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -645,6 +645,7 @@ rm -f %{rhnconf}/rhnSecret.py*
%{_mandir}/man8/spacewalk-remove-channel.8*
%{_mandir}/man8/spacewalk-repo-sync.8*
%{_mandir}/man8/spacewalk-update-signatures.8*
+%{_mandir}/man8/update-packages.8*
%files xml-export-libs
%defattr(-,root,root)
13 years, 6 months
2 commits - backend/satellite_tools backend/spacewalk-backend.spec
by Miroslav Suchý
backend/satellite_tools/spacewalk-update-signatures | 2
backend/satellite_tools/spacewalk-update-signatures.sgml | 73 +++++++++++++++
backend/spacewalk-backend.spec | 1
3 files changed, 76 insertions(+)
New commits:
commit 84fc63b9b2834c72ee3a86d74067009dc456bcb1
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 21:55:14 2010 +0200
623967 - write man page for spacewalk-update-signatures
diff --git a/backend/satellite_tools/spacewalk-update-signatures.sgml b/backend/satellite_tools/spacewalk-update-signatures.sgml
new file mode 100644
index 0000000..1292818
--- /dev/null
+++ b/backend/satellite_tools/spacewalk-update-signatures.sgml
@@ -0,0 +1,73 @@
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
+<!ENTITY RHNSAT "Spacewalk Server" >
+
+]>
+<refentry>
+
+<RefMeta>
+<RefEntryTitle>spacewalk-update-signatures</RefEntryTitle><manvolnum>8</manvolnum>
+</RefMeta>
+
+<RefNameDiv>
+<RefName><command>spacewalk-update-signatures</command></RefName>
+<RefPurpose>
+Helper utility that update packages checksum.
+</RefPurpose>
+</RefNameDiv>
+
+<RefSynopsisDiv>
+<Synopsis>
+ <cmdsynopsis>
+ <command>spacewalk-update-signatures</command>
+ </cmdsynopsis>
+</Synopsis>
+</RefSynopsisDiv>
+
+<RefSect1><Title>Description</Title>
+
+<para>
+ The <emphasis>spacewalk-update-signatures</emphasis>) is a
+ helper utility that recalculate checksum of packages in db. New
+ checksum is calculated from files on disk.
+</para>
+<para>
+ You should not run this utility unless you know what are you doing.
+ This is not needed in normal day-to-day operations.
+</para>
+</RefSect1>
+
+<RefSect1><Title>Options</Title>
+<variablelist>
+ <varlistentry>
+ <term>--help</term>
+ <listitem>
+ <para>Display usage and exit.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>-v, --verbose</term>
+ <listitem>
+ <para>Increase verbosity.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>-d DB, --db=DB</term>
+ <listitem>
+ <para>DB string to connect to.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>--debug</term>
+ <listitem>
+ <para>Logs the debug information to a log file /var/log/rhn/update-packages.log</para>
+ </listitem>
+ </varlistentry>
+</variablelist>
+</RefSect1>
+
+<RefSect1><Title>Authors</Title>
+<simplelist>
+ <member>Pradeep Kilambi <email>pkilambi(a)redhat.com</email></member>
+</simplelist>
+</RefSect1>
+</RefEntry>
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index a84c833..9001273 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -644,6 +644,7 @@ rm -f %{rhnconf}/rhnSecret.py*
%{_mandir}/man8/satwho.8*
%{_mandir}/man8/spacewalk-remove-channel.8*
%{_mandir}/man8/spacewalk-repo-sync.8*
+%{_mandir}/man8/spacewalk-update-signatures.8*
%files xml-export-libs
%defattr(-,root,root)
commit 0ba6724affa7e5e670756484a62456e8c7c1b338
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 21:41:26 2010 +0200
if package is not on disk do not throw TB
addressing:
Traceback (most recent call last):
File "/usr/bin/spacewalk-update-signatures", line 147, in ?
main()
File "/usr/bin/spacewalk-update-signatures", line 76, in main
process_package_data()
File "/usr/bin/spacewalk-update-signatures", line 115, in process_package_data
full_path = os.path.join(CFG.MOUNT_POINT, path)
File "/usr/lib64/python2.4/posixpath.py", line 60, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
diff --git a/backend/satellite_tools/spacewalk-update-signatures b/backend/satellite_tools/spacewalk-update-signatures
index c945c98..35b909f 100644
--- a/backend/satellite_tools/spacewalk-update-signatures
+++ b/backend/satellite_tools/spacewalk-update-signatures
@@ -109,6 +109,8 @@ def process_package_data():
pb.printIncrement()
path = pkg['path']
+ if path is None:
+ continue
full_path = os.path.join(CFG.MOUNT_POINT, path)
checksum_type = pkg['checksum_type']
checksum = pkg['checksum']
13 years, 6 months
Changes to 'refs/tags/spacewalk-config-1.2.3-1'
by Miroslav Suchý
Tag 'spacewalk-config-1.2.3-1' created by Miroslav Suchý <msuchy(a)redhat.com> at 2010-10-25 18:54 +0000
Tagging package [spacewalk-config] version [1.2.3-1] in directory [spacewalk/config/].
Changes since spacewalk-web-1.2.17-1:
Miroslav Suchý (2):
fixing changelog entry
Automatic commit of package [spacewalk-config] release [1.2.3-1].
---
rel-eng/packages/spacewalk-config | 2 +-
spacewalk/config/spacewalk-config.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
13 years, 6 months
2 commits - rel-eng/packages spacewalk/config
by Miroslav Suchý
rel-eng/packages/spacewalk-config | 2 +-
spacewalk/config/spacewalk-config.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 5b24e5b7d543d6f591497eae19bf904f2dee4a46
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 20:54:38 2010 +0200
Automatic commit of package [spacewalk-config] release [1.2.3-1].
diff --git a/rel-eng/packages/spacewalk-config b/rel-eng/packages/spacewalk-config
index be904f2..cdb171b 100644
--- a/rel-eng/packages/spacewalk-config
+++ b/rel-eng/packages/spacewalk-config
@@ -1 +1 @@
-1.2.2-1 spacewalk/config/
+1.2.3-1 spacewalk/config/
diff --git a/spacewalk/config/spacewalk-config.spec b/spacewalk/config/spacewalk-config.spec
index e08775a..b9b0acb 100644
--- a/spacewalk/config/spacewalk-config.spec
+++ b/spacewalk/config/spacewalk-config.spec
@@ -2,7 +2,7 @@
Name: spacewalk-config
Summary: Spacewalk Configuration
-Version: 1.2.2
+Version: 1.2.3
Release: 1%{?dist}
URL: http://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -91,6 +91,9 @@ fi
%changelog
+* Mon Oct 25 2010 Miroslav Suchý <msuchy(a)redhat.com> 1.2.3-1
+- fixing changelog entry
+
* Mon Sep 06 2010 Michael Mraka <michael.mraka(a)redhat.com> 1.2.2-1
- removed unneeded oracle settings from httpd environment
commit 3235f7cd31c120d1d5d51ec57e3ce26e14729e10
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 20:50:58 2010 +0200
fixing changelog entry
single % is treated as macro, this should be escaped as %%
diff --git a/spacewalk/config/spacewalk-config.spec b/spacewalk/config/spacewalk-config.spec
index 3ede1e9..e08775a 100644
--- a/spacewalk/config/spacewalk-config.spec
+++ b/spacewalk/config/spacewalk-config.spec
@@ -172,7 +172,7 @@ fi
(mmccune(a)gmail.com)
* Wed Apr 29 2009 Jan Pazdziora 0.6.4-1
-- Require httpd, we need the apache group for %files
+- Require httpd, we need the apache group for %%files
* Thu Apr 16 2009 jesus m. rodriguez <jesusr(a)redhat.com> 0.6.3-1
- 485355 - change perms of /etc/rhn/rhn.conf & /etc/rhn dir
13 years, 6 months
Changes to 'refs/tags/spacewalk-web-1.2.17-1'
by Jan Pazdziora
Tag 'spacewalk-web-1.2.17-1' created by Jan Pazdziora <jpazdziora(a)redhat.com> at 2010-10-25 14:54 +0000
Tagging package [spacewalk-web] version [1.2.17-1] in directory [web/].
Changes since spacewalk-backend-1.2.37-1:
Jan Pazdziora (1):
Automatic commit of package [spacewalk-web] release [1.2.17-1].
---
rel-eng/packages/spacewalk-web | 2 +-
web/spacewalk-web.spec | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
13 years, 6 months
rel-eng/packages web/spacewalk-web.spec
by Jan Pazdziora
rel-eng/packages/spacewalk-web | 2 +-
web/spacewalk-web.spec | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
New commits:
commit 15c63cb2a4a32945550ad4e909122e204a4b2bc6
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Mon Oct 25 16:54:44 2010 +0200
Automatic commit of package [spacewalk-web] release [1.2.17-1].
diff --git a/rel-eng/packages/spacewalk-web b/rel-eng/packages/spacewalk-web
index 5a042da..02c335c 100644
--- a/rel-eng/packages/spacewalk-web
+++ b/rel-eng/packages/spacewalk-web
@@ -1 +1 @@
-1.2.16-1 web/
+1.2.17-1 web/
diff --git a/web/spacewalk-web.spec b/web/spacewalk-web.spec
index 20b29f9..99e6847 100644
--- a/web/spacewalk-web.spec
+++ b/web/spacewalk-web.spec
@@ -2,7 +2,7 @@ Name: spacewalk-web
Summary: Spacewalk Web site packages
Group: Applications/Internet
License: GPLv2
-Version: 1.2.16
+Version: 1.2.17
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -256,6 +256,14 @@ rm -rf $RPM_BUILD_ROOT
# $Id$
%changelog
+* Mon Oct 25 2010 Jan Pazdziora 1.2.17-1
+- To get UTF-8 strings in character semantics from DBD::Pg automatically, we
+ have to enable it.
+- Error in packages dependencies and obsoletes (PXT) (lzap+git(a)redhat.com)
+- Sorting fix in packages for PostgreSQL (lzap+git(a)redhat.com)
+- Reverting "Removed unnecessary ORDER BY" commits and fixing
+ (lzap+git(a)redhat.com)
+
* Thu Oct 21 2010 Lukas Zapletal 1.2.16-1
- Sorting fix in packages for PostgreSQL
- Fix of evr_t_as_vre_simple PostgreSQL function
13 years, 6 months
Changes to 'refs/tags/spacewalk-backend-1.2.37-1'
by Jan Pazdziora
Tag 'spacewalk-backend-1.2.37-1' created by Jan Pazdziora <jpazdziora(a)redhat.com> at 2010-10-25 14:54 +0000
Tagging package [spacewalk-backend] version [1.2.37-1] in directory [backend/].
Changes since spacewalk-java-1.2.73-1:
Jan Pazdziora (2):
The psycopg2 seems to be handling unicode strings just fine.
Automatic commit of package [spacewalk-backend] release [1.2.37-1].
---
backend/server/rhnSQL/driver_postgresql.py | 20 +++-----------------
backend/spacewalk-backend.spec | 9 ++++++++-
rel-eng/packages/spacewalk-backend | 2 +-
3 files changed, 12 insertions(+), 19 deletions(-)
---
13 years, 6 months
backend/spacewalk-backend.spec rel-eng/packages
by Jan Pazdziora
backend/spacewalk-backend.spec | 9 ++++++++-
rel-eng/packages/spacewalk-backend | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
New commits:
commit d67124331bb3f4784b00b3f36572456db4b50ec9
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Mon Oct 25 16:54:11 2010 +0200
Automatic commit of package [spacewalk-backend] release [1.2.37-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index 3812c3f..a84c833 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -11,7 +11,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2 and Python
-Version: 1.2.36
+Version: 1.2.37
Release: 1%{?dist}
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -667,6 +667,13 @@ rm -f %{rhnconf}/rhnSecret.py*
# $Id$
%changelog
+* Mon Oct 25 2010 Jan Pazdziora 1.2.37-1
+- The psycopg2 seems to be handling unicode strings just fine.
+- packages_cursor() and _source_packages_cursor() are dead; removing
+ (michael.mraka(a)redhat.com)
+- errata_cursor() and _errata_cursor() are dead; removing
+ (michael.mraka(a)redhat.com)
+
* Mon Oct 25 2010 Jan Pazdziora 1.2.36-1
- Reset the System Currency multipliers to the original values
(colin.coe(a)gmail.com)
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index 0484891..ab49fea 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-1.2.36-1 backend/
+1.2.37-1 backend/
13 years, 6 months
backend/server
by Jan Pazdziora
backend/server/rhnSQL/driver_postgresql.py | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
New commits:
commit 274132609859280ba3fd5b7d32016c23cdaaf798
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Mon Oct 25 16:51:29 2010 +0200
The psycopg2 seems to be handling unicode strings just fine.
Addressing
'ascii' codec can't encode character u'\xfd' in position 13: ordinal not in range(128)
in spacewalk-repo-sync.
diff --git a/backend/server/rhnSQL/driver_postgresql.py b/backend/server/rhnSQL/driver_postgresql.py
index abca16c..31e6ac1 100644
--- a/backend/server/rhnSQL/driver_postgresql.py
+++ b/backend/server/rhnSQL/driver_postgresql.py
@@ -74,18 +74,9 @@ class Function(sql_base.Procedure):
i += 1
query = "SELECT %s(%s)" % (self.name, positional_args)
- # Ugh, unicode strings coming in here, PostgreSQL doesn't like
- # getting them as such:
- new_args = []
- for arg in args:
- if type(arg) == type(u""):
- new_args.append(str(arg))
- else:
- new_args.append(arg)
-
# for now return just result (ret_type is ignored)
- log_debug(2, query, new_args)
- return self.cursor.execute(query, new_args)
+ log_debug(2, query, args)
+ return self.cursor.execute(query, args)
class Procedure(Function):
@@ -235,12 +226,7 @@ class Cursor(sql_base.Cursor):
return cursor
def _execute_wrapper(self, function, *p, **kw):
- # PostgreSQL really doesn't like getting unicode strings:
- for key, value in kw.items():
- if type(value) == type(u""):
- kw[key] = str(value)
-
- params = ','.join(["%s: %s" % (str(key), str(value)) for key, value \
+ params = ','.join(["%s: %s" % (key, value) for key, value \
in kw.items()])
log_debug(5, "Executing SQL: \"%s\" with bind params: {%s}"
% (self.sql, params))
13 years, 6 months