Reviewed: https://review.opendev.org/c/openstack/nova/+/955310 Committed: https://opendev.org/openstack/nova/commit/574c19ab8b1b0d53daa5cb6cc527ba058e42c51d Submitter: "Zuul (22348)" Branch: stable/2024.2
commit 574c19ab8b1b0d53daa5cb6cc527ba058e42c51d Author: Masahito Muroi <[email protected]> Date: Tue Jan 21 09:57:40 2025 +0900 Use dict object for request_specs_dict in the _list_view The request_specs_dict in the _list_view is initialized as a defaultdict object in order to return empty string as default. But the request_spec_dict is replaced with a normal dict object in the v2.96 microversion, then if server list and RequestSpec missmatch happens by any reason, the List Server API and the List Server Detail API hit 500 Internal server error because of key error. This commit updates the req_spec_dict to use normal dict object, then it returns sentinel object if there is no appropriate request_spec object. Conflicts: nova/api/openstack/compute/views/servers.py NOTE(Wesley Hershberger): Conflicts introduced by patch in 2025.1 Epoxy (If0070cfbc218e0515bf3b58fc8c5067ae22c7072) that is not backportable. Closes-Bug: #2095364 Change-Id: If282b8709954f276cb5d48114437809d771a9958 Signed-off-by: Wesley Hershberger <[email protected]> (cherry picked from commit 509820f156e339e825f799d84b06cb11ac6b6096) (cherry picked from commit 957d97ea30c52292e4105dbcb2ed10a509521ac5) ** Changed in: nova/2024.2 Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2095364 Title: List server API v2.96 returns 500 if there is missing request spec object To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/2095364/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
