Changes to 'refs/tags/rhn-virtualization-0.6.0-1'
by Devan Goodwin
Tag 'rhn-virtualization-0.6.0-1' created by Devan Goodwin <dgoodwin(a)redhat.com> at 2009-05-01 12:55 +0000
Tagging package [rhn-virtualization] version [0.6.0-1] in directory [client/tools/rhn-virtualization/].
Changes since spacewalk-java-0.6.10-1-10:
---
0 files changed
---
14 years, 12 months
client/tools rel-eng/packages
by Devan Goodwin
client/tools/rhn-virtualization/rhn-virtualization.spec | 5 ++++-
rel-eng/packages/rhn-virtualization | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit d596bc04ab91284e1c15cb70ff7718acc9519902
Author: Devan Goodwin <dgoodwin(a)redhat.com>
Date: Fri May 1 09:55:44 2009 -0300
Automatic commit of package [rhn-virtualization] release [0.6.0-1].
diff --git a/client/tools/rhn-virtualization/rhn-virtualization.spec b/client/tools/rhn-virtualization/rhn-virtualization.spec
index c16b4d0..80d924b 100644
--- a/client/tools/rhn-virtualization/rhn-virtualization.spec
+++ b/client/tools/rhn-virtualization/rhn-virtualization.spec
@@ -10,7 +10,7 @@ License: GPLv2
URL: https://fedorahosted.org/spacewalk
Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
-Version: 0.5.1
+Version: 0.6.0
Release: 1%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -162,6 +162,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE
%changelog
+* Fri May 01 2009 Devan Goodwin <dgoodwin(a)redhat.com> 0.6.0-1
+- Bump version up for 0.6.
+
* Mon Apr 20 2009 jesus m. rodriguez <jesusr(a)redhat.com> 0.5.1-1
- wrap long description lines (msuchy(a)redhat.com)
- point URL to fedorahosted.org (msuchy(a)redhat.com)
diff --git a/rel-eng/packages/rhn-virtualization b/rel-eng/packages/rhn-virtualization
index 985b69d..830feaf 100644
--- a/rel-eng/packages/rhn-virtualization
+++ b/rel-eng/packages/rhn-virtualization
@@ -1 +1 @@
-0.5.1-1 client/tools/rhn-virtualization/
+0.6.0-1 client/tools/rhn-virtualization/
14 years, 12 months
rel-eng/lib
by Devan Goodwin
rel-eng/lib/spacewalk/releng/cli.py | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
New commits:
commit 7eae29df058dbd94efc65c5e7527d3ecb42bde82
Author: Devan Goodwin <dgoodwin(a)redhat.com>
Date: Thu Apr 30 22:12:12 2009 -0300
tito: Display relative package dir during untagged diffs report.
Helpful to clearly see what directory to go to to tag the package when
viewing the report.
diff --git a/rel-eng/lib/spacewalk/releng/cli.py b/rel-eng/lib/spacewalk/releng/cli.py
index 36d71e5..fc1948f 100644
--- a/rel-eng/lib/spacewalk/releng/cli.py
+++ b/rel-eng/lib/spacewalk/releng/cli.py
@@ -528,7 +528,8 @@ class ReportModule(BaseCliModule):
f = open(os.path.join(package_metadata_dir, md_file))
(version, relative_dir) = f.readline().strip().split(" ")
project_dir = os.path.join(git_root, relative_dir)
- self._print_diff(global_config, md_file, version, project_dir)
+ self._print_diff(global_config, md_file, version, project_dir,
+ relative_dir)
def _print_log(self, global_config, package_name, version, project_dir):
"""
@@ -548,13 +549,14 @@ class ReportModule(BaseCliModule):
except:
print("%s no longer exists" % project_dir)
- def _print_diff(self, global_config, package_name, version, project_dir):
+ def _print_diff(self, global_config, package_name, version,
+ full_project_dir, relative_project_dir):
"""
Print a diff between the most recent package tag and HEAD, if
necessary.
"""
last_tag = "%s-%s" % (package_name, version)
- os.chdir(project_dir)
+ os.chdir(full_project_dir)
patch_command = "git diff --relative %s..%s" % \
(last_tag, "HEAD")
output = run_command(patch_command)
@@ -564,10 +566,11 @@ class ReportModule(BaseCliModule):
if linecount == 1:
return
+ name_and_version = "%s %s" % (package_name, relative_project_dir)
# Otherwise, print out info on the diff for this package:
- print("#" * len(package_name))
- print(package_name)
- print("#" * len(package_name))
+ print("#" * len(name_and_version))
+ print(name_and_version)
+ print("#" * len(name_and_version))
print("")
print patch_command
print("")
14 years, 12 months
Branch 'pgsql' - 2 commits - schema/spacewalk
by Tom Lane
schema/spacewalk/postgres/procs/delete_server.sql | 176 +++++-----------------
schema/spacewalk/postgres/views/views.deps | 6
2 files changed, 45 insertions(+), 137 deletions(-)
New commits:
commit 9d12c670ec75dda96634543d6082c6162eee0e97
Author: Tom Lane <tgl(a)redhat.com>
Date: Thu Apr 30 20:54:59 2009 -0400
Clean up translated coding in delete_server().
diff --git a/schema/spacewalk/postgres/procs/delete_server.sql b/schema/spacewalk/postgres/procs/delete_server.sql
index 0da334e..3790107 100644
--- a/schema/spacewalk/postgres/procs/delete_server.sql
+++ b/schema/spacewalk/postgres/procs/delete_server.sql
@@ -17,7 +17,6 @@
-- This deletes a server. All codepaths which delete servers should hit this
-- or delete_server_bulk()
-
create or replace
function delete_server (
server_id_in in numeric
@@ -30,11 +29,6 @@ declare
from rhnServerGroupMembers sgm
where sgm.server_id = server_id_in;
- servergroups_curs_server_id numeric;
- servergroups_curs_server_group_id numeric;
-
-
-
configchannels cursor for
select cc.id
from rhnConfigChannel cc,
@@ -50,117 +44,45 @@ declare
('local_override','server_import')
and cct.id = cc.confchan_type_id;
- configchannels_curs_id numeric;
-
-
- --type filelistsid_t is table of rhnServerPreserveFileList.file_list_id%type;
- -- filelistsid_c filelistsid_t;
-
- -- type probesid_t is table of rhn_check_probe.probe_id%type;
- -- probesid_c probesid_t;
-
-
- probe_curs cursor for SELECT CP.probe_id
- FROM rhn_check_probe CP
- WHERE CP.host_id = server_id_in
- OR CP.sat_cluster_id in
- (SELECT SN.sat_cluster_id
- FROM rhn_sat_node SN
- WHERE SN.server_id = server_id_in);
-
- probe_curs_probe_id numeric;
-
-
- server_p_list cursor for select spfl.file_list_id
- from rhnServerPreserveFileList spfl
- where spfl.server_id = server_id_in
- and not exists (
- select 1
- from rhnServerPreserveFileList
- where file_list_id = spfl.file_list_id
- and server_id != server_id_in
- union
- select 1
- from rhnKickstartPreserveFileList
- where file_list_id = spfl.file_list_id
- );
-
- server_p_list_curs_f_list_id numeric;
-
- is_virt numeric := 0;
+ is_virt boolean;
begin
perform rhn_channel.delete_server_channels(server_id_in);
-- rhn_channel.clear_subscriptions(server_id_in);
- open server_p_list;
-
- loop
- fetch server_p_list into server_p_list_curs_f_list_id;
- if server_p_list_curs_f_list_id is null then
- exit;
- end if;
-
- delete from rhnFileList where id = server_p_list_curs_f_list_id;
- end loop;
-
-- filelists
- /* TODO
-
- select spfl.file_list_id id bulk collect into filelistsid_c
- from rhnServerPreserveFileList spfl
- where spfl.server_id = server_id_in
- and not exists (
- select 1
- from rhnServerPreserveFileList
- where file_list_id = spfl.file_list_id
- and server_id != server_id_in
- union
- select 1
- from rhnKickstartPreserveFileList
- where file_list_id = spfl.file_list_id
- );
-
-
-
-
- if filelistsid_c.first is not null then
- forall i in filelistsid_c.first..filelistsid_c.last
- delete from rhnFileList where id = filelistsid_c(i);
- end if;
-
- */
-
- open configchannels;
-
- loop
- fetch configchannels into configchannels_curs_id;
- exit when not found;
+ delete from rhnFileList where id in (
+ select spfl.file_list_id
+ from rhnServerPreserveFileList spfl
+ where spfl.server_id = server_id_in
+ and not exists (
+ select 1
+ from rhnServerPreserveFileList
+ where file_list_id = spfl.file_list_id
+ and server_id != server_id_in
+ union all
+ select 1
+ from rhnKickstartPreserveFileList
+ where file_list_id = spfl.file_list_id
+ )
+ );
+
+ for configchannel in configchannels loop
perform rhn_config.delete_channel(configchannel.id);
-
end loop;
-
-
- select count(1) into is_virt
+ is_virt := exists (
+ select 1
from rhnServerEntitlementView
where server_id = server_id_in
and label in ('virtualization_host', 'virtualization_host_platform')
- --and rownum <= 1;
- limit 1;
-
- open servergroups;
+ );
- loop
- fetch servergroups into servergroups_curs_server_id, servergroups_curs_server_group_id;
- exit when not found;
-
- perform rhn_server.delete_from_servergroup(servergroups_curs_server_id, servergroups_curs_server_group_id);
-
- end loop;
-
-
+ for sgm in servergroups loop
+ perform rhn_server.delete_from_servergroup(
+ sgm.server_id, sgm.server_group_id);
+ end loop;
- if is_virt = 1 then
+ if is_virt then
perform rhn_entitlements.repoll_virt_guest_entitlements(server_id_in);
end if;
@@ -193,11 +115,11 @@ begin
-- uuid, this guest must have been re-registered, so we can clean
-- this data up.
- delete from rhnVirtualInstance
+ delete from rhnVirtualInstance vi
where (host_system_id = server_id_in and virtual_system_id is null)
or (virtual_system_id = server_id_in and host_system_id is null)
- or (rhnVirtualInstance.virtual_system_id = server_id_in and rhnVirtualInstance.modified < (select max(vi2.modified)
- from rhnVirtualInstance vi2 where vi2.uuid = rhnVirtualInstance.uuid));
+ or (vi.virtual_system_id = server_id_in and vi.modified < (select max(vi2.modified)
+ from rhnVirtualInstance vi2 where vi2.uuid = vi.uuid));
-- this is merge of two single updates:
-- update ... set host_system_id = null where host_system_id = server_id_in;
@@ -286,38 +208,28 @@ begin
delete from rhnAppInstallSession where server_id = server_id_in;
delete from rhnServerUuid where server_id = server_id_in;
+
-- We delete all the probes running directly against this system
-- and any probes that were using this Server as a Proxy Scout.
-
-
- /* TODO
-
- SELECT CP.probe_id bulk collect into probesid_c
- FROM rhn_check_probe CP
+ DELETE FROM rhn_probe_state PS WHERE PS.probe_id IN (
+ SELECT CP.probe_id
+ FROM rhn_check_probe CP
WHERE CP.host_id = server_id_in
OR CP.sat_cluster_id in
(SELECT SN.sat_cluster_id
FROM rhn_sat_node SN
- WHERE SN.server_id = server_id_in);
-
- if probesid_c.first is not null then
- FORALL i IN probesid_c.first..probesid_c.last
- DELETE FROM rhn_probe_state PS WHERE PS.probe_id = probesid_c(i);
- FORALL i IN probesid_c.first..probesid_c.last
- DELETE FROM rhn_probe P WHERE P.recid = probesid_c(i);
- end if;
-
- */
-
- open probe_curs;
+ WHERE SN.server_id = server_id_in)
+ );
- loop
- fetch probe_curs into probe_curs_probe_id;
- exit when not found;
-
- DELETE FROM rhn_probe_state WHERE probe_id = probe_curs_probe_id;
- DELETE FROM rhn_probe WHERE recid = probe_curs_probe_id;
- end loop;
+ DELETE FROM rhn_probe P WHERE P.recid IN (
+ SELECT CP.probe_id
+ FROM rhn_check_probe CP
+ WHERE CP.host_id = server_id_in
+ OR CP.sat_cluster_id in
+ (SELECT SN.sat_cluster_id
+ FROM rhn_sat_node SN
+ WHERE SN.server_id = server_id_in)
+ );
delete from rhn_check_probe where host_id = server_id_in;
delete from rhn_host_probe where host_id = server_id_in;
commit 88b3812505457a81a2a6bb1ae30561a5c097e1e1
Author: Tom Lane <tgl(a)redhat.com>
Date: Thu Apr 30 20:44:50 2009 -0400
Get rid of unused rules that cause genmain to give warnings.
diff --git a/schema/spacewalk/postgres/views/views.deps b/schema/spacewalk/postgres/views/views.deps
index 65a9ab6..8dca641 100644
--- a/schema/spacewalk/postgres/views/views.deps
+++ b/schema/spacewalk/postgres/views/views.deps
@@ -35,11 +35,7 @@ rhnServerOverview :: rhnUserServerPerms \
rhn_entitlements.pks
rhnUserChannelFamilyPerms :: rhnPrivateChannelFamily \
rhnPublicChannelFamily web_contact
-rhnUserTypeArray :: web_contact rhnUserTypeBase \
- user_group_name_t user_group_label_t \
- user_group_id_t
-rhnUserTypeCommaView :: rhnUserTypeArray name_join label_join \
- id_join
+rhnUserTypeCommaView :: web_contact rhnUserTypeBase
rhnVisServerGroupOverviewLite :: rhnVisibleServerGroup rhnServerGroupMembers \
rhnUserManagedServerGroups \
rhnServerGroupOVLiteHelper
14 years, 12 months