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

Bug 1572248

Summary: [RFE] Add exclude directory option to undercloud backup
Product: Red Hat OpenStack Reporter: Andrew Austin <aaustin>
Component: python-tripleoclientAssignee: Carlos Camacho <ccamacho>
Status: CLOSED ERRATA QA Contact: Ronnie Rasouli <rrasouli>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: augol, ccamacho, hbrock, jfrancoa, jschluet, jslagle, jstransk, mburns
Target Milestone: z2Keywords: FutureFeature, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-9.2.3-2.el7ost openstack-tripleo-common-8.6.3-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-29 16:35:54 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 Andrew Austin 2018-04-26 14:02:12 UTC
Description of problem:

The 'openstack undercloud backup' command included with OSP13 accepts an 
"include" argument for the file system portion that defaults to /home/stack. 

Since customers generally keep overcloud images in /home/stack and that data generally doesn't need to be backed up, it would be nice to have an 'exclude' switch for exempting paths such as the images directory from backup. I would expect to be able to include /home/stack while excluding /home/stack/images or similar.

Comment 15 Gurenko Alex 2018-08-01 05:47:32 UTC
I'm trying to verify this feature, but after running following command:

openstack undercloud backup --exclude-path /home/stack/virt

I still see this folder included into the backup:

[stack@undercloud-0 ~]$ tar tf filesystem-20180801013316.tar | grep '/virt'
home/stack/virt/
home/stack/virt/network/
home/stack/virt/network/three-nics-vlans/
home/stack/virt/network/three-nics-vlans/osp11/
home/stack/virt/network/three-nics-vlans/osp11/ceph-storage.yaml
home/stack/virt/network/three-nics-vlans/osp11/controller.yaml
home/stack/virt/network/three-nics-vlans/osp11/cinder-storage.yaml
home/stack/virt/network/three-nics-vlans/osp11/swift-storage.yaml
home/stack/virt/network/three-nics-vlans/osp11/controller-v6.yaml
home/stack/virt/network/three-nics-vlans/osp11/compute.yaml
home/stack/virt/network/three-nics-vlans/legacy/
home/stack/virt/network/three-nics-vlans/legacy/ceph-storage.yaml
home/stack/virt/network/three-nics-vlans/legacy/controller.yaml
home/stack/virt/network/three-nics-vlans/legacy/cinder-storage.yaml
home/stack/virt/network/three-nics-vlans/legacy/swift-storage.yaml
home/stack/virt/network/three-nics-vlans/legacy/controller-v6.yaml
home/stack/virt/network/three-nics-vlans/legacy/compute.yaml
home/stack/virt/network/predictable-ips.yaml
home/stack/virt/network/network-environment-v6.yaml
home/stack/virt/network/network-environment.yaml
home/stack/virt/network/predictable-ips-v6.yaml
home/stack/virt/network/network-environment.yaml.orig
home/stack/virt/debug.yaml
home/stack/virt/internal.yaml
home/stack/virt/enable-tls.yaml
home/stack/virt/inject-trust-anchor.yaml
home/stack/virt/overcloud-privkey.pem
home/stack/virt/overcloud-cacert.pem
home/stack/virt/public_vip.yaml
home/stack/virt/hostnames.yml
home/stack/virt/nodes_data.yaml
home/stack/virt/docker-images.yaml

Changes seems to be in the puddle 2018-07-30.2

(undercloud) [stack@undercloud-0 ~]$ rpm -q openstack-tripleo-common
openstack-tripleo-common-8.6.3-5.el7ost.noarch
(undercloud) [stack@undercloud-0 ~]$ rpm -q python-tripleoclient
python-tripleoclient-9.2.3-2.el7ost.noarch

Comment 17 Carlos Camacho 2018-08-06 09:24:31 UTC
We have long time with this available

Comment 19 Joanne O'Flynn 2018-08-15 08:05:53 UTC
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.

Comment 21 errata-xmlrpc 2018-08-29 16:35:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2574

Comment 22 Red Hat Bugzilla 2023-09-14 04:27:13 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days