Bug 896275
| Summary: | spacewalk-repo-sync does not exclude all packages | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Dieter Gurkentopf <ict> |
| Component: | Server | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED NOTABUG | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.8 | CC: | ict |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-18 18:39:46 UTC | 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1484117 | ||
|
Description
Dieter Gurkentopf
2013-01-16 22:50:30 UTC
After removing and deleting a xulrunner package and restarting spacewalk, the same command is syncing the xulrunner package again. spacewalk-repo-sync solves package dependencies before downloading (so you won't end with packages which can't be installed due to missing libs etc.).
Checking which packages need xulrunner on my test machine gives me:
# rpm -e --test xulrunner --allmatches
error: Failed dependencies:
gecko-libs >= 10.0 is needed by (installed) yelp-2.28.1-13.el6_2.x86_64
libmozalloc.so()(64bit) is needed by (installed) firefox-10.0.12-1.el6_3.x86_64
libxpcom.so()(64bit) is needed by (installed) firefox-10.0.12-1.el6_3.x86_64
libxul.so()(64bit) is needed by (installed) firefox-10.0.12-1.el6_3.x86_64
xulrunner >= 1.9 is needed by (installed) eclipse-swt-1:3.6.1-6.13.el6.x86_64
xulrunner >= 10.0.12-1 is needed by (installed) firefox-10.0.12-1.el6_3.x86_64
so I guess you have add yelp to exclude to get rid of xulrunner.
Oops, mea culpa! I did not have xulrunner installed, so your command does not work. With a xulrunner package I can use rpm to find some dependencies. Repoquery works 'better', I can see all packages that depend on xulrunner: repoquery -q --whatrequires --alldeps xulrunner spacewalk-repo-sync --channel=centos6.3-x86_64-base --exclude=eclipse*,esc*,firefox*,libproxy-mozjs*,libreoffice*,mingw*,texlive*,thunderbird*,xulrunner*,yelp*,spice-xpi*,system-config-date-docs*,system-config-kdump*,system-config-services-docs*,system-config-users-docs*,svnkit* This works, and now I also know why it still syncs a few texlive packages. What is still confusing me is this: It also syncs system-config-users-docs, system-config-services-docs and system-config-date-docs. Ok, this is needed because of system-config-users , system-config-services and system-config-date. When not excluding these packages and using this command: spacewalk-repo-sync --channel=centos6.3-x86_64-base --exclude=eclipse*,esc*,firefox*,libproxy-mozjs*,libreoffice*,mingw*,texlive*,thunderbird*,xulrunner*,yelp*,spice-xpi*,system-config-kdump*,svnkit* It is syncing yelp again. repoquery -q --whatrequires --alldeps yelp shows that system-config-users-docs depends on yelp. Apparently spacewalk-repo-sync only solves dependencies to a certain level, otherwise it would also sync yelp with the first command, correct? Anyway, thank you for your help. Should I close this ticket myself, and classify it as an user error? (In reply to comment #3) > Apparently spacewalk-repo-sync only solves dependencies to a certain level, > otherwise it would also sync yelp with the first command, correct? No, it does full dependency solving. # repoquery -q --whatrequires --alldeps yelp yelp-0:2.28.1-13.el6_2.x86_64 yelp-0:2.28.1-13.el6_2.i686 system-config-date-docs-0:1.0.9-1.el6.noarch system-config-date-docs-0:1.0.11-1.el6.noarch system-config-kdump-0:2.0.2.2-2.el6.noarch system-config-kdump-0:2.0.5-11.el6.noarch system-config-services-docs-0:1.1.8-1.el6.noarch system-config-users-docs-0:1.0.8-1.el6.noarch As command above shows yelp is required only by system-config-*-docs and system-config-kdump so in the first example you excluded all packages which requires yelp (except itself) and it isn't dowloaded. In the second example system-config-*-docs packages (not excluded so they are by default in the transaction) pulls yelp back. > Anyway, thank you for your help. Should I close this ticket myself, and > classify it as an user error? Ok, I'm closing it now. Thanks. This BZ closed some time during 2.5, 2.6 or 2.7. Adding to 2.7 tracking bug. |