Description of problem: neutron-dist.conf is conflicting with neutron.conf when disabling notifications Here is a quick reproducer: # python args='/usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log'.split(' ') from oslo_config import cfg from neutron.common import config from neutron.common import rpc as n_rpc config.init(args[2:]) for k, v in cfg.CONF.oslo_messaging_notifications.iteritems(): print k, v transport_url None topics ['notifications'] driver ['neutron.openstack.common.notifier.rpc_notifier', 'noop'] The problem is originating in /usr/share/neutron/neutron-dist.conf and commenting the notification_driver solves the problem: [DEFAULT] verbose = True lock_path = $state_path/lock #notification_driver = neutron.openstack.common.notifier.rpc_notifier allow_overlapping_ips = True use_stderr = False api_paste_config = /usr/share/neutron/api-paste.ini [agent] root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf root_helper_daemon = sudo neutron-rootwrap-daemon /etc/neutron/rootwrap.conf and running it again: transport_url None topics ['notifications'] driver ['noop'] Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
*** Bug 1318512 has been marked as a duplicate of this bug. ***
RDO changes to remove the messaging section for neutron-dist.conf are in review. https://review.rdoproject.org/r/#/q/topic:bz1318512
*** Bug 1563389 has been marked as a duplicate of this bug. ***
Change has merged in RDO upstream so setting to POST
According to our records, this should be resolved by openstack-neutron-12.0.3-5.el7ost. This build is available now.
After logging into controller-0 node and entering into neutron server container I executed below python test case and I didn't got any error. Should I check in other nodes or containers? --- Commands executed from heat container --- CONTAINER_ID=$(sudo docker ps | awk '($2 ~ /openstack-neutron-server/){print $1}') sudo docker cp bug_1601593.py ${CONTAINER_ID}:bug_1601593.py sudo docker exec -ti ${CONTAINER_ID} python bug_1601593.py --- Output --- ['messagingv2'] . ---------------------------------------------------------------------- Ran 1 test in 0.118s OK --- content of file bug_1601593.py --- !/usr/bin/env python import unittest from oslo_config import cfg from neutron.common import config from neutron.common import rpc as n_rpc CONF = cfg.CONF class TestBug1601593(unittest.TestCase): def test_config_files(self): # Given args = ['/usr/bin/python2', '/usr/bin/neutron-server', '--config-file', '/usr/share/neutron/neutron-dist.conf', '--config-dir', '/usr/share/neutron/server', '--config-file', '/etc/neutron/neutron.conf', '--config-file', '/etc/neutron/plugin.ini', '--config-dir', '/etc/neutron/conf.d/common', '--config-dir', '/etc/neutron/conf.d/neutron-server', '--log-file', '/var/log/neutron/server.log'] # When config.init(args[2:]) print(CONF.oslo_messaging_notifications['driver']) # Then self.assertNotIn('neutron.openstack.common.notifier.rpc_notifier', CONF.oslo_messaging_notifications['driver']) if __name__ == '__main__': unittest.main()
The neutron server container is the only one that needs to be tested. This looks good to me. :-)
Another bug verified then!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3614