Commit Graph
2197 Commits
Author SHA1 Message Date
Ewan Mellor 4d3817aae9 Convert XendPIFMetrics into an autoplug class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:54:05 +01:00
Ewan Mellor 4b24edbf8b Convert XendVMMetrics into an autoplug class. Tidy up our destroy methods
on the way -- metrics classes cannot be destroyed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:48:46 +01:00
Ewan Mellor 99b271fd7d Added network.other_config map. To make this easier, add a new automatic
plumbing facility from the XendNetwork class into XendAPI (credit to Tom
Wilkie for the idea).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:19:20 +01:00
Ewan Mellor 6b8760eaba Trivial tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:15:07 +01:00
Ewan Mellor c24f98944d Don't set memory_dynamic_max when xm mem-set is called. Save the VM
configuration unconditionally when either the max or the target memory values
are set.

Thanks to Masaki Kanno for pointing out the first problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 14:09:36 +01:00
Ewan Mellor c322cc7717 Fix xm mem-set on non-running domains. Closes bug #934.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-26 13:59:36 +01:00
Ewan Mellor 10e9ec0d21 Fix the xm mem-max command. Closes bug #933.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-26 13:50:33 +01:00
Tom Wilkie 09502ab38f Make 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 13:46:07 +01:00
Tom Wilkie 6f9deffd5b Fix vbd_create etc, add devices to paused domains
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 13:29:27 +01:00
Ewan Mellor d4eac439d5 Fix the VM.is_a_template flag for domain 0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:09:00 +01:00
Ewan Mellor 9c052c30d6 Implement session.last_active, session.this_host, session.get_record,
session.get_uuid.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:08:13 +01:00
Ewan Mellor d043ecebc5 Ignore exceptions in the get_all_methods call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 17:42:08 +00:00
Ewan Mellor 23feb407a1 Add VM.set_memory_dynamic_*_live methods, and use those in xm mem-set.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 17:14:22 +00:00
Ewan Mellor 31ec6ab111 Release the domains_lock properly when get_dev_property_by_uuid fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 16:54:34 +00:00
Tom Wilkie ea178f69d5 Fix rebooting domains problem with new internal memory storage
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 15:10:46 +00:00
Ewan Mellor f38e3b431b Add a last_updated field to every metrics class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 13:27:29 +00:00
Ewan Mellor 69869aa632 Replace tabs with spaces.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-23 11:11:41 +00:00
Ewan Mellor 761bc92430 Fix state in xm list; add state to VM_metrics class.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 11:04:51 +00:00
Ewan Mellor a24516689f Fix xenapi_create re: Multiple VIFs for test 04_restore_withdevices_pos
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 11:00:08 +00:00
Ewan Mellor a28f499e56 Make xm save / restore talk XenAPI; add save / restore to VM class.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 10:59:49 +00:00
Ewan Mellor c375307638 Implemented host.get_PIFs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 19:04:45 +00:00
Ewan Mellor 607c0a827e Fix the parsing of the is_a_template and auto_power_on flags. Don't try to
read the disk size on create -- just pass -1 instead -- as the filename may
be munged on the server-side.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 18:41:15 +00:00
Ewan Mellor 1d005ae159 Fix the handling of the transient flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 18:40:20 +00:00
Ewan Mellor 828004d171 Remove duplicate memory values from the SXP.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 18:37:37 +00:00
Ewan Mellor 9a0b8303dc Fix VM.is_a_template.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 18:36:53 +00:00
Ewan Mellor 5feb9722db Fixes to XendQCoWStorageRepo to match recent API changes, and fix the refreshing
after a VDI is deleted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 17:02:02 +00:00
Ewan Mellor 7af644b697 Add VM_metrics.start_time, and use this to implement xm uptime through the
Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-22 16:32:18 +00:00
Ewan Mellor 93fdf19076 Update VM's VCPU handling to match the documentation wrt VCPUs_max and
VCPUs_at_startup.  Add VM.set_VCPUs_number_live, VM.add_to_VCPUs_params_live,
VM_metrics.VCPUs_{CPU,flags,params}.

Use these new calls to implement xm vcpu-list and xm sched-credit through
the Xen-API.  Mark a number of other calls as unimplemented through that API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-22 14:31:03 +00:00
Ewan Mellor 830355957c Fix marshalling of Xen-API maps with non-string keys.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-22 14:27:05 +00:00
kfraser@localhost.localdomain 33ca4e4b54 Merge with xenppc-unstable-merge.hg 2007-03-21 23:59:03 +00:00
Hollis Blanchard 001e8c5cd8 Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 18:08:31 -05:00
Hollis Blanchard cb8cdc98fd [POWERPC][LIBXC] Remove Prose builder.
It is no longer being maintained and probably shouldn't have existed in the
first place, since it was almost identical to xc_linux_build.c.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:03:00 -05:00
Ewan Mellor 9639f3da4f Change xm dmesg -c so that it prints out the current buffer as well as clearing
it.  This avoids a race so that you don't lose messages, matches the behaviour
of the hypercall, and the Unix dmesg command.

Change the Xen-API binding to use a separate function host.dmesg_clear rather
than a flag on host.dmesg.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-21 12:03:42 +00:00
Ewan Mellor 5b3327347f Raise an exception in xm_block_detach if using Xen-API and it fails -- this
ensures that the exit status properly set.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:36:18 +00:00
Ewan Mellor 5ce79470d8 Fix xm network-list through the Xen-API for managed domains.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:34:34 +00:00
Ewan Mellor f7bff36895 Fix xm block-list through the Xen-API for managed domains.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:33:35 +00:00
Ewan Mellor 3d9330324c Make xm trigger talk XenAPI; add send_trigger to VM class.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:30:52 +00:00
Ewan Mellor 8ed7e86d16 Make xm debug-keys talk XenAPI; Add send_debug_keys to host
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:30:05 +00:00
Ewan Mellor 9aa2765862 Tidy the error message from getDomains when using the Xen-API and no domain
is found.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-20 16:55:29 +00:00
Ewan Mellor f6c7de277c Fix sxp2xml translation to handle maxmem.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 15:15:37 +00:00
Ewan Mellor 9e9090601c Add VIF.runtime_properties dictionary, and use that to implement xm network-list
through the Xen-API.  Implement xm network-attach and xm network-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 15:12:07 +00:00
Ewan Mellor 1c3dce55cd Fix parameter to XendInvalidDomain.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-20 14:04:57 +00:00
Ewan Mellor b5d7ad3a95 Fix exception handling when xmlrpclib.Fault is raised, in legacy mode.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-20 14:04:27 +00:00
Ewan Mellor f5f96d3c4f Fix xm create -c.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:49:04 +00:00
Ewan Mellor 26f758a762 Add VBD.runtime_properties dictionary, and use that to implement xm block-list
through the Xen-API.  Implement xm block-attach and xm block-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:45:44 +00:00
Ewan Mellor ca11344704 When creating a VBD, save the devid in the device info structure. If creation
fails, remove the device config entry.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:44:13 +00:00
Ewan Mellor a69027d845 Improve the error diagnostics within xmlrpclib2 in order to be more defensive
against internal errors.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 11:34:14 +00:00
Mark McLoughlin b43e569511 Don't mount raw blktap disks for pygrub
Currently, we mount all blktap disks for pygrub so that it can boot
from e.g. QCOW images. However, since pygrub will handle a raw image
just fine without mounting through blktap, we shouldn't bother in that
case.

	Also, it looks like XendDomainInfo.create_vbd() takes the full disk
uname rather than the image path.

  Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-03-20 11:10:52 +00:00
Ewan Mellor 0389938d6e Only import xenapi_create when using the Xen-API server -- this has additional
dependencies that we don't want to require in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-19 14:46:51 +00:00
Ewan Mellor ebcb37da0c Fix memory size handling.
These were by Tom Wilkie <tom.wilkie@gmail.com>, and were dropped accidentally
by me when merging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-19 11:09:57 +00:00