Comment 3 for bug 2042971

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Re-opening as an additional fix is required...

The restore still failed with the following error

TASK [restore-platform/restore-more-data : Restore sysinv default configuration file] ******************************************************************************************************************************************************
Wednesday 08 November 2023 18:48:06 +0000 (0:00:00.551) 0:29:52.355 ****
fatal: [localhost]: FAILED! => changed=true
  cmd:
  - tar
  - -C
  - /opt/platform/sysinv/22.12
  - -xpf
  - /opt/platform-backup/localhost_platform_backup_2023_11_08_23_01_40.tgz
  - --wildcards
  - --transform=s,.*/,,
  - '*/sysinv.conf.default'
  delta: '0:00:00.150347'
  end: '2023-11-08 18:48:07.367373'
  msg: non-zero return code
  rc: 2
  start: '2023-11-08 18:48:07.217026'
  stderr: |-
    tar: */sysinv.conf.default: Not found in archive
    tar: Exiting with failure status due to previous errors
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

By default in upgrade we are following "optimized restore" so the file "sysinv.conf.default" never gets restored during upgrade, so if legacy restore is performed it fails. But this may be needed for legacy restore performed on an non-upgraded system?