RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1270325 - neutron-ovs-cleanup fails to start with bad path to ovs plugin configuration
Summary: neutron-ovs-cleanup fails to start with bad path to ovs plugin configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-neutron
Version: Liberty
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: Liberty
Assignee: Ihar Hrachyshka
QA Contact: Ofer Blaut
URL:
Whiteboard:
: 1270964 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-09 15:53 UTC by David Moreau Simard
Modified: 2016-04-26 20:10 UTC (History)
5 users (show)

Fixed In Version: openstack-neutron-7.0.0-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-30 23:04:25 UTC
Embargoed:


Attachments (Terms of Use)

Description David Moreau Simard 2015-10-09 15:53:25 UTC
neutron-ovs-cleanup currently ships with an outdated path to the plugin configuration:

======
# cat /etc/systemd/system/multi-user.target.wants/neutron-ovs-cleanup.service
[Unit]
Description=OpenStack Neutron Open vSwitch Cleanup Utility
After=syslog.target network.target openvswitch.service
Before=neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-l3-agent.service openstack-nova-compute.service

[Service]
Type=oneshot
User=neutron
ExecStart=/usr/bin/neutron-ovs-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-ovs-cleanup --log-file /var/log/neutron/ovs-cleanup.log
ExecStop=/usr/bin/neutron-ovs-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-ovs-cleanup --log-file /var/log/neutron/ovs-cleanup.log
PrivateTmp=true
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
======

This will lead neutron-ovs-cleanup to fail:
======
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: File "/usr/bin/neutron-ovs-cleanup", line 10, in <module>
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: sys.exit(main())
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: File "/usr/lib/python2.7/site-packages/neutron/cmd/ovs_cleanup.py", line 83, in main
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: conf()
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1887, in __call__
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: raise ConfigFilesNotFoundError(self._namespace._files_not_found)
Oct 09 15:32:08 test-dmsimard.novalocal neutron-ovs-cleanup[17595]: oslo_config.cfg.ConfigFilesNotFoundError: Failed to find some config files: /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
Oct 09 15:32:09 test-dmsimard.novalocal systemd[1]: neutron-ovs-cleanup.service: main process exited, code=exited, status=1/FAILURE
Oct 09 15:32:09 test-dmsimard.novalocal systemd[1]: Failed to start OpenStack Neutron Open vSwitch Cleanup Utility.
Oct 09 15:32:09 test-dmsimard.novalocal systemd[1]: Unit neutron-ovs-cleanup.service entered failed state.
======

The configuration for the plugins is in /etc/neutron/plugins/ml2/ now.

Comment 1 David Moreau Simard 2015-10-09 15:57:49 UTC
Submitted the packaging fix here: https://review.gerrithub.io/#/c/249469/

Comment 2 John Trowbridge 2015-10-13 19:09:27 UTC
*** Bug 1270964 has been marked as a duplicate of this bug. ***

Comment 3 John Trowbridge 2015-10-13 19:10:48 UTC
packaging fix to rpm-liberty https://review.gerrithub.io/249697

Comment 4 John Trowbridge 2015-10-13 19:12:29 UTC
This is a blocker for RDO-Manager HA.

Comment 5 David Moreau Simard 2015-10-13 22:14:16 UTC
rpm-liberty merge is blocked by CI failing due to pulling the wrong package version, attempted CI fix in https://review.gerrithub.io/#/c/249710/1

Comment 6 David Moreau Simard 2015-10-14 13:45:51 UTC
Packaging fix is merged

Comment 7 David Moreau Simard 2015-10-14 14:29:38 UTC
The fix to the ovs agent configuration file path is into the packages, it is currently in the /current repository.

Comment 8 Ihar Hrachyshka 2015-10-19 11:02:32 UTC
Should also be backported to rdo-liberty branch. And new packages should be built with it included.


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