Commit Graph

2282 Commits

Author SHA1 Message Date
Cole Robinson
4c61287e01 migrate: Fix some expander spacing issues 2011-07-19 13:56:27 -04:00
Cole Robinson
0db10e366b migrate: Send proper URI to peer2peer migration
Expects libvirt URI and not tcp: style uri. Also wire up interface+port
for p2p migration.
2011-07-19 13:51:42 -04:00
Cole Robinson
fa0070b1dd domain: Don't be so strict about matching USB devs
Since an active USB dev has both product+vendor and bus+addr, but an inactive
dev won't have bus+addr in many situations, hotunplug wasn't removing the
persistent dev. Relax the lookup check a bit.
2011-07-19 12:39:03 -04:00
Cole Robinson
26c49f7d6e Don't register events unless libvirt is new enough
Python callbacks for custom event loops changed signature, so only use
newer impls.
2011-07-19 12:39:03 -04:00
Cole Robinson
5f7d061e6f details: Fix inspection UI expanding 2011-07-18 21:36:13 -04:00
Cole Robinson
ad5bb2ab48 create: Allow cancelling 'customize' dialog
Selecting the 'cancel' option or hitting the window X will erase any
customized changes and go back to the final screen of the wizard.
2011-07-18 21:31:06 -04:00
Cole Robinson
b83def97ea connect: Always have a default hv selection 2011-07-18 20:27:20 -04:00
Cole Robinson
f177e4ac44 inspection: Put more readable VM id in logging messages
UUID is difficult to decode, use uri+vmname
2011-07-18 18:10:54 -04:00
Cole Robinson
b501c1a74a inspection: Don't backtrace if guests have no inspectable disks 2011-07-18 17:52:20 -04:00
Richard W.M. Jones
67f0e67407 Add basic operating system inspection data to the VMM details page.
This adds hostname, product name, and list of applications.
2011-07-18 15:31:20 -04:00
Richard W.M. Jones
0132503eb3 Display operating system inspection icons in main vmlist. 2011-07-18 15:31:19 -04:00
Richard W.M. Jones
bcca576a64 Add inspection data to the domain object.
Create a new (sub-)object vmmInspectionData, and add an instance of
this data to each domain object.  This data is passed up from from the
inspection thread.

Also an inspection-changed signal has been added so that UI elements
can find out when inspection has finished for a particular VM and
update the UI.
2011-07-18 15:31:19 -04:00
Richard W.M. Jones
28b7936c06 Add inspection thread.
This commit adds an inspection daemon thread which performs libguestfs
inspection on domains when they first appear in the manager UI.

python-guestfs is not required.
2011-07-18 15:31:18 -04:00
Cole Robinson
81cf5ba43f TUI: Fix up some pylint 2011-07-18 14:48:49 -04:00
Darryl L. Pierce
6fcbd63b64 Fixed the accidental Grid lingering in addnetwork.py 2011-07-18 14:45:32 -04:00
Cole Robinson
5bac9ea05a HACKING: Mention pep8 dep 2011-07-18 14:10:29 -04:00
Darryl L. Pierce
7fea5b8c50 Renamed undefinenetwork.py to removenetwork.py.
This makes the command name more consistent with other, similar
commands.

Updated all affected modules as well.
2011-07-18 14:05:47 -04:00
Darryl L. Pierce
51985f0d40 Renamed definenet.py to addnetwork.py and updated all affected modules.
This moves the command name to be in line with other commands.
2011-07-18 14:05:47 -04:00
Darryl L. Pierce
93ce57a69f Updated listnetworks.py to use the new screen grid helper method. 2011-07-18 14:05:46 -04:00
Darryl L. Pierce
9c54c61624 Updated undefinenetwork.py to use the new screen grid helper method.
Also modified the imports for snack classes.
2011-07-18 14:05:46 -04:00
Darryl L. Pierce
d1fd7e3af8 Updated the stopnetwork.py command.
Added logging for when an exception occurs while stopping a network

The command returns true or false based on the state of the network
after the stop call rather than assuming it's true.
2011-07-18 14:05:45 -04:00
Darryl L. Pierce
403956337b Updated the imports for startnetwork.py.
Explicitly imports the Label class from snack.
2011-07-18 14:05:45 -04:00
Darryl L. Pierce
3dd9561934 Updated definenetwork.py to use the new screen grid helper. 2011-07-18 14:05:44 -04:00
Darryl L. Pierce
d27ec9e149 Updated definenet.py to look more like VMM GUI. 2011-07-18 14:05:44 -04:00
Darryl L. Pierce
a5391bc090 Added a helper function for creating a Grid from an array of Fields.
This helps simplify building screens since it will calculate the size of
the Grid needed and build all screens consistently.
2011-07-18 14:05:44 -04:00
Cole Robinson
b2659c0cba manager: Don't fetch domain XML on every tick, getting the <desc> 2011-07-15 15:38:59 -04:00
Cole Robinson
595d3d13e7 connect: If readding an existing connection, update 'autoconnect' 2011-07-14 20:52:40 -04:00
Cole Robinson
fa8460ff65 Remove accidental debugging print 2011-07-14 20:26:05 -04:00
Cole Robinson
6a861acd3b details: Persistent changes require a guest shutdown, not reboot
Since reboot may be interpreted as a reboot from inside the guest, which
won't help us.
2011-07-14 17:16:57 -04:00
Cole Robinson
32b2eef8f8 host: Disable 'add vol' button if not supported for pool type 2011-07-14 17:07:21 -04:00
Cole Robinson
77384e00b4 details: Don't show any memory usage if VM inactive 2011-07-14 16:59:50 -04:00
Cole Robinson
7e82d59b3e details: Don't allow setting initrd/args without a kernel path 2011-07-14 16:31:38 -04:00
Cole Robinson
1f7673620d details: Only apply changes from touched UI elements
Do this by tracking which UI elements are actually changed, not just
sensitiving the 'apply' button and flush all values on the changed page.
2011-07-14 16:18:42 -04:00
Cole Robinson
d35234a0c1 stuff 2011-07-14 13:36:17 -04:00
Cole Robinson
a84d10cee8 Add a smaller helper for self.window.get_widget
Saves us from having crazy long lines in a few places, and less characters
to type!
2011-07-14 13:13:13 -04:00
Cole Robinson
25f5bc90a7 Actually run pep8 against TUI, fix the fallout 2011-07-14 12:28:05 -04:00
Cole Robinson
326e0f6a81 details: Strip whitespace from text entry inputs 2011-07-14 12:28:05 -04:00
Cole Robinson
17f4ecef96 manager: Show VM description in a tooltip 2011-07-13 22:45:42 -04:00
Cole Robinson
f91523197f Hardcode /usr/bin/python in app launcher 2011-07-13 22:14:12 -04:00
Cole Robinson
4f41d5add9 Share more code between gui and tui startup scripts 2011-07-13 18:48:02 -04:00
Cole Robinson
7ed8a258b8 rpm: refactor spec to optionally build 'common' and 'tui' packages 2011-07-13 18:01:10 -04:00
Darryl L. Pierce
e790faebd9 Fixed the references to newt_syrup.utils module. 2011-07-13 16:29:33 -04:00
Darryl L. Pierce
ea2f45c086 Fixed a bug that caused the IPv4 address to be overwritten.
The code had been updated to overcome some pylint complaints about
fields not being initialized in __init__. They were added after the
point where their initial values were assigned.

This patch moves that initialization to the point after theyr are first
defined.
2011-07-13 16:29:33 -04:00
Darryl L. Pierce
684f5405d7 Updated the network configuration commands to use the new configs. 2011-07-13 16:29:33 -04:00
Darryl L. Pierce
ef9b39fba8 Removed Newt Syrup files that were still in the VMMTUI codebase. 2011-07-13 16:29:33 -04:00
Darryl L. Pierce
9acb85fa57 Updated all configuration screens to use the new base classes. 2011-07-13 16:29:33 -04:00
Darryl L. Pierce
db6b67f838 Added the new base config screen class for working with storage pools. 2011-07-13 16:29:32 -04:00
Darryl L. Pierce
1f38d7b387 Created the new base config screen class for working with virtual networks. 2011-07-13 16:29:32 -04:00
Darryl L. Pierce
b82fb3d370 Created the new base config screen class for working with hosts. 2011-07-13 16:29:32 -04:00
Darryl L. Pierce
3eda6bdee1 Created the new config screen base class for working with domains. 2011-07-13 16:29:32 -04:00