<div dir="ltr">Hi,<div><br></div><div><br></div><div>I'm reaching out for help with a strange issue I've found. Running openstack queens, on ubuntu xenial.</div><div><br></div><div>We have a bunch of different sites with the same set-up, recently upgraded from mitaka to queens. However, on this one site, after the upgrade, we cannot start neutron-server. The reason is, that the ml2 plugin throws an error because it can't find auth_url from the keystone_authtoken section of neutron.conf. However, it is there in the file.</div><div><br></div><div>The ml2 plugin is calico, it fails with this error:</div><div><br></div><div><font face="monospace">2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico [-] Exception in function %s: TypeError: expected string or buffer<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico Traceback (most recent call last):<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico File "/usr/lib/python2.7/dist-packages/networking_calico/logutils.py", line 21, in wrapped<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico return fn(*args, **kwargs)<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico File "/usr/lib/python2.7/dist-packages/networking_calico/plugins/ml2/drivers/calico/mech_calico.py", line 347, in _post_fork_init<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico auth_url=re.sub(r'/v3/?$', '', auth_url) +<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico File "/usr/lib/python2.7/re.py", line 155, in sub<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico return _compile(pattern, flags).sub(repl, string, count)<br>2020-02-20 20:14:22.495 2964911 ERROR networking_calico.plugins.ml2.drivers.calico.mech_calico TypeError: expected string or buffer<br></font><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><br></div><div><br></div><div>When you look at the code, this is because neither auth_url or is found in cfg.CONF.keystone_authtoken. The config defintely exists.</div><div><br></div><div>I have copied the neutron.conf config from a working site, same error. I have copied the entire /etc/neutron directory from a working site, same error.</div><div><br></div><div>I have check with strace, and /etc/neutron/neutron.conf is the only neutron.conf being parsed.</div><div><br></div><div>Here is the keystone_authtoken part of the config:</div><div><br></div><div><font face="monospace">[keystone_authtoken]<br>auth_uri=<a href="https://api-srv-cloud.host.domain:5000">https://api-srv-cloud.host.domain:5000</a><br>region_name=openstack<br>memcached_servers=<a href="http://1.2.3.4:11211">1.2.3.4:11211</a><br>auth_type=password<br>auth_url=<a href="https://api-srv-cloud.host.domain:5000">https://api-srv-cloud.host.domain:5000</a><br>username=neutron<br>password=xxxxxxxxxxxxxxxxxxxxxxxxx<br>user_domain_name=Default<br>project_name=services<br>project_domain_name=Default<br></font></div><div><br></div><div><br></div><div>I'm struggling to understand how the auth_url config is really registered in via oslo_config.</div><div>I found an excellent exchagne on the ML here: </div><div><br></div><div><a href="https://openstack.nimeyo.com/115150/openstack-keystone-devstack-confusion-auth_url-middleware">https://openstack.nimeyo.com/115150/openstack-keystone-devstack-confusion-auth_url-middleware</a><br></div><div><br></div><div>This seems to indicate auth_url is only registered if a particular auth plugin requires it. But I can't find the plugin code that does it, so I'm not sure how/where to debug it properly.</div><div><br></div><div>If anyone has any ideas, I would really appreciate some input or pointers.</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div>Cheers,<div>Just</div></div></div></div></div>
<br>
<p style="margin:0px;background-color:rgb(255,255,255)"><font face="Calibri, sans-serif" color="#aeaaaa"><span style="font-size:14.6667px">Notice: <br>This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group.<br><br>If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses.<br><br>References to the "Ocado Group" are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time. The registered office of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.</span></font></p>