Comment 11 for bug 1991222

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/train)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/860218
Committed: https://opendev.org/openstack/neutron/commit/8e9a99b589eb91547d6c26a20419470aa3e7739b
Submitter: "Zuul (22348)"
Branch: stable/train

commit 8e9a99b589eb91547d6c26a20419470aa3e7739b
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Sep 28 23:32:20 2022 +0200

    [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)