this is the fix for https://issues.citrite.net/browse/CA-184451
vswitch tests passed gracefully.
I have not removed the implementation of "enterMaintenanceMode" and "exitMaintenanceMode" - i will move this to separate pool class in future - i think i have some tickets in the backlog for that task.
Alex Brett [Thu, 12 Nov 2015 17:03:09 +0000 (17:03 +0000)]
Only schedule a machines specified job if all the machines are in the same site
At the moment you can submit a job specifying machines across sites - while they are all allocated to the job, those machines not in the same site as the first machine will not be useable by XenRT, thus leading to confusing results.
This change therefore modifies the behaviour so we reject any specified machines in a different site to the first one.
Alex Brett [Thu, 12 Nov 2015 14:24:03 +0000 (14:24 +0000)]
CA-188697 Fix checkGuestMemory and move guest memory logic to OS classes
This change creates a new property 'visibleMemory' on the OS interface, which returns the amount of memory visible to the guest in MB.
The existing method is now just a wrapper for the new method.
Also remove all concept of unit (and just define it to be in MB) from memory methods.
Daniel Lamping [Tue, 10 Nov 2015 14:54:13 +0000 (06:54 -0800)]
Merge branch 'kdumpmem' into 'master'
CA-188288 Tweaks to guest memory checks
This change takes into account the crashdump kernel when checking how much RAM is in use in a guest (can account for 6-7% of a typical guest's RAM), and increases the overall tolerance to 4% to cover some more borderline scenarios.
Tested in jobid 1224819 (rhel511 doesn't have a crashdump kernel, while rhel66 does)
Alex Brett [Tue, 10 Nov 2015 13:53:08 +0000 (05:53 -0800)]
Merge branch 'yuminstall' into 'master'
Install improvements (ready for future installer changes)
This change does the following
- Copies the entire ISO, not just selected files (I think we tell people to do this anyway, so we should probably do the same)
- A couple of tweaks to installing supp packs to cope with XS-REPOSITORY-LIST being absent (and only change permissions on it if actually modifying it)
Tested with jobs 1219016 (no supp pack) and 1219071 (with supp pack) - only tested on trunk becuase this code isn't used outside of trunk.
Daniel Lamping [Tue, 10 Nov 2015 11:54:23 +0000 (03:54 -0800)]
Merge branch 'poolscalesmb' into 'master'
Adding a XD acceptance test using SMB SR
This is an attempt to run the existing XD acceptance test suite on SMB SR.
The catch is that the site SC03 is not configured with SMB Shares. Hence for now we may have to use its adjacent site SC04 provided SMB share. This may have an impact as the large amount of data go through the router between SC03 and SC04 controller.
Also, for now, my intension is to run on a smaller set of 4 hosts with 20 guests each. Let me know how it sounds?
Daniel Lamping [Mon, 9 Nov 2015 12:47:14 +0000 (04:47 -0800)]
Merge branch 'ring0-bvt-xst-bugfix' into 'master'
Ring0 bvt xst bugfix
Enhancements in Xen-Test-Framework and solving bugs for failure of BVT.
1) Introducing delay to allow creation of log file after xl create.
2) Making each test independent of each other (removed blocker).
3) Improved error checking for existence of files.
4) Improved log reporting.
5) Modify xenconsoled config file to log all logs.
Daniel Lamping [Mon, 9 Nov 2015 12:24:59 +0000 (04:24 -0800)]
Merge branch 'oswarn' into 'master'
Warn if OS class is not as expected
This is to reduce risk before starting to rely on the OS class - check that the OS class is what we expect it to be in functions we're hoping to replace.
Daniel Lamping [Fri, 6 Nov 2015 15:12:24 +0000 (07:12 -0800)]
Merge branch 'FixCUnitTests' into 'master'
[CA-187325] Fix C unit tests runner
The unit tests for C started failing as a consequence of a change in the xapiobject code.
I've:
1. Fixed the CSDK code
2. Tweaked the name of a property. I checked for other uses and couldn't find any so it should be safe enough
3. Took the opportunity to tidy up some annoying whitespace flake8 was complaining about at the time
Check for other instances of the rename:
```
chrishard@dhcp-5-87 ~/xenrt [FixCUnitTests] $ ack isLocal
exec/testcases/xenserver/gui.py
541: localSrName = next(sr for sr in self._host.xapiObject.localSRs if sr.isLocalStorage).name