Bug 1380566

Summary: lorax needs ported to dnf-2
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, bcl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lorax-26.0-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-30 19:07:46 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:
Embargoed:

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