Backup fm.conf during simplex upgrade
We use a temporary fm.conf during the data migration. We need to backup and restore the system fm.conf for the fm service to come up after data migration. Change-Id: I65a6ec74782174d322b7fa7f8a3bb47c1bc3db09 Closes-Bug: 1885328 Signed-off-by: David Sullivan <david.sullivan@windriver.com>
This commit is contained in:
@@ -1252,6 +1252,8 @@ def upgrade_controller_simplex(backup_file):
|
||||
|
||||
# Backup sysinv.conf
|
||||
shutil.move("/etc/sysinv/sysinv.conf", "/etc/sysinv/sysinv-temp.conf")
|
||||
# Backup fm.conf
|
||||
shutil.move("/etc/fm/fm.conf", "/etc/fm/fm-temp.conf")
|
||||
|
||||
migrate_platform_conf(staging_dir)
|
||||
|
||||
@@ -1309,6 +1311,8 @@ def upgrade_controller_simplex(backup_file):
|
||||
|
||||
# Restore sysinv.conf
|
||||
shutil.move("/etc/sysinv/sysinv-temp.conf", "/etc/sysinv/sysinv.conf")
|
||||
# Restore fm.conf
|
||||
shutil.move("/etc/fm/fm-temp.conf", "/etc/fm/fm.conf")
|
||||
|
||||
print_log_info("Data restore complete")
|
||||
|
||||
|
Reference in New Issue
Block a user