Commit Graph
29 Commits
Author SHA1 Message Date
Alastair Tse de2d2231bf [XENAPI] Make server uri easily configurable via ENV or CLI opts.
Add a vm-stat command that just polls a vm for instantaneous statistics.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-26 15:41:16 +00:00
Alastair Tse 690dd07a38 [XEND] Preliminary console support in Xen API
Made serial/vnc consoles a 'fake' device so that we can take advantage
of storing state information in xenstore.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-25 18:54:25 +00:00
Alastair Tse 16324b1aff [XEND] Add debug class to Xen API plus non-standard debug.wait().
debug.wait(seconds) will just do a time.sleep() so the task progress
support can be tested.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:59:09 +00:00
Alastair Tse 2478f46117 [XENAPI] Make test script attempt to login with blank credentials
before prompting for passwords.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:52:26 +00:00
Alastair Tse 673b964755 [XENAPI] Add vif-list to xapi.py script
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:50:02 +00:00
Alastair Tse b712f9023e [XENAPI] Update test scripts to move from VBD.image to creating VDI's
with the uri attribute.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 15:48:58 +00:00
Alastair Tse ffe6776819 Test scripts for Xen API updated to support Async support 2007-01-24 13:49:25 +00:00
Alastair Tse a19ccaa253 [XEND] Add simple VCPUs, VBDs, VIFs statistics monitoring
Keep track of xentop like statistics to expose through the Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-24 12:09:41 +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 0f07569d15 [XEND] Re-add vtpm device support in XendConfig
This patch re-adds a recently removed vTPM device handling code.
I am also removing that one code part in the test script that does not
work.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-01 17:37:42 +00:00
Alastair Tse 0ee9d7cc29 [XENAPI] Add extra param for VM.start and fix case for printing out
the output of VM.get_record.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-01 17:31:30 +00:00
Alastair Tse 3c8100f8d9 [XENAPI] Update debugging scripts to support vbd_list
Add function to list all vbds attached to a VM.
Update VM config builder to specify the default as 'linux'

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:50:27 +00:00
Alastair Tse 9f1731ecc0 [XENAPI] Make xapi.py work with modules in /usr/lib/python.
Also Add host_set_name command.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-10 12:44:47 +00:00
Ewan Mellor e5c3d644cd The attached patch implements more of the Xen-API functionality related
to the vTPM.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-09 15:27:32 +00: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 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
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 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 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
Alastair Tse 7d5ba9b430 [XEND] Conform to Xen API XMLRPC Wire Protocol Customisation
1. Int(s) all have to be String(s).
2. Enums are not transmitted as Ints, but as Descriptive Strings.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 22:50:29 +01:00
Alastair Tse fde78b356e [XENAPI] Support for VBD/VIF info listing in vm-list --long
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 16:30:35 +01:00
Alastair Tse e9fce87749 [XENAPI] Add missing function names. Proper sub command help messages.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 12:46:46 +01:00
Alastair Tse 2ebaf7314b [XENAPI] Pretty print error messages, insert simple argument parsing
framework

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 12:31:24 +01:00
Alastair Tse 5b9963f11b [XENAPI] Fix wrong vars being extracted from reading python cfg
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 12:02:29 +01:00
Alastair Tse 91c2dba337 [XENAPI] Added hard shutdown (aka. vm-destroy)
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 11:57:16 +01:00
Alastair Tse 3dae87e5fa [XENAPI] Example tools to create/destroy/shutdown VMs
Example Session:

xapi.py vm-list
xapi.py host-info
xapi.py vm-create xapi.domcfg.py
xapi.py vbd-create GentooAPI xapi.vbdcfg.py
xapi.py vif-create GentooAPI xapi.vifcfg.py
xapi.py vm-start GentooAPI
xapi.py vm-shutdown GentooAPI
xapi.py vm-delete xapi.py

signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-06 11:48:21 +01:00