Comment 10 for bug 2015090

Revision history for this message
Felipe Reyes (freyes) wrote : Re: [Bug 2015090] Re: neutron.agent.dhcp.agent TypeError: 'bool' object is not subscriptable

Hi Sahid,

On Tue, 2023-04-11 at 08:33 +0000, Sahid Orentino wrote:
> Thanks a lot for this great investigation Felippe,
>
> To well understand the root cause. Could share share outputs of network,
> subnet, segement show ?

Here it's the output of list and show for network, subnet and segment:
https://pastebin.ubuntu.com/p/5jZ9nGGvvZ/ . Something that stood up (to me) while running these
commands is that the external network type 'flat' which has no segment set.

I added this log line[0] in [1] which produced this output:

2023-04-10 23:35:44.269 64730 DEBUG neutron.agent.dhcp.agent [-] XXX: segments:
[<neutron.agent.linux.dhcp.DictModel object at 0x7f2ebfe836d0>] call_driver /usr/lib/python3/dist-
packages/neutron/agent/dhcp/agent.py:210

I will try to get a better output for that DictModel object.

[0] LOG.debug('XXX: segments: %s', str(network.segments))
[1] https://opendev.org/openstack/neutron/src/tag/22.0.0/neutron/agent/dhcp/agent.py#L210