The --container option of the freezer-agent should be set 'None' as default

Bug #1648363 reported by Shangzhong Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
In Progress
Undecided
Unassigned

Bug Description

When the swift storage is specified with --storage swift, the container will be used as container name,
when the ssh or local storage is specified with --storage ssh or --storage local, the container will be used as path.
They are different. The container should be set "None" as default.

Scenario 1:
The local storage is specified with --storage local, if the freezer-agent is executed without --container in a directory, the default container name "freezer_backups" will be used as directory name, the directory "freezer_backups" will be created in the current directory.

if the current directory is same as --path-to-backup, you will be notified with an error.

Scenario 2:
The local storage is specified, Create a job without --container, the default container name will be used as directory name.

When the job is being executed, the "freezer_backups" directory will be created in the current directory(/usr/local/bin/ or similar directory). The "Permission denied" error will be raised.

Scenario 3:
Restore data without --container option, for example:
freezer-agent --action restore --restore-abs-path /home/zhusz/freezerclient-restore/ --backup-name backup-test --storage local

The default container name "freezer_backups" will be used as directory.
The freezer-agent will restore data from directory "freezer_backups".
you will be notified with an error "Critical Error: No matching backup name "ubuntu_backup-test" found".

Shangzhong Zhu (zhusz)
Changed in freezer:
assignee: nobody → Shangzhong Zhu (zhusz)
status: New → In Progress
Shangzhong Zhu (zhusz)
description: updated
Shangzhong Zhu (zhusz)
description: updated
Changed in freezer:
assignee: Shangzhong Zhu (zhusz) → Vishakha Agarwal (vishakha.agarwal)
Changed in freezer:
assignee: Vishakha Agarwal (vishakha.agarwal) → nobody
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.