Commit Graph
11788 Commits
Author SHA1 Message Date
Ewan Mellor 98fce5e002 Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-28 11:20:47 +01:00
Ewan Mellor 3de924f62e Remove VTPM-related values, now obsolete.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-27 09:52:49 +01:00
Ewan Mellor efbc4c6ce8 Remove the get_all method from most classes -- we'd like people to be able to
get all VMs, for example, but for VBDs et al it doesn't really make sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 18:17:56 +01:00
Ewan Mellor 11e5828508 Replace the datamodel graph eps with a dot file.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 16:03:52 +01:00
Ewan Mellor 160e3425fc Fix VTPM bindings -- ints in the model are uint64_t at the C binding level.
VM's, being referenced from the VTPM, have a backreferring set.  Remove the
implementation of the old, dead VTPM-related fields on VM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 16:02:49 +01:00
Ewan Mellor 75fc47c34f Implement new PIF-based network model, and match movement of I/O-statistics.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:59:51 +01:00
Ewan Mellor 90a38027f4 Implement VDI.resize message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:57:29 +01:00
Ewan Mellor 6e30095293 Implement HostCPU.{vendor,speed,modelname}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:56:44 +01:00
Ewan Mellor 4809ab6f09 Implement new VMX feature flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:53:31 +01:00
Ewan Mellor 01b62fa670 Added HostCPU.{vendor,speed,modelname}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:49:57 +01:00
Ewan Mellor 4fec63fde6 Added VMX feature flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:48:44 +01:00
Ewan Mellor 3b180b47fe New PIF class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:47:46 +01:00
Ewan Mellor f25b797cb0 Remove get_record_internal -- it's not needed at the binding level.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:46:46 +01:00
Ewan Mellor 44aa0e316d Rename VTPM.type to VTPM.driver, to match the libxen bindings.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:43:32 +01:00
Ewan Mellor 0461886435 Fix network model by moving Network.NIC and Network.VLAN onto a new PIF class.
Also, merge network and disk bandwidth into a single io/ namespace.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:35:18 +01:00
Ewan Mellor 4b440ab478 Rename get_by_label to get_by_name_label everywhere -- this was always the
intended name.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 15:03:47 +01:00
Ewan Mellor c300a22e13 Added VDI.resize method.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 14:40:22 +01:00
Ewan Mellor d6a74db4b0 Make all Ref Sets DynamicRO -- they are implied by the existence of an instance
elsewhere, and cannot be modified directly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-26 14:39:34 +01:00
Ewan Mellor 0cc6b0be8f Datamodel changes adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-25 20:44:01 +01:00
Ewan Mellor 7145dab4ea Fix preamble -- get_by_short_name is now called get_by_name_label.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 20:40:49 +01:00
Ewan Mellor f41edb0843 Import Xen Management API Draft, 0.4.3, from
http://wiki.xensource.com/xenwiki/XenApi

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 20:34:26 +01:00
Ewan Mellor 947025bc2f C bindings adding some basic vTPM extensions to the API that
make its handling similar to that of VBD etc.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-25 17:30:17 +01:00
Ewan Mellor 8e9710138a The session class has a lower-case S -- fix the C bindings to match.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-25 16:06:29 +01:00
Alastair Tse 4ec3bd8ed9 Some updates to the README fixing the kernel.hvm devices config 2006-10-27 16:46:27 +01:00
Alastair Tse ece9a51698 [XEND] Fix some missing variables in XendDomain caught by pylint.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-27 16:45:40 +01:00
Alastair Tse 8fa283dfde [XEND] Fix missing SR references in XendAPI
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-27 16:44:15 +01:00
Alastair Tse b6ee4d8a3f A survey of all the supported configuration options in Xend and also
what they map to in the Xen API.
2006-10-26 19:43:11 +01:00
Alastair Tse a5f7c42094 [XEND] Add more API implementations, add sched_id_get to xc.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-26 17:59:49 +01:00
Ewan Mellor 4ed8357baa Import 83:b569bb25a8f08a15381b022ee143d7f205976604 from xen-api.hg, minus the
Makefile patch.

[XEND] Remove blank image file generation for QCOW images.

There is no need for a blank backing store, although this means we
have to find a new way to determine how much virtual disk space is
free in the StorageRepository.

Beginnings to attempt to supoprt HVM guests.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-01 10:12:13 +00:00
Alastair Tse c09512317b [XENAPI] Add shell option for xapi.py so it can remember sessions.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-20 13:35:25 +01:00
Alastair Tse d99b11a197 [XEND] Fix KB allocation in XendStorageRepository
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-20 13:33:55 +01:00
Alastair Tse 9856f07de5 [XEND] Remove mistake of not checking xenstore's name entry for Dom0
Also fix logic with detecting whether devid is an int or not because
xm passes this as a string all the time.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 17:48:54 +01:00
Alastair Tse fbd802c6fe [XEND] Add some docstrings about XendAuthSessions
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 17:46:54 +01:00
Alastair Tse 4bbf7eafc8 [XM] Fix TypeError in exception handler if there is no res_label.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 17:46:08 +01:00
Alastair Tse 03e7cd14f3 [XEND] Switch to PAM authentication for login sessions
[XENAPI] Fix case difference in API for Host.* functions

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-19 15:37:16 +01:00
kfraser@localhost.localdomain 4b1bbbba6c [ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-18 17:54:58 +01:00
Alastair Tse 84b4b812e6 [SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.

Merged with Xen API Tree.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 11:36:49 +01:00
Alastair Tse d34bce1e08 [SOLARIS] The hotplug scripts live in a different place on Solaris.
Add osdep.py module

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 11:35:09 +01:00
Alastair Tse 48254bc2b0 [SOLARIS] The hotplug scripts live in a different place on Solaris.
Merged with Xen API Tree

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 11:33:45 +01:00
kfraser@localhost.localdomain 04fee27f12 [SOLARIS] Add the correct machine name for Solaris to arch.py.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:23:24 +01:00
kfraser@localhost.localdomain a5d51aa564 [XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.
The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-15 09:19:26 +01:00
kfraser@localhost.localdomain c139b7ee78 [XEND] Add missing line from changeset 11653:3b7e11cbeb940
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-10 16:02:30 +01:00
Alastair Tse 6da43d0bd8 [XEND] Re-add the tap prefix because it is needed.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 18:36:25 +01:00
Alastair Tse 68784417db [XENAPI] Make vm-destroy consistent with API naming. Moved what is
known as xm destroy to vm-shutdown --force.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 17:34:13 +01:00
Alastair Tse 819c183415 [XEND] Remove extra tap: prefix for device uname.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 17:33:34 +01:00
Alastair Tse f1587234c9 [XEND] Fix bugs in vbd_create logic when handling VDIs
Attempt to handle 'tap' devices as 'vbd' devices even though the
internal configuration has no idea that 'tap' is a subclass of 'vbd'.

Add option parsing to vbd-create and vdi-create so you can override
the configuration file options.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 17:17:45 +01:00
Alastair Tse 5b13f3ae06 [XEND] Fix some bad names left behind while converting all storage to
bytes rather than KB.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 15:38:13 +01:00
Alastair Tse 5d179b7561 [XEND] XendVDI saves configuration on change.
Added a base class called AutoSaveObject that will attempt to call
save_config() if any attribute in the object changes. It isn't
particularly efficient, but we do not expect VDI to change much.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 15:34:01 +01:00
Alastair Tse 76b24ff4e2 [XEND] Updates to SR and VDI implementations
* Moved xenapi transport util method, stringify to xen.util.xmlrpclib2
* XenVDI now preserves configuration to an XML-ish file
* Update Xen API's class names to be all lowercase
* Update get_by_label to get_by_name_label and return sets as the API
  expects.
* Add support for VBD creation with a VDI reference.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-13 15:13:21 +01:00
Alastair Tse 2556368450 [XEND] Adding API stub generation to XendAPI + SR implementation for
Xen API.

Fixed *get_by_label functions to return a Set rather than only one
result.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-12 18:51:17 +01:00