Cole Robinson
838baf6946
connection: tick: Operate on combined object lists
...
Makes the flow a bit simpler, and allows us to break out polling without
having to pass around a ton of lists.
2015-04-10 15:00:34 -04:00
Cole Robinson
5357b91402
connection: Store all object lists in an external class
...
Simplifies list management and allows us to use real locking to prevent
list collisions.
2015-04-10 15:00:34 -04:00
Cole Robinson
2d25c920ea
connection: Use consistent nodedev function names
2015-04-10 15:00:34 -04:00
Cole Robinson
3df02e8ee1
host: Fix a couple recently introduced issues
2015-04-10 15:00:34 -04:00
Cole Robinson
cb5d075f50
libvirtobject: Unify a few APIs and conn tick handling
2015-04-10 15:00:34 -04:00
Cole Robinson
1e154a373d
libvirtobject: Populate status up front
...
And use this to kill paranoid object tick() that are sprinkled throughout
the code.
2015-04-10 15:00:34 -04:00
Cole Robinson
4933cf7600
libvirtobject: Clarify force_update_status
2015-04-10 15:00:34 -04:00
Cole Robinson
c9b882619e
libvirtobject: Add decorator for lifecycle events
...
That does the appropriate event loop updating, if needed.
2015-04-10 15:00:34 -04:00
Cole Robinson
a3f8d73a9c
libvirtobject: Unify internal status APIs and signals
...
Drop config-changes vs. status-changed and just use one signal, since they
are largely the same code paths for all users.
2015-04-10 15:00:34 -04:00
Cole Robinson
01bf07ba11
libvirtobject: Unify status signals
...
Dispatch them all from the actual object and not proxied through
the connection. Use the same signal name for all objects with the same
signature.
2015-04-10 15:00:33 -04:00
Cole Robinson
a45fc36d06
host: If connection disconnects, close add* wizards
2015-04-10 15:00:33 -04:00
Cole Robinson
fb7a921ec4
storagelist: Select newly created pool/volumes
...
And clean up some of the internal APIs in this area
2015-04-10 15:00:33 -04:00
Giuseppe Scrivano
616df760be
storage: copy allocation and capacity also on cross-pool clones
...
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1210265
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-04-10 16:40:49 +02:00
Giuseppe Scrivano
1f6faa33dc
doc: make clearer what usb2 and usb3 means to --controller
...
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1204895
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-04-10 13:05:09 +02:00
Giuseppe Scrivano
549c93be5f
doc: make --sparse documentation consistent with error message
...
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1210572
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2015-04-10 13:05:09 +02:00
Chen Hanxiao
06c05ca078
test: fix a testcase
...
commit 92c42bc5a0
breaks testsuit.
Fix it.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com >
2015-04-09 22:44:50 -04:00
Cole Robinson
92c42bc5a0
details: Improve UI labeling of keyboard devices
2015-04-09 13:36:40 -04:00
Cole Robinson
22b9932c47
addhardware: Add USB keyboard option (bz 1176724)
2015-04-09 13:25:15 -04:00
Cole Robinson
527c49dec2
virt-install: Add --input option
...
For configuring VM <input> devices
2015-04-09 13:22:40 -04:00
Cole Robinson
2bf1a29f40
details: Add tooltips if device isn't removable
2015-04-09 13:11:20 -04:00
Cole Robinson
1c63c2b0d9
libvirtobject: Invalidate cache if redefine fails
2015-04-09 13:01:38 -04:00
Cole Robinson
771154d104
addhardware: Make network model a combo entry
...
So users can add non-advertised models
2015-04-09 12:58:21 -04:00
Cole Robinson
058c06972e
Break out shared storage UI to storagelist.py (bz 1060433)
...
We were already sharing a chunk of this in a haphazard way. Now officially
break it all out, similar to netlist.py. This mostly unifies the views
of host->storage and storagebrowser.py
2015-04-09 12:31:24 -04:00
Cole Robinson
6634053533
domcapabilities: Can and log error fetching XML (bz #1209723 )
2015-04-08 09:53:30 -04:00
Cole Robinson
68a11727a4
create: Show proper install options for ppc64le (bz 1209720)
2015-04-08 09:31:07 -04:00
Cole Robinson
cc3a522455
Use is_pseries() helper more consistently
2015-04-08 09:31:01 -04:00
Cole Robinson
9b21f27e31
cli: Maintain same --print-xml behavior for non virt-install
...
Don't want it scooping up any nargs
2015-04-07 19:58:28 -04:00
Cole Robinson
a5d03fdf6e
guest: Don't unconditionally overwrite on_poweroff/on_crash
2015-04-07 19:53:15 -04:00
Cole Robinson
a4e6280a6c
details: Refresh boot arrows when unchecking an item
2015-04-07 19:43:09 -04:00
Cole Robinson
ec162888f5
addhardware: Make bus list dependent on device type
...
And not the other way around. It's less confusing this way IMO, particularly
if virtio is selected by default and the user is confused, wondering
where the cdrom option is.
Take the opportunity to actually share the bus combo logic between details
and addhardware
2015-04-07 19:31:30 -04:00
Cole Robinson
1d98af2c47
create: Move mac address editing to customize dialog
...
People should rarely need to edit the mac address, so remove it from
the create wizard. However we only allow editing the mac address in
the 'customize' dialog: regular network details disables editing, since
that should be a rare and potentially dangerous operation.
2015-04-07 18:52:35 -04:00
Cole Robinson
55c8453d15
details: Use 'Hypervisor default' description in more places (bz #1073521 )
2015-04-07 18:36:07 -04:00
Cole Robinson
938060ae53
domain: Fix customize dialog to show VM config with defaults set
...
Right now we aren't showing the defaults like disk buses, sound devices,
disk cache modes, etc. This is confusing to the user and not that useful.
Encode the defaults before launching the wizard, so the user can see what
the end config will actually look like.
This might cause weirdness if going back to the create.py wizard, but
we'll see if anyone complains before handling that.
2015-04-07 18:36:06 -04:00
Cole Robinson
86f1133777
guest: Encode defaults into the XML at install time
...
Previously we made all the default encoding non-permanent by XML objects
before generating the XML, making changes to the copies, and restoring
to the old state after the XML is returned to the user.
This allows us to call start_install multiple times with the same Guest
object and not alter it's original config... but that feature isn't really
useful anymore, and this behavior makes the 'customize before install'
dialog difficult to handle.
So drop most of it, and fix some of the minor fallout.
2015-04-07 18:36:06 -04:00
Cole Robinson
be5c2c742c
libvirtobject: Clean up the internal XML APIs
...
There was lots of redundancy and confusing semantics. Document functions,
drop a bunch of unneeded ones.
2015-04-07 17:41:29 -04:00
Cole Robinson
c66bc2a87f
connection: Have get_nodedevs return vmmNodeDevice
...
To make it consistent with similar vmmConnection functionas
2015-04-07 14:12:00 -04:00
Cole Robinson
ebfb0cd726
mediadev: Kill the abstraction, just use nodedevs
...
It's really a useless hold over from the days when we manually talked
to HAL.
One semi useful bit lost in the shuffle is the option to repoll cdroms
for media. But since virt-manager allows attaching a device to the
VM regardless of whether it notices media change, this plumbing is
really overkill. If libvirt ever grows nodedev events we will get this
much easier.
2015-04-07 13:59:43 -04:00
Cole Robinson
39b5d11628
details: Make CPU config a frame, not an expander
...
It's very commonly tweaked, so move it front and center.
2015-04-07 11:53:16 -04:00
Cole Robinson
abbc781cab
connect: Expand check for qemu binaries
...
And drop dead handling of qemu:///session
2015-04-06 16:43:44 -04:00
Cole Robinson
fa0dc2b6dd
netlist: Don't set portgroup=""
2015-04-06 16:41:02 -04:00
Cole Robinson
ef5552d0aa
configure: Add --default-hvs, kill --with-bhyve
...
Takes a comma separated list of HVs, and only shows those as options in
the 'Open Connection' wizard. This option can be used to hide the bhyve
option as well, so drop --with-bhyve
2015-04-06 16:29:28 -04:00
Cole Robinson
6ccbec6b30
setup: Give warning if installing schemas into non-/usr/share (bz 1122537)
2015-04-06 16:03:42 -04:00
Cole Robinson
eaa0f7c008
README: Mention gobject-introspection package names on debian
2015-04-06 15:56:16 -04:00
Cole Robinson
a773a66a3f
virtcli: Export config variables in a class object
...
Makes things easier to extend later
2015-04-06 15:54:35 -04:00
Cole Robinson
a0adcef306
MANIFEST: Remove some missing files
2015-04-06 15:54:35 -04:00
Cole Robinson
1e2f605e81
virtcli: Drop custom version handling
...
No one uses it, and it can be handled easy enough with a wrapper script or
similar.
Message-Id: <1b33f161591b86407f78fb307aa4f89f6eee9e4e.1428346382.git.crobinso@redhat.com >
2015-04-06 15:54:35 -04:00
Cole Robinson
f4cc544a3b
virtcli: Fix error in previous patch
2015-04-06 14:53:25 -04:00
Cole Robinson
dd74b3db2a
cliconfig: Fix running from git dir if git isn't CWD (bz 1138962)
2015-04-06 14:23:10 -04:00
Cole Robinson
e29f216503
guest: Use sata by default for q35 cdrom, non-virtio (bz #1207834 )
2015-04-06 13:43:18 -04:00
Cole Robinson
feb010621b
addhardware: Don't advertise IDE for Q35 (bz #1207834 )
...
Laine suggests we hide it altogether
2015-04-06 13:36:54 -04:00