Bug 1280290

Summary: virt-builder: unable to build f23 image: error: dnf -y update: command exited with an error
Product: [Fedora] Fedora Reporter: Lukas Brabec <lbrabec>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: mbooth, ptoscano, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-11 12:28:32 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:
Attachments:
Description Flags
virt-builder -v -x output none

Description Lukas Brabec 2015-11-11 12:18:08 UTC
Description of problem:
I want to build F23 image using command:

$ virt-builder fedora-23 --output fedora-23.qcow2 --format qcow2 --update

I got a stacktrace:
Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 198, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 144, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 173, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 220, in do_transaction
    self.gpgsigcheck(downloadpkgs)
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 251, in gpgsigcheck
    if not sys.stdin.isatty() and not ay:
AttributeError: 'NoneType' object has no attribute 'isatty'

caused by 'dnf -y update' command.


Version-Release number of selected component (if applicable):
libguestfs-1.30.4-1.fc23.x86_64
libguestfs-tools-1.30.4-1.fc23.noarch

Comment 1 Lukas Brabec 2015-11-11 12:18:49 UTC
Created attachment 1092665 [details]
virt-builder -v -x output

Comment 2 Pino Toscano 2015-11-11 12:28:32 UTC
See also bug #1278382.

*** This bug has been marked as a duplicate of bug 1280029 ***