Bug 1271766

Summary: IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/yum/pluginconf.d/langpacks.conf'
Product: Red Hat Enterprise Linux 7 Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact: Petr Bokoc <pbokoc>
Priority: high    
Version: 7.2CC: atodorov, mkovarik, pbokoc, pnemade
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:122310ef7d0da9aaf9e87942f5b0c4ce83aa1f3a845648f40c7e3fae04cfb261
Fixed In Version: anaconda- Doc Type: Bug Fix
Doc Text:
Installation no longer fails when using "%packages --nobase --nocore" in a Kickstart file Previously, using a Kickstart file which contained the "%packages" section and specified the "--nobase" and "--nocore" options at the same time caused the installation to fail with a traceback message due to a missing _yum-langpacks_ package. The package is now available, and the described problem no longer occurs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:18:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
File: anaconda-tb
File: anaconda.log
File: environ
File: ks.cfg
File: lsblk_output
File: nmcli_dev_list
File: os_info
File: program.log
File: storage.log
File: syslog
File: ifcfg.log
File: packaging.log none

Description Alexander Todorov 2015-10-14 15:58:42 UTC
Version-Release number of selected component:

The following was filed automatically by anaconda:
anaconda exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
  File "/usr/lib64/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 267, in _copyLangpacksConfigToTarget
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1563, in postInstall
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 257, in doInstall
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/yum/pluginconf.d/langpacks.conf'

Additional info:
addons:         org_fedora_oscap, com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   inst.repo=http://download.eng.bos.redhat.com/nightly/RHEL-7.2-20151013.n.0/compose/Server/x86_64/os  ks=
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-323.el7.x86_64
product:        Red Hat Enterprise Linux 7
release:        Red Hat Enterprise Linux Workstation release 7.2 Beta (Maipo)
release_type:   pre-release
type:           anaconda
uid:            0
version:        7.2

Potential duplicate: bug 1172004

Comment 1 Alexander Todorov 2015-10-14 15:58:44 UTC
Created attachment 1082885 [details]
File: anaconda-tb

Comment 2 Alexander Todorov 2015-10-14 15:58:45 UTC
Created attachment 1082886 [details]
File: anaconda.log

Comment 3 Alexander Todorov 2015-10-14 15:58:46 UTC
Created attachment 1082887 [details]
File: environ

Comment 4 Alexander Todorov 2015-10-14 15:58:47 UTC
Created attachment 1082888 [details]
File: ks.cfg

Comment 5 Alexander Todorov 2015-10-14 15:58:48 UTC
Created attachment 1082889 [details]
File: lsblk_output

Comment 6 Alexander Todorov 2015-10-14 15:58:49 UTC
Created attachment 1082890 [details]
File: nmcli_dev_list

Comment 7 Alexander Todorov 2015-10-14 15:58:50 UTC
Created attachment 1082891 [details]
File: os_info

Comment 8 Alexander Todorov 2015-10-14 15:58:52 UTC
Created attachment 1082892 [details]
File: program.log

Comment 9 Alexander Todorov 2015-10-14 15:58:53 UTC
Created attachment 1082893 [details]
File: storage.log

Comment 10 Alexander Todorov 2015-10-14 15:58:55 UTC
Created attachment 1082894 [details]
File: syslog

Comment 11 Alexander Todorov 2015-10-14 15:58:56 UTC
Created attachment 1082895 [details]
File: ifcfg.log

Comment 12 Alexander Todorov 2015-10-14 15:58:57 UTC
Created attachment 1082896 [details]
File: packaging.log

Comment 13 Alexander Todorov 2015-10-14 16:00:38 UTC
Testing with the ks.cfg from:

At the end of the installation I hit this error. IIRC there was a similar error in RHEL 6 but can't find the bug right now.

Comment 15 David Cantrell 2015-10-14 18:39:10 UTC
Using the kickstart file from bug #1190764, can you add "yum-langpacks" to the %packages section and see if it works?  I think this is a bug from the rebase of anaconda, but one that we can work around for 7.2.

Comment 16 Alexander Todorov 2015-10-15 08:07:52 UTC
(In reply to David Cantrell from comment #15)
> Using the kickstart file from bug #1190764, can you add "yum-langpacks" to
> the %packages section and see if it works?  I think this is a bug from the
> rebase of anaconda, but one that we can work around for 7.2.

Adding yum-langpacks works.

Comment 17 David Cantrell 2015-10-15 12:13:43 UTC
Documenting as a known issue with workaround for 7.2, moving to the 7.3 planning list.  Thanks, Alexander.

Comment 20 Michal Kovarik 2016-08-05 12:45:58 UTC
Verified on anaconda- System is installed successfully with:
%packages --instLangs=bg_BG --nocore --nobase

Comment 22 errata-xmlrpc 2016-11-03 23:18:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.