legacy backup and restore fails with backup taken from controller-1 in DX

Bug #2052968 reported by Erickson Silva de Oliveira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Erickson Silva de Oliveira

Bug Description

Brief Description
-----------------
BnR fails to restore if the backup was made on controller-1.

Severity
--------
Critical

Steps to Reproduce
------------------
- Take the back-up of the Duplex system by having controller-1 as active controller
- Perform restore operation

Expected Behavior
------------------
Restore completed

Actual Behavior
----------------
Restore failed

Reproducibility
---------------
100% reproducible

System Configuration
--------------------
AIO-DX

Timestamp/Logs
--------------
Take the back-up of the Duplex system by having controller-1 as active controller, Perform restore operation, the following error comes:

fatal: [localhost]: FAILED! => changed=true
  cmd:
  - tar
  - -C
  - /etc/ceph
  - -xpf
  - /opt/platform-backup/localhost_platform_backup_2024_02_02_07_30_17.tgz
  - --transform=s,.*/,,
  - '*/ceph_controller-0.conf'
  delta: '0:00:00.138667'
  end: '2024-02-04 22:53:44.898722'
  msg: non-zero return code
  rc: 2
  start: '2024-02-04 22:53:44.760055'
  stderr: |-
    tar: Pattern matching characters used in file names
    tar: Use --wildcards to enable pattern matching, or --no-wildcards to suppress this warning
    tar: */ceph_controller-0.conf: Not found in archive
    tar: Exiting with failure status due to previous errors
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

PLAY RECAP *******************************************************************************************************************
localhost : ok=602 changed=343 unreachable=0 failed=1 skipped=561 rescued=0 ignored=0

Test Activity
-------------
Testing

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/908854
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/31d0424d16a472af4079fa065f8990e9408773aa
Submitter: "Zuul (22348)"
Branch: master

commit 31d0424d16a472af4079fa065f8990e9408773aa
Author: Erickson Silva de Oliveira <email address hidden>
Date: Mon Feb 12 15:14:54 2024 -0300

    Add wildcards argument in recover-ceph-data

    The restore-ceph-data playbook extracts a file using pattern
    matching characters when the backup was generate on
    controller-1 (AIO-DX). On centOS the command work as it is,
    but on Debian is necessary to use the --wildcards argument
    to enable the pattern matching, or it will raise an exception.

    To resolve this issue, the argument was added to the command.

    Test Plan:
    PASS: (AIO-DX) Set controller-1 as the active controller
    PASS: (AIO-DX) Perform backup and restore

    Closes-bug: 2052968

    Change-Id: Ie373e8d2bceb8f648ed68c62eefc8867d74a8588
    Signed-off-by: Erickson Silva de Oliveira <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
summary: - legacy back up and restore fails with backup taken from controller-1 in
+ legacy backup and restore fails with backup taken from controller-1 in
DX
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.9.0 stx.update
tags: added: stx.storage
Changed in starlingx:
assignee: nobody → Erickson Silva de Oliveira (esilvade)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.