Bug 164940

Summary: ccs "Requires: magma-plugins" introduces circular build dependency
Product: [Retired] Red Hat Cluster Suite Reporter: Charlie Brady <charlieb-redhat-bugzilla>
Component: ccsAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: cluster-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-04 19:22:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charlie Brady 2005-08-02 22:07:15 UTC
...
%changelog
* Fri Oct 22 2004 Chris Feist <cfeist>
- Update for new upstream sources
* Mon Aug 16 2004 Jon Brassow <jbrassow>
- add magma-plugins as an installation requirement
* Fri Aug 13 2004 Jon Brassow <jbrassow>
- buildrequires magma-devel not magma
...

Let's see, I cannot install ccs until I install magna-plugins. So I need to
build magna-plugins. For that, I need to have dlm-devel installed. To install
that, I need to install dlm. To install dlm, I need cman installed. To install
cman, I need ccs. To install ccs, I need magna-plugins. Hmmm....

To reproduce - start with clean RHEL4, and try to build all SRPMS from:

 http://www.linux911.cl/GFS-CENTOS4/SRPMS/

Proposed solutions:

- break some of the requirement of xxx-devel on xxx (you may need to duplicate
.so files between xxx-devel and xxx packages for that), so that only xxx-devel
packages need to be installed on compile servers.

or:

- Back out the "Requires: magna-plugins" in this package.

Comment 1 Chris Feist 2005-08-15 22:30:06 UTC
This has been fixed in the latest magma (1.0.1-4).

Comment 2 Charlie Brady 2005-08-15 22:35:55 UTC
> This has been fixed in the latest magma (1.0.1-4).

Thanks. Is that package (and its peers) available?

Comment 3 Chris Feist 2005-08-15 22:40:14 UTC
It should be available once it has been officially released.

Comment 4 Matthew Booth 2006-01-24 12:18:12 UTC
I have just discovered the hard way that ccsd *really requires* magma-plugins.
If it is not installed, you get:

[root@micah1 up2date]# service ccsd start
Starting ccsd:                                             [FAILED]

Looking in /var/log/messages, you get the extraordinarily useful:
Jan 24 12:20:57 micah1 ccsd[19220]: Starting ccsd 1.0.2:
Jan 24 12:20:57 micah1 ccsd[19220]:  Built: Aug  1 2005 14:36:29
Jan 24 12:20:57 micah1 ccsd[19220]:  Copyright (C) Red Hat, Inc.  2004  All
rights reserved.
Jan 24 12:20:57 micah1 ccsd: startup failed

strace -eopen ccsd -n gives:

open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib64/libxml2.so.2", O_RDONLY) = 3
open("/usr/lib64/libz.so.1", O_RDONLY)  = 3
open("/lib64/tls/libpthread.so.0", O_RDONLY) = 3
open("/lib64/tls/libm.so.6", O_RDONLY)  = 3
open("/lib64/libdl.so.2", O_RDONLY)     = 3
open("/lib64/tls/libc.so.6", O_RDONLY)  = 3
open("/etc/cluster/cluster.conf", O_RDONLY) = 3
open("/var/run/cluster/ccsd.pid", O_WRONLY|O_CREAT, 0644) = 3
Starting ccsd 1.0.2:
 Built: Aug  1 2005 14:36:29
 Copyright (C) Red Hat, Inc.  2004  All rights reserved.
  No Daemon:: SET

Process 19227 detached

strace -eopen -f ccsd -n is the first thing that starts to give a vague inkling
of what's going on here, ending with:

Process 19231 attached
[pid 19231] open("/lib64/magma", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
Process 19231 detached
Process 19230 detached

The lack of a required dependency is a bug, but the lack of logging is criminal.