[Starlingx-discuss] issue for backup and restore

Camp, MaryX maryx.camp at intel.com
Thu Jun 11 18:13:06 UTC 2020


Hi Martin and Dan,
The Backup and restore guide review has just merged in the StarlingX documentation.
Please have a look at the guide here: https://docs.starlingx.io/developer_resources/backup_restore.html
If I can fix the guide to be more clear and prevent errors, please open a Launchpad by clicking the "bug" button or submit a review with changes.

Thanks in advance for your feedback to improve the STX documentation,
Mary Camp
PTIGlobal Technical Writer | maryx.camp at intel.com<mailto:maryx.camp at intel.com>

From: Chen, Haochuan Z <haochuan.z.chen at intel.com>
Sent: Wednesday, June 10, 2020 10:53 PM
To: Voiculeasa, Dan <Dan.Voiculeasa at windriver.com>; starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] issue for backup and restore

Hi voiculeasa

I confirm backup and restore works without ceph backend.

This issue is caused with my improper provision step.

BR!

Martin, Chen
IOTG, Software Engineer
021-61164330

From: Voiculeasa, Dan <Dan.Voiculeasa at windriver.com<mailto:Dan.Voiculeasa at windriver.com>>
Sent: Tuesday, June 9, 2020 5:54 PM
To: Chen, Haochuan Z <haochuan.z.chen at intel.com<mailto:haochuan.z.chen at intel.com>>; starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Subject: Re: issue for backup and restore

Hello Martin,

I didn't encounter that issue when testing, but also I didn't test recently without ceph backend.

Are you using a local build iso? Are you testing some change in the source code? Any prior successful restore on a simplex with ceph / simplex without ceph?


Thanks,
Dan Voiculeasa
________________________________
From: Chen, Haochuan Z <haochuan.z.chen at intel.com<mailto:haochuan.z.chen at intel.com>>
Sent: Monday, June 8, 2020 5:21 AM
To: Voiculeasa, Dan <Dan.Voiculeasa at windriver.com<mailto:Dan.Voiculeasa at windriver.com>>; starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io> <starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>>
Subject: Re: [Starlingx-discuss] issue for backup and restore


Hi voiculeasa



When you restore system, do you have such issue. I deploy the system without add storagebackend ceph, simplex.



Restore process

$ sudo ansible-playbook /usr/share/ansible/stx-ansible/playbooks/restore_platform.yml -e "initial_backup_dir=/home/sysadmin ansible_become_pass=Local.123 admin_password=Local.123 backup_filename=localhost_platform_backup_2020_06_08_00_25_30.tgz"

$ source /etc/platform/openrc

$ system host-unlock 1



u'9\nTraceback (most recent call last):\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/rpc/amqp.py", line 437, in _process_data\n    **args)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n    result = getattr(proxyobj, method)(ctxt, **kwargs)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/conductor/manager.py", line 1691, in configure_ihost\n    self._configure_controller_host(context, host)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/conductor/manager.py", line 1325, in _configure_controller_host\n    self._puppet.update_host_config(host)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/puppet.py", line 31, in _wrapper\n    func(self, *args, **kwargs)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/puppet.py", line 148, in update_host_config\n    config.update(puppet_plugin.obj.get_host_config(host))\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/interface.py", line 111, in get_host_config\n    generate_driver_config(context, config)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/interface.py", line 1412, in generate_driver_config\n    generate_mlx4_core_options(context, config)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/interface.py", line 1389, in generate_mlx4_core_options\n    num_vfs_options = build_mlx4_num_vfs_options(context)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/interface.py", line 1358, in build_mlx4_num_vfs_options\n    ifaces = find_sriov_interfaces_by_driver(context, constants.DRIVER_MLX_CX3)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/interface.py", line 1264, in find_sriov_interfaces_by_driver\n    port = get_interface_port(context, iface)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/puppet/interface.py", line 515, in get_interface_port\n    return interface.get_interface_port(context, iface)\n\n  File "/usr/lib64/python2.7/site-packages/sysinv/common/interface.py", line 105, in get_interface_port\n    return context[\'ports\'][iface[\'id\']]\n\nKeyError: 9\n'

[sysadmin at localhost playbooks(keystone_admin)]$



Thanks



Martin, Chen

IOTG, Software Engineer

021-61164330



From: Voiculeasa, Dan <Dan.Voiculeasa at windriver.com<mailto:Dan.Voiculeasa at windriver.com>>
Sent: Tuesday, June 2, 2020 9:23 PM
To: Chen, Haochuan Z <haochuan.z.chen at intel.com<mailto:haochuan.z.chen at intel.com>>; starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at 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 at intel.com<mailto:haochuan.z.chen at intel.com>>
Sent: Sunday, May 24, 2020 4:08 PM
To: starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io> <starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>>
Subject: [Starlingx-discuss] issue for backup and restore



Hi



I follow this guide to check backup and restore

https://opendev.org/starlingx/docs/src/commit/adc24ba565a58cf7e20639d4630d6d1893337bbb/doc/source/developer_resources/backup_restore.rst



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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200611/d6b3e9f9/attachment-0001.html>


More information about the Starlingx-discuss mailing list