It's clear that we could have a RequestSpec.instance_group
without a uuid field if the InstanceGroup is set from the
_populate_group_info method which should only be used for
legacy translation of request specs using legacy filter
properties dicts.
To workaround the issue, we look for the group scheduler hint
to get the group uuid before loading it from the DB.
The related functional regression recreate test is updated
to show this solves the issue.
Change-Id: I20981c987549eec40ad9762e74b0db16e54f4e63
Closes-Bug: #1830747
(cherry picked from commit da453c2bfe86ab7a825f0aa7ebced15886f7a5fd)
(cherry picked from commit 8569eb9b4fb905cb92041b84c293dc4e7af27fa8)
(cherry picked from commit 9fed1803b4d6b2778c47add9c327f0610edc5952)
(cherry picked from commit 20b90f2e26e6a46a12c2fd943b4472c3147528fa)
(cherry picked from commit 79cc08642172a3df1cd8d7a7c413adc21b468dcf)
Reviewed: https:/ /review. opendev. org/663144 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3390c7af7ac 774163fc8aa43e6 5662dfcefdc4cc
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 3390c7af7ac7741 63fc8aa43e65662 dfcefdc4cc
Author: Matt Riedemann <email address hidden>
Date: Tue May 28 11:24:11 2019 -0400
Workaround missing RequestSpec. instance_ group.uuid
It's clear that we could have a RequestSpec. instance_ group group_info method which should only be used for
without a uuid field if the InstanceGroup is set from the
_populate_
legacy translation of request specs using legacy filter
properties dicts.
To workaround the issue, we look for the group scheduler hint
to get the group uuid before loading it from the DB.
The related functional regression recreate test is updated
to show this solves the issue.
Change-Id: I20981c987549ee c40ad9762e74b0d b16e54f4e63 a825f0aa7ebced1 5886f7a5fd) b92041b84c293dc 4e7af27fa8) 78c47add9c327f0 610edc5952) a12c2fd943b4472 c3147528fa) f1cd8d7a7c413ad c21b468dcf)
Closes-Bug: #1830747
(cherry picked from commit da453c2bfe86ab7
(cherry picked from commit 8569eb9b4fb905c
(cherry picked from commit 9fed1803b4d6b27
(cherry picked from commit 20b90f2e26e6a46
(cherry picked from commit 79cc08642172a3d