Bug 915048

Summary: --installroot not working
Product: [Fedora] Fedora Reporter: Richard Marko <rmarko>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: akozumpl, jberan, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e741372ed52999d7ea622dfa90d1e442ac64f99b
Fixed In Version: dnf-0.2.22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-12 23:24:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace none

Description Richard Marko 2013-02-24 12:51:29 UTC
Version-Release number of selected component:
dnf-0.2.21-1.git050524e.fc18

Additional info:
cmdline:        /usr/bin/python /bin/dnf --releasever=17 --nogpgcheck --installroot /root/fedora-tree/ install yum passwd vim-minimal rootfiles systemd
executable:     /bin/dnf
kernel:         3.7.8-202.fc18.x86_64
uid:            0

Truncated backtrace:
cli.py:1661:getRoot:TypeError: cannot concatenate 'str' and 'NoneType' objects

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 305, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 91, in main
    cli.configure(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1360, in configure
    root = self.optparser.getRoot(opts)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1661, in getRoot
    if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
TypeError: cannot concatenate 'str' and 'NoneType' objects

Local variables in innermost frame:
self: <dnf.cli.cli.YumOptionParser instance at 0x15cdbd8>
opts: <Values at 0x15d24d0: {'verbose': None, 'errorlevel': None, 'color': None, 'disableexcludes': [], 'assumeno': None, 'conffile': None, 'exclude': [], 'rpmverbosity': None, 'enableplugins': [], 'best': None, 'disableplugins': [], 'sleeptime': None, 'repos_enabled': [], 'version': None, 'releasever': '17', 'obsoletes': None, 'debuglevel': None, 'cacheonly': None, 'showdupesfromrepos': None, 'assumeyes': None, 'installroot': '/root/fedora-tree/', 'quiet': None, 'nogpgcheck': None, 'repos_disabled': [], 'setopts': [], 'noplugins': None}>

Comment 1 Richard Marko 2013-02-24 12:51:33 UTC
Created attachment 701999 [details]
File: backtrace

Comment 2 Richard Marko 2013-02-24 12:51:35 UTC
Created attachment 702000 [details]
File: core_backtrace

Comment 3 Ales Kozumplik 2013-02-25 07:38:44 UTC
Reproduced, happens everytime I use --installroot.

Comment 4 Ales Kozumplik 2013-02-25 13:55:25 UTC
dnf commit 32acc24 makes --installroot work again.

Comment 5 Fedora Update System 2013-03-02 09:45:39 UTC
hawkey-0.3.8-1.git046ab1c.fc18, dnf-0.2.22-1.git97180b8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dnf-0.2.22-1.git97180b8.fc18,hawkey-0.3.8-1.git046ab1c.fc18

Comment 6 Fedora Update System 2013-03-03 22:44:38 UTC
Package hawkey-0.3.8-1.git046ab1c.fc18, dnf-0.2.22-1.git97180b8.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.3.8-1.git046ab1c.fc18 dnf-0.2.22-1.git97180b8.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3357/dnf-0.2.22-1.git97180b8.fc18,hawkey-0.3.8-1.git046ab1c.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-03-12 23:24:14 UTC
hawkey-0.3.8-1.git046ab1c.fc18, dnf-0.2.22-1.git97180b8.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.