| 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>
|
|
|
|
|
|
|
|
|
|
| |
All the major hypervisor drivers have supported listAllDomains
since rhel6 vintage libvirt. Most other driver types have had the APIs
since their introduction, or for just as long.
I will be surprised if this affects anyone in any material way
Signed-off-by: Cole Robinson <crobinso@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
|
|
|
|
|
| |
There's really no reason for the split, just contain it all
within virtinst for simplicity
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a field in gsettings and preferences UI to enable
XML editing. It's off by default. The XML tab page is still visible,
but the textview is not editable, and there's a warning at the top:
XML editing is disabled in 'Preferences'.
Only enable it if you know what you are doing.
When the setting is enabled, the warning goes away and the textview
is editable. This puts a roadblock up for people that don't know what
they are doing, but still advertises the feature and keeps the
UI surface difference fairly small between on/off states.
|
|
|
|
|
| |
Make it private because we want people to use
conn.local_libvirt_version, and adjust the one other user
|
|
|
|
|
|
|
| |
Will take a string of comma separated options which we can use to
tweak app behavior, for testing. Convert the existing --test-* options
to use the same abstraction internally. This will make it easier to
add new test options in the future
|
|
|
|
|
|
| |
Given that we bumped deps to fairly modern distros with the
python3 change, I think this is safe. gtk 3.22 is from sep 2016, it's
in debian9 and fedora 25+, which seems fine for our needs.
|
|
|
|
|
| |
Launches delete wizard on top of a VM window, so when domain is
deleted, VM window disappears and the whole app exits
|
|
|
|
| |
'all' means log even API calls that are invoked from threads
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This functionality was removed in:
commit c9b2ec163f15f41fe5010b7b1c215f6c204d93a6
Author: Cole Robinson <crobinso@redhat.com>
Date: Fri Mar 16 14:38:22 2018 -0400
preferences: Add UI for disabling spice usb autoredir
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Apparently we need to do these env settings much earlier...
|
| |
|
|
|
|
|
|
| |
We already have a gconf key and command line option for this.
Drop the CLI option and add UI for it, we should have just done
that to begin with
|
|
|
|
|
| |
It was mildly interesting back before libvirt supported threads but
I don't think anyone cares about it now.
|
|
|
|
|
| |
Move connection opening logic to each caller, since needs are
slightly different.
|
| |
|
| |
|
| |
|
|
|
|
| |
That enables the pre-existing debug_ref_leaks behavior
|
| |
|
|
|
|
| |
Signed-off-by: Cole Robinson <crobinso@redhat.com>
|
|
|
|
| |
Will be needed for uitests coverage support
|
| |
|
|
|
|
|
|
| |
pygobject3 doesn't provide this automatically. Solution taken from:
https://bugzilla.gnome.org/show_bug.cgi?id=622084
|
|
|
|
| |
Use __future__ imports to keep this working for python2
|
|
|
|
| |
Which also works with python2.7
|
|
|
|
|
|
|
|
| |
Broken by commit a9bc56add3.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1377244
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Gtk.Window() init was crashing the app. Instead use Gtk.init() for
testing that things are working okay
|
|
|
|
| |
since it's all sorts of crazy
|
|
|
|
|
|
|
|
|
|
|
| |
We need to bump the gtk dep to at least 3.10 for GtkRevealer usage,
and I want to bump the pygobject higher to drop some bug workarounds.
But since the oldest thing I have that meets those requirements is
RHEL/Centos 7.3 which is at 3.14 for both, set those as the minimum
versions since that's what I'll be testing against. They are still
1.5 years old and only a bit over a year newer than the previous
versions, so it's not a huge change.
|
| |
|
|
|
|
|
|
|
|
|
| |
So I was confused here and completely missed that GtkApplication is
meant to handle the common case of invoking actions in an existing
app instance. So drop the manual dbus server and use the simpler
Gtk support.
Fix a bunch of other errors in this area too
|
|
|
|
|
|
|
| |
This allows virt-manager command line that launch windows to work for an
existing virt-manager instance. This is handy for scripting, and giving
other apps a reasonable way to launch a virt-manager VM window for
example.
|
|
|
|
| |
For easy testing of fallback codepaths
|
| |
|
|
|
|
| |
Need to tweak our signal handling here with the recent connection changes.
|
|
|
|
| |
Makes things easier to extend later
|
|
|
|
|
|
|
| |
This is needed with freebsd and opensuse at least. See:
https://bugzilla.suse.com/__show_bug.cgi?id=901869
http://www.redhat.com/archives/libvir-list/2014-December/msg00184.html
|
|
|
|
| |
GConf got replaced by GSettings but some methods kept the old name
|
|
|
|
| |
They are on by default on F21, and they are very noisy
|
| |
|