subcloud backup create failed to create custom backup file name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Hugo Nicodemos Brito |
Bug Description
Brief Description
-----------------
dcmanager subcloud-backup create failed to create custom backup file name prefix using --backup-values.
cat backup_values.yaml
platform_
docker_
dcmanager subcloud-backup create --subcloud subcloud --sysadmin-password PASS --local-only --backup-values backup_values.yaml
subcloud:
$ ls -lrt /opt/platform-
total 6128
-rw-r--r-- 1 root root 6272573 Sep 26 23:26 subcloud_
Verified the same scenario using ansible-playbook and it worked:
cat subclouds.yml
all:
hosts:
subcloud:
ansible_host: IP
vars:
ansible_
cat subcloud-
# Backup configuration
local: true
central_backup_dir: /opt/dc-
backup_
ansible_ssh_pass: PWD
ansible_
platform_
sudo ansible-playbook /usr/share/
after backup
ls -lrt /opt/platform-
total 6128
-rw-r--r-- 1 root root 6274095 Sep 26 23:30 xyz_2022_
Severity
--------
<Minor: System/Feature is usable with minor issue>
Steps to Reproduce
------------------
Command: dcmanager subcloud-backup create --subcloud SUBCLOUD --sysadmin-password PASSWORD --local-only --backup-values backup_values.yaml
Expected Behavior
------------------
Create the backup file with the prefix set in platform_
Actual Behavior
----------------
File created with the default prefix.
Reproducibility
---------------
<Reproducible>
100% reproducible
System Configuration
-------
Distributed Cloud System
Branch/Pull Time/Commit
-------
master
Last Pass
---------
NA
Timestamp/Logs
--------------
NA
Test Activity
-------------
NA
Workaround
----------
Use ansible playbook: ansible-playbook /usr/share/
description: | updated |
description: | updated |
Changed in starlingx: | |
assignee: | nobody → Hugo Nicodemos Brito (hbrito) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.distcloud stx.update |
Fix proposed to branch: master /review. opendev. org/c/starlingx /distcloud- client/ +/860725
Review: https:/