Fix dcorch subcloud audit issue after the upgrade
Dcorch-engine stops auditing the subclouds after the upgrade. This is because audit_status of subcloud_sync data was not set during data migration. This update sets audit_status to initial state of “none”. Test: Upgrade controller-1, and then swact to controller-1. Verify the dcorch-engine audits subclouds. Closes-Bug: 1920962 Signed-off-by: Tao Liu <tao.liu@windriver.com> Change-Id: If8fa6c5e1c1d1a81104976cb3e527c4095dd97f7
This commit is contained in:
parent
7a2a54c2b7
commit
e2e7d45d0e
|
@ -83,12 +83,13 @@ def update_subcloud_sync():
|
|||
# endpoint types supported for each subcloud
|
||||
cur.execute("INSERT into subcloud_sync (subcloud_id, "
|
||||
"subcloud_name, endpoint_type, "
|
||||
"created_at, "
|
||||
"audit_status, created_at, "
|
||||
"deleted) values (%d, '%s', "
|
||||
"'%s', '%s', 0)"
|
||||
"'%s', '%s', '%s', 0)"
|
||||
% (record['id'],
|
||||
record['region_name'],
|
||||
ept,
|
||||
'none',
|
||||
record['created_at']))
|
||||
|
||||
LOG.info("dcorch subcloud_sync data migration completed.")
|
||||
|
|
Loading…
Reference in New Issue