osstest - howTo
Hi,
I'm trying to figure out how can Xen be tested. As far as I could find out there is a testing framework that can be used, called osstest. [1]
But this, if I got it right,this requires a reboot of the tested host, while we need to test Xen without rebooting it. There seems also to be a local version ("OSSTEST_JOB=<job> ./ts-debian-install host=bedbug" from README) but it only tests if a VM can be started.
I could also not find a list of what is actually tested. Is there such I think?
I know that my questions might be a little bit too general and I thank you for your replies.
[1] http://blog.xen.org/index.php/2013/02/02/xen-automatic-test-system-osstest/
Regards,
Mihai Bucicoiu
Quoted 4 lines · Mihai Bucicoiu
Hi,
I'm trying to figure out how can Xen be tested. As far as I could find out there is a testing framework that can be used, called osstest. [1]
What are you trying to accomplish with the testing?
Quoted 4 lines
But this, if I got it right,this requires a reboot of the tested host, while we need to test Xen without rebooting it. There seems also to be a local version ("OSSTEST_JOB=<job> ./ts-debian-install host=bedbug" from README) but it only tests if a VM can be started.
Why do you not want to reboot the host?
-George
Quoted 7 lines · George Dunlap
Quoted 4 lines · Mihai Bucicoiu
Hi,
I'm trying to figure out how can Xen be tested. As far as I could find out there is a testing framework that can be used, called osstest. [1]
What are you trying to accomplish with the testing?
This is a very good question that I don't really have an answer to it.
Quoted 5 lines
Quoted 4 lines
But this, if I got it right,this requires a reboot of the tested host, while we need to test Xen without rebooting it. There seems also to be a local version ("OSSTEST_JOB=<job> ./ts-debian-install host=bedbug" from README) but it only tests if a VM can be started.
Why do you not want to reboot the host?
We are building a live update system for Xen, and after the patch is applied we do not want to reboot, we want to test if everything is still functional. We tested our system in the sense the the VMs are still running and the services (we only tried a simple web server) inside the VM still run. New VMs can also be started. But the question is are the other services that Xen provide still available (e.g., can dom0 do all the hypercalls in a proper way).
- Mihai
Quoted 7 lines · Mihai Bucicoiu
Quoted 6 lines · George Dunlap
Quoted 4 lines · Mihai Bucicoiu
Hi,
I'm trying to figure out how can Xen be tested. As far as I could find out there is a testing framework that can be used, called osstest. [1]
Quoted 8 lines
Quoted 1 line
What are you trying to accomplish with the testing?
This is a very good question that I don't really have an answer to it.
Quoted 5 lines
Quoted 4 lines
But this, if I got it right,this requires a reboot of the tested host, while we need to test Xen without rebooting it. There seems also to be a local version ("OSSTEST_JOB=<job> ./ts-debian-install host=bedbug" from README) but it only tests if a VM can be started.
Why do you not want to reboot the host?
We are building a live update system for Xen, and after the patch is
Just courious, are you talking about patching Xen hypervisor on the fly?
Wei.
Quoted 13 lines
applied we do not want to reboot, we want to test if everything is still functional. We tested our system in the sense the the VMs are still running and the services (we only tried a simple web server) inside the VM still run. New VMs can also be started. But the question is are the other services that Xen provide still available (e.g., can dom0 do all the hypercalls in a proper way).
- Mihai
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · Wei Liu
Just courious, are you talking about patching Xen hypervisor on the fly?
Yes.
Mihai
Quoted 5 lines · Mihai Bucicoiu
Quoted 2 lines · Wei Liu
Just courious, are you talking about patching Xen hypervisor on the fly?
Yes.
That sounds awesome. When can we expect patches? :-)
I haven't taken a look at osstest yet (on my list of things to do in the next month or two), but it seems like the easiest way to use it to accomplish what you want is to add a a line to your local RC scripts to apply the patch on boot before networking is brought up. Then all the tests will be run patched.
-George
Quoted 9 lines · Mihai Bucicoiu
Hi,
I'm trying to figure out how can Xen be tested. As far as I could find out there is a testing framework that can be used, called osstest. [1]
But this, if I got it right,this requires a reboot of the tested host, while we need to test Xen without rebooting it. There seems also to be a local version ("OSSTEST_JOB=<job> ./ts-debian-install host=bedbug" from README) but it only tests if a VM can be started.
There are many ./ts-FOO scripts which you can run by hand as you wish, e.g.
OSSTEST_JOB=test-amd64-amd64-pv ./ts-host-install host=h09
OSSTEST_JOB=test-amd64-amd64-pv ./ts-xen-install host=h09
OSSTEST_JOB=test-amd64-amd64-pv ./ts-host-reboot host=h09
OSSTEST_JOB=test-amd64-amd64-pv ./ts-debian-install host=h09
OSSTEST_JOB=test-amd64-amd64-pv ./ts-debian-fixup host=h09 debian
OSSTEST_JOB=test-amd64-amd64-pv ./ts-guest-start host=h09 debianetc.
Quoted 2 lines
I could also not find a list of what is actually tested. Is there such I think?
I think this is more-or-less defined by the "make-flight" script. It's probably easiest to just look at the results page from any of the test reports[0]. Each lines of the grid corresponds to a ./ts-* script, I think.
Ian.
Ian Campbell writes ("Re: [Xen-devel] osstest - howTo"):
Quoted 5 lines · Mihai Bucicoiu
Quoted 2 lines
I could also not find a list of what is actually tested. Is there such I think?
I think this is more-or-less defined by the "make-flight" script.
Yes. That defines the tests ("jobs" in osstest-speak), ie the columns in the html grid.
Quoted 3 lines
It's
probably easiest to just look at the results page from any of the test reports[0].
Or if you run it standalone, the set of tests appears in the ad-hoc sqlite database it creates in your cwd.
Quoted 2 lines
Each lines of the grid corresponds to a ./ts-* script, I think.
Yes. Strictly speaking, each line corresponds to running one of those scripts with particular arguments - some of them are run more than once per test.
Each job is specified by make-flight to use a particular "recipe". The set of scripts and arguments to use for each recipe is defined in sg-run-job. Look after the divider comment "test recipes".
Ian.