[stable-only] Add writer DB context to "add_provisioning_component"
To ensure the "standardatributes" register is present during the
creation of the "provisioningblocks" register, the method
"add_provisioning_component" is wrapped with a database writer
context. That will ensure the standard attribute ID, used as a
foreign key in the "provisioningblocks" table, is present during
the transaction.
Closes-Bug: #1991222
Change-Id: If57d822ff617c2f9b5e5cade7d4ca74065376e55
(cherry picked from commit 9db730764c3b6bc394c4262e68bfcec7cea65b50)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/860218 /opendev. org/openstack/ neutron/ commit/ 8e9a99b589eb915 47d6c26a2041947 0aa3e7739b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 8e9a99b589eb915 47d6c26a2041947 0aa3e7739b
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Sep 28 23:32:20 2022 +0200
[stable-only] Add writer DB context to "add_provisioni ng_component"
To ensure the "standardatributes" register is present during the ocks" register, the method provisioning_ component" is wrapped with a database writer ocks" table, is present during
creation of the "provisioningbl
"add_
context. That will ensure the standard attribute ID, used as a
foreign key in the "provisioningbl
the transaction.
Closes-Bug: #1991222 f9b5e5cade7d4ca 74065376e55 394c4262e68bfce c7cea65b50)
Change-Id: If57d822ff617c2
(cherry picked from commit 9db730764c3b6bc