Commit Graph
2248 Commits
Author SHA1 Message Date
Tom Wilkie 2f53778243 [XEND] Used shutil.rename to cope with /tmp and /var on different file systems
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-27 11:03:47 +01:00
Tom Wilkie e65161ebc2 [XM] Fix typo in XenAPI create code
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-27 11:02:47 +01:00
Tom Wilkie ad62235514 [XEND] Start cleanly even with bad xml state files
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-27 10:44:11 +01:00
Tom Wilkie 6fb84d0fce Add support for creating networks to xm create XML file
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 17:30:56 +01:00
Tom Wilkie 1975a60f78 Add network-del and network-show commands to xm
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 15:40:35 +01:00
Tom Wilkie 15ef31e0c5 Add network.destroy() to XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-26 15:39:30 +01:00
kfraser@localhost.localdomain 8482630322 xend: Tidy bootloader device constant.
In XendDomainInfo, BOOTLOADER_LOOPBACK_DEVICE is defined to be
'/dev/xvdp'.  However, there is still one place in this file that has
'/dev/xvdp' hard-coded.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2007-04-26 09:51:39 +01:00
Tom Wilkie 369e63f97c [XEND] No need to refresh bridges under new model...
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:18:34 +01:00
Tom Wilkie ebfb34834f [XEND] Fully implement XenAPI network and PIF classes.
Now support creation of Networks and PIFs.  Auto discover current network settings.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:17:51 +01:00
Tom Wilkie 1176bb2c6c [XEND] Remove autoplug class signatures, have it all handled in the class now
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:16:21 +01:00
Tom Wilkie 0207b91bee [XEND] Make existing autoplug classes implement new XendBase
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:14:20 +01:00
Tom Wilkie de8d95c660 [XM] Fix network-attach when a bridge is specified, add network-new command to create new XenAPI network
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:12:41 +01:00
Tom Wilkie edb909c878 [XEND] Add more exceptions and error messages
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 16:11:20 +01:00
Tom Wilkie 2ecc034a6a Use new instance store to resolve network uuid to bridge name
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 15:42:34 +01:00
Tom Wilkie 876a24c0c8 Change how XendStateStore store XML for persistance.
Make it explicity store empty dicts and list.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 15:39:48 +01:00
Tom Wilkie e9b41a4385 Add new base class and instance store for new autoplugged api classes
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 15:38:04 +01:00
Tom Wilkie 9ad27d5eda If bridge name hasn't been recorded in XendConfig then try and work it out using Brctl.
This is needed when a VIF is created without specifying a bridge.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 13:55:18 +01:00
Tom Wilkie 1f79e130d5 Translate network uuid to bridge name and store it in XendConfig when createing a new vif.
Fixes a bug where a new vif gets added to the wrong bridge.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-25 13:44:37 +01:00
kfraser@localhost.localdomain efe6d12251 xend: Fix race in vfb/vkbd device setup.
1. XendDomainInfo._createDevices() gets a list of devices to be
    created from XendConfig.ordered_device_refs().
    On a simple guest, this has 4 devices, vfb, vbd, vif, vkbd - in
    that order.

 2. It iterates over those devices, creating the appropriate
    DevController subclass instance, and then calling createDevice()
    on that object.

 3. When createDevice() is called on the vfb  device, it spawns
    xen-vncfb daemon.

 4. During startup xen-vncfb writes into the backend paths
            /local/domain/0/backend/vfb/0
     And
            /local/domain/0/backend/vkbd/0

 5. When createDevice() is called on the vkbd device in XenD, if the
    2nd xenstore path write from step 4 has occurred, then you'll hit
    the 'Device 0 (vkbd) is already connected' error. If the 2nd path
    write didn't complete yet then everything is fine.

I think the reason it often works once after boot is that loading
xen-vncfb from disk the first time around is just enough of a slow
down to ensure step 5 occurs before the 2nd xenstore write in step 4
has occurred.

The key seems to be to ensure the vkbd device is initialized in
xenstore before the vfb device - this ensures all the xenstored setup
from XenD is complete before the xen-vncfb daemon starts. I'm now able
to create & destroy a domain many times over with this patch & never
hit the error message any more.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-25 09:44:20 +01:00
kfraser@localhost.localdomain 74fd18ac58 xend: Settle on 0666 pre-umask permissions for xend-debug.log.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-24 23:40:40 +01:00
Keir Fraser 57803ee7ae xend: Suppress logging of "Listing domains in state foo" in xend.log.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-04-24 23:12:10 +01:00
Keir Fraser 9718c31fb7 Remove execute permission from xend-debug.log
The file /var/log/xen/xend-debug.log is currently being created with
executable permission bits set. This is because the os.open() method
defaults to using a mode of 0777 if no third parameter is provided.
The attached patch changes the mode to 0600 to ensure that the file
permissions come out as -rw-------  instead of -rwxr-xr-x

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-24 21:48:09 +01:00
kfraser@localhost.localdomain 348762501c xend: Incluide processing of 'monitor' config option in qemu-dm
cmdline processing.
Signed-off-by: Yongkang You <yongkang.you@intel.com>
2007-04-24 09:44:51 +01:00
Tom Wilkie edec108b06 Deprecate XendDomainInfo.state - now use _stateGet() to get the live
state of a domain.  Should still call _stateSet() to notify others
when you expect the state has changed.

Also some changes to locking in save/suspend, restore/resume and migrate

Passes xm-test against XenAPI...

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-20 17:56:28 +01:00
Tim Deegan 4a80bb4ae3 [XEND] Fix test for when to record HVM VNC console as a VFB.
This code may still need more work to properly integrate HVM SDL consoles.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-20 17:32:30 +01:00
Keir Fraser 37b9dfbf71 [vtpm] Return a proper error when in the Xen-API call.
Fix a bug in the test.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-19 19:29:45 +01:00
kfraser@localhost.localdomain a247b8c7db tools: Use INSTALL_{DIR,DATA} to install stuff.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-17 12:21:33 +01:00
James Bulpin bd9d988e80 Fix tools build
Signed-off-by: James Bulpin <james@xensource.com>
2007-04-17 12:01:00 +01:00
Tom Wilkie 0035808bef Add *.get_all_records to XenAPI, make use of this for xm list
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-16 22:58:12 +01:00
ewan@localhost.localdomain 5d44f92367 Added event dispatch when a VM's power state changes. Fix the host.enabled and
host.software_version definitions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 17:02:52 -04:00
Tom Wilkie b2e625ed4e Add pot file, fix build
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-16 21:21:42 +01:00
ewan@localhost.localdomain f01fa26a0f Added host.enabled flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 16:10:39 -04:00
Tom Wilkie 1d4f277da8 Install dtd into correct place
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 16:54:03 +01:00
Tom Wilkie 7771ae57e8 Fix up locale strings for xm
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-13 16:46:41 +01:00
Tom Wilkie e52527b9ed Fix TypeError with datetime() on old python version
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 16:02:41 +01:00
Tom Wilkie 4a507d9105 Add VM.migrate to XenAPI, add support to XM
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 13:55:10 +01:00
Tom Wilkie bf57189edc Simplify code to map interfaces to bridges
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 11:43:50 +01:00
Tom Wilkie 6e86084cbc Ensure xenapi create passes in values even if unused
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 12:48:27 +01:00
kfraser@localhost.localdomain a01197aeb4 HVM: First attempt at domain-resume on save-failure.
Not working yet as we are a bit too keen to kill the qemu-dm process,
before we know that the save has been successful.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 14:13:04 +01:00
kfraser@localhost.localdomain 40bb2e5fea HVM: Allow qemu monitor to be configured in domain config file.
From: Yongkang You <yongkang.you@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 13:21:26 +01:00
kfraser@localhost.localdomain 9919a2345e xend: Update config-format version, due to changes in 3.0.5.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-12 13:18:08 +01:00
kfraser@localhost.localdomain 69a9bab277 HVM: Do not watch control/shutdown to force domain shutdowns when PV
drivers are not present. The feature-foo mechanism does not actually
work after save/restore since the fields do not get rewritten. And it
doesn't work when we actually need the guest to be shutdown through
Xen (e.g., on suspend). Since we can quite reasonably assume that the
only entity to screw with control/shutdown is xend, and since the one
place that does that now explicitly handles unenlightened HVM guests,
we can simply strip all this stuff out.

This has the nice benefit of making HVM save/restore with PV drivers
much more reliable.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 12:12:56 +01:00
Tom Wilkie 985378fb5c Make xm info more permissive
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:44:26 +01:00
Tom Wilkie 60bd45b963 Fix typo and make create send proper bools
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:31:17 +01:00
kfraser@localhost.localdomain b8680a8065 xend: Store canonical vnif config info in /vm/<uuid>/device
rather than in frontend store directory. Two advantages are that the
frontend cannot mess with the config information; also an
ioemu-specific vif does nto need a frontend directory at all. This
avoids confusing netfront pv-on-hvm driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 14:30:56 +01:00
Tom Wilkie b586bb55ad Make date time handling slightly more permissive
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-10 17:01:40 +01:00
Ewan Mellor 6492f2ffbf Added documentation, C bindings, and a test for VM_metrics.{start_time,
VCPUs_CPU,VCPUs_params}.

Changed VM_metrics.start_time to be a DateTime, not an integer.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 17:09:21 +01:00
Ewan Mellor 668fbded84 Make host.sched_policy read-only. Added docs, bindings, and a test for
host.cpu_configuration and host.sched_policy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 12:20:35 +01:00
kfraser@localhost.localdomain 1d37a61c52 xend: Destroy information about the domain in case an error occurs
during resume of a domain.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-10 10:28:11 +01:00
Ewan Mellor 8f38cefadc Remove task.error_code -- it's redundant, as we can use the first element of
task.error_info instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-05 13:35:54 +01:00