Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1257036 - pyanaconda.packaging.NoSuchGroup: None
Summary: pyanaconda.packaging.NoSuchGroup: None
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Kolman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:600264a3daae1c3edc8c33d6713...
Depends On:
Blocks: F24AlphaBlocker
TreeView+ depends on / blocked
 
Reported: 2015-08-26 06:47 UTC by Adam Williamson
Modified: 2017-04-03 16:11 UTC (History)
10 users (show)

Fixed In Version: 1.12.2-1.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-07 16:35:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (239.78 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: anaconda.log (20.57 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: dnf.log (839 bytes, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: environ (494 bytes, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: lsblk_output (1.28 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: nmcli_dev_list (1.18 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: os_info (451 bytes, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: program.log (31.38 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: storage.log (30.61 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: syslog (61.35 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: ifcfg.log (2.55 KB, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details
File: packaging.log (205 bytes, text/plain)
2015-08-26 06:47 UTC, Adam Williamson
no flags Details

Description Adam Williamson 2015-08-26 06:47:09 UTC
Description of problem:
Crash happens when you reach the main hub in Rawhide 2015-08-25 nightly. All openQA tests for this nightly (except kickstart ones) failed this way.

Version-Release number of selected component:
anaconda-24.0-1

The following was filed automatically by anaconda:
anaconda 24.0-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.4/site-packages/pyanaconda/packaging/dnfpayload.py", line 598, in environmentDescription
    raise packaging.NoSuchGroup(environmentid)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/ui/gui/spokes/software.py", line 315, in status
    return self.payload.environmentDescription(self.environment)[0]
  File "/usr/lib64/python3.4/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 216, in _updateCompleteness
    spoke.selector.set_property("status", spoke.status)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 296, in _update_spokes
    self._updateCompleteness(spoke)
pyanaconda.packaging.NoSuchGroup: None

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 quiet
dnf.rpm.log:    Aug 25 16:11:54 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.0-0.rc8.git0.1.fc24.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        Rawhide

Comment 1 Adam Williamson 2015-08-26 06:47:11 UTC
Created attachment 1067149 [details]
File: anaconda-tb

Comment 2 Adam Williamson 2015-08-26 06:47:13 UTC
Created attachment 1067150 [details]
File: anaconda.log

Comment 3 Adam Williamson 2015-08-26 06:47:14 UTC
Created attachment 1067151 [details]
File: dnf.log

Comment 4 Adam Williamson 2015-08-26 06:47:14 UTC
Created attachment 1067152 [details]
File: environ

Comment 5 Adam Williamson 2015-08-26 06:47:15 UTC
Created attachment 1067153 [details]
File: lsblk_output

Comment 6 Adam Williamson 2015-08-26 06:47:16 UTC
Created attachment 1067154 [details]
File: nmcli_dev_list

Comment 7 Adam Williamson 2015-08-26 06:47:17 UTC
Created attachment 1067155 [details]
File: os_info

Comment 8 Adam Williamson 2015-08-26 06:47:18 UTC
Created attachment 1067156 [details]
File: program.log

Comment 9 Adam Williamson 2015-08-26 06:47:19 UTC
Created attachment 1067157 [details]
File: storage.log

Comment 10 Adam Williamson 2015-08-26 06:47:20 UTC
Created attachment 1067158 [details]
File: syslog

Comment 11 Adam Williamson 2015-08-26 06:47:21 UTC
Created attachment 1067159 [details]
File: ifcfg.log

Comment 12 Adam Williamson 2015-08-26 06:47:22 UTC
Created attachment 1067160 [details]
File: packaging.log

Comment 13 Adam Williamson 2015-08-26 06:48:32 UTC
Proposing as an F24 Alpha blocker: "When using a release-blocking dedicated installer image, the installer must be able to use either HTTP or FTP repositories (or both) as package sources. Release-blocking network install images must default to a valid publicly-accessible package source." - https://fedoraproject.org/wiki/Fedora_23_Alpha_Release_Criteria#Remote_package_sources

Comment 14 Adam Williamson 2015-08-26 07:00:27 UTC
Problem here is this commit: https://github.com/rhinstaller/anaconda/commit/634d2d9a85481dc9d7729444c3b4c50ca39b7d59

Note that it changes the condition in status() for calling self.payload.environmentDescription(self.environment) from 'if not env:' to 'if not flags.automatedInstall and not self.environment_valid:'. However, 'None' is explicitly considered 'valid' by self.environment_valid :

        if self.environment is None:
            return True

 , hence the crash. Obvious fix would be:

==========

diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index 9b50a98..d8bb8d6 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -306,7 +306,7 @@ class SoftwareSelectionSpoke(NormalSpoke):
             elif not self.environment:
                 return _("Nothing selected")
 
-        if not flags.automatedInstall and not self.environment_valid:
+        if not flags.automatedInstall and (not self.environment_valid or not self.environment):
             # selected environment is not valid, this can happen when a valid environment
             # is selected (by default, manually or from kickstart) and then the installation
             # source is switched to one where the selected environment is no longer valid

===========

but not sure if there are other considerations.

Comment 15 Adam Williamson 2015-08-26 07:04:13 UTC
actually that'd say "Selected environment is not valid" for None, which doesn't seem right. Probably just needs the 'if not self.environment return "Nothing selected"' clause back.

Comment 16 Adam Williamson 2015-08-26 07:09:44 UTC
https://github.com/rhinstaller/anaconda/pull/325

Comment 17 Adam Williamson 2015-08-26 07:37:47 UTC
Hmm, seems like something else is broken. That patch solves the crash, but the hub then sits with INSTALLATION SOURCE in "Setting up installation source..." state and SOFTWARE SELECTION showing "Nothing selected". You have to go into SOFTWARE SELECTION and select an environment before INSTALLATION SOURCE is happy. So no crash, but it still doesn't behave right (it should pick the default environment and clear both spokes with no user interaction required).

Comment 18 Zach Villers 2015-08-26 13:32:27 UTC
Another user experienced a similar problem:

booted rawhide boot.iso, selected disks, started deleting partitions, installer crashed.

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 rd.live.check quiet
dnf.rpm.log:    Aug 26 13:30:06 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         4.2.0-0.rc8.git0.1.fc24.x86_64
package:        anaconda-24.0-1
product:        Fedora
reason:         pyanaconda.packaging.NoSuchGroup: None
release:        Cannot get release name.
version:        Rawhide

Comment 19 Adam Williamson 2015-08-26 17:08:48 UTC
https://github.com/rhinstaller/anaconda/pull/323 fixes the initial environment selection. Even without 325 that avoids the crash, so 325 isn't really needed, but we may still want it just in case the 'None' situation somehow ever crops up.

Comment 20 Jiri Konecny 2015-08-28 13:46:30 UTC
I fixed the root case by this PR https://github.com/rhinstaller/anaconda/pull/323 but the PR from comment 19 is another layer of protection from error so it will be applied too.

Comment 21 Taylor Smock 2015-08-29 12:58:44 UTC
Another user experienced a similar problem:

1. Started installer
2. Set host name
3. Started partitioning
3a. Removed all partitions
3b. Realized it removed a partition that I wanted to keep (I had already added it manually to the new installation)
3c. Reset partitioning
4. Go back to main menu while waiting for it to finish partitioning
5. Go back to partitioning menu
6. Crash

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 quiet
dnf.rpm.log:    Aug 29 12:54:25 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         4.2.0-0.rc8.git2.1.fc24.x86_64
package:        anaconda-24.0-1
product:        Fedora
reason:         pyanaconda.packaging.NoSuchGroup: None
release:        Cannot get release name.
version:        Rawhide

Comment 22 Stanislav Kontar 2015-08-30 21:24:21 UTC
Another user experienced a similar problem:

Tried to install Rawhide 32 bit in Virtual Box.

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-rawhide-i386 quiet
dnf.rpm.log:    Aug 30 21:20:22 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         4.2.0-0.rc8.git3.1.fc24.i686
package:        anaconda-24.0-1
product:        Fedora
reason:         pyanaconda.packaging.NoSuchGroup: None
release:        Cannot get release name.
version:        Rawhide

Comment 23 Fedora Update System 2015-09-03 19:33:54 UTC
python-blivet-1.12.2-1.fc23 anaconda-23.19.2-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15030

Comment 24 Fedora Update System 2015-09-04 07:33:22 UTC
anaconda-23.19.2-1.fc23, python-blivet-1.12.2-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update anaconda python-blivet'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15030

Comment 25 Fedora Update System 2015-09-07 16:35:27 UTC
anaconda-23.19.2-1.fc23, python-blivet-1.12.2-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 26 Germano Massullo 2017-04-03 15:24:38 UTC
Please check https://bugzilla.redhat.com/show_bug.cgi?id=1393674 too


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