refactoring the neutron components of the openstack charms

Bug #1332539 reported by James Page
8
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.

Tags: openstack

Related branches

James Page (james-page)
Changed in charms:
assignee: nobody → Liam Young (gnuoy)
status: New → Triaged
importance: Undecided → High
status: Triaged → In Progress
Revision history for this message
James Page (james-page) wrote :

# 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.

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

# neutron-openvswitch

## make lint

W: No icon.svg file.
W: no copyright file
W: no README file
I: missing recommended hook start
I: missing recommended hook stop
W: config.yaml: option rabbit-vhost does not have the keys: description
W: config.yaml: option rabbit-vhost has unknown keys: decsription

## hooks/neutron_ovs_utils.py

### register_configs

nova-common -> neutron-common - if we figure out a future use case which means nova is not on the same node this is more future proof.

### determine_packages

That's alot of code for what is essentially:

def determine_packages():
    return set(neutron_plugin_attribute('ovs', 'packages',
                                        'neutron'))

## hooks/neutron_ovs_context.py

We need to sort out the syslog and debug/verbose options as a general context helper - please make a # TODO comment there.

Comment on _neutron_security_groups is not quite correct - this comes from the neutron-api service.

## hooks/neutron_ovs_hooks.py

I'd probably skip the upgrade-charm hook - config-changed always gets called after upgrade charm anyway.

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

I've updated all the charms in response to the comments above

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

Pushed neutron-api to lp:~openstack-charmers/charms/trusty/neutron-api/trunk

We'll promulagate all new charms later this cycle along with the existing charm impacts.

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

Pushed neutron-openvswitch to lp:~openstack-charmers/charms/trusty/neutron-openvswitch/trunk

Marking 'Fix Committed'.

Changed in charms:
status: In Progress → Fix Committed
Marco Ceppi (marcoceppi)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.