13567: regressions - FAIL
flight 13567 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/13567/
Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl 11 guest-localmigrate fail REGR. vs. 13536 test-amd64-i386-xl-multivcpu 11 guest-localmigrate fail REGR. vs. 13536 test-amd64-i386-xl-credit2 11 guest-localmigrate fail REGR. vs. 13536 test-amd64-i386-xl 11 guest-localmigrate fail REGR. vs. 13536 test-i386-i386-xl 11 guest-localmigrate fail REGR. vs. 13536 test-amd64-amd64-xl-winxpsp3 9 guest-localmigrate fail REGR. vs. 13536 test-amd64-i386-xl-win7-amd64 9 guest-localmigrate fail REGR. vs. 13536 test-i386-i386-xl-winxpsp3 9 guest-localmigrate fail REGR. vs. 13536 test-amd64-amd64-xl-win7-amd64 9 guest-localmigrate fail REGR. vs. 13536 test-amd64-i386-xl-winxpsp3-vcpus1 9 guest-localmigrate fail REGR. vs. 13536 test-i386-i386-xl-win 9 guest-localmigrate fail REGR. vs. 13536 test-amd64-i386-xl-win-vcpus1 9 guest-localmigrate fail REGR. vs. 13536 test-amd64-amd64-xl-win 9 guest-localmigrate fail REGR. vs. 13536
Tests which are failing intermittently (not blocking):
test-amd64-i386-rhel6hvm-amd 7 redhat-install fail pass in 13566
Regressions which are regarded as allowable (not blocking):
test-amd64-amd64-xl-sedf-pin 10 guest-saverestore fail like 13536
test-amd64-amd64-xl-qemuu-winxpsp3 9 guest-localmigrate fail like 13536 test-i386-i386-xl-qemuu-winxpsp3 9 guest-localmigrate fail like 13536 test-amd64-amd64-xl-qemuu-win7-amd64 9 guest-localmigrate fail like 13536
test-amd64-amd64-xl-sedf 11 guest-localmigrate fail REGR. vs. 13536
Tests which did not succeed, but are not blocking:
test-amd64-amd64-xl-pcipt-intel 9 guest-start fail never pass
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass test-amd64-amd64-win 16 leak-check/check fail never pass test-amd64-i386-win-vcpus1 16 leak-check/check fail never pass test-amd64-i386-win 16 leak-check/check fail never pass test-i386-i386-win 16 leak-check/check fail never pass
version targeted for testing:
xen 353bc0801b11
baseline version:
xen 3d17148e465c
------------------------------------------------------------
People who touched revisions under test:
Christoph Egger <[email protected]>
Dario Faggioli <[email protected]>
David Vrabel <[email protected]>
Fabio Fantoni <[email protected]>
Ian Campbell <[email protected]>
Ian Campbell <[email protected]>
Ian Jackson <[email protected]>
Jan Beulich <[email protected]>
Keir Fraser <[email protected]>
Olaf Hering <[email protected]>
Roger Pau Monne <[email protected]>
Santosh Jodh <[email protected]>
Tim Deegan <[email protected]>
------------------------------------------------------------
jobs:
build-amd64 pass build-i386 pass build-amd64-oldkern pass build-i386-oldkern pass build-amd64-pvops pass build-i386-pvops pass test-amd64-amd64-xl fail test-amd64-i386-xl fail test-i386-i386-xl fail test-amd64-i386-rhel6hvm-amd fail test-amd64-i386-qemuu-rhel6hvm-amd pass test-amd64-amd64-xl-qemuu-win7-amd64 fail test-amd64-amd64-xl-win7-amd64 fail test-amd64-i386-xl-win7-amd64 fail test-amd64-i386-xl-credit2 fail test-amd64-amd64-xl-pcipt-intel fail test-amd64-i386-rhel6hvm-intel pass test-amd64-i386-qemuu-rhel6hvm-intel pass test-amd64-i386-xl-multivcpu fail test-amd64-amd64-pair pass test-amd64-i386-pair pass test-i386-i386-pair pass test-amd64-amd64-xl-sedf-pin fail test-amd64-amd64-pv pass test-amd64-i386-pv pass test-i386-i386-pv pass test-amd64-amd64-xl-sedf fail test-amd64-i386-win-vcpus1 fail test-amd64-i386-xl-win-vcpus1 fail test-amd64-i386-xl-winxpsp3-vcpus1 fail test-amd64-amd64-win fail test-amd64-i386-win fail test-i386-i386-win fail test-amd64-amd64-xl-win fail test-i386-i386-xl-win fail test-amd64-amd64-xl-qemuu-winxpsp3 fail test-i386-i386-xl-qemuu-winxpsp3 fail test-amd64-i386-xend-winxpsp3 fail test-amd64-amd64-xl-winxpsp3 fail test-i386-i386-xl-winxpsp3 fail
------------------------------------------------------------
sg-report-flight on woking.cam.xci-test.com
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images
Logs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logs
Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary
Not pushing.
(No revision log; it would be 835 lines long.)
Quoted 8 lines · xen.org
flight 13567 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/13567/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl 11 guest-localmigrate fail REGR. vs. 13536
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block add [14735] exited with error status 1
libxl: error: libxl_device.c:978:device_hotplug_child_death_cb: script: Device /dev/dm-3 is mounted in a guest domain, and so cannot be mounted now.
This is a consequence of 25733:353bc0801b11 "libxl: support custom block hotplug scripts which had the side effect of re-enabling the hotplug script's device sharing checks, which in turn has exposed the fact that during migration xl currently has both devices in existence (but thankfully not active).
One option might be to nobble those checks again but I'm going to investigate if I can make xl sequence the device teardowns in the migration so as to make it work.
Ian.
PATCH 1/1 xl: fix localhost migration after 25733:353bc0801b11
Quoted 2 lines · Ian Campbell
I'm going to investigate if I can make xl sequence the device teardowns in the migration so as to make it work.
Here is a short series which does this.
It's a bit ad-hoc, we probably want to revist this for 4.3 (if not now).
PATCH 1/1 libxl: add libxl_device_<type>_list_free helpers
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1344326374 -3600
# Node ID 0a67d3147a174a26dda2e268ca801e56a9c5b711 # Parent a7ad22e5525831dd491d7ee1fe538b7543404ac7
libxl: add libxl_device_<type>_list_free helpers
tools/libxl/libxl.c +16 -0
@@ -2090,6 +2090,14 @@ out_err:return NULL ; } +void libxl_device_disk_list_free (libxl_device_disk *list,int nr) +{ +int i; +for (i =0 ; i < nr; i++) +libxl_device_disk_dispose (&list[i]); +free (list); +} +int libxl_device_disk_getinfo (libxl_ctx *ctx,uint32_t domid,libxl_device_disk *disk,libxl_diskinfo *diskinfo) {
@@ -2759,6 +2767,14 @@ out_err:return NULL ; } +void libxl_device_nic_list_free (libxl_device_nic *list,int nr) +{ +int i; +for (i =0 ; i < nr; i++) +libxl_device_nic_dispose (&list[i]); +free (list); +} +int libxl_device_nic_getinfo (libxl_ctx *ctx,uint32_t domid,libxl_device_nic *nic,libxl_nicinfo *nicinfo) {
tools/libxl/libxl.h +9 -0
@@ -668,6 +668,11 @@ void libxl_vcpuinfo_list_free(libxl_vcpu* Initialises info with details of the given device which must be * attached to the specified domain. * +* libxl_device_<type>_list_free(*devs, int nr_dev): +* +* Dispose nr_dev elements of the array devs and then free the array +* itself. +* * Creation / Control * ------------------ *
@@ -714,6 +719,8 @@ int libxl_device_disk_destroy(libxl_ctxLIBXL_EXTERNAL_CALLERS_ONLY ;libxl_device_disk *libxl_device_disk_list (libxl_ctx *ctx,uint32_t domid,int *num); +void libxl_device_disk_list_free (libxl_device_disk *disks,int nr_disks); +int libxl_device_disk_getinfo (libxl_ctx *ctx,uint32_t domid,libxl_device_disk *disk,libxl_diskinfo *diskinfo);
@@ -739,6 +746,7 @@ int libxl_device_nic_destroy(libxl_ctx *LIBXL_EXTERNAL_CALLERS_ONLY ;libxl_device_nic *libxl_device_nic_list (libxl_ctx *ctx,uint32_t domid,int *num); +void libxl_device_nic_list_free (libxl_device_nic *nics,int nr_nics);int libxl_device_nic_getinfo (libxl_ctx *ctx,uint32_t domid,libxl_device_nic *nic,libxl_nicinfo *nicinfo);
@@ -784,6 +792,7 @@ int libxl_device_pci_destroy(libxl_ctx *libxl_device_pci *libxl_device_pci_list (libxl_ctx *ctx,uint32_t domid,int *num); +void libxl_device_pci_list_free (libxl_device_pci *pcis,int nr_pcis);/* * Functions related to making devices assignable -- that is, bound to
tools/libxl/libxl_pci.c +8 -0
@@ -1406,6 +1406,14 @@ out:return pcidevs; } +void libxl_device_pci_list_free (libxl_device_pci *list,int nr) +{ +int i; +for (i =0 ; i < nr; i++) +libxl_device_pci_dispose (&list[i]); +free (list); +} +int libxl__device_pci_destroy_all (libxl__gc *gc,uint32_t domid) {libxl_ctx *ctx =libxl__gc_owner (gc);
PATCH 1/1 xl: migrate: destroy disks on source before giving destination the "go"
In reply to Ian Campbell# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1344330518 -3600
# Node ID 773de9b98cd183ee2b595f1856fb9768709e20f7
# Parent 0a67d3147a174a26dda2e268ca801e56a9c5b711
xl: migrate: destroy disks on source before giving destination the "go"
25733:353bc0801b11 "libxl: support custom block hotplug scripts which had the (intended) side effect of re-enabling the hotplug script's device sharing checks, which in turn has exposed the fact that during migration xl currently has both devices in existence (but thankfully not active).
Fix this by destroying the disk backends before sending the GO message to the destination end (and recreating them on failure).
This is a bit of an ad-hoc solution for 4.2, we should revisit the sequencing of the operations during migration for 4.3.
tools/libxl/xl_cmdimpl.c +25 -0
@@ -3021,6 +3021,8 @@ static void migrate_domain(const char *dchar rc_buf;uint8_t *config_data;int config_len; +libxl_device_disk *disks; +int i, nr_disks =0 ;save_domain_core_begin (domain_spec, override_config_file, &config_data, &config_len);
@@ -3072,6 +3074,18 @@ static void migrate_domain(const char *dif (rc) goto failed_resume; } +/* In order to avoid having the same disk active twice +* simultaneously on a migration, which will trigger the hotplug +* script sharing detection, we must first remove the disks from +* the source domain. */ + disks =libxl_device_disk_list (ctx, domid, &nr_disks); +if (!disks) goto failed_badly; + +for (i =0 ; i < nr_disks ; i++) { + rc =libxl_device_disk_destroy (ctx, domid, &disks[i],NULL ); +if (rc) goto failed_badly; + } +/* point of no return - as soon as we have tried to say * "go" to the receiver, it's not safe to carry on. We leave * the domain renamed to %s--migratedaway in case that's helpful.
@@ -3107,6 +3121,13 @@ static void migrate_domain(const char *dfprintf (stderr,"migration sender: Trying to resume at our end.\n" ); +/* Re-add disks removed above. */ +for (i =0 ; i < nr_disks ; i++) { + rc =libxl_device_disk_add (ctx, domid, &disks[i],NULL ); +if (rc) goto failed_badly; + } +libxl_device_disk_list_free (disks, nr_disks); +if (common_domname) {libxl_domain_rename (ctx, domid, away_domname, common_domname); }
@@ -3120,6 +3141,8 @@ static void migrate_domain(const char *dfprintf (stderr,"migration sender: Target reports successful startup.\n" );libxl_domain_destroy (ctx, domid,0 );/* bang! */ fprintf (stderr,"Migration successful.\n" ); + +libxl_device_disk_list_free (disks, nr_disks);exit (0 ); failed_suspend:
@@ -3132,6 +3155,7 @@ static void migrate_domain(const char *dclose (send_fd);migration_child_report (recv_fd);fprintf (stderr,"Migration failed, resuming at sender.\n" ); +assert (!nr_disks);/* This failure path is always before disk shutdown */ libxl_domain_resume (ctx, domid,0 );exit (-ERROR_FAIL );
@@ -3146,6 +3170,7 @@ static void migrate_domain(const char *dclose (send_fd);migration_child_report (recv_fd); +libxl_device_disk_list_free (disks, nr_disks);exit (-ERROR_BADFAIL ); }
Re: [PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11
In reply to Ian CampbellIan Campbell writes ("[PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11"):
Quoted 8 lines · Ian Campbell
Quoted 2 lines
I'm going to investigate if I can make xl sequence the device teardowns in the migration so as to make it work.
Here is a short series which does this.
It's a bit ad-hoc, we probably want to revist this for 4.3 (if not now).
I think the right answer at this stage of the release is to back out the part of the recent change which is causing the problem.
In this case that means abolishing the execution of /etc/xen/scripts/block, which "libxl: support custom block hotplug scripts" had as an intended side-effect.
Ian.
Re: [PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11
Quoted 10 lines · Ian Jackson
Ian Campbell writes ("[PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11"):
Quoted 8 lines · Ian Campbell
Quoted 2 lines
I'm going to investigate if I can make xl sequence the device teardowns in the migration so as to make it work.
Here is a short series which does this.
It's a bit ad-hoc, we probably want to revist this for 4.3 (if not now).
Quoted 6 lines
I think the right answer at this stage of the release is to back out the part of the recent change which is causing the problem.
In this case that means abolishing the execution of
/etc/xen/scripts/block, which "libxl: support custom block hotplug scripts" had as an intended side-effect.
OK, I'll look into this.
Ian.
Re: [PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11
In reply to Ian JacksonQuoted 10 lines · Ian Jackson
Ian Campbell writes ("[PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11"):
Quoted 8 lines · Ian Campbell
Quoted 2 lines
I'm going to investigate if I can make xl sequence the device teardowns in the migration so as to make it work.
Here is a short series which does this.
It's a bit ad-hoc, we probably want to revist this for 4.3 (if not now).
Quoted 6 lines
I think the right answer at this stage of the release is to back out the part of the recent change which is causing the problem.
In this case that means abolishing the execution of
/etc/xen/scripts/block, which "libxl: support custom block hotplug scripts" had as an intended side-effect.
Here it is. This approach has the side effect that we now require block hotplug scripts to properly nest/reference count for localhost migration to work. e.g. the effect of add->add->remove calls to the script should be that the device remains connected until a second remove. This may be more or less trivial depending on the device
I suppose we can live with that limitation since localhost migration is mostly for test purposes.
I'm slightly concerned that this may also effect non-localhost migration. e.g. an iSCSI target which only permits a single login.
8<------------------------------------------------------------
# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1344337292 -3600
# Node ID c5f673d8b330d6195e2aa3bbf63bb594b4bc99ee
# Parent a7ad22e5525831dd491d7ee1fe538b7543404ac7
libxl: write physical-device node if user did not supply a block script
This reverts one of the intentional changes from 25733:353bc0801b11. That change exposed an issue with the xl migration protocol, which although safe triggers the hotplug scripts device sharing logic.
For 4.2 we disable this logic by writing the physical-device xenstore node ourselves if a user did not supply a script. If the user did supply a script then we continue to rely on it to write the physical-device node (not least because the script may create the device and therefore it is not available before we run the script).
This means that to support localhost migration a block hotplug script needs to be robust against adding a device twice and should not deactivate the device until it has been removed twice.
This should be revisted for 4.3.
tools/libxl/libxl.c +20 -10
@@ -1845,18 +1845,31 @@ static void device_disk_add(libxl__egc *case LIBXL_DISK_BACKEND_PHY : dev = disk->pdev_path; - script =libxl__abs_path (gc, disk->script ?:"block" , -libxl__xen_script_dir_path ()); - do_backend_phy:flexarray_append (back,"params" );flexarray_append (back, dev); -assert (script); + script =libxl__abs_path (gc, disk->script?:"block" , +libxl__xen_script_dir_path ());flexarray_append_pair (back,"script" , script); +/* If the user did not supply a block script then we +* write the physical-device node ourselves. +* +* If the user did supply a script then that script is +* responsible for this since the block device may not +* exist yet. +*/ +if (!disk->script) { +int major, minor; +libxl__device_physdisk_major_minor (dev, &major, &minor); +flexarray_append_pair (back,"physical-device" , +libxl__sprintf (gc,"%x:%x" , major, minor)); + } +assert (device->backend_kind ==LIBXL__DEVICE_KIND_VBD );break ; +case LIBXL_DISK_BACKEND_TAP : dev =libxl__blktap_devpath (gc, disk->pdev_path, disk->format);if (!dev) {
@@ -1870,12 +1883,9 @@ static void device_disk_add(libxl__egc *libxl__device_disk_string_of_format (disk->format), disk->pdev_path)); -/* -* tap devices do not support custom block scripts and -* always use the plain block script. -*/ - script =libxl__abs_path (gc,"block" , -libxl__xen_script_dir_path ()); +/* tap backends with scripts are rejected by +* libxl__device_disk_set_backend */ +assert (!disk->script);/* now create a phy device to export the device to the guest */ goto do_backend_phy;
Re: [PATCH 0 of 2] xl: fix localhost migration after 25733:353bc0801b11
Quoted 17 lines · Ian Campbell
# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1344337292 -3600
# Node IDc5f673d8b330d6195e2aa3bbf63bb594b4bc99ee
# Parenta7ad22e5525831dd491d7ee1fe538b7543404ac7
libxl: write physical-device node if user did not supply a block scriptThis reverts one of the intentional changes from 25733:353bc0801b11. That change exposed an issue with the xl migration protocol, which although safe triggers the hotplug scripts device sharing logic.
For 4.2 we disable this logic by writing the physical-device xenstore node ourselves if a user did not supply a script. If the user did supply a script then we continue to rely on it to write the physical-device node (not least because the script may create the device and therefore it is not available before we run the script).
Quoted 5 lines
This means that to support localhost migration a block hotplug script needs to be robust against adding a device twice and should not deactivate the device until it has been removed twice.
This should be revisted for 4.3.
^i
Quoted 2 lines
Signed-off-by Ian Campbell <[email protected]>
Ian J acked this IRL so I have committed.
Our reasoning is that at this stage in the release it is better to go back to the previous behaviour, which although strictly speaking wrong is harmless and has no API implications, rather than try to invent new correct APIs on short notice etc.
Ian.