Re: [Spacewalk-devel] devel repo: sync channels from dump

2015-10-27 Thread Silvio Moioli

On 26/10/2015 15:30, Tomas Lestach wrote:

Would you, please, add it to the main PR, please?
We would tag and build it and Pavel may check, whether it
helps.


Done, thanks!
--
Silvio Moioli
SUSE Manager Development Team

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel


Re: [Spacewalk-devel] devel repo: sync channels from dump

2015-10-26 Thread Silvio Moioli

On 15/10/2015 11:45, Pavel Studeník wrote:

Hello,

I think that syncing channels from devel repo is broken. [...]

satellite-sync -m dumps -c rhel-i386-server-5 -c rhel-i386-server-vt-5


I am attaching a patch which should help - unfortunately we are not able to 
access the channels you mention so it's difficult for us to test that.

Please give the patch a try and report back if it works.

Thanks!
--
Silvio Moioli
SUSE Manager Development Team


--
Silvio Moioli
SUSE Manager Development Team
>From 76694b63d50f7c79d9cf5a6a3de88675976f1120 Mon Sep 17 00:00:00 2001
From: Michael Calmer 
Date: Thu, 22 Oct 2015 11:54:22 +0200
Subject: [PATCH] ignore all not any longer supported entitlements

---
 backend/server/importlib/archImport.py | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/backend/server/importlib/archImport.py b/backend/server/importlib/archImport.py
index d5199fa..21105b7 100644
--- a/backend/server/importlib/archImport.py
+++ b/backend/server/importlib/archImport.py
@@ -144,9 +144,12 @@ class ServerGroupServerArchCompatImport(BaseArchCompatImport):
 arches2_field_name = 'server_group_type'
 submit_method_name = 'processServerGroupServerArchCompatMap'
 
-# monitoring is no longer supported, ignore any monitoring info for
+# some entitlements are no longer supported, ignore any of them for
 # backwards compatibility
 def _postprocess(self):
-self.batch[:] = [entry for entry in self.batch if not
- entry[self.arches2_name] == 'monitoring_entitled']
+self.batch[:] = [entry for entry in self.batch if
+ entry[self.arches2_name] not in [
+ 'monitoring_entitled', 'sw_mgr_entitled',
+ 'provisioning_entitled', 'nonlinux_entitled',
+ 'virtualization_host_platform']]
 BaseArchCompatImport._postprocess(self)
-- 
2.1.4


___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Re: [Spacewalk-devel] devel repo: sync channels from dump

2015-10-26 Thread Tomas Lestach
> On 15/10/2015 11:45, Pavel Studeník wrote:
> > Hello,
> >
> > I think that syncing channels from devel repo is broken. [...]
> >>> satellite-sync -m dumps -c rhel-i386-server-5 -c
> >>> rhel-i386-server-vt-5
> 
> I am attaching a patch which should help - unfortunately we are not
> able to access the channels you mention so it's difficult for us to
> test that.
> 
> Please give the patch a try and report back if it works.

Silvio,
thank you for the patch!
Would you, please, add it to the main PR, please?
We would tag and build it and Pavel may check, whether it
helps.

Thank you,
--
Tomas Lestach
Red Hat Satellite Engineering, Red Hat

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel