Merge lp:~1chb1n/charms/trusty/nova-compute/backport-lp1427660 into lp:~openstack-charmers-archive/charms/trusty/nova-compute/trunk

Proposed by Ryan Beisner
Status: Merged
Merged at revision: 101
Proposed branch: lp:~1chb1n/charms/trusty/nova-compute/backport-lp1427660
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/trunk
Diff against target: 40 lines (+5/-0)
2 files modified
hooks/nova_compute_hooks.py (+3/-0)
unit_tests/test_nova_compute_hooks.py (+2/-0)
To merge this branch: bzr merge lp:~1chb1n/charms/trusty/nova-compute/backport-lp1427660
Reviewer Review Type Date Requested Status
Corey Bryant (community) Approve
Review via email: mp+255724@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #3196 nova-compute for 1chb1n mp255724
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/3196/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #2984 nova-compute for 1chb1n mp255724
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/2984/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #3006 nova-compute for 1chb1n mp255724
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/10784339/
Build: http://10.245.162.77:8080/job/charm_amulet_test/3006/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

FWIW, n-c next and stable trunk amulet tests now fail with the same error:

14-basic-precise-icehouse DEBUG : 2015-04-07 05:43:51,566 create_instance ERROR: instance creation timed out

14-basic-precise-icehouse DEBUG : 2015-04-09 17:37:40,545 create_instance ERROR: instance creation timed out

Revision history for this message
Ryan Beisner (1chb1n) wrote :

^ which is a separate bug (also working to triage that):
https://bugs.launchpad.net/charms/+source/nova-compute/+bug/1440953

Revision history for this message
Corey Bryant (corey.bryant) :
review: Approve
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #3017 nova-compute for 1chb1n mp255724
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.

Full amulet test output: http://paste.ubuntu.com/10789103/
Build: http://10.245.162.77:8080/job/charm_amulet_test/3017/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/nova_compute_hooks.py'
2--- hooks/nova_compute_hooks.py 2015-01-12 12:04:00 +0000
3+++ hooks/nova_compute_hooks.py 2015-04-09 17:20:53 +0000
4@@ -17,6 +17,7 @@
5 )
6 from charmhelpers.core.host import (
7 restart_on_change,
8+ service_restart,
9 )
10
11 from charmhelpers.fetch import (
12@@ -234,6 +235,8 @@
13 @restart_on_change(restart_map())
14 def ceph_joined():
15 apt_install(filter_installed_packages(['ceph-common']), fatal=True)
16+ # Bug 1427660
17+ service_restart('libvirt-bin')
18
19
20 @hooks.hook('ceph-relation-changed')
21
22=== modified file 'unit_tests/test_nova_compute_hooks.py'
23--- unit_tests/test_nova_compute_hooks.py 2015-01-09 15:40:46 +0000
24+++ unit_tests/test_nova_compute_hooks.py 2015-04-09 17:20:53 +0000
25@@ -27,6 +27,7 @@
26 'apt_update',
27 'filter_installed_packages',
28 'restart_on_change',
29+ 'service_restart',
30 # charmhelpers.contrib.openstack.utils
31 'configure_installation_source',
32 'openstack_upgrade_available',
33@@ -342,6 +343,7 @@
34 def test_ceph_joined(self):
35 hooks.ceph_joined()
36 self.apt_install.assert_called_with(['ceph-common'], fatal=True)
37+ self.service_restart.assert_called_with('libvirt-bin')
38
39 @patch.object(hooks, 'CONFIGS')
40 def test_ceph_changed_missing_relation_data(self, configs):

Subscribers

People subscribed via source and target branches