Skip to content

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Oct 6, 2025

This PR contains a snapshot of zed from upstream unmaintained/zed.

es-zhouzhong and others added 5 commits November 19, 2024 20:08
At present, we can modify the properties in the instance
system_metadata through the sub command image_property of
nova-manage, but there may be inconsistencies between their
values and those in request_specs.

And the migration is based on request_specs, so the same image
properties are also written to request_specs.

Closes-Bug: 2078999
Change-Id: Id36ecd022cb6f7f9a0fb131b0d202b79715870a9
(cherry picked from commit 2a1fad4)
(cherry picked from commit ebae97c)
(cherry picked from commit ee30457)
(cherry picked from commit 3fe5c69)
The method get_root_info sometimes receives a BlockDeviceMapping object,
which lacks a copy method. The previous code assumed root_bdm was always
an instance of DriverBlockDevice, a subclass of dict that supports the copy()
method. However, during testing, it was discovered that root_bdm could also
be a BlockDeviceMapping object, which does not have a copy method.

To address this, the change replaces the copy() call with copy.deepcopy()
according to the suggestion in the comment [1], which works for both
BlockDeviceMapping and DriverBlockDevice instances. The deepcopy method is
supported because oslo.versionedobjects implements the __deepcopy__ method.

This change ensures the function handles both object types correctly,
preventing the AttributeError observed during testing.

[1] https://review.opendev.org/c/openstack/nova/+/909611/4/nova/virt/libvirt/blockinfo.py

Change-Id: I9432718586855ff57e8e6a5cae064e0685dd01e8
(cherry picked from commit 065bf99)
Signed-off-by: Zhang Hua <[email protected]>
(cherry picked from commit 9ff4953)
(cherry picked from commit 608a73e)
(cherry picked from commit 5b57acb)
non-SLURP branches are EOL'd in case they reach their end of maintained
phase. This could produce a situation when a patch is merged in a
non-SLURP branch that was deleted in the meantime and it's further
backports fail on gate with backport validator as the hash of the
non-SLURP version of the patch is not on any branch.

This patch fixes the above issue as follows: in case a hash is not
found on any branch, then it checks if it can be found under any *-eol
tag and only fails if there is not found either.

Change-Id: I56705bce8ee4354cd5cb1577a520c2d1c525f57b
(cherry picked from commit e383b46)
(cherry picked from commit 8b0ae72)
(cherry picked from commit 88e49dd)
(cherry picked from commit db438e5)
(cherry picked from commit 0fdd21f)
@github-actions github-actions bot requested a review from a team as a code owner October 6, 2025 06:23
@github-actions github-actions bot added automated Automated action performed by GitHub Actions synchronisation labels Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated Automated action performed by GitHub Actions synchronisation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants