Merge lp:~gnuoy/charms/trusty/neutron-gateway/lp1506046 into lp:~openstack-charmers-archive/charms/trusty/neutron-gateway/next

Proposed by Liam Young
Status: Merged
Merged at revision: 152
Proposed branch: lp:~gnuoy/charms/trusty/neutron-gateway/lp1506046
Merge into: lp:~openstack-charmers-archive/charms/trusty/neutron-gateway/next
Diff against target: 43 lines (+8/-8)
2 files modified
hooks/neutron_utils.py (+1/-0)
tests/basic_deployment.py (+7/-8)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/neutron-gateway/lp1506046
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+274417@code.launchpad.net
To post a comment you must log in.
153. By Liam Young

Remove debug comment

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

charm_lint_check #11897 neutron-gateway-next for gnuoy mp274417
    LINT OK: passed

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

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

charm_unit_test #11064 neutron-gateway-next for gnuoy mp274417
    UNIT OK: passed

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

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

charm_amulet_test #7337 neutron-gateway-next for gnuoy mp274417
    AMULET FAIL: amulet-test failed

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

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

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

Hi @gnuoy

FYI re: amulet fail

This is failure message is indicative of tests executing before the deployment, hooks and relations were really ready:

00:17:08.897 unexpected relation data in mysql shared-db - allowed_units:neutron-api/0

I have a WIP helper to leverage extended status messages to confirm readiness before amulet tests proceed ... which I will be working like mad to squeeze into the next charm tests before the 15.10 push.

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

charm_amulet_test #7373 neutron-gateway-next for gnuoy mp274417
    AMULET FAIL: amulet-test failed

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

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

154. By Liam Young

Reuqest new test run from osci

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

charm_lint_check #12156 neutron-gateway-next for gnuoy mp274417
    LINT OK: passed

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

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

charm_unit_test #11286 neutron-gateway-next for gnuoy mp274417
    UNIT OK: passed

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

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

charm_amulet_test #7425 neutron-gateway-next for gnuoy mp274417
    AMULET FAIL: amulet-test failed

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

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

155. By Liam Young

Fix unrelated amulet test

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

charm_lint_check #12157 neutron-gateway-next for gnuoy mp274417
    LINT OK: passed

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

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

charm_unit_test #11288 neutron-gateway-next for gnuoy mp274417
    UNIT OK: passed

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

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

charm_amulet_test #7427 neutron-gateway-next for gnuoy mp274417
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/7427/

Revision history for this message
James Page (james-page) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/neutron_utils.py'
2--- hooks/neutron_utils.py 2015-10-08 19:12:34 +0000
3+++ hooks/neutron_utils.py 2015-10-19 09:32:22 +0000
4@@ -747,6 +747,7 @@
5 fatal=True, dist=True)
6 apt_install(get_early_packages(), fatal=True)
7 apt_install(get_packages(), fatal=True)
8+ configs.set_release(openstack_release=new_os_rel)
9 configs.write_all()
10
11
12
13=== modified file 'tests/basic_deployment.py'
14--- tests/basic_deployment.py 2015-10-01 23:12:00 +0000
15+++ tests/basic_deployment.py 2015-10-19 09:32:22 +0000
16@@ -421,20 +421,19 @@
17 expected = {
18 'db_host': u.valid_ip,
19 'private-address': u.valid_ip,
20- 'password': u.not_null
21+ 'password': u.not_null,
22+ 'allowed_units': u.not_null,
23 }
24
25- if self._get_openstack_release() == self.precise_icehouse:
26- # Precise
27- expected['allowed_units'] = 'nova-cloud-controller/0 neutron-api/0'
28- else:
29- # Not Precise
30- expected['allowed_units'] = 'neutron-api/0'
31-
32 ret = u.validate_relation_data(unit, relation, expected)
33 if ret:
34 message = u.relation_error('mysql shared-db', ret)
35 amulet.raise_status(amulet.FAIL, msg=message)
36+ relation_data = unit.relation(relation[0], relation[1])
37+ allowed_units = relation_data['allowed_units'].split()
38+ if 'neutron-api/0' not in allowed_units:
39+ message = 'neutron-api/0 not found in allowed_units'
40+ amulet.raise_status(amulet.FAIL, msg=message)
41
42 def test_208_neutron_api_amqp_relation(self):
43 """Verify the neutron-api to rabbitmq-server amqp relation data"""

Subscribers

People subscribed via source and target branches