refactoring the neutron components of the openstack charms
Bug #1332539 reported by
James Page
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quantum-gateway (Juju Charms Collection) |
Fix Released
|
High
|
Liam Young |
Bug Description
Tracking bug for all work related to refactoring of neutron bits out of nova-* charms.
Related branches
lp://staging/~gnuoy/charms/trusty/nova-cloud-controller/neutron-refactor
Merged
into
lp://staging/~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next
at
revision 81
- Liam Young (community): Needs Resubmitting
- James Page: Needs Fixing
-
Diff: 659 lines (+290/-68)8 files modifiedREADME.txt (+5/-0)
hooks/nova_cc_context.py (+31/-1)
hooks/nova_cc_hooks.py (+85/-33)
hooks/nova_cc_utils.py (+48/-31)
metadata.yaml (+2/-0)
revision (+1/-1)
unit_tests/test_nova_cc_hooks.py (+85/-2)
unit_tests/test_nova_cc_utils.py (+33/-0)
lp://staging/~gnuoy/charms/trusty/nova-compute/neutron-refactor
- James Page: Needs Fixing
- Liam Young (community): Needs Resubmitting
-
Diff: 134 lines (+31/-10)5 files modifiedhooks/nova_compute_hooks.py (+7/-8)
hooks/nova_compute_utils.py (+3/-2)
metadata.yaml (+3/-0)
unit_tests/test_nova_compute_hooks.py (+8/-0)
unit_tests/test_nova_compute_utils.py (+10/-0)
lp://staging/~gnuoy/charms/trusty/quantum-gateway/neutron-refactor
- Liam Young (community): Needs Resubmitting
- James Page: Needs Fixing
-
Diff: 322 lines (+135/-24)7 files modifiedconfig.yaml (+8/-0)
hooks/charmhelpers/contrib/openstack/context.py (+13/-5)
hooks/quantum_hooks.py (+17/-0)
hooks/quantum_utils.py (+8/-3)
metadata.yaml (+2/-0)
unit_tests/test_quantum_hooks.py (+47/-0)
unit_tests/test_quantum_utils.py (+40/-16)
lp://staging/~gnuoy/charm-helpers/neutron-refactor-again
- charmers: Pending requested
-
Diff: 104 lines (+37/-5)4 files modifiedcharmhelpers/contrib/openstack/context.py (+13/-5)
charmhelpers/contrib/openstack/utils.py (+2/-0)
tests/contrib/openstack/test_openstack_utils.py (+2/-0)
tests/contrib/openstack/test_os_contexts.py (+20/-0)
Changed in charms: | |
assignee: | nobody → Liam Young (gnuoy) |
status: | New → Triaged |
importance: | Undecided → High |
status: | Triaged → In Progress |
affects: | charms → quantum-gateway (Juju Charms Collection) |
tags: | added: openstack |
Changed in quantum-gateway (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
# neutron-api
## hooks/neutron_ api_hooks. py
### config_changed
Indentation of do_openstack_ upgrade is out; global of CONFIG's is not required.
### identity_ changed/ neutron_ api_relation_ joined
I'm unclear as to why you need to pass keystone identity data from the neutron-api service to the nova-cc service - the nova-cc service will have it
s own set of access credentials and must implicity be related to the same keystone service in order to function.
'_get_keystone_ info' will break if more than one keystone service unit is present as well - it just takes the last set of data found which could con
tain empty values.
Also why is the neutron- external- network configuration passed twice?
Are the relation attributed been writting directly into nova.conf in the nova-cloud- controller charm? Not sure I like this approach if so. I'd prefer to see a defined set of data being handled on both ends of the neutron-api relation.
Use of 'network_manager()' seems superflous - its always neutron in this case surely?
### neutron_ plugin_ api_relation_ joined
This is a style preference - but I prefer to see relation data passed with '-' instead of '_' in the keys.
### ha_*
This all looks OK.
## hooks/neutron_ api_context. py
### NeutronCCContext
Lots of debug prints in this codebase still :-(.
## hooks/neutron_ api_utils. py
Makes use of network_manager - this should always be neutron.
## make test
errors=6 - needs some mocking out - querying apt_cache for os_release alot.
## make lint
Needs fixing -
hooks/neutron_ api_hooks. py:217: 5: E265 block comment should start with '# '
W: No icon.svg file.
W: no copyright file
W: no README file
I: missing recommended hook start
I: missing recommended hook stop
Steal the icon.svg from the quantum-gateway charm. copyright ditto - needs a good README.
## Re-merge NSX support
Needs to pickup the changes I made into nova-compute and nova-cc for NSX. I can help with this.