Bug 1461822
Summary: | [RPM] Agent package conflicts with eap7-keycloak-saml-adapter for both EAP6 and EAP 7 on RHEL 7 | ||
---|---|---|---|
Product: | [JBoss] Middleware Manager | Reporter: | Filip Brychta <fbrychta> |
Component: | Agent, download agent | Assignee: | John Mazzitelli <mazz> |
Status: | VERIFIED --- | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0.0 TP2 | CC: | dwalluck, fnasser, mmahoney |
Target Milestone: | CR2 | Keywords: | Triaged |
Target Release: | 7.0.0 TP2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Filip Brychta
2017-06-15 11:55:49 UTC
This sounds like an RPM packaging issue. The failure appears to be related to the "add-ons" directory (/modules/system/add-ons). The agent stores its binaries in the WildFly add-ons directory (which doesn't exist out of box, the agent RPM probably creates that directory). But if you have other add-ons packages (which sounds like is what the keycloak stuff does as well) then it sounds like the "add-ons" directory is causing a conflict. The agent files themselves probably don't conflict because they exist in their own add-ons subdirectory "hawkular-agent" (and it would be odd if keycloak puts stuff in that named directory). (In reply to John Mazzitelli from comment #1) > But if you have other add-ons packages (which sounds like is what the > keycloak stuff does as well) then it sounds like the "add-ons" directory is > causing a conflict. The agent files themselves probably don't conflict > because they exist in their own add-ons subdirectory "hawkular-agent" (and > it would be odd if keycloak puts stuff in that named directory). Yes, 'rpm -ql eap7-keycloak-adapter | grep add-ons' shows that keycloak uses /opt/rh/eap7/root/usr/share/wildfly/modules/system/add-ons/keycloak (In reply to Filip Brychta from comment #2) > (In reply to John Mazzitelli from comment #1) > > > But if you have other add-ons packages (which sounds like is what the > > keycloak stuff does as well) then it sounds like the "add-ons" directory is > > causing a conflict. The agent files themselves probably don't conflict > > because they exist in their own add-ons subdirectory "hawkular-agent" (and > > it would be odd if keycloak puts stuff in that named directory). > > Yes, 'rpm -ql eap7-keycloak-adapter | grep add-ons' shows that keycloak uses > /opt/rh/eap7/root/usr/share/wildfly/modules/system/add-ons/keycloak So what I suspect is happening is the rpms are not expecting other "things" to be in add-ons. If an rpm expects to "own" add-ons and doesn't expect that location to already exist, that could explain the conflict. The rpms must not bomb if add-ons already exists and has other subdirectories in it - because that's what add-ons is for - it can contain many different add-ons. No one add-on owns that "add-ons" directory. All the files should e able to own the add-ons directory. This is important for RPM to determine when to create and when to remove it. There must be an error in the ownership or file (dir) permissions of oe of the packages. These must match in all packages that own it. There was a permission mismatch on the add-ons directory between the two rpms. Updated EAP 7 build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=565533 Updated EAP 6 build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=565544 (In reply to Paul Gier from comment #5) > There was a permission mismatch on the add-ons directory between the two > rpms. There was a regression, as the fix also changed the permissions on the %doc. I've updated the specs in git to leave the standard permissions on the %doc. |