Bug 1464694 - Adding neutron tag service plugin causing overcloud deployment to fail
Summary: Adding neutron tag service plugin causing overcloud deployment to fail
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Assaf Muller
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-24 15:42 UTC by Arie Bregman
Modified: 2017-06-25 13:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-25 13:01:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
neutron configuration file (63.44 KB, text/plain)
2017-06-24 15:42 UTC, Arie Bregman
no flags Details

Description Arie Bregman 2017-06-24 15:42:23 UTC
Created attachment 1291520 [details]
neutron configuration file

Description of problem:

Director deployment fails when passing the following heat parameter:

NeutronServicePlugins: "router,qos,trunk,metering,tag"

The failure is:

"ValueError: Multiple plugins for service TAG were configured".

Version-Release number of selected component (if applicable): openstack-neutron-9.3.1-2.el7ost.noarch

How reproducible: 100%


Steps to Reproduce:
1. Deploy OSP 10 and pass this to overcloud deployment:

NeutronServicePlugins: "router,qos,trunk,metering,tag"


Actual results: Overcloud deployment fails with "ValueError: Multiple plugins for service TAG were configured"


Expected results: Overcloud deployment passed successfully


Additional info: Attached neutron.conf

Comment 2 Assaf Muller 2017-06-25 12:18:01 UTC
The 'tag' service plugin is a 'default service plugin', as defined here:
https://github.com/openstack/neutron/blob/stable/newton/neutron/plugins/common/constants.py#L44

Those plugins are loaded automatically. What's happening is that 'tag' is being defined in neutron.conf:service_plugins, so Neutron is trying to load it twice. If you look at controller0 /var/log/neutron/server.log:

"2017-06-24 13:15:47.267 89733 DEBUG neutron.manager [-] Loading service plugins: ['router', 'qos', 'trunk', 'metering', 'tag', 'flavors', 'auto_allocate', 'timestamp', 'network_ip_availability', 'tag', 'revisions'] _load_service_plugins /usr/lib/python2.7/site-packages/neutron/manager.py:190"

(Note 'tag' appearing twice)

Then neutron-server complains that tag was defined twice and errors out.

However default tripleo-heat-templates doesn't seem to include tag by default (Good!):
https://github.com/openstack/tripleo-heat-templates/blob/2518394c2f45d5514946de962f8dfd13aa7c7377/puppet/services/neutron-base.yaml#L43

I'm assuming something in the CI system is adding the 'tag' service plugin in error. Arie I couldn't find infrared in the RHBZ component list, we can either move this bug to a different component or close it.

Comment 3 Arie Bregman 2017-06-25 13:01:25 UTC
Thanks Assaf! Closing this bug.


Note You need to log in before you can comment on or make changes to this bug.