Merge lp:~hopem/charms/trusty/nova-compute/lp1489463 into lp:~openstack-charmers-archive/charms/trusty/nova-compute/next

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: 201
Proposed branch: lp:~hopem/charms/trusty/nova-compute/lp1489463
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/next
Diff against target: 90 lines (+17/-13)
2 files modified
hooks/nova_compute_hooks.py (+11/-4)
templates/kilo/nova.conf (+6/-9)
To merge this branch: bzr merge lp:~hopem/charms/trusty/nova-compute/lp1489463
Reviewer Review Type Date Requested Status
Liam Young (community) Approve
Review via email: mp+285486@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 #139 nova-compute-next for hopem mp285486
    LINT OK: passed

Build: http://10.245.162.36:8080/job/charm_lint_check/139/

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

charm_unit_test #131 nova-compute-next for hopem mp285486
    UNIT OK: passed

Build: http://10.245.162.36:8080/job/charm_unit_test/131/

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

charm_amulet_test #26 nova-compute-next for hopem mp285486
    AMULET FAIL: amulet-test failed

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

Full amulet test output: http://paste.ubuntu.com/15004581/
Build: http://10.245.162.36:8080/job/charm_amulet_test/26/

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

^ FYI, an undercloud network issue occurred as this test was being executed. I've retriggered.

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

charm_amulet_test #28 nova-compute-next for hopem mp285486
    AMULET OK: passed

Build: http://10.245.162.36:8080/job/charm_amulet_test/28/

Revision history for this message
Liam Young (gnuoy) wrote :

Approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/nova_compute_hooks.py'
--- hooks/nova_compute_hooks.py 2016-01-15 14:13:25 +0000
+++ hooks/nova_compute_hooks.py 2016-02-09 15:55:50 +0000
@@ -8,6 +8,7 @@
8 log,8 log,
9 ERROR,9 ERROR,
10 relation_ids,10 relation_ids,
11 related_units,
11 relation_get,12 relation_get,
12 relation_set,13 relation_set,
13 service_name,14 service_name,
@@ -161,6 +162,12 @@
161 if config('hugepages'):162 if config('hugepages'):
162 install_hugepages()163 install_hugepages()
163164
165 if (config('libvirt-image-backend') == 'rbd' and
166 assert_libvirt_imagebackend_allowed()):
167 for rid in relation_ids('ceph'):
168 for unit in related_units(rid):
169 ceph_changed(rid=rid, unit=unit)
170
164 CONFIGS.write_all()171 CONFIGS.write_all()
165172
166173
@@ -291,7 +298,7 @@
291298
292@hooks.hook('ceph-relation-changed')299@hooks.hook('ceph-relation-changed')
293@restart_on_change(restart_map())300@restart_on_change(restart_map())
294def ceph_changed():301def ceph_changed(rid=None, unit=None):
295 if 'ceph' not in CONFIGS.complete_contexts():302 if 'ceph' not in CONFIGS.complete_contexts():
296 log('ceph relation incomplete. Peer not ready?')303 log('ceph relation incomplete. Peer not ready?')
297 return304 return
@@ -307,10 +314,10 @@
307314
308 # With some refactoring, this can move into NovaComputeCephContext315 # With some refactoring, this can move into NovaComputeCephContext
309 # and allow easily extended to support other compute flavors.316 # and allow easily extended to support other compute flavors.
310 if config('virt-type') in ['kvm', 'qemu', 'lxc'] and relation_get('key'):317 key = relation_get(attribute='key', rid=rid, unit=unit)
318 if config('virt-type') in ['kvm', 'qemu', 'lxc'] and key:
311 create_libvirt_secret(secret_file=CEPH_SECRET,319 create_libvirt_secret(secret_file=CEPH_SECRET,
312 secret_uuid=CEPH_SECRET_UUID,320 secret_uuid=CEPH_SECRET_UUID, key=key)
313 key=relation_get('key'))
314321
315 if (config('libvirt-image-backend') == 'rbd' and322 if (config('libvirt-image-backend') == 'rbd' and
316 assert_libvirt_imagebackend_allowed()):323 assert_libvirt_imagebackend_allowed()):
317324
=== modified file 'templates/kilo/nova.conf'
--- templates/kilo/nova.conf 2015-11-04 16:06:18 +0000
+++ templates/kilo/nova.conf 2016-02-09 15:55:50 +0000
@@ -147,7 +147,7 @@
147keymap = {{ console_keymap }}147keymap = {{ console_keymap }}
148server_listen = 0.0.0.0148server_listen = 0.0.0.0
149server_proxyclient_address = {{ console_listen_addr }}149server_proxyclient_address = {{ console_listen_addr }}
150{% endif -%}150{% endif %}
151151
152[libvirt]152[libvirt]
153{% if cpu_mode -%}153{% if cpu_mode -%}
@@ -156,25 +156,22 @@
156{% if cpu_model -%}156{% if cpu_model -%}
157cpu_model = {{ cpu_model }}157cpu_model = {{ cpu_model }}
158{% endif -%}158{% endif -%}
159{% if libvirt_images_type -%}159{% if libvirt_images_type and rbd_pool -%}
160images_type = {{ libvirt_images_type }}160images_type = {{ libvirt_images_type }}
161images_rbd_pool = {{ rbd_pool }}161images_rbd_pool = {{ rbd_pool }}
162images_rbd_ceph_conf = {{ libvirt_rbd_images_ceph_conf }}162images_rbd_ceph_conf = {{ libvirt_rbd_images_ceph_conf }}
163inject_password=false163inject_password = false
164inject_key=false164inject_key = false
165inject_partition=-2165inject_partition = -2
166{% endif -%}166{% endif -%}
167{% if rbd_pool -%}
168rbd_pool = {{ rbd_pool }}
169rbd_user = {{ rbd_user }}167rbd_user = {{ rbd_user }}
170rbd_secret_uuid = {{ rbd_secret_uuid }}168rbd_secret_uuid = {{ rbd_secret_uuid }}
171{% endif -%}
172{% if live_migration_uri -%}169{% if live_migration_uri -%}
173live_migration_uri = {{ live_migration_uri }}170live_migration_uri = {{ live_migration_uri }}
174{% endif -%}171{% endif -%}
175{% if disk_cachemodes -%}172{% if disk_cachemodes -%}
176disk_cachemodes = {{ disk_cachemodes }}173disk_cachemodes = {{ disk_cachemodes }}
177{% endif -%}174{% endif %}
178175
179{% include "parts/section-database" %}176{% include "parts/section-database" %}
180177

Subscribers

People subscribed via source and target branches