Bug 1043202
Summary: | Recently-introduced check for 'existent' groups being run too often | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> |
Component: | yum | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | admiller, bitlord0xff, ffesti, firas.alkafri, packaging-team-maint, pnemade, zpavlas |
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-12-15 00:31:37 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: |
Description
Adam Williamson
2013-12-14 22:16:08 UTC
*** Bug 1039348 has been marked as a duplicate of this bug. *** This bug affects both F19 and F20, as they both got the updated yum. So some of my diagnosis is wrong - I was reading /var/lib/yum/groups/installed wrong. It's not a list of groups, one per line, it lists a group, then a count of packages installed that are associated with it, then the package names (more or less). I'm trying to figure out why the check actually fails for cinnamon-desktop on my system, and it seems rather odd. But I'll file a new bug for that to avoid confusing this one. It is definitely the case that the check is being hit on 'yum upgrade', when I don't think it was intended to. I've filed #1043207 for the part of the bug you can describe as 'this check fails for a group that really does exist'. As to why this code path is being hit when you do 'yum update'...well, the check is in the function _at_groupinstall in __init__.py . There is a large chunk of code at the top of the function install in the same file which I don't grok at all, but the comment above it is rather interesting: # This is kind of hacky, we really need a better way to do errors than # doing them directly from .install/etc. ... but this is easy. *sigh*. # We are only using this in "groupinstall" atm. ... so we don't have # a long list of "blah already installed." messages when people run # "groupinstall mygroup" in yum-cron etc. and that function is the only other place in all of yum where I see _at_groupinstall: if 'pattern' in kwargs: if kwargs['pattern'] and kwargs['pattern'][0] == '-': return self._minus_deselect(kwargs['pattern']) if kwargs['pattern'] and kwargs['pattern'][0] == '@': return self._at_groupinstall(kwargs['pattern']) I'm really not sure how the hell all of this works, but...that seems like it's possibly relevant. It may be that this part - this codepath being hit on running 'yum update' - is not actually a bug, and the only bug is #1043207 , which I'm pretty sure now is as simple as "yum install @installed-group claims installed-group does not exist". I think the real bug here is https://bugzilla.redhat.com/show_bug.cgi?id=1043207 , "the check in _at_groupinstall is broken for installed groups", not this bug, "_at_groupinstall is being run on yum update". It kinda makes sense to call one of the 'group install' functions on "yum update", I presume that's how yum looks for new packages in installed groups and adds them. So I think I'll close this one. |