Merge lp:~gnuoy/charms/trusty/nova-cloud-controller/next-1392645 into lp:~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next

Proposed by Liam Young
Status: Merged
Merged at revision: 124
Proposed branch: lp:~gnuoy/charms/trusty/nova-cloud-controller/next-1392645
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next
Diff against target: 60 lines (+16/-16)
2 files modified
hooks/nova_cc_utils.py (+2/-6)
unit_tests/test_nova_cc_utils.py (+14/-10)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/nova-cloud-controller/next-1392645
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+241775@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

UOSCI bot says:
charm_lint_check #1031 nova-cloud-controller-next for gnuoy mp241775
    LINT OK: passed

LINT Results (max last 5 lines):
  I: config.yaml: option os-admin-network has no default value
  I: config.yaml: option haproxy-client-timeout has no default value
  I: config.yaml: option ssl_cert has no default value
  I: config.yaml: option nvp-l3-uuid has no default value
  I: config.yaml: option os-internal-network has no default value

Full lint test output: http://paste.ubuntu.com/9002939/
Build: http://10.98.191.181:8080/job/charm_lint_check/1031/

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

UOSCI bot says:
charm_unit_test #865 nova-cloud-controller-next for gnuoy mp241775
    UNIT OK: passed

UNIT Results (max last 5 lines):
  hooks/nova_cc_hooks 442 145 67% 132-135, 148-149, 173, 184-185, 189, 221, 226-231, 242, 322-325, 333-336, 342-345, 355-371, 380-382, 392-406, 410-419, 505, 515, 519-520, 573, 579-589, 594-605, 615-625, 630-669, 679-694, 702-706, 731-740, 764, 769-777, 803, 853-856
  hooks/nova_cc_utils 445 112 75% 296-301, 312-315, 325-326, 382, 384, 430-432, 436, 450-458, 465-470, 474-488, 544, 593-595, 600-603, 608, 612, 636-637, 651-653, 674-675, 681-704, 708-714, 718-724, 730, 736, 743, 754-758, 843, 903-909, 913-915, 919-922, 926-938
  TOTAL 1038 366 65%
  Ran 96 tests in 8.937s
  OK

Full unit test output: http://paste.ubuntu.com/9002942/
Build: http://10.98.191.181:8080/job/charm_unit_test/865/

125. By Liam Young

Remove test_upgrade_havana_icehouse_apirel test as the presence of the neutron api relation no longer effects the upgrade. Add a icehouse -> juno test and ensure the neutron db is stamped and upgraded

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

UOSCI bot says:
charm_amulet_test #410 nova-cloud-controller-next for gnuoy mp241775
    AMULET OK: passed

AMULET Results (max last 5 lines):
  juju-test.conductor.15-basic-trusty-icehouse RESULT :
  juju-test.conductor DEBUG : Tearing down osci-sv07 juju environment
  juju-test.conductor DEBUG : Calling "juju destroy-environment -y osci-sv07"
  WARNING cannot delete security group "juju-osci-sv07-0". Used by another environment?
  juju-test INFO : Results: 3 passed, 0 failed, 0 errored

Full amulet test output: http://paste.ubuntu.com/9003316/
Build: http://10.98.191.181:8080/job/charm_amulet_test/410/

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

UOSCI bot says:
charm_lint_check #1032 nova-cloud-controller-next for gnuoy mp241775
    LINT OK: passed

LINT Results (max last 5 lines):
  I: config.yaml: option os-admin-network has no default value
  I: config.yaml: option haproxy-client-timeout has no default value
  I: config.yaml: option ssl_cert has no default value
  I: config.yaml: option nvp-l3-uuid has no default value
  I: config.yaml: option os-internal-network has no default value

Full lint test output: http://paste.ubuntu.com/9003421/
Build: http://10.98.191.181:8080/job/charm_lint_check/1032/

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

UOSCI bot says:
charm_unit_test #866 nova-cloud-controller-next for gnuoy mp241775
    UNIT OK: passed

UNIT Results (max last 5 lines):
  hooks/nova_cc_hooks 442 145 67% 132-135, 148-149, 173, 184-185, 189, 221, 226-231, 242, 322-325, 333-336, 342-345, 355-371, 380-382, 392-406, 410-419, 505, 515, 519-520, 573, 579-589, 594-605, 615-625, 630-669, 679-694, 702-706, 731-740, 764, 769-777, 803, 853-856
  hooks/nova_cc_utils 445 112 75% 296-301, 312-315, 325-326, 382, 384, 430-432, 436, 450-458, 465-470, 474-488, 544, 593-595, 600-603, 608, 612, 636-637, 651-653, 674-675, 681-704, 708-714, 718-724, 730, 736, 743, 754-758, 843, 903-909, 913-915, 919-922, 926-938
  TOTAL 1038 366 65%
  Ran 96 tests in 9.423s
  OK

Full unit test output: http://paste.ubuntu.com/9003433/
Build: http://10.98.191.181:8080/job/charm_unit_test/866/

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

UOSCI bot says:
charm_amulet_test #411 nova-cloud-controller-next for gnuoy mp241775
    AMULET OK: passed

AMULET Results (max last 5 lines):
  juju-test.conductor.15-basic-trusty-icehouse RESULT :
  juju-test.conductor DEBUG : Tearing down osci-sv07 juju environment
  juju-test.conductor DEBUG : Calling "juju destroy-environment -y osci-sv07"
  WARNING cannot delete security group "juju-osci-sv07-0". Used by another environment?
  juju-test INFO : Results: 3 passed, 0 failed, 0 errored

Full amulet test output: http://paste.ubuntu.com/9003781/
Build: http://10.98.191.181:8080/job/charm_amulet_test/411/

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/nova_cc_utils.py'
2--- hooks/nova_cc_utils.py 2014-10-23 16:39:43 +0000
3+++ hooks/nova_cc_utils.py 2014-11-14 10:16:05 +0000
4@@ -519,12 +519,8 @@
5 # NOTE(jamespage) upgrade with existing config files as the
6 # havana->icehouse migration enables new service_plugins which
7 # create issues with db upgrades
8- if relation_ids('neutron-api'):
9- log('Not running neutron database migration as neutron-api service'
10- 'is present.')
11- else:
12- neutron_db_manage(['stamp', cur_os_rel])
13- migrate_neutron_database()
14+ neutron_db_manage(['stamp', cur_os_rel])
15+ migrate_neutron_database()
16 reset_os_release()
17 configs = register_configs(release=new_os_rel)
18 configs.write_all()
19
20=== modified file 'unit_tests/test_nova_cc_utils.py'
21--- unit_tests/test_nova_cc_utils.py 2014-10-23 16:39:43 +0000
22+++ unit_tests/test_nova_cc_utils.py 2014-11-14 10:16:05 +0000
23@@ -664,23 +664,27 @@
24 @patch.object(utils, 'get_step_upgrade_source')
25 @patch.object(utils, 'migrate_nova_database')
26 @patch.object(utils, 'determine_packages')
27- def test_upgrade_havana_icehouse_apirel(self, determine_packages,
28- migrate_nova_database,
29- get_step_upgrade_source):
30- "Simulate a call to do_openstack_upgrade() for havana->icehouse api"
31- self.test_config.set('openstack-origin', 'cloud:precise-icehouse')
32+ def test_upgrade_icehouse_juno(self, determine_packages,
33+ migrate_nova_database,
34+ get_step_upgrade_source):
35+ "Simulate a call to do_openstack_upgrade() for icehouse->juno"
36+ self.test_config.set('openstack-origin', 'cloud:trusty-juno')
37 get_step_upgrade_source.return_value = None
38- self.os_release.return_value = 'havana'
39- self.get_os_codename_install_source.return_value = 'icehouse'
40+ self.os_release.return_value = 'icehouse'
41+ self.get_os_codename_install_source.return_value = 'juno'
42 self.eligible_leader.return_value = True
43- self.relation_ids.return_value = ['neutron-api/0']
44+ self.relation_ids.return_value = []
45 utils.do_openstack_upgrade()
46+ neutron_db_calls = [call(['stamp', 'icehouse']),
47+ call(['upgrade', 'head'])]
48+ self.neutron_db_manage.assert_has_calls(neutron_db_calls,
49+ any_order=False)
50 self.apt_update.assert_called_with(fatal=True)
51 self.apt_upgrade.assert_called_with(options=DPKG_OPTS, fatal=True,
52 dist=True)
53 self.apt_install.assert_called_with(determine_packages(), fatal=True)
54- self.register_configs.assert_called_with(release='icehouse')
55- self.assertEquals(self.ml2_migration.call_count, 1)
56+ self.register_configs.assert_called_with(release='juno')
57+ self.assertEquals(self.ml2_migration.call_count, 0)
58 self.assertTrue(migrate_nova_database.call_count, 1)
59
60 @patch.object(utils, '_do_openstack_upgrade')

Subscribers

People subscribed via source and target branches