Commit Graph
1870 Commits
Author SHA1 Message Date
Emmanuel Ackaouy e975e81c9b [TOOLS] Improve information displayed by the xm sched-credit command.
The improvement is as follows.
 1. The display form is changed like the xm sched-sedf command.
 2. When -d option is omitted, information on all domains is
    displayed.

Examples:
 # xm sched-credit -d vm1
 Name                              ID Weight Cap
 vm1                                1    512  100
 # xm sched-credit
 Name                              ID Weight Cap
 Domain-0                           0    256    0
 vm1                                1    512  100
 vm2                                2    512   50

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-01-06 11:17:52 +00:00
Alastair Tse 8843b4291c Add support to list VDIs and SRs in xapi.py
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-05 17:27:30 +00:00
Alastair Tse 1f2d77695e [XEND] Fix some Xen API error declarations.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-05 17:24:55 +00:00
Ewan Mellor 9bff7e28c6 Catch exception from dumpCore when inside refreshShutdown.
Thanks to John Levon <levon@movementarian.org> for diagnosis and suggesting the
fix.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 16:11:49 +00:00
Ewan Mellor 8787be2922 Record the last shutdown reason for each VM in the store.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 15:38:01 +00:00
Ewan Mellor 79a9f1f484 Rename the 3DNOW and 3DNOWEXT API constants to THREEDNOW, so that they may be
used directly as identifiers in bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 15:34:47 +00:00
Ewan Mellor e821b95d39 Fix bindings for PIF_set_MAC and PIF.set_MTU.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:33:23 +00:00
Ewan Mellor 972656054c Fix missing import, and a small tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:32:40 +00:00
Ewan Mellor 957eed7252 Remove broken and unused set_u32.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-05 12:31:49 +00:00
kfraser@localhost.localdomain c082fcbec5 Xen 3.0.3 pre-pended all configuration prior to the user-specified
args in the boot cmdline. Restore this behaviour to fix
incompatabilities with fragile parsers in some domU kernels.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-05 11:03:16 +00:00
kfraser@localhost.localdomain 71314211e9 Fix xend stop if we're run directly instead of via the caretaker parent.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-05 10:58:48 +00:00
Ian Campbell 47fde3df04 [TOOLS] Fix typo in XenDomainInfo:device_configure.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-05 10:39:45 +00:00
Alastair Tse ab452d0667 [XEND] Fix block-list for dom0 in xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 16:42:44 +00:00
Alastair Tse 4b166e2a17 [XEND] Prevent exception if PIF does not have a network.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 16:34:19 +00:00
Alastair Tse eddd713445 [XEND] Add VBD_MODE enum from XenAPI.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 16:31:29 +00:00
Alastair Tse 019793657b [XEND] Default values for VBD mode and cpu_weight.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 16:30:20 +00:00
Alastair Tse a089f6e2cd [XEND] Only use DevController to generate SXP for running domains.
Otherwise the previous patch breaks managed domains in xm list.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 16:21:12 +00:00
kfraser@localhost.localdomain 3a1c98ecfb [XEND] Allow arbitrary values for the vif 'type'.
Signed-off-by: David Edmondson <dme@sun.com>
2007-01-04 15:58:20 +00:00
Alastair Tse df7005672d [XEND] Parse as much device SXP as possible.
Fix vtpm device check and xm list --long listing detached block devices.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-04 15:32:26 +00:00
kfraser@localhost.localdomain b7e67b038f [XEND] Fix allocation of fixed VNC ports.
From: MArk Williamson <mark.williamson@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-04 10:20:45 +00:00
Ewan Mellor 7f015ff4a5 Reset the option-parsing object before using it -- this means that the
option parsing works when using xm shell.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-02 14:46:13 +00:00
Ewan Mellor 55bf813209 Minor extra logging.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-02 14:45:32 +00:00
Ewan Mellor 535e80fa87 Don't canonicalise the resource inside res_security_check if security is off.
This had broken use of relative paths to refer to ISOs etc.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-02 13:35:25 +00:00
Ewan Mellor dba11d1f26 Fix the error handling in acm.policy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-02 13:32:35 +00:00
Ewan Mellor 04c280baf7 Don't lose the image settings when rebooting domains. This fixes recent HVM
reboot problems -- we were passing 0 to shadow_mem_control, because Xend was
treating the domain as PV.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-02 13:04:01 +00:00
Ewan Mellor 95fac2786b Resurrect cset 13174:766eec31afab, with one fix -- pass the fallback flag to
gettext.translation so that this module works if the message database is
missing (it's still an optional part of the build).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-29 20:17:01 +00:00
Steven Hand f8512e1c61 (temporarily) revert cset 13174:766eec31afab since it seems to break 64-bit;
a proper fix will arrive in the new year.

Signed-off-by: Steven Hand <steven@xensource.com>
2006-12-29 18:17:56 +00:00
kaf24@localhost.localdomain e7a7e19187 Explicitly use GNU msgfmt on non-GNU systems.
Signed-off-by: John Levon <john.levon@sun.com>
2006-12-29 16:23:11 +00:00
Ewan Mellor 396b267ecd Remove a few more explicit type conversions, now that stringify is fixed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 16:52:44 +00:00
Ewan Mellor a288b774b7 Fix xmlrpclib2's stringify to cope with floats and longs, removing the need
for explicit type conversions in XendAPI.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 16:30:47 +00:00
Ewan Mellor 1238c75163 Add a 1-PIF-per-network limit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:54:15 +00:00
Ewan Mellor a80a083a0e Format Xen-API error messages nicely.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:52:31 +00:00
Ewan Mellor b1da15c72b Added __repr__ implementation, initialise last_login_method to None, and
use gettext's ugettext explicitly, rather than using gettext.install.  These
things together improve the error messages that you get when using this
module incorrectly in the interactive interpreter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:28:45 +00:00
Ewan Mellor 9d26922025 Cope if a VIF is not attached to a network.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:26:45 +00:00
Ewan Mellor 4bbdd5d689 Do not update the PV_ variables with the values outputted by the bootloader --
this gets us into all sorts of trouble when Xend is restarted and then the
domain is rebooted, because we expect to be able to handle the PV_kernel == ''
case by defaulting to pygrub.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:26:19 +00:00
Ewan Mellor e5e25973c2 Fix return types for VBD.get_record and VIF.get_record.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:23:31 +00:00
Ewan Mellor 7917345584 Fix booting caused by recent thinko.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 15:00:15 +00:00
Ewan Mellor 6f37f18c79 Fix reboot of PV domains when both kernel and bootloader are unspecified
(which is supposed to default to using pygrub).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 12:59:58 +00:00
Ewan Mellor 468611d262 Implement network.get_VIFs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-28 12:26:29 +00:00
Ewan Mellor 16d8fd16ce Fix PV_initrd reference (should be PV_ramdisk).
Signed-off-by: Stefan Berger <stefanB@us.ibm.com>
2006-12-27 15:44:40 +00:00
Ewan Mellor bde11044ca Added network.{create,destroy}, and PIF.{create,create_VLAN,destroy}, and
a first blush at support for VLANs through Xen-API.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 15:42:56 +00:00
Ewan Mellor b16ecf8d4e Added Brctl.get_state, to support upcoming PIF implementation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 15:39:32 +00:00
Ewan Mellor 85a87721a7 Override logging.Logger.findCaller so that the trace function here does not
appear as the source of log messages.

Remove the logger name from the log format -- it's adding no useful information.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 15:39:04 +00:00
Ewan Mellor bbe21e102e Tidy and fix bindings for the SR class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 11:49:59 +00:00
Ewan Mellor 866cc9cd43 Fix HVM booting through Xen-API when the kernel is unspecified.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 00:38:01 +00:00
Ewan Mellor 53211200e3 Tidy up bindings for VDI class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-27 00:35:27 +00:00
Ewan Mellor 894243ac7b Implement VM_BAD_POWER_STATE handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 19:29:05 +00:00
Ewan Mellor 686cfca86a Persist the VLAN setting.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 17:02:16 +00:00
Ewan Mellor 0d46f85d6c Fix plumbing for PIF calls. Change xen_api_success to convert None to the
empty string, to make it easier to write setters.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 16:56:46 +00:00
Ewan Mellor 8f56ead6e6 Persist network details when they change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-25 16:42:24 +00:00