Great thanks Voiculeasa. I already setup backup and restore, simplex.
One question, for restore, currently only platform restore is enabled, correct? What restore for openstack?
Martin, Chen
IOTG, Software Engineer
021-61164330
From: Voiculeasa, Dan <Dan.Voiculeasa@windriver.com>
Sent: Tuesday, June 2, 2020 9:23 PM
To: Chen, Haochuan Z <haochuan.z.chen@intel.com>; starlingx-discuss@lists.starlingx.io
Subject: Re: issue for backup and restore
Hello,
What does /var/log/puppet/2020-05-24-12-50-51_controller/puppet.log say?
If you have the setup in the reproduced state, send me a zoom meeting invite starting in the interval [now, +7 hours].
Thanks,
Dan Voiculeasa
From: Chen, Haochuan Z <haochuan.z.chen@intel.com>
Sent: Sunday, May 24, 2020 4:08 PM
To: starlingx-discuss@lists.starlingx.io <starlingx-discuss@lists.starlingx.io>
Subject: [Starlingx-discuss] issue for backup and restore
Hi
I follow this guide to check backup and restore
But when I run this command to restore the system, it will fail with such error log.
sudo ansible-playbook /usr/share/ansible/stx-ansible/playbooks/restore_platform.yml -e "initial_backup_dir=/home/sysadmin ansible_become_pass=sysadmin admin_password=sysadmin backup_filename=localhost_platform_backup_2020_05_23_23_43_40.tgz"
TASK [bootstrap/apply-bootstrap-manifest : Applying puppet bootstrap manifest] *******************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/usr/local/bin/puppet-manifest-apply.sh", "/tmp/hieradata", "192.188.204.3", "controller", "ansible_bootstrap", ">", "/tmp/apply_manifest.log"], "delta": "0:02:18.526028", "end":
"2020-05-24 12:53:09.811312", "msg": "non-zero return code", "rc": 1, "start": "2020-05-24 12:50:51.285284", "stderr": "cp: cannot stat ‘/tmp/hieradata/192.188.204.3.yaml’: No such file or directory\ncp: cannot stat ‘/tmp/hieradata/system.yaml’: No such file
or directory\ncp: cannot stat ‘/tmp/hieradata/secure_system.yaml’: No such file or directory\ncp: cannot stat ‘>’: No such file or directory", "stderr_lines": ["cp: cannot stat ‘/tmp/hieradata/192.188.204.3.yaml’: No such file or directory", "cp: cannot stat
‘/tmp/hieradata/system.yaml’: No such file or directory", "cp: cannot stat ‘/tmp/hieradata/secure_system.yaml’: No such file or directory", "cp: cannot stat ‘>’: No such file or directory"], "stdout": "Applying puppet ansible_bootstrap manifest...\n[WARNING]\nWarnings
found. See /var/log/puppet/2020-05-24-12-50-51_controller/puppet.log for details", "stdout_lines": ["Applying puppet ansible_bootstrap manifest...", "[WARNING]", "Warnings found. See /var/log/puppet/2020-05-24-12-50-51_controller/puppet.log for details"]}
Any idea about this.
Thanks!
Martin, Chen
IOTG, Software Engineer
021-61164330