Bug 1400045

Summary: anaconda: Installation crashes when no network present
Product: [Fedora] Fedora Reporter: Robert Richter <rrichter>
Component: anacondaAssignee: Vendula Poncova <vponcova>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 25CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, pbrobinson, pwhalen, rrichter, vanmeeuwen+fedora, vponcova
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-26.17-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-06 17:27:48 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:
Bug Depends On:    
Bug Blocks: 922257    
Attachments:
Description Flags
Full log none

Description Robert Richter 2016-11-30 11:04:10 UTC
Description of problem:

The anaconda installer crashes with an exception if no network is present:

anaconda 25.20.8-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.5/site-packages/pyanaconda/packaging/__init__.py", line 1156, in selectEnvironment
    raise NoSuchGroup(environmentid)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/ui/tui/spokes/software.py", line 318, in _apply
    self.payload.selectEnvironment(self.environment)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/ui/tui/spokes/software.py", line 90, in _initialize
    self._apply()
  File "/usr/lib64/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/threads.py", line 251, in run
    threading.Thread.run(self, *args, **kwargs)
pyanaconda.packaging.NoSuchGroup


Version-Release number of selected component (if applicable):

anaconda 25.20.8-1, from the Fedora 25 aarch64 iso (Fedora-Server-netinst-aarch64-25-1.3.iso):

 https://dl.fedoraproject.org/pub/fedora-secondary/releases/25/Server/aarch64/iso/

How reproducible:

Steps to Reproduce:

1. Start installation in qemu with network disabled, e.g.:

 qemu-system-aarch64 -enable-kvm -smp 8 -m 16G -cpu host -nographic -pflash flash0.img -pflash flash1.img -M virt,gic_version=3 -cdrom Fedora-Server-netinst-aarch64-25-1.3.iso -net none -hda /dev/sdb

2. The exception occurs immediately after the install shows the first text mode menu.

Actual results:

Exception.

Expected results:

No exception.

Additional info:

I suspect

 4a42de7d00f7 tui: Add software group selection

the breaking commit, though not tested.

Enabling network makes the installer work.

Comment 1 Robert Richter 2016-11-30 11:16:53 UTC
Created attachment 1226257 [details]
Full log

One more detail from the log:

 Not asking for VNC because we don't have a network

Attaching full log.

Comment 2 Vendula Poncova 2017-01-03 09:04:29 UTC
Fixed in: https://github.com/rhinstaller/anaconda/pull/914

Comment 3 Peter Robinson 2017-08-06 17:27:48 UTC
Fixed