aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test
Commit message (Collapse)AuthorAgeFilesLines
* xm-test: fix the ip allocation functionZhu Yanhai2013-10-031-1/+2
| | | | | | | | | __findFirstOctetIP() is expecting min and max available octets according to its code, however the caller getFreeIP() gives it the min octet and (max - min + 1), which is the length instead. Signed-off-by: Zhu Yanhai <gaoyang.zyh@taobao.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* xm-test: add a missing %sZhu Yanhai2013-09-251-1/+1
| | | | | | | Obviously we need a %s here. Signed-off-by: Zhu Yanhai <gaoyang.zyh@taobao.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
* tools: Remove the vtpm process modelMatthew Fioravante2012-11-1317-958/+0
| | | | | | | | | Remove the old vtpm process model. It doesn't work very well and is no longer supported. Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* tools/xm-test: portability fix: Avoid using == in /bin/sh scriptChristoph Egger2011-05-121-1/+1
| | | | | From: David Brownlee <abs@netbsd.org> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Remove unmaintained Access Control Module (ACM) from hypervisor.Keir Fraser2011-03-2525-2438/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* cpupools [5/6]: xm-test add-onsKeir Fraser2010-04-2115-12/+713
| | | | Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
* xend: Add support for URI ('file:' and 'data:' scheme) for PV/kernelKeir Fraser2009-08-252-1/+67
| | | | | | | | | | | | | | | | | | | | | and PV/ramdisk Add support for 'file:' and 'data:' URI schemes for the parameters 'PV/kernel' and 'PV/ramdisk' in the VM.create() call. The 'data:' scheme handling enables using a file which is stored inside the management system (from where the XenAPI call is send) as kernel or ramdisk. Notes: o all included: a detailed description can be found in the xenapi documentation o bumped up the version of the API document to 1.0.8 (because of (minimal) interface extension) o Future enhancements (like http:, ftp: schemes) fit seamlessly into the current design / classes o Unittest cases and xm-test case included Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Fix testcase '11_block_attach_shared_dom0' for up-to dateKeir Fraser2009-08-201-2/+2
| | | | | | | | | linux kernels New kernels have ext2 disabled by default. This fix uses ext3 for testcase 11_block_attach_shared_dom0. Signed-off-by: Andreas Florath <xen@flonatel.org>
* Fix xapi xm-tests.Keir Fraser2009-08-207-66/+105
| | | | | | | | | | | | | | | | There were a couple of small bugs in the xapi xm-test: o outdated XenAPI calls were removed from testcase (02_xapi-vbd_basic) o minor problem with XendLocalStorageRepository is fixed (missed list_images() function - which is moved from the XenQCoWStroageRepo to the common base class XendStorageRepository) which was detected running 02_xapi-vbd_basic. o XenAPI session handling and connecting is fixed. o 03_xapi-network_pos was rewritten and now uses XenAPI. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Add status section to xm-test/READMEKeir Fraser2009-08-201-0/+25
| | | | | | | The resport functionality is not removed because there is the hope that somebody sets up the server side infrastructure. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test restore: use ext3 (instead of ext2) and xvda (instead of hda)Keir Fraser2009-08-051-17/+17
| | | | | | | | | This patch fixes the xm-test restore 04 testcase: o uses ext3 instead of ext2 - which is not supported by the standard kernel config o uses xvdX instead of hdX for disks Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: fix network13 test (protocol and extensions)Keir Fraser2009-08-053-19/+31
| | | | | | | | | | | Attached there is a patch that fixes the used protocol (was udp - but nobody was listening...) to icmp echo and added the extension, that the dom0 and the other guest ips are also pinged. Because of the many different scenarios (three nested loops) over packet sizes, two guests and different ip addresses, one run of this test case takes now about 4.5 minutes. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Adapt memory setting to up-to-date kernel memory consumptionKeir Fraser2009-08-051-1/+1
| | | | | | | | | | The attached patch fixes xm-test memset 04 that it can be used with up to date kernels. The old version sets the memory to 15MByte which is too low for modern kernels: the oom-killer in this case kills the login shell of the test-case and init. Increased the size to 18M which gives the userspace about 2.5 MByte memory. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: 10_block_attach_detach_multiple_devices fixedKeir Fraser2009-08-052-32/+40
| | | | | | | | This patch fixes and (re-)enables test 10 of the block-create suite. The tests by random attach and detach devices to / from a domU and checks if everything is ok. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test block-create: use ext3 as filesystemKeir Fraser2009-08-051-2/+4
| | | | | | | | | The current implementation uses ext2 for tests. The tests currently fail, because the current kernel does not support ext2 by default. This patch creates an ext3 filesystem for the tests. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: ramdisk fs type is changed to ext3 if neededKeir Fraser2009-08-021-0/+9
| | | | | | | | This (one line) patch changes the type of the xm-test initrd from ext2 to ext3 when needed. It first checks, if ext2 support is missing and ext3 support is available. If so the fs type is changed to ext3. Signed-off-by: Andreas Florath <xen@flonatel.org>
* xm-test: Fix memset 01 and 02 tests: add support for sysfs memory interfaceKeir Fraser2009-07-295-42/+77
| | | | | From: Andreas Florath <xen@flonatel.org> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* tools: remove hard coded paths in example config filesKeir Fraser2009-06-241-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xm-test: Identifying the network env specified in xend config fails,Keir Fraser2009-03-061-3/+5
| | | | | | | | | if an additional parameter is given for the network-bridge (e.g. netdev=eth1) The patch splits the network command into the command name and its parameters to determine the netenv (bridge, route, nat) Signed-off-by: juergen.gross@fujitsu-siemens.com
* xm-test: Remove a policy reset from acm test caseKeir Fraser2008-07-031-5/+0
| | | | | | | | Remove the resetting of the policy from this point in the test case since the new default policy has the '__UNLABELED__' label, which is not expected in subsequent checks. Signed-off-by; Stefan Berger <stefanb@us.ibm.com>
* Fix up python breakage for blkdev_name_to_numberKeir Fraser2008-06-301-1/+1
| | | | Signed-off-by: Chris Lalancette <clalance@redhat.com>
* Remove defunct powerpc port.Keir Fraser2008-05-086-389/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xm-test: Have domains deleted if they are managed domainsKeir Fraser2008-03-031-2/+2
| | | | | | | Have the domains deleted if they are managed by xend and the tests are run with '-md' as parameter to runtest.sh. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* tools/docs: Fix example and default IP addresses.Keir Fraser2008-01-175-31/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In various places in documentation and code, IP addresses are provided as examples, defaults, or dummy configuration. In general the specific IP addresses used in Xen are not always appropriate. (For example, 1.2.3.4 is used in a few places!) The following addresses should be used: * For examples and documentation, 192.0.2.0/24. (See RFC3330.) * For defaults for private networks, a random network from RFC1918. I have randomly selected 172.30.206.0/24 for this purpose and documented this in at the only registry I know of, www.ucam.org/cam-grin. This network should henceforth be used for default configurations of local bridges, test networks, etc. in Xen tools. The following addresses should NOT be used: * 10.0.*.*, 10.1.*.*, 192.168.0.*, 192.168.1.*, etc. Using these addresses gives greatly increased likelihood of collision, as ignorant network administrators and reckless middlebox vendors often pick networks from the bottom of 10/8 and 192.168/16. * 169.254.*.*. These are reserved for zeroconf (ad-hoc networking) and should not be used for Xen private networks, bridges, etc., etc. Use of these addresses by Xen scripts causes trouble on hosts (eg laptops) which find themselves in ad-hoc networking environments. I think this is not hypothetical (!) since at least one Linux distribution have specific code to detect this case and cause Xen startup to fail iff the host already has an external zeroconf address. * 1.2.3.4. WTF !? I have also used 127.0.255.255 in one place where apparently a dummy address is needed (some Linux kernels won't accept a lack of an NFS server address). If 127.0.255.255 is mistakenly used it is unlikely to do any damage to real traffic even if it does escape into the network at large. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Fix some build system error handling.Keir Fraser2007-12-201-4/+4
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xm-test: Don't run security test if ACM is not enabled.Keir Fraser2007-12-101-1/+10
| | | | | | | | | I forgot to put in the check to prevent this test case from running when ACM is not compiled into Xen. I am resetting the policy so that an update with the prepared policy can be done without changing that policy's header to match the current policy's version. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test, acm: fixes an API call due to recent changes.Keir Fraser2007-12-081-1/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: An additional ACM security test case for the test suite.Keir Fraser2007-12-064-4/+479
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Implement legacy XML-RPC interface for ACM commands.Keir Fraser2007-12-053-54/+12
| | | | | | | | | | | | | | | | | | | | | | | | This patch implements a (non Xen-API) legacy XML-RPC interface for the ACM commands and funnels the calls into code introduced by the Xen-API support for ACM security management. Since some of the functionality has changed, also the xm applications have changed. In particular the following old commands have been removed along with some tools the have become obsolete now: - loadpolicy (included in: setpolicy) - makepolicy (included in: setpolicy) - cfgbootpolicy (included in: setpolicy) and the following commands been introduced: - setpolicy - getpolicy - resetpolicy All tools have been adapted to work in Xen-API and legacy XML-RPC mode. Both modes support the same functionality. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: various fixesKeir Fraser2007-10-253-4/+14
| | | | | | | | | | | - recently I added an other_config field to the VTPM record which now needs to be accounted for otherwise the test determines a bad key - the dry-run command was throwing a different type of exception (ACMError) than what was caught (XSMError) - the tests based on the raw Xen-API need to build the PV_args parameters from the old 'root' and 'extra' parameters. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Replace sysctl.physinfo.sockets_per_node with more directly usefulKeir Fraser2007-10-192-5/+2
| | | | | | | | sysctl.physinfo.nr_cpus. This also avoids miscalculation of sockets_per_node by Xen where the number of CPUs in the system is clipped. From: Elizabeth Kon <eak@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xm-test: Fix bugzilla #1051.Keir Fraser2007-10-022-3/+3
| | | | | | | | This is a patch to fix xm-test's network errors http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1051 From: Lukasz Szymanski <Lukasz.Szymanski@unisys.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XM-TEST] Fixes a parameter to the external tools usedKeir Fraser2007-09-201-1/+1
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [xm-test] Set "console=xvc0" for xm-test guests on Intel architecture platforms.James Bulpin2007-09-111-1/+6
| | | | | | | Tests have been failing because the console for the test ramdisk wasn't using xvc0 so testcases were not able to interact with it. Signed-off-by: James Bulpin <james@xensource.com>
* Fix xm-test python import after XSM security changes.kfraser@localhost.localdomain2007-09-065-5/+8
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* xm-test: Allow dom0 network interface used in tests to be overridenJames Bulpin2007-08-124-7/+17
| | | | ./configure --with-dom0-intf=<intf> (default vif0.0)
* [ACM] Some more fixeskfraser@localhost.localdomain2007-07-303-0/+22
| | | | | | | | | | | - don't reload the policy if it has been loaded - don't always load the policy in the test suite when the policy is already loaded - skip tests 07 and 09 when ACM is not enabled and xm is not using the Xen-API - fix a problem when trying to remove an invalid label Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [Xm-Test] Additional tests for the xm-test suitekfraser@localhost.localdomain2007-07-188-19/+1247
| | | | | | | This adds a couple of test cases exercising the new policy management functionality to the security tests. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [VTPM] Make vTPM hotplug scripts use the UUID of the vTPM instancekfraser@localhost.localdomain2007-07-179-97/+38
| | | | | | | | | | Make the vTPM hotplug script use the UUID of the vTPM instance for associating it with its instance number rather than the name of the domain. Also change the cleanup in the xm test to use the atexit mechanism rather than explicitly calling a function to clean up. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Extended the physinfo sysctl to export NUMA cpu_to_node topology info.kfraser@localhost.localdomain2007-07-061-3/+1
| | | | | | Print this in 'xm info'. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xm-test: ia64 min memory & arbitrarily large ramdiskkfraser@localhost.localdomain2007-05-241-0/+14
| | | | | | | | | | | | | | | | | | | 1) Sets a minimum of 128MB RAM for an ia64 domU; this limit was set after experimentation, which seems to indicate it's a reasonable lower limit (the 32MB limit previously in place did not allow an ia64 domU to start). If there's any problem with this, I don't mind splitting the patch and sending it to the ia64 list, but it was small, so I hope it's okay to include it. 2) xm-test uses ramdisks built with uClibc, which doesn't compile on ia64. I was able to create a ramdisk by hand, but as it was too large, the resultant domU crashed after boot. This patch enables the use of an arbitrarily large ramdisk, so long as it's uncompressed. As xm-test builds only uncompressed ramdisks, I figured this was reasonable for that specific application. Suggestions on how to detect and handle a compressed ramdisk would be welcome. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* [XM-TEST] Add test for new network functionsTom Wilkie2007-04-262-1/+73
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* [XM-TEST] Move network_utils.py to lib directoryTom Wilkie2007-04-264-5/+9
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* acm: Changes to XML schema of the policykfraser@localhost.localdomain2007-04-251-0/+1
| | | | | | | | | | | This patch changes the XML schema of the ACM policy to require a version and that every conflict set have a name. Every VM label must have one Chinese Wall Type and every resource label one Simple Type Enforcement Type. As a consequence of this some example policies needed to be changed. Also not offering that many configuration options for compiling xen anymore to make things simpler. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: Scale memory parameter for tests using XenAPIDomain.kfraser@localhost.localdomain2007-04-241-0/+2
| | | | | | | | | Scale the memory parameter for domains using the XenAPIDomain to create a domain. Those domains use the normal configuration where the memory parameter is given in 'Mb', so it needs to be adapted to 'bytes'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [vtpm] Return a proper error when in the Xen-API call.Keir Fraser2007-04-191-1/+1
| | | | | | Fix a bug in the test. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Make Xm Test default to bridge when cannot read config fileTom Wilkie2007-04-121-1/+5
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Remove unused import; library movedTom Wilkie2007-03-281-1/+0
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Make 06_destroy_dom0_neg pass with xm via XenAPI.Tom Wilkie2007-03-261-1/+1
| | | | | | Make check case insensitive. signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix typos.Ewan Mellor2007-03-232-2/+2
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>