Backup & Restore: During restore, multiple ca-certs create invalid symlink
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Joshua Kraitberg |
Bug Description
Brief Description
-----------------
When extracting ca-certs during early restore, a symlink is created instead of extracting file from tar.
sysadmin@
/opt/
-C /tmp \
-p --transform=s,.*/,, \
--wildcards '*/ca-cert.pem*'
opt/platform/
etc/ssl/
tar: ca-cert.pem: time stamp 2022-09-08 20:21:42 is 26596.076405151 s in the
futuresysadmin@
total 8
drwxrwxrwt 14 root root 320 Sep 8 12:58 .
drwxr-xr-x 14 root root 4096 Sep 7 20:23 ..
drwxr-xr-x 3 sysadmin sys_protected 60 Sep 8 12:24 .ansible-root
drwx------ 3 sysadmin sys_protected 60 Sep 8 12:22 .ansible-sysadmin
lrwxrwxrwx 1 sysadmin sys_protected 11 Sep 8 2022 ca-cert.pem -> ca-cert.crt
Severity
--------
Major
Steps to Reproduce
------------------
Perform backup and restore.
Expected Behavior
------------------
ca-cert.pem is extracted from tar.
Actual Behavior
----------------
A broken symlink is created.
Reproducibility
---------------
100%
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
Master
Last Pass
---------
Last week
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer Testing
Workaround
----------
Improve tar command
Changed in starlingx: | |
assignee: | nobody → Joshua Kraitberg (jkraitbe-wr) |
tags: | added: stx.8.0 stx.update |
Changed in starlingx: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/856845
Review: https:/