yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91831
[Bug 2018375] [NEW] routed networks prefilter exception due to subnets can have no segments
Public bug reported:
Since some subnets can not have some related segments, the
subnet.segment_uuid value can be None but unfortunately, the
routed_networks_filter prefilter doesn't support it.
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server [req-ed1b01c5-01bd-493f-8b56-b4cb21e29f59 e416974adb7a44fd910a40b208d28e9f
d7b8b3323ea64f35adeec903c340a19e - default default] Exception during message handling: KeyError: 'segment_id'
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 165, in
_process_incoming
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in
dispatch
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in
_do_dispatch
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 241, in inner
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server return func(*args, **kwargs)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/manager.py", line 140, in
select_destinations
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server request_filter.process_reqspec(ctxt, spec_obj)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/request_filter.py", line 387, in
process_reqspec
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server filter(ctxt, request_spec)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/request_filter.py", line 41, in
wrapper
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server ran = fn(ctxt, request_spec)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/request_filter.py", line 348, in
routed_networks_filter
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server aggregates = utils.get_aggregates_for_routed_network(
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/utils.py", line 1390, in
get_aggregates_for_routed_network
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server segment_ids = network_api.get_segment_ids_for_network(
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/network/neutron.py", line 3610, in
get_segment_ids_for_network
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server return [subnet['segment_id'] for subnet in subnets
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/network/neutron.py", line 3611, in <listcomp>
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server if subnet['segment_id'] is not None]
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server KeyError: 'segment_id'
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server
2023-05-02 22:38:15.178 11 DEBUG nova.scheduler.manager [req-798de5ac-273e-40fd-abce-36e701488046 e416974adb7a44fd910a40b208d28e9f
d7b8b3323ea64f35adeec903c340a19e - default default] Starting to schedule for instances: ['412ca82a-06a4-40d9-b12d-08c56a78c5a9'] select_destinations
/usr/lib/python3.9/site-packages/nova/scheduler/manager.py:124
** Affects: nova
Importance: Low
Assignee: Sylvain Bauza (sylvain-bauza)
Status: Confirmed
** Tags: neutron scheduler
** Changed in: nova
Status: New => Confirmed
** Changed in: nova
Importance: Undecided => Low
** Changed in: nova
Assignee: (unassigned) => Sylvain Bauza (sylvain-bauza)
** Tags added: neutron scheduler
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2018375
Title:
routed networks prefilter exception due to subnets can have no
segments
Status in OpenStack Compute (nova):
Confirmed
Bug description:
Since some subnets can not have some related segments, the
subnet.segment_uuid value can be None but unfortunately, the
routed_networks_filter prefilter doesn't support it.
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server [req-ed1b01c5-01bd-493f-8b56-b4cb21e29f59 e416974adb7a44fd910a40b208d28e9f
d7b8b3323ea64f35adeec903c340a19e - default default] Exception during message handling: KeyError: 'segment_id'
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 165, in
_process_incoming
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in
dispatch
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in
_do_dispatch
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 241, in inner
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server return func(*args, **kwargs)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/manager.py", line 140, in
select_destinations
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server request_filter.process_reqspec(ctxt, spec_obj)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/request_filter.py", line 387, in
process_reqspec
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server filter(ctxt, request_spec)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/request_filter.py", line 41, in
wrapper
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server ran = fn(ctxt, request_spec)
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/request_filter.py", line 348, in
routed_networks_filter
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server aggregates = utils.get_aggregates_for_routed_network(
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/scheduler/utils.py", line 1390, in
get_aggregates_for_routed_network
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server segment_ids = network_api.get_segment_ids_for_network(
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/network/neutron.py", line 3610, in
get_segment_ids_for_network
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server return [subnet['segment_id'] for subnet in subnets
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.9/site-packages/nova/network/neutron.py", line 3611, in <listcomp>
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server if subnet['segment_id'] is not None]
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server KeyError: 'segment_id'
2023-05-02 22:38:10.382 12 ERROR oslo_messaging.rpc.server
2023-05-02 22:38:15.178 11 DEBUG nova.scheduler.manager [req-798de5ac-273e-40fd-abce-36e701488046 e416974adb7a44fd910a40b208d28e9f
d7b8b3323ea64f35adeec903c340a19e - default default] Starting to schedule for instances: ['412ca82a-06a4-40d9-b12d-08c56a78c5a9'] select_destinations
/usr/lib/python3.9/site-packages/nova/scheduler/manager.py:124
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2018375/+subscriptions
Follow ups