Bug 1028650 - virt-* argument parser doesn't accept --arg=value (you have to use --arg value)
Summary: virt-* argument parser doesn't accept --arg=value (you have to use --arg value)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-09 04:26 UTC by Steven Dake
Modified: 2016-04-26 14:06 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-29 10:00:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steven Dake 2013-11-09 04:26:25 UTC
Description of problem:
--format as documented in man pages isn't a valid option.

Version-Release number of selected component (if applicable):
Running Fedora 19 yum updated
supermin-helper-4.1.5-2.fc20.x86_64
supermin-4.1.5-2.fc20.x86_64
libguestfs-1.24.1-2.fc20.x86_64
python-libguestfs-1.24.1-2.fc20.x86_64
libguestfs-tools-c-1.24.1-2.fc20.x86_64


How reproducible:
100%

Steps to Reproduce:
1. 
[sdake@freedom Downloads]$ time virt-builder fedora-19 --format=qcow2 --run-command 'yum -y update' --run-command 'yum -y install cloudinit heat-cfntools'

2.
3.

Actual results:
[sdake@freedom Downloads]$ time virt-builder fedora-19 --format=qcow2 --run-command 'yum -y update' --run-command 'yum -y install cloudinit heat-cfntools'
virt-builder: unknown option `--format=qcow2'.
virt-builder: build virtual machine images quickly

 virt-builder OS-VERSION
 virt-builder -l
 virt-builder --notes OS-VERSION
 virt-builder --print-cache
 virt-builder --cache-all-templates
 virt-builder --delete-cache
 virt-builder --get-kernel IMAGE

A short summary of the options is given below.  For detailed help please
read the man page virt-builder(1).

  --attach iso                        Attach data disk/ISO during install
  --attach-format format              Set attach disk format
  --cache dir                         Set template cache dir
  --no-cache                          Disable template cache
  --cache-all-templates               Download all templates to the cache
  --check-signature                   Check digital signatures
  --check-signatures                  -"-
  --no-check-signature                Disable digital signatures
  --no-check-signatures               -"-
  --curl curl                         Set curl binary/command
  --delete name                       Delete a file or dir
  --delete-cache                      Delete the template cache
  --edit file:expr                    Edit file with Perl expr
  --fingerprint AAAA..                Fingerprint of valid signing key
  --firstboot script                  Run script at first guest boot
  --firstboot-command cmd+args        Run command at first guest boot
  --firstboot-install pkg,pkg         Add package(s) to install at firstboot
  --format raw|qcow2                  Output format (default: raw)
  --get-kernel image                  Get kernel from image
  --gpg gpg                           Set GPG binary/command
  --hostname hostname                 Set the hostname
  --install pkg,pkg                   Add package(s) to install
  -l                                  List available templates
  --list                              -"-
  --long                              -"-
  --no-logfile                        Scrub build log file
  --long-options                      List long options
  -m mb                               Set memory size
  --memsize mb                        -"-
  --mkdir dir                         Create directory
  --network                           Enable appliance network (default)
  --no-network                        Disable appliance network
  --notes                             Display installation notes
  -o file                             Set output filename
  --output file                       -"-
  --password-crypto md5|sha256|sha512 Set password crypto
  --print-cache                       Print info about template cache
  --quiet                             No progress messages
  --root-password ...                 Set root password
  --run script                        Run script in disk image
  --run-command cmd+args              Run command in disk image
  --scrub name                        Scrub a file
  --size size                         Set output disk size
  --smp vcpus                         Set number of vCPUs
  --source URL                        Set source URL
  --no-sync                           Do not fsync output file on exit
  --upload file:dest                  Upload file to dest
  -v                                  Enable debugging messages
  --verbose                           -"-
  -V                                  Display version and exit
  --version                           -"-
  --write file:content                Write file
  -help                               Display this list of options
  --help                              Display this list of options



Expected results:
tool writes a qcow2 image

Additional info:

Comment 1 Richard W.M. Jones 2013-11-09 07:41:56 UTC
You have to use --format qcow2, which works.

However there is a problem that --arg=value doesn't work
in general which I've been meaning to fix.  Updating summary
accordingly.

Comment 2 Richard W.M. Jones 2013-11-09 08:18:20 UTC
Upstream bug:
http://caml.inria.fr/mantis/view.php?id=5197

Comment 3 Richard W.M. Jones 2013-11-09 09:31:03 UTC
Suggested patch:
caml.inria.fr/mantis/file_download.php?file_id=1085&type=bug

Comment 4 Richard W.M. Jones 2013-11-21 11:33:03 UTC
I have pushed this patch experimentally into Rawhide.

Comment 5 Richard W.M. Jones 2013-11-21 11:39:43 UTC
Sorry, status is wrong.  This will require a rebuild of
libguestfs too.

Comment 7 Fedora End Of Life 2015-05-29 09:43:27 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Richard W.M. Jones 2015-05-29 10:00:48 UTC
Closing as there is experimental support in Rawhide.


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