commit 7b29a5cf9e19ef5885759259aab439473d01a6b5
Author: Dan Smith <email address hidden>
Date: Thu Apr 20 09:12:45 2017 -0700
Warn the user about orphaned extra records during keypair migration
Operators who have manually deleted Instance records with FK constraints
disabled may have orphaned InstanceExtra records which will prevent the
keypair migration from running. Normally, this violation of the data
model would be something that earns no sympathy. However, that solution
was (incorrectly) offered up as a workaround in bug 1511466 and multiple
deployments have broken their data as a result. Since the experience
is a unhelpful error message and a blocked migration, this patch attempts
to at least highlight the problem, even though it is on the operator to
actually fix the problem.
Change-Id: I0c8bf2c495a98c412eb93e19f832948a779bca11
Related-Bug: #1684861
(cherry picked from commit 2cee5bb4d14a5ad6a037857bd3624833317cd931)
Reviewed: https:/ /review. openstack. org/463366 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7b29a5cf9e1 9ef5885759259aa b439473d01a6b5
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 7b29a5cf9e19ef5 885759259aab439 473d01a6b5
Author: Dan Smith <email address hidden>
Date: Thu Apr 20 09:12:45 2017 -0700
Warn the user about orphaned extra records during keypair migration
Operators who have manually deleted Instance records with FK constraints
disabled may have orphaned InstanceExtra records which will prevent the
keypair migration from running. Normally, this violation of the data
model would be something that earns no sympathy. However, that solution
was (incorrectly) offered up as a workaround in bug 1511466 and multiple
deployments have broken their data as a result. Since the experience
is a unhelpful error message and a blocked migration, this patch attempts
to at least highlight the problem, even though it is on the operator to
actually fix the problem.
Change-Id: I0c8bf2c495a98c 412eb93e19f8329 48a779bca11 6a037857bd36248 33317cd931)
Related-Bug: #1684861
(cherry picked from commit 2cee5bb4d14a5ad