Comment 2 for bug 1977994

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

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/845165
Committed: https://opendev.org/starlingx/distcloud/commit/c6be0604ed00ec47d7245fc9367e4f3e67f6447b
Submitter: "Zuul (22348)"
Branch: master

commit c6be0604ed00ec47d7245fc9367e4f3e67f6447b
Author: Kyle MacLeod <email address hidden>
Date: Wed Jun 8 13:53:49 2022 -0400

    Remove obsolete software_version check

    Remove the check for 21.05 software_version in __init__.
    This removes the need to obtain the as-yet uncached
    OpenStackDriver instance for every subcloud during startup.
    On a large system this significantly reduces the startup
    time spent in GenericSyncManager init_from_db()

    Test Plan:

    PASS:

    Verify normal startup and initialization via GenericSyncManager
    - Verified on StarlingX master load as well as on patched 21.12 load

    Verify startup on large system
    - Startup time is reduced from many minutes down to 2s

    Before/After on a large DC system from generic_sync_manager:

    Engine id:(c8816967-1c87-4e32-a1e2-8b900d97878e) init_from_db finished
    [1109.9s]

    Engine id:(58c49ff0-181b-435b-b0fc-bf20ecbf4498) init_from_db finished
    [2.7s]

    Closes-Bug: 1977994

    Signed-off-by: Kyle MacLeod <email address hidden>
    Change-Id: I2ba1fee039d7e9fa7ba6094a020c96932e013b30