Merge lp:~blake-rouse/maas/fix-unknown-reason into lp:~maas-committers/maas/trunk

Proposed by Blake Rouse
Status: Merged
Approved by: Blake Rouse
Approved revision: no longer in the source branch.
Merged at revision: 4861
Proposed branch: lp:~blake-rouse/maas/fix-unknown-reason
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 26 lines (+3/-3)
2 files modified
src/provisioningserver/drivers/power/__init__.py (+1/-1)
src/provisioningserver/drivers/power/tests/test_base.py (+2/-2)
To merge this branch: bzr merge lp:~blake-rouse/maas/fix-unknown-reason
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+290733@code.launchpad.net

Commit message

Log error description for unknown power error.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

lgtm!

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :
Download full text (1.0 MiB)

The attempt to merge lp:~blake-rouse/maas/fix-unknown-reason into lp:maas failed. Below is the output from the failed tests.

Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:2 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial InRelease [95.6 kB]
Hit:3 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:5 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial/main Sources [1,108 kB]
Get:6 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial/universe Sources [7,516 kB]
Get:7 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,435 kB]
Get:8 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,246 kB]
Fetched 17.4 MB in 2s (5,869 kB/s)
Reading package lists...
sudo DEBIAN_FRONTEND=noninteractive apt-get -y \
    --no-install-recommends install apache2 archdetect-deb authbind bash bind9 bind9utils build-essential bzr-builddeb chromium-browser chromium-chromedriver curl daemontools debhelper dh-apport dh-systemd distro-info dnsutils firefox freeipmi-tools git gjs ipython isc-dhcp-common libjs-angularjs libjs-jquery libjs-jquery-hotkeys libjs-yui3-full libjs-yui3-min libpq-dev make nodejs-legacy npm postgresql pxelinux python3-all python3-apt python3-bson python3-convoy python3-coverage python3-crochet python3-cssselect python3-curtin python3-dev python3-distro-info python3-django python3-django-nose python3-django-piston3 python3-dnspython python3-docutils python3-formencode python3-hivex python3-httplib2 python3-jinja2 python3-jsonschema python3-lxml python3-mock python3-netaddr python3-netifaces python3-oauth python3-oauthlib python3-openssl python3-paramiko python3-petname python3-pexpect python3-psycopg2 python3-pyinotify python3-pyparsing python3-pyvmomi python3-requests python3-seamicroclient python3-setuptools python3-simplestreams python3-sphinx python3-tempita python3-twisted python3-txtftp python3-tz python3-yaml python3-zope.interface python-bson python-crochet python-django python-django-piston python-djorm-ext-pgarray python-formencode python-lxml python-netaddr python-netifaces python-pocket-lint python-psycopg2 python-tempita python-twisted python-yaml socat syslinux-common tgt ubuntu-cloudimage-keyring wget xvfb
Reading package lists...
Building dependency tree...
Reading state information...
apache2 is already the newest version (2.4.18-1ubuntu1).
archdetect-deb is already the newest version (1.114ubuntu4).
authbind is already the newest version (2.1.1+nmu1).
bash is already the newest version (4.3-14ubuntu1).
bind9 is already the newest version (1:9.10.3.dfsg.P4-5).
bind9utils is already the newest version (1:9.10.3.dfsg.P4-5).
build-essential is already the newest version (12.1ubuntu2).
curl is already the newest version (7.47.0-1ubuntu2).
debhelper is already the newest version (9.20160115ubuntu3).
dh-apport is already the newest version (2.20.1-0ubuntu1).
dh-systemd is already the newest version (1.29ubuntu1).
distro-info is already the newest version (0.14build1).
dnsutils is al...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/provisioningserver/drivers/power/__init__.py'
2--- src/provisioningserver/drivers/power/__init__.py 2016-03-25 14:52:23 +0000
3+++ src/provisioningserver/drivers/power/__init__.py 2016-04-01 13:37:07 +0000
4@@ -177,7 +177,7 @@
5 elif isinstance(err, PowerActionError):
6 return "Failed to complete power action: %s" % err
7 else:
8- return "Failed talking to node's BMC for an unknown reason."
9+ return "Failed talking to node's BMC: %s" % err
10
11
12 class PowerDriver(PowerDriverBase):
13
14=== modified file 'src/provisioningserver/drivers/power/tests/test_base.py'
15--- src/provisioningserver/drivers/power/tests/test_base.py 2015-12-01 18:12:59 +0000
16+++ src/provisioningserver/drivers/power/tests/test_base.py 2016-04-01 13:37:07 +0000
17@@ -220,8 +220,8 @@
18 message="Failed to complete power action: action",
19 )),
20 ('unknown', dict(
21- exception=PowerError(),
22- message="Failed talking to node's BMC for an unknown reason.",
23+ exception=PowerError('unknown error'),
24+ message="Failed talking to node's BMC: unknown error",
25 )),
26 ]
27