Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1615079

Summary: [RFE] Undercloud backup completion should mention Swift file/container backup name
Product: Red Hat OpenStack Reporter: Tzach Shefi <tshefi>
Component: documentationAssignee: RHOS Documentation Team <rhos-docs>
Status: CLOSED WONTFIX QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14.0 (Rocky)CC: aschultz, ccamacho, dmacpher, mburns, mmagr, ohochman, pkilambi, slinaber
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-28 14:40:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tzach Shefi 2018-08-12 06:28:28 UTC
Description of problem:   While running backup the command completes but we have no idea where backup file is created. IMHO added such a line at the end something in the lines of backup can be accessed swift list/download.. 

I'm not sure about the correct words or phrase.
Yet while verifying an undercloud backup bz, I was left unsure which file or how to get the backup I had just created. 


Version-Release number of selected component (if applicable):
openstack-tripleo-common-containers-8.6.3-5.el7ost.noarch
openstack-tripleo-validations-8.4.2-1.el7ost.noarch
openstack-tripleo-ui-8.3.2-1.el7ost.noarch
openstack-tripleo-image-elements-8.0.1-1.el7ost.noarch
openstack-tripleo-heat-templates-8.0.4-4.el7ost.noarch
openstack-tripleo-puppet-elements-8.0.1-1.el7ost.noarch
openstack-tripleo-common-8.6.3-5.el7ost.noarch

How reproducible:
Every time. 

Steps to Reproduce:
1. Backup the undercloud:
#openstack undercloud backup --add-path /etc/ --add-path /root/ --add-path /var/lib/glance/ --add-path /var/lib/docker/ --add-path /var/lib/registry/ --add-path /srv/node/ --add-path /home/stack/vir

2. But where is the backup file? 

3. As I knew it would be uploaded to swift, I ran -> 

swift list  (there is probably some unified openstack command rather than this)
__cache__
ov-hzbw3zdpsb-0-fxrw2qb6gbzn-NovaCompute-3nahouwjjc6w
ov-ixlkdsb2rpv-0-zjgvszg6cgko-Controller-xfsrngelxb5a
overcloud
overcloud-swift-rings
undercloud-backups     -> probably this one.
undercloud-backups_segments  -> What is this then?

4. How do I export/import these back to new/other undercloud should I need to? Probably something to add on doc. 


Actual results:

openstack undercloud backup --add-path /etc/ --add-path /root/ --add-path /var/lib/glance/ --add-path /var/lib/docker/ --add-path /var/lib/registry/ --add-path /srv/node/ --add-path /home/stack/virt/
Started Mistral Workflow tripleo.undercloud_backup.v1.backup. Execution ID: f6c3eb1b-8e76-4a22-9826-6c2e30e718c7
Waiting for messages on queue 'tripleo' with no timeout.
Undercloud Backup succeed

Expected results:

openstack undercloud backup --add-path /etc/ --add-path /root/ --add-path /var/lib/glance/ --add-path /var/lib/docker/ --add-path /var/lib/registry/ --add-path /srv/node/ --add-path /home/stack/virt/
Started Mistral Workflow tripleo.undercloud_backup.v1.backup. Execution ID: f6c3eb1b-8e76-4a22-9826-6c2e30e718c7
Waiting for messages on queue 'tripleo' with no timeout.
Undercloud Backup succeed, backup can be accessed here swift/openstack.. download... 


Additional info:

Comment 3 Carlos Camacho 2018-08-30 14:52:40 UTC
Hello,

You have it in the upstream docs[1].

[1]: https://docs.openstack.org/tripleo-docs/latest/install/controlplane_backup_restore/03_undercloud_restore.html

Due to the backup size, swift will store the backup tarball in segments like undercloud-backups_segments but that should be transparent to the user.

I would move this as a docs BZ in any case, but the documentation explains how to get the backup back.