web/modules
by Tomáš Kašpárek
web/modules/sniglets/Sniglets/Servers.pm | 1 -
1 file changed, 1 deletion(-)
New commits:
commit b106b0b318d371f880c1bd71c503e8bb93cdd10a
Author: Tomas Kasparek <tkasparek(a)redhat.com>
Date: Wed Nov 27 11:13:18 2013 +0100
remove old debug message
diff --git a/web/modules/sniglets/Sniglets/Servers.pm b/web/modules/sniglets/Sniglets/Servers.pm
index b75ac9b..11bc1a4 100644
--- a/web/modules/sniglets/Sniglets/Servers.pm
+++ b/web/modules/sniglets/Sniglets/Servers.pm
@@ -361,7 +361,6 @@ sub reboot_server_cb {
my $pretty_earliest_date = $pxt->user->convert_time($earliest_date);
- warn("asdfasdfasdf");
# my $message = sprintf(<<EOM, $server->name, $server->name, $action_id);
#Reboot scheduled for system <strong>%s</strong> for $pretty_earliest_date. To cancel the reboot, remove <strong>%s</strong> from <a href="/rhn/schedule/InProgressSystems.do?aid=%d"><strong>the list of systems to be rebooted</strong></a>.
#EOM
10 years
2 commits - branding/css
by Tomáš Kašpárek
branding/css/spacewalk-theme.less | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 4459f313edad880c8d592606db94599f66e42536
Author: Tomas Kasparek <tkasparek(a)redhat.com>
Date: Wed Nov 27 10:41:39 2013 +0100
bootstrap tuning - hide the documentation question marks on java and perl pages
diff --git a/branding/css/spacewalk-theme.less b/branding/css/spacewalk-theme.less
index 72ec7f7..f036aab 100644
--- a/branding/css/spacewalk-theme.less
+++ b/branding/css/spacewalk-theme.less
@@ -459,6 +459,10 @@ h1 .fa-stack {
/* spacewalk toolbar: contains the H1 of each page + the toolbar */
.spacewalk-toolbar-h1 {
margin-bottom: 1.5em;
+ /* we want to hide quesiton mark pointing to satellite docs in spacewalk */
+ a {
+ .hidden;
+ }
.spacewalk-toolbar {
.pull-right;
padding: .5em 1em;
@@ -698,4 +702,4 @@ ul.nav.nav-tabs:last-child {
font-size: (@font-size-base * 3.5);
}
}
-}
\ No newline at end of file
+}
commit e853221d8e0311dd4b329cd6a5950430bba3d6ba
Author: Tomas Kasparek <tkasparek(a)redhat.com>
Date: Wed Nov 27 10:34:13 2013 +0100
Revert "bootstrap tuning - hide the documentation question marks on java and perl pages"
This reverts commit 7a18b3cfc69a559a7a890310c02e0cb13758ebea.
diff --git a/branding/css/spacewalk-theme.less b/branding/css/spacewalk-theme.less
index 4d65dde..72ec7f7 100644
--- a/branding/css/spacewalk-theme.less
+++ b/branding/css/spacewalk-theme.less
@@ -422,7 +422,6 @@ h1 .fa-stack {
width: 1em;
height: 1em;
line-height: .7em;
- display: none;
}
.fa-stack .fa-circle {
font-size: .7em;
@@ -699,4 +698,4 @@ ul.nav.nav-tabs:last-child {
font-size: (@font-size-base * 3.5);
}
}
-}
+}
\ No newline at end of file
10 years
branding/css
by Tomáš Kašpárek
branding/css/spacewalk-theme.less | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7a18b3cfc69a559a7a890310c02e0cb13758ebea
Author: Tomas Kasparek <tkasparek(a)redhat.com>
Date: Tue Nov 26 14:57:52 2013 +0100
bootstrap tuning - hide the documentation question marks on java and perl pages
diff --git a/branding/css/spacewalk-theme.less b/branding/css/spacewalk-theme.less
index 72ec7f7..4d65dde 100644
--- a/branding/css/spacewalk-theme.less
+++ b/branding/css/spacewalk-theme.less
@@ -422,6 +422,7 @@ h1 .fa-stack {
width: 1em;
height: 1em;
line-height: .7em;
+ display: none;
}
.fa-stack .fa-circle {
font-size: .7em;
@@ -698,4 +699,4 @@ ul.nav.nav-tabs:last-child {
font-size: (@font-size-base * 3.5);
}
}
-}
\ No newline at end of file
+}
10 years
Changes to 'refs/tags/spacewalk-schema-2.1.28-1'
by Milan Zazrivec
Tag 'spacewalk-schema-2.1.28-1' created by Milan Zazrivec <mzazrivec(a)redhat.com> at 2013-11-26 14:31 +0000
Tagging package [spacewalk-schema] version [2.1.28-1] in directory [schema/spacewalk/].
Changes since spacecmd-2.1.14-1:
Milan Zazrivec (3):
catching exceptions: use compat python syntax
delete child channel references from rhnDistChannelMap
Automatic commit of package [spacewalk-schema] release [2.1.28-1].
---
rel-eng/packages/spacewalk-schema | 2 +-
schema/spacewalk/spacewalk-schema.spec | 5 ++++-
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.oracle | 7 +++++++
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.postgresql | 10 +++++++++-
scripts/clone-errata/rhn-clone-errata.py | 4 ++--
5 files changed, 23 insertions(+), 5 deletions(-)
---
10 years
rel-eng/packages schema/spacewalk
by Milan Zazrivec
rel-eng/packages/spacewalk-schema | 2 +-
schema/spacewalk/spacewalk-schema.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 614eee13dff24fe4900b85f66f9bd299064b7188
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Tue Nov 26 15:31:53 2013 +0100
Automatic commit of package [spacewalk-schema] release [2.1.28-1].
diff --git a/rel-eng/packages/spacewalk-schema b/rel-eng/packages/spacewalk-schema
index 45118d8..dda92ad 100644
--- a/rel-eng/packages/spacewalk-schema
+++ b/rel-eng/packages/spacewalk-schema
@@ -1 +1 @@
-2.1.27-1 schema/spacewalk/
+2.1.28-1 schema/spacewalk/
diff --git a/schema/spacewalk/spacewalk-schema.spec b/schema/spacewalk/spacewalk-schema.spec
index 6a0f5b0..2b227cd 100644
--- a/schema/spacewalk/spacewalk-schema.spec
+++ b/schema/spacewalk/spacewalk-schema.spec
@@ -4,7 +4,7 @@ Name: spacewalk-schema
Group: Applications/Internet
Summary: Oracle SQL schema for Spacewalk server
-Version: 2.1.27
+Version: 2.1.28
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.gz
@@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/spacewalk-sql*
%changelog
+* Tue Nov 26 2013 Milan Zazrivec <mzazrivec(a)redhat.com> 2.1.28-1
+- delete child channel references from rhnDistChannelMap
+
* Thu Nov 14 2013 Michael Mraka <michael.mraka(a)redhat.com> 2.1.27-1
- schema upgrade fix: explicit cast for bit-wise operand
10 years
schema/spacewalk
by Milan Zazrivec
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.oracle | 7 +++++++
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.postgresql | 10 +++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
New commits:
commit ae5d845568961d3bed9c4a0dfe18b73c85e3fda4
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Tue Nov 26 15:30:26 2013 +0100
delete child channel references from rhnDistChannelMap
We no longer keep child channel fks in rhnDistChannelMap.
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.oracle b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.oracle
index fc94185..91bb082 100644
--- a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.oracle
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.oracle
@@ -4,6 +4,13 @@ ALTER TABLE rhnDistChannelMap DROP CONSTRAINT rhn_dcm_os_release_caid_uq;
DROP INDEX rhn_dcm_os_release_caid_idx;
delete
+ from rhnDistChannelMap
+where channel_id in (
+ select id
+ from rhnChannel
+ where parent_channel is not null);
+
+delete
from rhnDistChannelMap a
where a.rowid > any (
select b.rowid
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.postgresql b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.postgresql
index 3d6f3dd..f2c7ec2 100644
--- a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.postgresql
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/145-rhnDistChannelMap.sql.postgresql
@@ -1,9 +1,17 @@
--- oracle equivalent source sha1 a6c3a61fbee096e6d6a45219175f0af4750f7338
+-- oracle equivalent source sha1 5d4e5693ab56a45ba202db768693b4ee63450b76
ALTER TABLE rhnDistChannelMap ADD org_id NUMERIC;
ALTER TABLE rhnDistChannelMap ADD CONSTRAINT rhn_dcm_oid_fk FOREIGN KEY (org_id) REFERENCES web_customer (id) ON DELETE CASCADE;
DROP INDEX if exists rhn_dcm_os_release_caid_idx;
ALTER TABLE rhnDistChannelMap DROP CONSTRAINT rhn_dcm_os_release_caid_uq;
+
+delete
+ from rhnDistChannelMap
+where channel_id in (
+ select id
+ from rhnChannel
+ where parent_channel is not null);
+
ALTER TABLE rhnDistChannelMap ADD CONSTRAINT rhn_dcm_release_caid_oid_uq UNIQUE (release, channel_arch_id, org_id);
ALTER TABLE rhnDistChannelMap ADD id NUMERIC;
10 years
scripts/clone-errata
by Milan Zazrivec
scripts/clone-errata/rhn-clone-errata.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 98a72d90238ccd2feb615adb392f8a9ce66debb4
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Tue Nov 26 11:12:38 2013 +0100
catching exceptions: use compat python syntax
diff --git a/scripts/clone-errata/rhn-clone-errata.py b/scripts/clone-errata/rhn-clone-errata.py
index 80a700e..c964779 100755
--- a/scripts/clone-errata/rhn-clone-errata.py
+++ b/scripts/clone-errata/rhn-clone-errata.py
@@ -830,7 +830,7 @@ def main():
try:
if spwErrDetails['errata_issue_date']:
mySPW.setDetails(spwErrataName, { 'issue_date' : spwErrDetails['errata_issue_date'] }, 0)
- except Exception as e:
+ except Exception, e:
if options.format:
print >>sys.stderr, "failed to set issue_date: %s" % e
else:
@@ -839,7 +839,7 @@ def main():
try:
if spwErrDetails['errata_update_date']:
mySPW.setDetails(spwErrataName, { 'update_date' : spwErrDetails['errata_update_date'] }, 0)
- except Exception as e:
+ except Exception, e:
if options.format:
print >>sys.stderr, "failed to set update_date: %s" % e
else:
10 years
Changes to 'refs/tags/spacecmd-2.1.14-1'
by Dimitar Yordanov
Tag 'spacecmd-2.1.14-1' created by Dimitar Yordanov <dyordano(a)redhat.com> at 2013-11-21 16:41 +0000
Tagging package [spacecmd] version [2.1.14-1] in directory [spacecmd/].
Changes since spacewalk-java-2.1.80-1:
Dimitar Yordanov (2):
system_deletecrashes, system_getcrashfiles, system_listcrashesbysystem
Automatic commit of package [spacecmd] release [2.1.14-1].
---
rel-eng/packages/spacecmd | 2
spacecmd/spacecmd.spec | 5 +
spacecmd/src/lib/system.py | 116 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 121 insertions(+), 2 deletions(-)
---
10 years
rel-eng/packages spacecmd/spacecmd.spec
by Dimitar Yordanov
rel-eng/packages/spacecmd | 2 +-
spacecmd/spacecmd.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit e05a0402ec93f1a2037853f2579734423a236fd7
Author: Dimitar Yordanov <dyordano(a)redhat.com>
Date: Thu Nov 21 17:41:08 2013 +0100
Automatic commit of package [spacecmd] release [2.1.14-1].
diff --git a/rel-eng/packages/spacecmd b/rel-eng/packages/spacecmd
index 41ad321..c9955b5 100644
--- a/rel-eng/packages/spacecmd
+++ b/rel-eng/packages/spacecmd
@@ -1 +1 @@
-2.1.13-1 spacecmd/
+2.1.14-1 spacecmd/
diff --git a/spacecmd/spacecmd.spec b/spacecmd/spacecmd.spec
index 1b42435..f779a5e 100644
--- a/spacecmd/spacecmd.spec
+++ b/spacecmd/spacecmd.spec
@@ -4,7 +4,7 @@
%endif
Name: spacecmd
-Version: 2.1.13
+Version: 2.1.14
Release: 1%{?dist}
Summary: Command-line interface to Spacewalk and Satellite servers
@@ -64,6 +64,9 @@ touch %{buildroot}/%{python_sitelib}/spacecmd/__init__.py
%doc %{_mandir}/man1/spacecmd.1.gz
%changelog
+* Thu Nov 21 2013 Dimitar Yordanov <dyordano(a)redhat.com> 2.1.14-1
+- system_deletecrashes, system_getcrashfiles, system_listcrashesbysystem
+
* Fri Nov 08 2013 Milan Zazrivec <mzazrivec(a)redhat.com> 2.1.13-1
- 835979 - system_runscript: convert date/time to iso-8601
10 years
spacecmd/src
by Dimitar Yordanov
spacecmd/src/lib/system.py | 116 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 116 insertions(+)
New commits:
commit 9f02ee53633b315b88763ef0bcb8441e9e257dc4
Author: Dimitar Yordanov <dyordano(a)redhat.com>
Date: Wed Nov 20 11:24:48 2013 +0100
system_deletecrashes, system_getcrashfiles, system_listcrashesbysystem
diff --git a/spacecmd/src/lib/system.py b/spacecmd/src/lib/system.py
index 433d18b..c4fcfdc 100644
--- a/spacecmd/src/lib/system.py
+++ b/spacecmd/src/lib/system.py
@@ -2088,6 +2088,122 @@ def do_system_listcrashedsystems(self, args):
if len(res_crash) != 0:
print "%d : %s : %s" % (len(res_crash),sys['id'],sys['name'])
+######
+
+def help_system_deletecrashes(self):
+ print 'system_deletecrashes: Delete crashes reported by spacewalk-abrt.'
+ print 'usage: Delete all crashes for all systems : system_deletecrashes [--verbose]'
+ print 'usage: Delete all crashes for a single system: system_deletecrashes -i sys_id [--verbose]'
+ print 'usage: Delete a single crash record : system_deletecrashes -c crash_id [--verbose]'
+ print
+
+
+def print_msg(string_msg,flag_verbose):
+ if flag_verbose:
+ print string_msg
+
+def do_system_deletecrashes(self, args):
+ options = [ Option('-i', '--sysid', action='store'),
+ Option('-c', '--crashid', action='store'),
+ Option('-v', '--verbose', action='store_true') ]
+
+ (args, options) = parse_arguments(args, options)
+
+ if options.crashid:
+ print_msg ("Deleting crash with id %s." % options.crashid,options.verbose)
+ self.client.system.crash.deleteCrash(self.session,int(options.crashid))
+ return
+
+ sys_id=[]
+ if options.sysid:
+ sys_id.append(options.sysid)
+ prompt_string="Deleting all crashes from system with systemid %s [y/N]:" % options.sysid
+ else: # all systems
+ prompt_string='Deleting all crashes from all systems [y/N]:'
+ systems=self.client.system.listUserSystems(self.session)
+ for s in systems:
+ sys_id.append(s['id'])
+
+ confirm = prompt_user(prompt_string)
+ if re.match('n', confirm, re.I):
+ return
+
+ for s_id in sys_id:
+ list_crash=self.client.system.crash.listSystemCrashes(self.session,int(s_id))
+ for crash in list_crash:
+ print_msg("Deleting crash with id %s from system %s." % (crash['id'], s_id),options.verbose)
+ self.client.system.crash.deleteCrash(self.session,int(crash['id']))
+
+#######
+
+def help_system_listcrashesbysystem(self):
+ print 'system_listcrashesbysystem: List all reported crashes for a system.'
+ print 'usage: system_listcrashesbysystem -i sys_id'
+ print
+
+def do_system_listcrashesbysystem(self, args):
+
+ options = [ Option('-i', '--sysid', action='store')]
+
+ (args, options) = parse_arguments(args, options)
+
+ if not options.sysid:
+ print "# System id must be provided."
+ print "usage: system_listcrashesbysystem -i sys_id"
+ return
+
+ l_crashes=self.client.system.crash.listSystemCrashes(self.session, int(options.sysid))
+ print
+ print 'Crash ID | Crash Name'
+ print '---------------------'
+
+ for cr in l_crashes:
+ print "| %s | %s" % (cr['id'],cr['crash'])
+
+
+#######
+
+def help_system_getcrashfiles(self):
+ print 'system_getcrashfiles: Download all files for a crash record.'
+ print 'usage: system_getcrashfiles -c crash_id [--verbose]'
+ print 'usage: system_getcrashfiles -c crash_id [--dest_folder=/tmp/crash_files] [--verbose]'
+ print
+
+def do_system_getcrashfiles(self, args):
+ options = [ Option('-c', '--crashid', action='store'),
+ Option('-d', '--dest_folder', action='store'),
+ Option('-v', '--verbose', action='store_true') ]
+
+ (args, options) = parse_arguments(args, options)
+
+ if not options.crashid:
+ print "# Crash id must be provided."
+ print "usage: system_getcrashfiles -c crash_id [--dest_folder=/tmp/crash_files] [--verbose]"
+ return
+
+ if not options.verbose:
+ options.verbose="&>/dev/null"
+
+ # create date stamp
+ date_stamp=datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
+
+ if not options.dest_folder:
+ options.dest_folder="files_for_" + "crashid_" + options.crashid + "_" + date_stamp
+ else:
+ options.dest_folder+="_" + date_stamp
+
+ # create folder
+ os.system("mkdir %s" % options.dest_folder)
+ l_files=self.client.system.crash.listSystemCrashFiles(self.session, int(options.crashid))
+
+ for f in l_files:
+ file_url=self.client.system.crash.getCrashFileUrl(self.session, f['id'])
+ os.system("wget --directory-prefix=%s --tries=1 --no-check-certificate %s %s" % (options.dest_folder,file_url,options.verbose))
+
+ print
+ print "# All files we downloaded to %s." % options.dest_folder
+ print
+
####################
def help_system_removechildchannels(self):
10 years