| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
Commit <53f075ab76e1c372474ae0d88f202e487d9f213f> added a warning if the
VM XML is not changed after removing default devices but the code was
incorrect. We have to compare strings instead of string vs Guest object
and also the condition was inverted.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This can happen if we try to remove a default device, like
a ps2 mouse on x86, but it can happen for many other reasons as well
https://bugzilla.redhat.com/show_bug.cgi?id=1405263
|
|
|
|
| |
Otherwise we will lose data when editing VMs
|
|
|
|
|
| |
Add lots of early exits to remove implicit fall through
behavior that I find hard to follow
|
| |
|
|
|
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1648939
|
|
|
|
|
| |
Not sure why this was originally required, but I can't think how
to even trigger this occasion nowadays
|
| |
|
|
|
|
|
|
| |
Not sure I want to go down that route if we can avoid it. Instead
just fold the full_id support into the existing option handling.
Streamline the OSVariantData usage throughout the cli tools
|
|
|
|
|
| |
Makes it more clear what the distinction is. Set this in the parser
class so the cli infrastructure can access it
|
| |
|
|
|
|
|
| |
The only functions left in there are largely for xml handling, so
make it explicit
|
| |
|
|
|
|
| |
Because the non-guest parsers don't need it.
|
|
|
|
|
| |
There's conflicting 'propname' naming now, so rename some usage
to match
|
|
|
|
|
|
|
| |
Previously we assume they are id/uuid, so if it's actually the VM
name then the command fails. Now we always check for a name first,
https://bugzilla.redhat.com/show_bug.cgi?id=1679025
|
|
|
|
|
|
|
|
|
|
| |
Add support for starting the domain. By default, first the domain is
defined and then started. If the `--start` is used in combination with
`--no-define` a transient domain is created without persisting the
changes in the persistent domain definition.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Add `--no-define` argument. It's mutually exclusive to the `--define`
argument and later on it allows the user to start a domain
transiently.
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
|
|
|
|
|
| |
For now it just takes a single name= parameter that maps to
the current behavior
|
|
|
|
|
| |
We don't really use the 'distro' naming any more, and the
command line option is called os_variant, so stick with that
|
|
|
|
|
|
|
| |
It can convert the underscore to minus for cli_arg_name in help
output or error message.
Signed-off-by: Lin Ma <lma@suse.com>
|
|
|
|
| |
And improve the help message for both users
|
|
|
|
|
|
|
| |
Similar to what was done in libvirt. See these commits:
https://github.com/libvirt/libvirt/commit/600462834f4ec1955a9a48a1b6b4a390b9c31553
https://github.com/libvirt/libvirt/commit/c99e954973ea330e32e392c71ed17db5b359381b
|
|
|
|
| |
Signed-off-by: Lin Ma <lma@suse.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The option only works with --add-device for the time being,
so we prevent its use in all other cases.
It would be nice to have it work with --build-xml too, but
in that case the user would have to provide some extra
information that in the case of --add-device we can figure
out from the existing guest, and it's not entirely clear
whether that would even be that useful, so for now we're
not considering that case at all.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
|
|
|
|
|
| |
We're not doing anything with it yet, but having the
parser accept it means we can write tests and see how
their output changes once we wire it up in earnest.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
|
|
|
| |
It's more explicit. Plus drop the supposedly generic setup()
entry point, storage is handled specially everywhere so it's
not a generic interface
|
| |
|
|
|
|
| |
The config part is redundant. Should have done this a long time ago
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
shutdown could be interpreted as a soft reboot, which won't
apply the changes
|
|
|
|
|
|
| |
propertys already give us ways to access the backing class, and
switching to this method lets us drop some infrastructure in
xmlbuilder
|
|
|
|
|
| |
It slightly complicates the generic machinery, and the one usage we
can handle directly
|
|
|
|
| |
Drop the register_device stuff, rename virtual_device_type
|
|
|
|
|
|
|
|
|
| |
The way we enumerate devices doesn't conform with the way all
other XMLBuilder instances expose child objects. Move more towards
that direction.
This requires some virt-xml and cli.py hacks but we will remove those
in future patches
|
| |
|
|
|
|
| |
Based on how we do diff reporting it doesn't accomplish anything anyways
|
|
|
|
| |
Signed-off-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
|
| |
It's redundant as libvirt will give us these checks already, and we
aren't even testing it
|
|
|
|
|
|
|
|
|
| |
Fix all E125:
Continuation line with same indent as next logical line
Also remove ignore options of E125
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
|
| |
|
|
|
|
| |
Which also works with python2.7
|
| |
|
|
|
|
| |
There's no need to call util.listify() twice.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|