summaryrefslogtreecommitdiff
path: root/virt-clone
Commit message (Collapse)AuthorAgeFilesLines
* virt-*: invoke python3 using /usr/bin/enva13460542021-10-041-1/+1
|
* Move virt-* code into their modulesCole Robinson2020-01-261-214/+6
| | | | | | | | | | | | | This layout is closer to what most python modules have nowadays. It also simplifies testing and static analysis setup. Keep virt-* wrappers locally, for ease of running these commands from a git checkout. Adjust the wrapper binaries we install on via packaging to be pure python, which makes things like running gdb easier. Signed-off-by: Cole Robinson <crobinso@redhat.com>
* Switch to more traditional logging structureCole Robinson2019-06-171-4/+3
| | | | | | | | Init a shared log instance in virtinst/logger.py, and use that throughout the code base, so we aren't calling directly into 'logging'. This helps protect our logging output from being cluttered with other library output, as happens with some 'requests' usage
* virt-clone: add --skip-copy optionCole Robinson2019-06-161-0/+6
| | | | | | | This is the flip side to the --force-copy option. We already have the plumbing internally https://bugzilla.redhat.com/show_bug.cgi?id=1564865
* cli: Add more code coverageCole Robinson2019-06-111-5/+3
|
* virt-clone: fix force-copy of empty cdrom or floppy diskPavel Hrdina2019-02-281-3/+2
| | | | | | | | There is nothing to copy so don't try to generate new path. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1564863 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* virt-clone: Add auto complete support for the general optionsLin Ma2018-12-181-0/+2
| | | | Signed-off-by: Lin Ma <lma@suse.com>
* cli: Remove redundant argparse dest= optionsCole Robinson2018-10-111-1/+1
|
* pylint: Silence output on Fedora 29Cole Robinson2018-09-291-1/+1
|
* Fix copyright header to specify GPLv2 or later, not GPLv2 only.Daniel P. Berrangé2018-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | The copyright headers in every file were chjanged in this previous commit commit b6dcee8eb7ec4de999058c187162fe4aedef36b4 Author: Cole Robinson <crobinso@redhat.com> Date: Tue Mar 20 15:00:02 2018 -0400 Use consistent and minimal license header for every file Where before this they said " "either version 2 of the License, or (at your option) any later version." Now they just say "GNU GPLv2" This fixes it to say "GNU GPLv2 or later" again. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Use consistent and minimal license header for every fileCole Robinson2018-03-211-16/+2
|
* Switch to python3 in script shebangCole Robinson2018-02-061-1/+1
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* Switch to python3 style 'except X as Y' notationCole Robinson2017-05-051-3/+3
| | | | Which also works with python2.7
* virt-clone: add support to clone nvram VARSPavel Hrdina2017-03-071-0/+4
| | | | | | Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1243335 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* Error out cleanly when autoclone or destination file is not specifiedKothapally Madhu Pavan2016-09-021-0/+6
| | | | | | | | | When virt-clone is used without autoclone or destination file, libvirt errors with message "ERROR missing source information for device vda". This doesn't convey what is missing. This patch will indicate which options to use. Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
* Apparently -tt doesn't work with #!/usr/bin/env ...Cole Robinson2016-06-171-1/+1
|
* Use #!/usr/bin/env for python scriptsCole Robinson2016-06-171-1/+1
| | | | | | | | | This is recommended for upstream, but not for downstream, like Fedora. So change /usr/bin/env to /usr/bin/python2 at RPM install time to match the ideal Fedora config. https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython https://bugzilla.redhat.com/show_bug.cgi?id=1303282
* cli: Replace add --check option (bz 1063471)Cole Robinson2015-04-111-6/+3
| | | | | For fine grained enabling/disabling validation checks. Use this to replace the heavy handed --force option.
* virt-clone: introduce --reflink for btrfs COW copyChen Hanxiao2015-02-071-0/+4
| | | | | | | | | | | libvirt commit 466b29c8c3593b2dac92acad5dd8ec923c428259 introduce btrfsCloneFile() for COW copy. This patch add support for --reflink option for virt-clone. When specified --reflink, if src and dst images all on a btrfs fs, we could take advantage of COW copy. If not, error out. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
* virt-clone: remove rarely used option --original-xml in fail messageChen Hanxiao2014-12-101-3/+3
| | | | | | Also replace the short options by long options. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
* virt-clone: improve some error promptsChen Hanxiao2014-12-091-2/+4
| | | | Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
* Fix warnings with latest pep8Cole Robinson2014-05-021-1/+1
|
* Use proper python versionMartin Kletzander2014-02-121-1/+1
| | | | | | | | | | | | | since we work with python2 only, mentioning it in all shebangs make the commands from git work even when python3 is set as default. This also fixes one test where command being ran is 'virt-xml' through subprocess.Popen(). While at that, add '-tt' where possible in order to make everyone use same indentation characters. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* VirtualDisk: Always use storage APIs for provisioningCole Robinson2014-02-081-47/+15
| | | | | | | | | | | This means if we are passed an unmanaged path, we try to create a storage pool for the parent directory. We skip directories like /dev where doing this might be problematic. This makes things much friendlier to use for remote connections, and means we can always rely on having libvirt's storage APIs to use for format probing.
* virt-*: Drop all --prompt handlingCole Robinson2014-02-041-22/+24
| | | | | | This stuff is not very helpful and a pain to maintain. Let's drop it once and for all. We still accept the CLI options and log a warning so people hopefully take the hint.
* virt-clone: Fix typoCole Robinson2014-02-021-1/+1
|
* clone: Mention virt-sysprep everywhere (bz 878170, bz 912993)Cole Robinson2014-02-011-4/+8
|
* cli: Drop dest= from most arguments, it was redundantCole Robinson2014-01-221-7/+4
|
* Convert all command line handling to argparseCole Robinson2014-01-191-27/+20
| | | | | Allows us to drop some hacks, and we may need it for a new upcoming tool.
* cli: Combine registering a bunch of common optionsCole Robinson2013-09-281-18/+4
|
* cli: Remove unneeded parameter to optparse.add_optionCole Robinson2013-09-281-10/+10
|
* virtinst: Remove User moduleCole Robinson2013-07-021-5/+0
| | | | | | | | I'm sure the solaris support is totally broken, so just drop this overcomplicated abstraction. Also fix a bug where we were using usermode networking in a bunch of places where it isn't supported.
* clone: Bunch of API cleanupCole Robinson2013-07-021-26/+21
| | | | Simplify imports, drop back compat stuff, drop needless property handling.
* Add epilog and description for virt-* --helpCole Robinson2013-06-301-1/+4
|
* Revive pep8 and clean up the codeCole Robinson2013-04-131-0/+10
| | | | autopep8 is pretty cool :)
* Wire up python unit tests, unify gettext setupCole Robinson2013-04-031-4/+4
|
* Merge code from python-virtinst.gitCole Robinson2013-04-031-0/+261
As outlined here: https://www.redhat.com/archives/virt-tools-list/2012-February/msg00040.html For now this is just a direct import of the code from virtinst commit dca5a4d6245f21d554f8853197a6a234bfc8e52c. History is not merged, so please refer to original git for detailed commit histor: http://git.fedorahosted.org/cgit/python-virtinst.git/