Merge lp:~gabriel-samfira/charms/trusty/neutron-api/next into lp:~openstack-charmers-archive/charms/trusty/neutron-api/next

Proposed by Gabriel Samfira
Status: Needs review
Proposed branch: lp:~gabriel-samfira/charms/trusty/neutron-api/next
Merge into: lp:~openstack-charmers-archive/charms/trusty/neutron-api/next
Diff against target: 61 lines (+15/-0) (has conflicts)
3 files modified
hooks/neutron_api_utils.py (+1/-0)
templates/kilo/ml2_conf.ini (+6/-0)
tests/basic_deployment.py (+8/-0)
Text conflict in templates/kilo/ml2_conf.ini
Text conflict in tests/basic_deployment.py
To merge this branch: bzr merge lp:~gabriel-samfira/charms/trusty/neutron-api/next
Reviewer Review Type Date Requested Status
Ryan Beisner (community) Needs Fixing
OpenStack Charmers Pending
Review via email: mp+270036@code.launchpad.net

Description of the change

This adds the decomposed Hyper-V mechanism driver for Kilo. This will allow us to deploy the nova-hyperv charm with kilo.

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #9320 neutron-api-next for gabriel-samfira mp270036
    LINT OK: passed

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

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

charm_unit_test #8618 neutron-api-next for gabriel-samfira mp270036
    UNIT OK: passed

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

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

charm_amulet_test #6233 neutron-api-next for gabriel-samfira mp270036
    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/12270133/
Build: http://10.245.162.77:8080/job/charm_amulet_test/6233/

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

Thank you for your work in this proposal. While I'll defer to a colleague for a review of the proposed content changes, I can help advise from the test perspective.

The amulet test will need to be updated in your branch to also expect the hyperv mechanism_driver in the ml2 config file for Trusty-Kilo and later.

Here is the specific failure point:
test_301_ml2_config DEBUG: Checking ml2 config file data...
...
section [ml2] mechanism_drivers:openvswitch,l2population,hyperv != expected mechanism_drivers:openvswitch,l2population
...
juju-test.conductor.017-basic-trusty-kilo DEBUG : Got exit code: 1

Here is an example from another charm test, solving a similar need:
http://bazaar.launchpad.net/~1chb1n/charms/trusty/keystone/amulet-svc-check-race-fix/view/head:/tests/basic_deployment.py#L402

review: Needs Fixing
138. By Gabriel Samfira

fix amulet test

This patch adds hyper-v to kilo, basically mirroring featureset of previous versions. Removed exception for kilo when checking mechanism drivers.

Revision history for this message
Gabriel Samfira (gabriel-samfira) wrote :

Hi Ryan,

Sorry for the late reply. This PR adds hyper-v to kilo, basically mirroring the previous versions feature-set. I modified the test and removed the condition that sets a different mechanism driver set for kilo.

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

charm_lint_check #9934 neutron-api-next for gabriel-samfira mp270036
    LINT OK: passed

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

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

charm_unit_test #9154 neutron-api-next for gabriel-samfira mp270036
    UNIT OK: passed

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

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

charm_amulet_test #6419 neutron-api-next for gabriel-samfira mp270036
    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/12409113/
Build: http://10.245.162.77:8080/job/charm_amulet_test/6419/

Revision history for this message
Gabriel Samfira (gabriel-samfira) wrote :

Would love some unit-neutron-api-0 logs.

Unmerged revisions

138. By Gabriel Samfira

fix amulet test

This patch adds hyper-v to kilo, basically mirroring featureset of previous versions. Removed exception for kilo when checking mechanism drivers.

137. By Gabriel Samfira

Added Hyper-V mechanism driver

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/neutron_api_utils.py'
2--- hooks/neutron_api_utils.py 2015-09-04 11:03:14 +0000
3+++ hooks/neutron_api_utils.py 2015-09-14 13:54:44 +0000
4@@ -74,6 +74,7 @@
5 'python-neutron-lbaas',
6 'python-neutron-fwaas',
7 'python-neutron-vpnaas',
8+ 'python-networking-hyperv',
9 ]
10
11 BASE_GIT_PACKAGES = [
12
13=== modified file 'templates/kilo/ml2_conf.ini'
14--- templates/kilo/ml2_conf.ini 2015-09-09 08:37:26 +0000
15+++ templates/kilo/ml2_conf.ini 2015-09-14 13:54:44 +0000
16@@ -4,6 +4,7 @@
17 # Configuration file maintained by Juju. Local changes may be overwritten.
18 ###############################################################################
19 [ml2]
20+<<<<<<< TREE
21 {% if neutron_plugin == 'Calico' -%}
22 type_drivers = local,flat
23 mechanism_drivers = calico
24@@ -11,6 +12,11 @@
25 type_drivers = {{ overlay_network_type }},vlan,flat,local
26 tenant_network_types = {{ overlay_network_type }},vlan,flat,local
27 mechanism_drivers = openvswitch,l2population
28+=======
29+type_drivers = {{ overlay_network_type }},vlan,flat
30+tenant_network_types = {{ overlay_network_type }},vlan,flat
31+mechanism_drivers = openvswitch,hyperv,l2population
32+>>>>>>> MERGE-SOURCE
33
34 [ml2_type_gre]
35 tunnel_id_ranges = 1:1000
36
37=== modified file 'tests/basic_deployment.py'
38--- tests/basic_deployment.py 2015-09-09 07:48:54 +0000
39+++ tests/basic_deployment.py 2015-09-14 13:54:44 +0000
40@@ -502,6 +502,7 @@
41 }
42 }
43
44+<<<<<<< TREE
45 if self._get_openstack_release() >= self.trusty_kilo:
46 # Kilo or later
47 expected['ml2'].update({
48@@ -512,6 +513,13 @@
49 expected['ml2'].update({
50 'mechanism_drivers': 'openvswitch,hyperv,l2population'
51 })
52+=======
53+ expected['ml2'].update(
54+ {
55+ 'mechanism_drivers': 'openvswitch,hyperv,l2population'
56+ }
57+ )
58+>>>>>>> MERGE-SOURCE
59
60 for section, pairs in expected.iteritems():
61 ret = u.validate_config_data(unit, conf, section, pairs)

Subscribers

People subscribed via source and target branches