Bug 1205167 - Move files shared between osad and osa-dispatcher to its own package
Summary: Move files shared between osad and osa-dispatcher to its own package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space23
TreeView+ depends on / blocked
 
Reported: 2015-03-24 11:23 UTC by Patrick Hurrelmann
Modified: 2015-09-30 13:44 UTC (History)
3 users (show)

Fixed In Version: osad-5.11.57-1
Clone Of:
Environment:
Last Closed: 2015-09-30 13:44:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Patrick Hurrelmann 2015-03-24 11:23:38 UTC
Description of problem:
Currently osad and osa-dispatcher both provide some equal files. This makes it impossible to install them in parallel. Spec-files do not prohibit this and it should not do so. I had this running on my 2.2 Spacewalk without problem.
Imho osad and osa-dispatcher can coexist just fine. This is especially needed on spacwalk-systems that are self-managed.  

Version-Release number of selected component (if applicable):

How reproducible:
Always

Steps to Reproduce:
1. Try to install osad on an spacewalk server on EL7
2. RPM gives file conflicts

Actual results:
osad and osa-dispatcher conflict

Expected results:
osad and osa-dispatcher can coexist

Additional info:
Running osad and osa-dispatcher in parallel on the same system works fine for me. No issues oberved.

Comment 1 Patrick Hurrelmann 2015-03-24 11:25:25 UTC
PR added: https://github.com/spacewalkproject/spacewalk/pull/244

Comment 2 Patrick Hurrelmann 2015-03-24 12:28:49 UTC
I checked this again and this seems to be a regression. On my RHEL6 spacewalk 2.2 I can install osad without problems in parallel to an already existing osa-dispatcher:

[user@spacewalk:~%] sudo yum list installed osa\*
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Installed Packages
osa-dispatcher.noarch                5.11.43-1.el6         @spacewalk-x86_64
osa-dispatcher-selinux.noarch        5.11.43-1.el6         @spacewalk-x86_64

[user@spacewalk:~%] sudo yum install osad
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package osad.noarch 0:5.11.43-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package   Arch        Version               Repository                    Size
================================================================================
Installing:
 osad      noarch      5.11.43-1.el6         spacewalk-client-x86_64       75 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 75 k
Installed size: 266 k
Is this ok [y/N]: y
Downloading Packages:
osad-5.11.43-1.el6.noarch.rpm                            |  75 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : osad-5.11.43-1.el6.noarch                                    1/1
  Verifying  : osad-5.11.43-1.el6.noarch                                    1/1

Installed:
  osad.noarch 0:5.11.43-1.el6

Complete!
[user@spacewalk:~%] sudo yum list installed osa\*
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Installed Packages
osa-dispatcher.noarch               5.11.43-1.el6       @spacewalk-x86_64
osa-dispatcher-selinux.noarch       5.11.43-1.el6       @spacewalk-x86_64
osad.noarch                         5.11.43-1.el6       @spacewalk-client-x86_64


Some files should be in conflict, but yum on RHEL6 seems to be less picky as on RHEL7, though.

Comment 3 Grant Gainey 2015-03-25 17:49:44 UTC
spacewalk.github 89ddc870772393211bd4ee4ffa6e0d39fa904b9d

Comment 4 Grant Gainey 2015-04-14 19:03:00 UTC
Spacewalk 2.3 has been released. See

https://fedorahosted.org/spacewalk/wiki/ReleaseNotes23

Comment 5 Martin Korbel 2015-04-24 11:00:23 UTC
I have tested it, but I don't really sure, that it works.

SW 2.3 RHEL7 x86_64
The reporoducer in comment 2.

> rpm -qa | grep osa
osa-common-5.11.57-1.el7.noarch
osa-dispatcher-selinux-5.11.57-1.el7.noarch
osa-dispatcher-5.11.57-1.el7.noarch


> yum install osad
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not subscribed to any channels.
RHN channel support will be disabled.
Resolving Dependencies
--> Running transaction check
---> Package osad.noarch 0:5.11.44-5.el7sat will be installed
--> Processing Conflict: osa-common-5.11.57-1.el7.noarch conflicts osad < 5.11.57-1.el7
--> Processing Conflict: osa-dispatcher-5.11.57-1.el7.noarch conflicts osad < 5.11.57-1.el7
--> Processing Conflict: osad-5.11.44-5.el7sat.noarch conflicts osa-dispatcher > 5.11.44-5.el7sat
--> Finished Dependency Resolution
Error: osa-dispatcher conflicts with osad-5.11.44-5.el7sat.noarch
Error: osa-common conflicts with osad-5.11.44-5.el7sat.noarch
Error: osad conflicts with osa-dispatcher-5.11.57-1.el7.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Comment 6 Grant Gainey 2015-04-24 17:30:07 UTC
Which client-repo are you subscribed to?  osad in

http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/

is osad-5.11.57-1.el7.noarch.rpm, not -44

The following worked for me:

# subscription-manager register 
# subscription-manager repos --enable=rhel-7-server-optional-rpms
# rpm -Uvh http://yum.spacewalkproject.org/2.3/RHEL/7/x86_64/spacewalk-repo-2.3-2.el7.noarch.rpm
# cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install spacewalk-setup-postgresql
# yum install spacewalk-postgresql 
# rpm -Uvh http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/spacewalk-client-repo-2.3-2.el7.noarch.rpm
# yum install osad
Loaded plugins: product-id, subscription-manager
spacewalk-client                                                                                                                                                                            | 2.1 kB  00:00:00     
(1/2): spacewalk-client/x86_64/group                                                                                                                                                        | 1.8 kB  00:00:00     
(2/2): spacewalk-client/x86_64/primary_db                                                                                                                                                   |  11 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package osad.noarch 0:5.11.57-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

Installing:
 osad  noarch  5.11.57-1.el7  spacewalk-client 50 k

Transaction Summary
Install  1 Package

Total download size: 50 k
Installed size: 117 k
Is this ok [y/d/N]: y
Downloading packages:
osad-5.11.57-1.el7.noarch.rpm                                                                                                                                                               |  50 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : osad-5.11.57-1.el7.noarch                                                                                                                                                                       1/1 
  Verifying  : osad-5.11.57-1.el7.noarch                                                                                                                                                                       1/1 

Installed:
  osad.noarch 0:5.11.57-1.el7                                                                                                                                                                                      

Complete!
[root@beast-rhel7-sw23 ~]#

Comment 7 Martin Korbel 2015-05-12 09:41:56 UTC
VERIFIED on osad-5.11.57-1.el6

Yes, it was my mistake. I had a upgraded spacewalk with a old spacewalk-client repo from the previous version.


Note You need to log in before you can comment on or make changes to this bug.