Bug 1380566 - lorax needs ported to dnf-2
Summary: lorax needs ported to dnf-2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: lorax
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-30 00:59 UTC by Dennis Gilmore
Modified: 2016-09-30 19:07 UTC (History)
2 users (show)

Fixed In Version: lorax-26.0-1
Clone Of:
Environment:
Last Closed: 2016-09-30 19:07:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dennis Gilmore 2016-09-30 00:59:03 UTC
Description of problem:

COMMAND: koji runroot --use-shell --task-id --channel-override=compose --package=strace --package=lorax --mount=/mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2 f26-build x86_64 'rm -f /var/lib/rpm/__db*; rm -rf /var/cache/yum/*; set -x; rm -rf /mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2/work/x86_64/buildinstall/Workstation && lorax --product=Fedora --version=Rawhide --release=Rawhide --source=file:///mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2/work/x86_64/repo --variant=Workstation --noupgrade --buildarch=x86_64 --volid=Fedora-WS-dvd-x86_64-rawh --installpkgs=fedora-productimg-workstation /mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2/work/x86_64/buildinstall/Workstation'
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15864497
+ rm -rf /mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2/work/x86_64/buildinstall/Workstation
+ lorax --product=Fedora --version=Rawhide --release=Rawhide --source=file:///mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2/work/x86_64/repo --variant=Workstation --noupgrade --buildarch=x86_64 --volid=Fedora-WS-dvd-x86_64-rawh --installpkgs=fedora-productimg-workstation /mnt/koji/compose/rawhide/Fedora-Rawhide-20160929.n.2/work/x86_64/buildinstall/Workstation
Traceback (most recent call last):
  File "/usr/sbin/lorax", line 273, in <module>
    main()
  File "/usr/sbin/lorax", line 92, in main
    os.path.dirname(opts.logfile))
  File "/usr/sbin/lorax", line 214, in get_dnf_base_object
    repo = dnf.repo.Repo(repo_name, cachedir)
  File "/usr/lib/python3.5/site-packages/dnf/repo.py", line 460, in __init__
    super(Repo, self).__init__(section=name, parent=parent_conf)
  File "/usr/lib/python3.5/site-packages/dnf/conf/config.py", line 890, in __init__
    self._add_option('enabled', inherit(parent._get_option('enabled')))
AttributeError: 'str' object has no attribute '_get_option'

dnf-2 just landed apparently breaking lorax in the process

Comment 1 Igor Gnatenko 2016-09-30 06:24:37 UTC
https://github.com/rhinstaller/lorax/pull/162


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