Bug 1082290 - [groups] Cannot install uninstalled group after rollback
Summary: [groups] Cannot install uninstalled group after rollback
Keywords:
Status: CLOSED DUPLICATE of bug 1083432
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-30 09:28 UTC by Michael Monreal
Modified: 2014-09-30 23:42 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-22 19:43:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Monreal 2014-03-30 09:28:42 UTC
I ran into the following problem with dnf today: 

$ sudo dnf group install development-tools
Warning: Group 'Development Tools' is already installed.
Error: No packages in any requested groups available to install.

However, the group was not installed as can be seen here:

$ rpm -q gcc
package gcc is not installed
$ sudo dnf group erase development-tools
Error: No packages to remove from groups.

Before, I had installed the group and then did a rollback to the transaction ID before the grup install (I do this a lot and never ran into problems before).

I tried a few things and found the "group upgrade" to work:

$ sudo dnf group upgrade development-tools
Resolving dependencies
--> Starting dependency resolution
---> Package patchutils.x86_64 0.3.3-4.fc20 will be installed
---> Package diffstat.x86_64 1.57-3.fc20 will be installed
---> Package cvs.x86_64 1.11.23-33.fc20 will be installed
---> Package systemtap.x86_64 2.4-2.fc20 will be installed
...

But I canceled this and re-run the same command, this time I got this:

$ sudo dnf group upgrade development-tools
Warning: Group 'Development Tools' is already installed.
Error: No packages in any requested groups available to install.

Next I tried marking the group as not installed or installed:

$ sudo dnf group mark remove development-tools
Error: No matching installed groups found.

$ sudo dnf group mark installed development-tools
Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 75, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 124, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1378, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/group.py", line 215, in run
    return self._mark_install(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/group.py", line 109, in _mark_install
    names = set(g.name for g in itertools.chain(g.mandatory_packages,
NameError: global name 'itertools' is not defined
[mimox ~]$ sudo dnf group mark remove development-tools
Error: No matching installed groups found.

Lastly I ran "sudo dnf clean all" and "sudo dnf makecache". After this the group install worked again:

$ sudo dnf group install development-tools
Resolving dependencies
--> Starting dependency resolution
---> Package patchutils.x86_64 0.3.3-4.fc20 will be installed
---> Package diffstat.x86_64 1.57-3.fc20 will be installed
...

Comment 1 Ales Kozumplik 2014-03-31 06:39:10 UTC
Thanks Michael, this is for a deeper analysis.

BTW what version of DNF do you run? There's been major changes to groups recently.

Comment 2 Ales Kozumplik 2014-03-31 11:14:24 UTC
Related: bug 1081402.

Comment 3 Michael Monreal 2014-03-31 16:29:53 UTC
>> BTW what version of DNF do you run?

I do not have access to the system atm (only on weekends) but I am fairly sure I was running version 0.4.19.

Comment 4 Tim Lauridsen 2014-04-02 09:21:00 UTC
NameError: global name 'itertools' is not defined is fixed in this upstream commit.
https://github.com/akozumpl/dnf/commit/986be1fe462b4af11d21e7a7ee88ea528aafe8a2

Comment 5 Radek Holy 2014-04-02 11:09:06 UTC
(In reply to Michael Monreal from comment #0)
> But I canceled this and re-run the same command, this time I got this:
> 
> $ sudo dnf group upgrade development-tools
> Warning: Group 'Development Tools' is already installed.
> Error: No packages in any requested groups available to install.

It seems that the cause of this is 1083432.

Comment 6 Michael Monreal 2014-04-05 13:06:31 UTC
(In reply to Radek Holy from comment #5)
> It seems that the cause of this is 1083432.

I do not remember seeing any package installation errors. However, I ran into this again just now. This time, "sudo dnf group mark remove development-tools" did the trick, I can install the group again.

Comment 7 Michael Monreal 2014-04-05 13:11:33 UTC
(In reply to Michael Monreal from comment #6)
> I do not remember seeing any package installation errors.

Update: I canceled the group install before *any* package was actually installed and the group was marked as installed.

Comment 8 Ales Kozumplik 2014-04-22 19:43:35 UTC
Hm, in fact this is a proper dupe of bug 1083432.

*** This bug has been marked as a duplicate of bug 1083432 ***


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