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:
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/845165 /opendev. org/starlingx/ distcloud/ commit/ c6be0604ed00ec4 7d7245fc9367e4f 3e67f6447b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit c6be0604ed00ec4 7d7245fc9367e4f 3e67f6447b
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-8b900d9787 8e) init_from_db finished
[1109.9s]
Engine id:(58c49ff0- 181b-435b- b0fc-bf20ecbf44 98) init_from_db finished
[2.7s]
Closes-Bug: 1977994
Signed-off-by: Kyle MacLeod <email address hidden> fa7ba6094a020c9 6932e013b30
Change-Id: I2ba1fee039d7e9