Comment 9 for bug 1829608

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to metal (master)

Reviewed: https://review.opendev.org/660704
Committed: https://git.openstack.org/cgit/starlingx/metal/commit/?id=fb89f62a9e0e08cb7a995497d0d1f6cdc86e53fc
Submitter: Zuul
Branch: master

commit fb89f62a9e0e08cb7a995497d0d1f6cdc86e53fc
Author: Eric MacDonald <email address hidden>
Date: Wed May 22 08:45:14 2019 -0400

    Fix hbsAgent mgmnt interface name corruption

    The hbsAgent socket initialization process is declaring
    a local string variable and then loading the management
    interface name into it and setting its static management
    interface config pointer to that variable.

    So, when that local variable falls out of scope and that
    local (stack) variable memory is recycled and changed by
    its new owner then the data the management interface config
    pointer points to changes and that leads to the reported
    error condition and log flooding.

    This update allocates a new memory pointer instead.

    Change-Id: I858bcc69455f1d915f2873c47a75dd1139cf8fcb
    Closes-Bug: 1829608
    Signed-off-by: Eric MacDonald <email address hidden>