B&R: Error restoring branding

Bug #1980161 reported by Hugo Nicodemos Brito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Hugo Nicodemos Brito

Bug Description

Brief Description
-----------------
The restore-platform fails not find the archive of branding into the backup tarball file.

Severity
--------
<Minor: System/Feature is usable with minor issue>

Steps to Reproduce
------------------
Run restore-platform playbook.

Expected Behavior
------------------
restore-platform playbook running completely.

Actual Behavior
----------------
restore-platform playbook fails to try to restore the branding tar file.

Reproducibility
---------------
<Reproducible>
100% reproducible

System Configuration
--------------------
<One node system, Two node system, Multi-node system, Dedicated storage, https, IPv4, IPv6 etc.>

Branch/Pull Time/Commit
-----------------------
Master

Last Pass
---------
N/A

Timestamp/Logs
--------------
TASK [bootstrap/prepare-env : Restore branding tar file] ******************************************************************************************************************************************************
Tuesday 28 June 2022 09:33:19 +0000 (0:00:00.022) 0:00:19.622 **********
fatal: [localhost]: FAILED! => changed=true
  cmd:
  - tar
  - -C
  - /opt/branding
  - -xpf
  - /scratch/localhost_platform_backup_2022_06_28_10_48_58.tgz
  - --transform=s,.*/,,
  - opt/platform/config/22.06/branding
  delta: '0:00:00.107434'
  end: '2022-06-28 09:33:19.692607'
  msg: non-zero return code
  rc: 2
  start: '2022-06-28 09:33:19.585173'
  stderr: |-
    tar: opt/platform/config/22.06/branding: Not found in archive
    tar: Exiting with failure status due to previous errors
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

Test Activity
-------------
N/A

Workaround
----------
N/A

Changed in starlingx:
assignee: nobody → Hugo Nicodemos Brito (hbrito)
Ghada Khalil (gkhalil)
tags: added: stx.update
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/+/848037
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/aade7a47e2d24b167a74cbed41f67cda19a56ae8
Submitter: "Zuul (22348)"
Branch: master

commit aade7a47e2d24b167a74cbed41f67cda19a56ae8
Author: Hugo Brito <email address hidden>
Date: Tue Jun 28 20:38:36 2022 -0300

    B&R: Check the branding directory before restore

    Check if the branding directory exists before try
    restoring the branding tar file.

    Test Plan:
    PASS: Perform platform backup and restore Debian
    PASS: Perform platform backup and restore CentOS

    Closes-bug: 1980161

    Signed-off-by: Hugo Brito <email address hidden>
    Change-Id: Ib264e77b0215e44387a2d2eb68eae8196d6d493c

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.7.0
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.