Skip to contentSkip to conversation

27133: regressions - trouble: broken/fail/pass

xen-unstable test In review xen.org 2 participants 3 messages Jun 16, 2014

lore
Share & tools
lore

xen.org

author
#0 lore raw

flight 27133 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/27133/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-freebsd10-amd64 10 guest-saverestore fail REGR. vs. 26871

 test-armhf-armhf-xl           3 host-install(3)         broken REGR. vs. 26701
 test-armhf-armhf-libvirt      3 host-install(3)         broken REGR. vs. 26701

Tests which are failing intermittently (not blocking):
test-amd64-amd64-xl-winxpsp3 10 guest-localmigrate fail pass in 27112
test-amd64-i386-rhel6hvm-intel 5 xen-boot fail in 27112 pass in 27133
test-amd64-i386-xl-qemut-win7-amd64 9 guest-saverestore fail in 27112 pass in 27133 test-amd64-amd64-xl-qemut-winxpsp3 10 guest-localmigrate fail in 27112 pass in 27133 test-amd64-i386-xl-win7-amd64 10 guest-localmigrate fail in 27112 pass in 27133

Tests which did not succeed, but are not blocking:

 test-amd64-amd64-libvirt      9 guest-start                  fail   never pass
 test-amd64-i386-libvirt       9 guest-start                  fail   never pass
 test-amd64-amd64-xl-pcipt-intel  9 guest-start                 fail never pass
 test-amd64-i386-xl-qemuu-win7-amd64 14 guest-stop              fail never pass
 test-amd64-i386-xl-qemut-winxpsp3 14 guest-stop                fail never pass
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 14 guest-stop         fail never pass
 test-amd64-i386-xl-qemut-winxpsp3-vcpus1 14 guest-stop         fail never pass
 test-amd64-i386-xl-qemuu-winxpsp3 14 guest-stop                fail never pass
 test-amd64-amd64-xl-qemuu-win7-amd64 14 guest-stop             fail never pass
 test-amd64-i386-xl-qemut-win7-amd64 14 guest-stop              fail never pass
 test-amd64-amd64-xl-qemut-winxpsp3 14 guest-stop               fail never pass
 test-amd64-i386-xl-win7-amd64 14 guest-stop                   fail  never pass
 test-amd64-i386-xl-winxpsp3-vcpus1 14 guest-stop               fail never pass
 test-amd64-i386-xl-winxpsp3  14 guest-stop                   fail   never pass
 test-amd64-amd64-xl-qemut-win7-amd64 14 guest-stop             fail never pass
 test-amd64-amd64-xl-win7-amd64 14 guest-stop                   fail never pass
 test-amd64-amd64-xl-qemuu-winxpsp3 14 guest-stop               fail never pass

test-amd64-amd64-xl-winxpsp3 14 guest-stop fail in 27112 never pass

version targeted for testing:
xen 68c69978352adb5ab7c06598056f9eb88d7d6031
baseline version:
xen 7f8d8abcf6dfb85fae591a547b24f9b27d92272c

------------------------------------------------------------
People who touched revisions under test:
Andrew Cooper <[email protected]> Anthony Perard <[email protected]> Aravind Gopalakrishnan <[email protected]> Arianna Avanzini <[email protected]> Boris Ostrovsky <[email protected]> Christian Wolter <[email protected]> Christoph Egger <[email protected]>
David Vrabel <[email protected]>
David Zhuang <[email protected]>
Dietmar Hahn <[email protected]> Fabio Fantoni <[email protected]>
Feng Wu <[email protected]>
George Dunlap <[email protected]> Ian Campbell <[email protected]>
Ian Campbell <[email protected]>
Ian Jackson <[email protected]>
Jacek Konieczny <[email protected]>
Jan Beulich <[email protected]>
Jason Andryuk <[email protected]>
Juergen Gross <[email protected]>
Julien Grall <[email protected]>
Julien Grall <[email protected]>
Julien Grall<[email protected]>
Karim Allah Ahmed <[email protected]> Karim Raslan <[email protected]> Kevin Tian <[email protected]>
Konrad Rzeszutek Wilk <[email protected]> Lai Jiangshan <[email protected]>
Malcolm Crossley <[email protected]> Mukesh Rathor <[email protected]>
Paul Durrant <[email protected]>
Roger Pau Monné <[email protected]>
Samuel Thibault <[email protected]> Thomas Leonard <[email protected]>
Tim Deegan <[email protected]>
Wei Liu <[email protected]>
Wen Congyang <[email protected]>
Yang Hongyang <[email protected]>
Yang Zhang <[email protected]>
Zhigang Wang <[email protected]>
------------------------------------------------------------

jobs:

 build-amd64                                                  pass    
 build-armhf                                                  pass    
 build-i386                                                   pass    
 build-amd64-libvirt                                          pass    
 build-armhf-libvirt                                          pass    
 build-i386-libvirt                                           pass    
 build-amd64-oldkern                                          pass    
 build-i386-oldkern                                           pass    
 build-amd64-pvops                                            pass    
 build-armhf-pvops                                            pass    
 build-i386-pvops                                             pass    
 build-amd64-rumpuserxen                                      pass    
 build-i386-rumpuserxen                                       pass    
 test-amd64-amd64-xl                                          pass    
 test-armhf-armhf-xl                                          broken  
 test-amd64-i386-xl                                           pass    
 test-amd64-i386-rhel6hvm-amd                                 pass    
 test-amd64-i386-qemut-rhel6hvm-amd                           pass    
 test-amd64-i386-qemuu-rhel6hvm-amd                           pass    
 test-amd64-amd64-xl-qemut-debianhvm-amd64                    pass    
 test-amd64-i386-xl-qemut-debianhvm-amd64                     pass    
 test-amd64-amd64-xl-qemuu-debianhvm-amd64                    pass    
 test-amd64-i386-xl-qemuu-debianhvm-amd64                     pass    
 test-amd64-i386-freebsd10-amd64                              fail    
 test-amd64-amd64-xl-qemuu-ovmf-amd64                         pass    
 test-amd64-i386-xl-qemuu-ovmf-amd64                          pass    
 test-amd64-amd64-rumpuserxen-amd64                           pass    
 test-amd64-amd64-xl-qemut-win7-amd64                         fail    
 test-amd64-i386-xl-qemut-win7-amd64                          fail    
 test-amd64-amd64-xl-qemuu-win7-amd64                         fail    
 test-amd64-i386-xl-qemuu-win7-amd64                          fail    
 test-amd64-amd64-xl-win7-amd64                               fail    
 test-amd64-i386-xl-win7-amd64                                fail    
 test-amd64-i386-xl-credit2                                   pass    
 test-amd64-i386-freebsd10-i386                               pass    
 test-amd64-i386-rumpuserxen-i386                             pass    
 test-amd64-amd64-xl-pcipt-intel                              fail    
 test-amd64-i386-rhel6hvm-intel                               pass    
 test-amd64-i386-qemut-rhel6hvm-intel                         pass    
 test-amd64-i386-qemuu-rhel6hvm-intel                         pass    
 test-amd64-amd64-libvirt                                     fail    
 test-armhf-armhf-libvirt                                     broken  
 test-amd64-i386-libvirt                                      fail    
 test-amd64-i386-xl-multivcpu                                 pass    
 test-amd64-amd64-pair                                        pass    
 test-amd64-i386-pair                                         pass    
 test-amd64-amd64-xl-sedf-pin                                 pass    
 test-amd64-amd64-xl-sedf                                     pass    
 test-amd64-i386-xl-qemut-winxpsp3-vcpus1                     fail    
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1                     fail    
 test-amd64-i386-xl-winxpsp3-vcpus1                           fail    
 test-amd64-amd64-xl-qemut-winxpsp3                           fail    
 test-amd64-i386-xl-qemut-winxpsp3                            fail    
 test-amd64-amd64-xl-qemuu-winxpsp3                           fail    
 test-amd64-i386-xl-qemuu-winxpsp3                            fail    
 test-amd64-amd64-xl-winxpsp3                                 fail    
 test-amd64-i386-xl-winxpsp3                                  fail    

------------------------------------------------------------
sg-report-flight on osstest.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 1627 lines long.)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

PATCH 1/1 Implement direct IPMI power control. (Was: Re: [xen-unstable test] 27133: regressions - trouble: broken/fail/pass)

Quoted 2 lines · xen.org
 test-armhf-armhf-xl           3 host-install(3)         broken REGR. vs. 26701
 test-armhf-armhf-libvirt      3 host-install(3)         broken REGR. vs. 26701

xenuse is broken *again*:

        2014-06-15 03:34:56 Z power: setting 0 for marilith-n5
        2014-06-15 03:34:56 Z XenUse overriding $USER to osstest
        Traceback (most recent call last):
          File "/usr/groups/xenrt/production/share/control/xenrt", line 3454, in <module>
            rc = com.run(sys.argv[1], sys.argv[2:])
          File "/usr/groups/xenrt/production/share/control/xenrt", line 3401, in run
            return self.commands[command].dispatch(args, raw=self.raw)
          File "/usr/groups/xenrt/production/share/control/xenrt", line 101, in dispatch
            results = self.run(args)
          File "/usr/groups/xenrt/production/share/control/xenrt", line 3135, in run
            proxies=self.proxies)
          File "/usr/groups/xenrt/production/share/control/xenrt", line 52, in urlopen_with_retry
            raise e
        Exception: Invalid HTTP resonse code

-----8<-----------------------------

Quoted 1 line

From c7bf53f3d1e1b32587df6a74b647d799054bfcdc Mon Sep 17 00:00:00 2001

From: Ian Campbell <[email protected]>
Date: Mon, 16 Jun 2014 09:51:21 +0100
Subject: [PATCH] Implement direct IPMI power control.

The xenuse module currently used to control some machines (specifically the ARM marilith machines) is unreliable and subject to breakages on the xenrt server side.

Since xenuse/xenrt is just wrapping IPMI for these machines implement direct control via a new Osstest::PDI::impi module.

This is distinct from the existing impiextra (arbitrary ipmi commands on power status change) because IPMI power control is not idempotent, therefore it is necessary to query the current status before turning the machine on or off.

After this change the correct power method for a marilith node is:
ipmiextra on marilith-n0-mgmt.uk.xensource.com <user> <pass> chassis bootdev pxe;ipmi marilith-n0-mgmt.uk.xensource.com <user> <pass>

---
Ian, when we discussed this on IRC you expressed a preference for using freeipmitools, but since the existing ipmiextra module uses ipmitool I figured it would be better to be consistent.

---
 Osstest/PDU/ipmi.pm | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 Osstest/PDU/ipmi.pm
Osstest/PDU/ipmi.pm new file +67 -0
new file mode 100644
index 0000000..45d2946
@@ -0,0 +1,67 @@
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2014 Citrix Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+package Osstest::PDU::ipmi;
+
+use strict;
+use warnings;
+
+use Osstest;
+use Osstest::TestSupport;
+use IO::File;
+
+BEGIN {
+    use Exporter ();
+    our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
+    $VERSION     = 1.00;
+    @ISA         = qw(Exporter);
+    @EXPORT      = qw();
+    %EXPORT_TAGS = ( );
+
+    @EXPORT_OK   = qw();
+}
+
+sub new {
+    my ($class, $ho, $methname, $mgmt, $user, $pass, @opts) = @_;
+    return bless { Host => $ho,
+		   Mgmt => $mgmt,
+		   User => $user,
+		   Pass => $pass,
+		   Opts => \@opts }, $class;
+}
+
+sub pdu_power_state {
+    my ($mo, $on) = @_;
+    my $onoff= $on ? "on" : "off";
+
+    my $cmd = "ipmitool -H $mo->{Mgmt} -U $mo->{User} -P $mo->{Pass}";
+
+    my $status = `$cmd power status`
+	or die "Cannot retrieve current power status";
+    chop($status);
+    logm("$status (want $onoff)");
+    $status =~ s/^Chassis Power is (on|off)$/$1/
+	or die "Cannot parse current power status: $status";
+
+    if ( $status eq $onoff ) {
+	logm("Current power status is correct");
+	return;
+    }
+
+    system_checked("$cmd power $onoff")
+}
+
+1;
Signature · 1 line
1.9.0
#2 lore raw

Re: [PATCH OSSTEST] Implement direct IPMI power control. (Was: Re: [xen-unstable test] 27133: regressions - trouble: broken/fail/pass)

Ian Campbell writes ("[PATCH OSSTEST] Implement direct IPMI power control. (Was: Re: [Xen-devel] [xen-unstable test] 27133: regressions - trouble: broken/fail/pass)"):

Quoted 6 lines
Osstest/PDU/ipmi.pm new file +0 -0
new file mode 100644
index 0000000..45d2946
@@ -0,0 +1,67 @@

...

Osstest/PDU/ipmi.pm line 54

Quoted 3 lines
Osstest/PDU/ipmi.pm new file +3 -0
+    my $status = `$cmd power status`
+	or die "Cannot retrieve current power status";
+    chop($status);

This all looks fine except that you should be using "chomp" here rather than "chop". (You nearly always want chomp.)

With that changed, you can put my ack on it.

Ian.