summaryrefslogtreecommitdiff
path: root/virt-manager
Commit message (Collapse)AuthorAgeFilesLines
* virt-*: invoke python3 using /usr/bin/enva13460542021-10-041-1/+1
|
* Move virt-* code into their modulesCole Robinson2020-01-261-339/+5
| | | | | | | | | | | | | 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>
* pollhelpers: Kill old style pollingCole Robinson2020-01-241-9/+0
| | | | | | | | | | 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>
* virtManager: Move a lot of misc files to lib/Cole Robinson2019-06-171-2/+2
|
* Switch to more traditional logging structureCole Robinson2019-06-171-10/+10
| | | | | | | | 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
* Move virtcli/cliconfig.py to virtinst/buildconfig.pyCole Robinson2019-06-141-6/+24
| | | | | There's really no reason for the split, just contain it all within virtinst for simplicity
* preferences: Disable XML editing by defaultCole Robinson2019-06-131-0/+1
| | | | | | | | | | | | | | 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.
* util: Move local_libvirt_version to VirtinstConnectionCole Robinson2019-06-071-2/+2
| | | | | Make it private because we want people to use conn.local_libvirt_version, and adjust the one other user
* virt-manager: Add --test-optionsCole Robinson2019-06-051-9/+43
| | | | | | | 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
* Bump gtk dep to 3.22 for new popup routinesCole Robinson2019-04-071-4/+4
| | | | | | 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.
* virt-manager: add --show-domain-deleteCole Robinson2019-03-041-0/+5
| | | | | Launches delete wizard on top of a VM window, so when domain is deleted, VM window disappears and the whole app exits
* module_trace: Support --trace_libvirt=all|mainloopCole Robinson2018-10-101-3/+5
| | | | 'all' means log even API calls that are invoked from threads
* pylint: Silence output on Fedora 29Cole Robinson2018-09-291-5/+3
|
* cli: remove unused --spice-disable-auto-usbredir argDaniel P. Berrangé2018-04-301-2/+0
| | | | | | | | | | | | 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>
* 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-15/+2
|
* virt-manager: fix git startup on waylandCole Robinson2018-03-171-0/+5
| | | | Apparently we need to do these env settings much earlier...
* engine: Show modal startup errors if window open failsCole Robinson2018-03-161-1/+1
|
* preferences: Add UI for disabling spice usb autoredirCole Robinson2018-03-161-3/+0
| | | | | | 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
* virt-manager: Drop --no-conn-autostartCole Robinson2018-03-161-4/+3
| | | | | It was mildly interesting back before libvirt supported threads but I don't think anyone cares about it now.
* engine: Remove centralized conn.open handlingCole Robinson2018-03-151-1/+1
| | | | | Move connection opening logic to each caller, since needs are slightly different.
* engine: Have windows call exit_app directlyCole Robinson2018-03-151-1/+1
|
* engine: Cleanup function names, comments, etc.Cole Robinson2018-03-151-1/+1
|
* config: Convert to singletonCole Robinson2018-03-151-2/+2
|
* virt-manager: Add hidden --test-leak-debug optionCole Robinson2018-03-151-1/+12
| | | | That enables the pre-existing debug_ref_leaks behavior
* Drop __future__ imports, no longer neededCole Robinson2018-02-081-2/+0
|
* Switch to python3 in script shebangCole Robinson2018-02-061-1/+1
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* virt-manager: Gracefully exit app on ctrl-c, not sys.exitCole Robinson2018-01-091-3/+3
| | | | Will be needed for uitests coverage support
* virt-manager: Remove needless cli option renamingCole Robinson2017-08-071-11/+11
|
* virt-manager: Exit on ctrl-cCole Robinson2017-06-271-0/+9
| | | | | | pygobject3 doesn't provide this automatically. Solution taken from: https://bugzilla.gnome.org/show_bug.cgi?id=622084
* Convert to python3 style print() syntaxCole Robinson2017-05-051-3/+5
| | | | Use __future__ imports to keep this working for python2
* Switch to python3 style 'except X as Y' notationCole Robinson2017-05-051-2/+2
| | | | Which also works with python2.7
* virt-manager: don't autostart other connection if --show-* was specifiedPavel Hrdina2017-01-171-0/+3
| | | | | | | | Broken by commit a9bc56add3. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1377244 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* pylint: Fix some issues with F25 versionCole Robinson2016-12-131-0/+1
|
* 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
* virt-manager: Avoid segfault on unset DISPLAYCole Robinson2016-05-171-1/+1
| | | | | Gtk.Window() init was crashing the app. Instead use Gtk.init() for testing that things are working okay
* virt-manager: Move Gtk import handling to a separate functionCole Robinson2016-05-171-35/+42
| | | | since it's all sorts of crazy
* Bump gtk and pygobject deps to 3.14Cole Robinson2016-05-171-5/+12
| | | | | | | | | | | 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.
* Fix recent pylint/pep8 outputCole Robinson2016-04-181-1/+1
|
* virt-manager: Drop manual dbusapi, use GtkApplicationCole Robinson2015-12-061-4/+2
| | | | | | | | | 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
* virt-manager: revive cli dbus API (bz 1162815)Cole Robinson2015-11-241-53/+18
| | | | | | | 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.
* virt-manager: Add hidden options --test-old-poll and --test-no-eventsCole Robinson2015-09-171-0/+12
| | | | For easy testing of fallback codepaths
* Suppress gi warnings about lack of require_versionCole Robinson2015-09-031-0/+1
|
* virt-manager: Fix connection to domain from cliCole Robinson2015-04-121-3/+9
| | | | Need to tweak our signal handling here with the recent connection changes.
* virtcli: Export config variables in a class objectCole Robinson2015-04-061-5/+5
| | | | Makes things easier to extend later
* virt-manager: Enforce gobject introspection versionsCole Robinson2014-12-021-1/+2
| | | | | | | 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
* s/gconf/gsettings/Guido Günther2014-09-291-6/+6
| | | | GConf got replaced by GSettings but some methods kept the old name
* virt-manager: Silence gtk deprecation warningsCole Robinson2014-09-191-0/+6
| | | | They are on by default on F21, and they are very noisy
* module_trace: Improve output for tracking mainloop libvirt usageCole Robinson2014-09-131-1/+1
|