Commit Graph
2167 Commits
Author SHA1 Message Date
Ewan Mellor 493cba058f Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 10:05:03 +01:00
Ewan Mellor 16320c2cdf Fix diagnosis of unhandled exceptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 10:04:32 +01:00
Ewan Mellor 3dc7643871 Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 01:09:14 +01:00
Ewan Mellor b843dd7af8 Added HTTPS support to Xend. There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:23:01 +01:00
Ewan Mellor 2a5cee571c Added comment regarding a Python bug.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:03:32 +01:00
Ewan Mellor 823ab3fd0c Move the client-specific parts of xmlrpclib2 into xmlrpcclient.py. This means
that clients do not need to import swathes of server code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 22:34:22 +01:00
Ewan Mellor ff7c54e3c3 Add auto-start and auto-stop functionality.
Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 16:52:56 +01:00
Ewan Mellor cc3d7515f9 Use the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
bandwidth measurements for VBD I/O.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 16:33:26 +01:00
Tom Wilkie aa306dd463 Fix typo in VDB_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 17:43:36 +01:00
Tom Wilkie d867315e3c Make xm sysrq work via XenAPI re: PAUSED state problem
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 15:47:02 +01:00
kfraser@localhost.localdomain 08542da82e Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-27 16:45:37 +01:00
Ewan Mellor 4d5a404460 Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
on a clean machine.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 14:34:34 +01:00
Ewan Mellor 6ed1133818 Fix some fields so that they are declared as read-only (always should have
been) and implement {VBD,VIF}_metrics.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 14:22:29 +01:00
Tom Wilkie 95303f6196 Fix typo in VIF_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 13:45:30 +01:00
Ewan Mellor a4ae757f0f Fix the default for the is_a_template flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 11:31:25 +01:00
Tom Wilkie 38ef20418f Fix xm network-attach via XenAPI re: paused domain state
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 17:22:45 +01:00
Tom Wilkie 17a7dd0661 Fix up xm vcpu-pin via XenAPI, change types of new VM Metrics feilds
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:48:20 +01:00
Tom Wilkie c549108730 Fix xm info etc since changes to Session in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:04:24 +01:00
Tom Wilkie 70a47391ce Add option to xm create to skip DTD checks.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 15:09:24 +01:00
Tom Wilkie dd6bd5adf4 Add autodetect to xm create for xml files
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 14:57:12 +01:00
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