yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91838
[Bug 2018375] Re: routed networks prefilter exception due to subnets can have no segments
Reviewed: https://review.opendev.org/c/openstack/nova/+/882160
Committed: https://opendev.org/openstack/nova/commit/6d7bd6a03446d5227d515b2b4c0da632ef4aa4a1
Submitter: "Zuul (22348)"
Branch: master
commit 6d7bd6a03446d5227d515b2b4c0da632ef4aa4a1
Author: Sylvain Bauza <sbauza@xxxxxxxxxx>
Date: Wed May 3 17:00:14 2023 +0200
Fix get_segments_id with subnets without segment_id
Unfortunatly when we merged Ie166f3b51fddeaf916cda7c5ac34bbcdda0fd17a we
forgot that subnets can have no segment_id field.
Change-Id: Idb35b7e3c69fe8efe498abe4ebcc6cad8918c4ed
Closes-Bug: #2018375
** Changed in: nova
Status: In Progress => Fix Released
--
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):
Fix Released
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
References