Re: [Spacewalk-list] Issues with SW 2.8 and Ubuntu 18.04 Clients

2019-08-28 Thread Thomas Müller
Hi Javier,
thanks for the hint, I did'nt seen this. I'll try to replace the SP in
Postgres tomorrow and test if it solves the issue.

Regards,
Thomas

Am Mi., 28. Aug. 2019 um 14:03 Uhr schrieb :

> Hi Thomas
>
>
>
> Did you see this?
>
>
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1661347
>
>
>
> Regards,
>
> Javier
>
>
>
> *Von:* spacewalk-list-boun...@redhat.com <
> spacewalk-list-boun...@redhat.com> *Im Auftrag von *Thomas Müller
> *Gesendet:* Wednesday, August 28, 2019 1:44 PM
> *An:* spacewalk-list@redhat.com
> *Betreff:* [Spacewalk-list] Issues with SW 2.8 and Ubuntu 18.04 Clients
>
>
>
> Hi,
>
> who may give me a hint for solving the following issue?
>
> Ubuntu 18.04 Clients on SW 2.8 want to update some packages:
>
>
>
> Neuestes Paket (new)
>  Installiertes Paket (installed)
>
> gcc-8-base-8-20180414-1ubuntu2.amd64-deb
>  gcc-8-base-8.3.0-6ubuntu1~18.04.1.amd64-deb
> libgcc1-8-20180414-1ubuntu2:1.amd64-deb
> libgcc1-8.3.0-6ubuntu1~18.04.1:1.amd64-deb
> libpython2.7-2.7.15~rc1-1ubuntu0.1.amd64-deb
> libpython2.7-2.7.15-4ubuntu4~18.04.amd64-deb
> libpython2.7-minimal-2.7.15~rc1-1ubuntu0.1.amd64-deb
> libpython2.7-minimal-2.7.15-4ubuntu4~18.04.amd64-deb
> libpython2.7-stdlib-2.7.15~rc1-1ubuntu0.1.amd64-deb
> libpython2.7-stdlib-2.7.15-4ubuntu4~18.04.amd64-deb
> libstdc++6-8-20180414-1ubuntu2.amd64-deb
> libstdc++6-8.3.0-6ubuntu1~18.04.1.amd64-deb
> python2.7-2.7.15~rc1-1ubuntu0.1.amd64-deb
> python2.7-2.7.15-4ubuntu4~18.04.amd64-deb
> python2.7-minimal-2.7.15~rc1-1ubuntu0.1.amd64-deb
> python2.7-minimal-2.7.15-4ubuntu4~18.04.amd64-deb
>
>
>
> But, the installed packages are newer (from bionic-update main channel)
>
>
>
> I've applied all known tricks and workarounds for .deb packagehandling
> (multiarch-.headers, gpg-signing).
>
>
>
> A comparison between the patched Packages in
> /var/cache/rhn/repodata/ and the original shows multi-arch headers
> in both files:
>
>
>
> spacewalk:
>
>
>
> Package: gcc-8-base
> Version: 8.3.0-6ubuntu1~18.04.1
> Architecture: amd64
> Maintainer: Ubuntu Core developers 
> Installed-Size: 113
> Filename: XMLRPC/GET-REQ/bionic-main-updates/getPackage/gcc-8-base
> _8.3.0-6ubuntu1~18.04.1.amd64-deb.deb
> Size: 18716
> SHA256: 89415e0e9d940c81e33959f366f1bad1a94cfecacb538eb897be0e6038781a94
> Section: libs
> Description: GCC, the GNU Compiler Collection (base package)
> This package contains files common to all languages and libraries
> contained in the GNU Compiler Collection (GCC).
> Multi-Arch: same
> Priority: required
> Source: gcc-8
> Origin: Ubuntu
> Original-Maintainer: Debian GCC Maintainers 
> Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> MD5sum: b231d33f61250fee66d1f4f41eebe9a0
> SHA1: c56356523711c4b9f3f59cc4423254e4a293f46e
> Homepage: http://gcc.gnu.org/
> Task: minimal
> Description-md5: b6e93638a6d08ea7a18929d7cf078e5d
> Supported: 5y
>
>
>
> Original:
>
>
>
> Package: gcc-8-base
> Architecture: amd64
> Version: 8.3.0-6ubuntu1~18.04.1
> Multi-Arch: same
> Priority: required
> Section: libs
> Source: gcc-8
> Origin: Ubuntu
> Maintainer: Ubuntu Core developers 
> Original-Maintainer: Debian GCC Maintainers 
> Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> Installed-Size: 113
> Filename: pool/main/g/gcc-8/gcc-8-base_8.3.0-6ubuntu1~18.04.1_amd64.deb
> Size: 18716
> MD5sum: b231d33f61250fee66d1f4f41eebe9a0
> SHA1: c56356523711c4b9f3f59cc4423254e4a293f46e
> SHA256: 89415e0e9d940c81e33959f366f1bad1a94cfecacb538eb897be0e6038781a94
> Homepage: http://gcc.gnu.org/
> Description: GCC, the GNU Compiler Collection (base package)
> Task: minimal
> Description-md5: b6e93638a6d08ea7a18929d7cf078e5d
> Supported: 5y
>
>
>
>
>
> Client packages are from OBS, see
> https://www.redhat.com/archives/spacewalk-list/2018-September/msg00059.html
>
>
>
> Client does'nt (of course) do a downgrade, error:
>
>
>
> D: handle_action actionid = 394, version = 2
> D: do_call packages.update([['gcc-8-base', '8-20180414', '1ubuntu2', '',
> 'amd64-deb']],){'cache_only': None}
> D: Called update[['gcc-8-base', '8-20180414', '1ubuntu2', '', 'amd64-deb']]
> Apt-Spacewalk: Updating sources.list
> D: Sending back response(1, 'update failed', {})
> D: do_call packages.checkNeedUpdate('rhnsd=1',){}
> D: local action status: (0, 'dpkg database not modified since last update
> (or package list recently updated)', {})
> D: rpcServer: Calling XMLRPC registration.welcome_message
>
>
>
>
>
>
>
> --
>
> kind regards
>
> Thomas
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list



-- 
Mit freundlichen Grüßen
Thomas Müller
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] help with ubuntu16 client and spacewalk2.9 server

2019-08-28 Thread Nicole Beck
Hi Robert,

Here are the pertinent lines for "apt-get --simulate upgrade".

root@beaker:/etc/apt/sources.list.d# apt-get --simulate upgrade  python-wadllib 
Reading package lists... Done Building dependency tree Reading state 
information... Done Calculating upgrade... Done The following package was 
automatically installed and is no longer required:
  libsigsegv2
Use 'apt autoremove' to remove it.
The following packages have been kept back:
  libdrm2 libparse-debianchangelog-perl libpython-stdlib linux-image-virtual
  lsb-release open-vm-tools python python-minimal python3 ubuntu-minimal The 
following packages will be upgraded:
...
  python-wadllib python2.7 python2.7-minimal python3-apparmor python3-apport ...
Inst python-wadllib [1.3.2-3] (1.3.2-3ubuntu0.16.04.1 
Ubuntu:16.04/ubuntu16-xenial-updates [all]) ...
Conf python-wadllib (1.3.2-3ubuntu0.16.04.1 
Ubuntu:16.04/ubuntu16-xenial-updates [all])


I have everything commented out of /etc/apt/sources.list so it is getting the 
packages from /etc/apt/sources.list.d/spacewalk.list.  

I'm not sure if this is helpful or not, but " apt list --upgradable|wc" is 496, 
but in spacewalk, Systems - Software - Packages - Upgrade shows 247.

Thanks!
Nicole

-Original Message-
From: spacewalk-list-boun...@redhat.com  On 
Behalf Of Robert Paschedag
Sent: Tuesday, August 27, 2019 2:43 PM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] help with ubuntu16 client and spacewalk2.9 server

Can you check from the client with "apt-get", if the package "python-wadllib" 
is really an upgrade candidate?

Might be an error, that spacewalk "thinks" it is an update for the server but 
it isn't.

Robert

⁣sent from my mobile device​


 Originale Nachricht 
Von: Nicole Beck 
Gesendet: Tue Aug 27 19:13:51 GMT+02:00 2019
An: "'spacewalk-list@redhat.com'" 
Betreff: [Spacewalk-list] help with ubuntu16 client and spacewalk2.9 server

Hello,
I'm trying to get an Ubuntu 16 xenial client setup to do updates from a 
spacewalk 2.9 server installed on CentOS7.  I am able to register the client, 
install and remove, or update a single package thru the spacewalk web 
interface. But when I try to update all of the packages on (choose system - 
Software - Packages tab - Upgrade tab - choose Select All - Upgrade packages - 
confirm), then run "rhn_check -vvv" on the client, it fails with:

...
Apt-Spacewalk: Updating sources.list
D: Failed to update package['python-wadllib', '1.3.2', '3ubuntu0.16.04.1', '', 
'all-deb']
D: Sending back response(1, 'update failed', {})
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: Called refresh_list
Updating package profile
D: rpcServer: Calling XMLRPC registration.welcome_message
D: rpcServer: Calling XMLRPC registration.update_packages
D: local action status: (0, 'package list refreshed', {})
D: rpcServer: Calling XMLRPC registration.welcome_message

I could use the web interface to update the single package that it says it is 
failing on.

I used the steps listed in 
https://www.redhat.com/archives/spacewalk-list/2019-January/msg6.html to 
get this setup. I installed the 2.8 spacewalk client referenced in the thread, 
and I signed the repos per the documentation at 
http://www.devops-blog.net/spacewalk/gpg-signing-apt-repository-in-spacewalk. I 
checked, and I think the necessary patches referenced in that document are 
already the client and server. I used spacewalks spacewalk-repo-sync command to 
sync the Ubuntu repositories. However, I did not run the script to setup 
multiarch headers that is referenced in 
https://www.redhat.com/archives/spacewalk-list/2018-September/msg00072.html. Is 
that still needed? The documentation for Ubuntu and spacewalk isn't that great, 
some is for older versions of spacewalk, so I'm piecing things together and I'm 
not sure what is still needed and what is not, of if I installed things 
correctly.

Any suggestions are appreciated.

Thanks!
Nicole




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

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

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

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

[Spacewalk-list] Changing the functionality of the Daily Status Report

2019-08-28 Thread Guy Matz
Hi!  I get a daily email of machines that have not checked in, but what I
would prefer is for spacewalk to fire a webhook . . .  is that possible?

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

Re: [Spacewalk-list] Issues with SW 2.8 and Ubuntu 18.04 Clients

2019-08-28 Thread Javier.Flores
Hi Thomas

Did you see this?

https://bugzilla.redhat.com/show_bug.cgi?id=1661347

Regards,
Javier

Von: spacewalk-list-boun...@redhat.com  Im 
Auftrag von Thomas Müller
Gesendet: Wednesday, August 28, 2019 1:44 PM
An: spacewalk-list@redhat.com
Betreff: [Spacewalk-list] Issues with SW 2.8 and Ubuntu 18.04 Clients

Hi,
who may give me a hint for solving the following issue?
Ubuntu 18.04 Clients on SW 2.8 want to update some packages:

Neuestes Paket (new)   
Installiertes Paket (installed)

gcc-8-base-8-20180414-1ubuntu2.amd64-deb 
gcc-8-base-8.3.0-6ubuntu1~18.04.1.amd64-deb
libgcc1-8-20180414-1ubuntu2:1.amd64-deb
libgcc1-8.3.0-6ubuntu1~18.04.1:1.amd64-deb
libpython2.7-2.7.15~rc1-1ubuntu0.1.amd64-deb  
libpython2.7-2.7.15-4ubuntu4~18.04.amd64-deb
libpython2.7-minimal-2.7.15~rc1-1ubuntu0.1.amd64-deb 
libpython2.7-minimal-2.7.15-4ubuntu4~18.04.amd64-deb
libpython2.7-stdlib-2.7.15~rc1-1ubuntu0.1.amd64-deb 
libpython2.7-stdlib-2.7.15-4ubuntu4~18.04.amd64-deb
libstdc++6-8-20180414-1ubuntu2.amd64-deb  
libstdc++6-8.3.0-6ubuntu1~18.04.1.amd64-deb
python2.7-2.7.15~rc1-1ubuntu0.1.amd64-deb  
python2.7-2.7.15-4ubuntu4~18.04.amd64-deb
python2.7-minimal-2.7.15~rc1-1ubuntu0.1.amd64-deb
python2.7-minimal-2.7.15-4ubuntu4~18.04.amd64-deb

But, the installed packages are newer (from bionic-update main channel)

I've applied all known tricks and workarounds for .deb packagehandling 
(multiarch-.headers, gpg-signing).

A comparison between the patched Packages in /var/cache/rhn/repodata/ 
and the original shows multi-arch headers in both files:

spacewalk:

Package: gcc-8-base
Version: 8.3.0-6ubuntu1~18.04.1
Architecture: amd64
Maintainer: Ubuntu Core developers 
mailto:ubuntu-devel-disc...@lists.ubuntu.com>>
Installed-Size: 113
Filename: 
XMLRPC/GET-REQ/bionic-main-updates/getPackage/gcc-8-base_8.3.0-6ubuntu1~18.04.1.amd64-deb.deb
Size: 18716
SHA256: 89415e0e9d940c81e33959f366f1bad1a94cfecacb538eb897be0e6038781a94
Section: libs
Description: GCC, the GNU Compiler Collection (base package)
This package contains files common to all languages and libraries
contained in the GNU Compiler Collection (GCC).
Multi-Arch: same
Priority: required
Source: gcc-8
Origin: Ubuntu
Original-Maintainer: Debian GCC Maintainers 
mailto:debian-...@lists.debian.org>>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
MD5sum: b231d33f61250fee66d1f4f41eebe9a0
SHA1: c56356523711c4b9f3f59cc4423254e4a293f46e
Homepage: http://gcc.gnu.org/
Task: minimal
Description-md5: b6e93638a6d08ea7a18929d7cf078e5d
Supported: 5y

Original:

Package: gcc-8-base
Architecture: amd64
Version: 8.3.0-6ubuntu1~18.04.1
Multi-Arch: same
Priority: required
Section: libs
Source: gcc-8
Origin: Ubuntu
Maintainer: Ubuntu Core developers 
mailto:ubuntu-devel-disc...@lists.ubuntu.com>>
Original-Maintainer: Debian GCC Maintainers 
mailto:debian-...@lists.debian.org>>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 113
Filename: pool/main/g/gcc-8/gcc-8-base_8.3.0-6ubuntu1~18.04.1_amd64.deb
Size: 18716
MD5sum: b231d33f61250fee66d1f4f41eebe9a0
SHA1: c56356523711c4b9f3f59cc4423254e4a293f46e
SHA256: 89415e0e9d940c81e33959f366f1bad1a94cfecacb538eb897be0e6038781a94
Homepage: http://gcc.gnu.org/
Description: GCC, the GNU Compiler Collection (base package)
Task: minimal
Description-md5: b6e93638a6d08ea7a18929d7cf078e5d
Supported: 5y


Client packages are from OBS, see 
https://www.redhat.com/archives/spacewalk-list/2018-September/msg00059.html

Client does'nt (of course) do a downgrade, error:

D: handle_action actionid = 394, version = 2
D: do_call packages.update([['gcc-8-base', '8-20180414', '1ubuntu2', '', 
'amd64-deb']],){'cache_only': None}
D: Called update[['gcc-8-base', '8-20180414', '1ubuntu2', '', 'amd64-deb']]
Apt-Spacewalk: Updating sources.list
D: Sending back response(1, 'update failed', {})
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: local action status: (0, 'dpkg database not modified since last update (or 
package list recently updated)', {})
D: rpcServer: Calling XMLRPC registration.welcome_message
[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]



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

[Spacewalk-list] Issues with SW 2.8 and Ubuntu 18.04 Clients

2019-08-28 Thread Thomas Müller
Hi,
who may give me a hint for solving the following issue?
Ubuntu 18.04 Clients on SW 2.8 want to update some packages:

Neuestes Paket (new)
 Installiertes Paket (installed)

gcc-8-base-8-20180414-1ubuntu2.amd64-deb
 gcc-8-base-8.3.0-6ubuntu1~18.04.1.amd64-deb
libgcc1-8-20180414-1ubuntu2:1.amd64-deb
libgcc1-8.3.0-6ubuntu1~18.04.1:1.amd64-deb
libpython2.7-2.7.15~rc1-1ubuntu0.1.amd64-deb
libpython2.7-2.7.15-4ubuntu4~18.04.amd64-deb
libpython2.7-minimal-2.7.15~rc1-1ubuntu0.1.amd64-deb
libpython2.7-minimal-2.7.15-4ubuntu4~18.04.amd64-deb
libpython2.7-stdlib-2.7.15~rc1-1ubuntu0.1.amd64-deb
libpython2.7-stdlib-2.7.15-4ubuntu4~18.04.amd64-deb
libstdc++6-8-20180414-1ubuntu2.amd64-deb
libstdc++6-8.3.0-6ubuntu1~18.04.1.amd64-deb
python2.7-2.7.15~rc1-1ubuntu0.1.amd64-deb
python2.7-2.7.15-4ubuntu4~18.04.amd64-deb
python2.7-minimal-2.7.15~rc1-1ubuntu0.1.amd64-deb
python2.7-minimal-2.7.15-4ubuntu4~18.04.amd64-deb

But, the installed packages are newer (from bionic-update main channel)

I've applied all known tricks and workarounds for .deb packagehandling
(multiarch-.headers, gpg-signing).

A comparison between the patched Packages in
/var/cache/rhn/repodata/ and the original shows multi-arch headers
in both files:

spacewalk:

Package: gcc-8-base
Version: 8.3.0-6ubuntu1~18.04.1
Architecture: amd64
Maintainer: Ubuntu Core developers 
Installed-Size: 113
Filename: XMLRPC/GET-REQ/bionic-main-updates/getPackage/gcc-8-base
_8.3.0-6ubuntu1~18.04.1.amd64-deb.deb
Size: 18716
SHA256: 89415e0e9d940c81e33959f366f1bad1a94cfecacb538eb897be0e6038781a94
Section: libs
Description: GCC, the GNU Compiler Collection (base package)
This package contains files common to all languages and libraries
contained in the GNU Compiler Collection (GCC).
Multi-Arch: same
Priority: required
Source: gcc-8
Origin: Ubuntu
Original-Maintainer: Debian GCC Maintainers 
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
MD5sum: b231d33f61250fee66d1f4f41eebe9a0
SHA1: c56356523711c4b9f3f59cc4423254e4a293f46e
Homepage: http://gcc.gnu.org/
Task: minimal
Description-md5: b6e93638a6d08ea7a18929d7cf078e5d
Supported: 5y

Original:

Package: gcc-8-base
Architecture: amd64
Version: 8.3.0-6ubuntu1~18.04.1
Multi-Arch: same
Priority: required
Section: libs
Source: gcc-8
Origin: Ubuntu
Maintainer: Ubuntu Core developers 
Original-Maintainer: Debian GCC Maintainers 
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 113
Filename: pool/main/g/gcc-8/gcc-8-base_8.3.0-6ubuntu1~18.04.1_amd64.deb
Size: 18716
MD5sum: b231d33f61250fee66d1f4f41eebe9a0
SHA1: c56356523711c4b9f3f59cc4423254e4a293f46e
SHA256: 89415e0e9d940c81e33959f366f1bad1a94cfecacb538eb897be0e6038781a94
Homepage: http://gcc.gnu.org/
Description: GCC, the GNU Compiler Collection (base package)
Task: minimal
Description-md5: b6e93638a6d08ea7a18929d7cf078e5d
Supported: 5y


Client packages are from OBS, see
https://www.redhat.com/archives/spacewalk-list/2018-September/msg00059.html

Client does'nt (of course) do a downgrade, error:

D: handle_action actionid = 394, version = 2
D: do_call packages.update([['gcc-8-base', '8-20180414', '1ubuntu2', '',
'amd64-deb']],){'cache_only': None}
D: Called update[['gcc-8-base', '8-20180414', '1ubuntu2', '', 'amd64-deb']]
Apt-Spacewalk: Updating sources.list
D: Sending back response(1, 'update failed', {})
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: local action status: (0, 'dpkg database not modified since last update
(or package list recently updated)', {})
D: rpcServer: Calling XMLRPC registration.welcome_message



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

[Spacewalk-list] Generating system cache is taking so long

2019-08-28 Thread Dawn Mathews John
Hi,

I have a Spacewalk 2.7 setup with more than 44000 systems subscribed to the
server. Most of these systems were duplicate which were created due to a
bad crontab which forcefully add the systems again and again, everyday.

So I wanted to delete these systems using spacecmd. But whenever, I do a
system_list from spacecmd, I get "Generating cache" and it is waiting for
ever. Is there a workaround to stop this.

-- 
Regards,
Dawn Mathews John
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list