Alastair Tse
4abcfe99ad
[XEND] Fix check for whether domain is running.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-06 16:40:39 +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
943f4e6d26
[XEND] Proper support for devices with UUID. Removing old workaround
...
with augmented VM UUIDs with devids.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-06 16:27:06 +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
41bd30a5b4
[XEND] Keep track of attached vbds and vifs for XenAPI
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-06 12:30:46 +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
901b309fb6
[XEND] Remove annoying debugging messages
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-06 11:56:36 +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
Alastair Tse
ad6aa72b7f
[XEND] Fix shutdown reasons from Xen API
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 20:03:16 +01:00
Alastair Tse
5559c46194
[XEND] Another attempt at fixing escaping logic in SXP
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 20:02:50 +01:00
Alastair Tse
d3602e826b
[XEND] Fix XenAPI Host interface so that get_record works.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 19:13:52 +01:00
Alastair Tse
b2b451d4cd
[XEND] Fix many typos with VM interface to XenAPI
...
1. Python XMLRPC does not allow integer keys to structs.
2. Typo with on_suspend and on_preserve
3. Changed all tuples in constants to lists so .index() works.
4. Made get_vcpus_utils to return seconds of CPU time.
5. Fix flawed login in VM.get_record()
2006-10-05 18:48:54 +01:00
Alastair Tse
7e63b4bf7e
[XEND][XM] Fix bug in XendDomainInfo.recreate introduced by refactoring.
...
* Replaced autostart and autostop with more descriptive on_xend_start
and on_xend_stop for the configuration.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 18:24:18 +01:00
Alastair Tse
df71ef8ba1
[XM] Add missing parameter to XM XMLRPC call so that we get the
...
devices in xm list --long
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 18:22:13 +01:00
Alastair Tse
4d934dd465
[XEND] Comments cleanups
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:20 +01:00
Alastair Tse
0e91588905
[XEND] Remove misleading debugging message
...
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=732
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:20 +01:00
Alastair Tse
30e2b73051
[XM][XEND] Speed up xm list
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:20 +01:00
Alastair Tse
4c1d89c12c
[XEND] Exposing the XendAPI module in the XMLRPCServer
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
e9a4477bde
[XM] new.py that implements adding an unstarted domain
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
43b265a495
[XM] Add commands to implement lifecycle commands via the XM XMLRPC interface.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
7904cd04b9
[XEND] Make SXP be compatible with sequencetypes (Tuples and Lists)
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
97465697cb
[XEND][XENAPI] XendNode implementation for Xen API Host, Host CPUs
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
1d9888c989
[XEND] Add a convenience function for UUID generation
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
02af4f3cd3
[XEND][XENAPI] XendCheckpoint should use XendConfig for passing configs.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
8eb29e99bd
[XEND] Implementation of Xen-API in a separate module.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
2a44e6fed4
[XEND] Change blkif to use the new style configuration
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
02ba67937c
[XEND] Massive XendDomain XendDomainInfo reorganisation to use XendConfig.
...
* Added some constants to do with lifecycle management in XendDomain
* Added docstrings
* Made all private functions prefixed with an underscore (_)
* Added lifecycle management in XendDomain which stores configs in SXP
format.
* Added bits of XenAPI support.
* Moved all XendDomainInfo constants to a separate file
* Moved most of the domain creation login into XendDomainInfo rather
than in module level functions.
* Moved to use Xen API compatible reporting of state.
* Reorganised methods into logical groups in XendDomain and XendDomainInfo
* Moved all domain configuration validation into XendConfig
* Removed DevController cruft from the bottom of XendDomainInfo to
XendDevices.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
9caccb8f48
[XEND] XendConfig is an extended python dictionary that is used to exchange
...
VM configuration information to allow easy import and export to different
file types.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
00a4566470
[XEND] Refactoring device controllers to its own module so it can be used by both XendConfig and XendDomainInfo.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
965e9d0ac4
[XEND][XENAPI] Split Xend global constants out to its own file.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
19ce2d7016
[XEND][XENAPI] Adding some default Xen API Errors
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
84269c54b1
[XEND] Minor code formatting changes to XendRoot.py
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
5bbd381a3b
[XEND][LIFECYCLE] Configurable storage path for lifecycle support
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
80e180d5b3
[XEND] Clean up some keyword clashes with XendCheckpoint
...
- Replaced str with domstr
- Disabled changing domain name while migrating
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
61c5734192
[XEND] Xen API Auth Manager for handling sessions
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
ef46d763af
[XEND] Make XMLRPC Server shutdown cleanly.
...
We can now catch the end of Xend and clean up domains accordingly.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
Alastair Tse
d03a635aec
[XEND] Make logging an optional parameter for the XMLRPCServer
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
fa82d0c586
[XEND] Replace dom with domid.
...
* Also removed stray semicolon
* Fixed whitespace for pciif.py
* Moved DEV_MIGRATE_TEST to xen.xend.__init__.py
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
70527787db
[XEND] Python API break. Replacing ambiguious 'dom' with 'domid'
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
4cd942004e
[XEND] Minor stylistic fixes for XendBootloader.py
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
4c89cbf41f
[XEND] Make import sxp into absolute import.
...
* Replacing import sxp with from xen.xend import sxp to avoid
confusion.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk
39c3a03dfa
[XEND] Fix backslash escaping so it ignores escapes if they don't make sense.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-10-05 17:29:19 +01:00
kaf24@firebug.cl.cam.ac.uk
bd769a8dd5
[HVM][TOOLS] Improve warnign message when trying to create
...
an HVM guest on a non-capable platform.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-30 11:35:02 +01:00
Andrew Warfield
8e7cc683c5
[BLKTAP][XEND] Fix blktap to work with a bootloader
...
If a Xen guest has a bootloader configured, then it will fail to start
on a blktap image. The problem is blkdev_uname_to_file, which cannot
parse the "tap:aio:$filename" image strings: it tries to split the
string apart at ":" and assign the result to a 2-tuple, and this
results in a python error if the split results in three or more
strings.
The fix is to split only at the first ":", and then to split again
if we detect "tap:" as the image type.
Signed-off-by: Stephen Tweedie <sct@redhat.com >
2006-09-28 12:12:59 -07:00
atse@norwich.uk.xensource.com
fbda4315cd
[XM] Report proper ACMError(s) instead of silently exiting.
...
Remove try except blocks so that ACMError(s) are properly reported to
the user rather than silently fail.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:46:09 +01:00
atse@norwich.uk.xensource.com
9a7d719155
[XM] Remove traceback printing from load/makepolicy.py.
...
Should pass the exception along to xm/main.py to handle properly like
the rest of the commands.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:29:52 +01:00
atse@norwich.uk.xensource.com
665dff5cd1
[XM] Fix stray quotes in usage message in getlabel.py
...
Fixed built-in function name conflict.
Raise correct exceptions for when option is invalid to be properly
reported by xm.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:23:21 +01:00
atse@norwich.uk.xensource.com
3c9f8469ed
[XM] Fix error reporting for resources.py, remove duplicate try block.
...
Also fixed usage message to not include misspelling of the command.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:16:11 +01:00