It seems like the backup removal feature of freezer is broken.
That concerns remove-older-than and remove-from-date option when passed with or without --action admin.
this was only tested using storage swift.
remove-older-than
{code}
root@padawan-ccp-c1-m1-mgmt:/home/stack# swift list freezer_plop | grep padawan-ccp-c1-m1-mgmt
padawan-ccp-c1-m1-mgmt_plip_1467649589_0
padawan-ccp-c1-m1-mgmt_plip_1467671190_0
padawan-ccp-c1-m1-mgmt_plip_1467692790_0
padawan-ccp-c1-m1-mgmt_plip_1467710785_0
padawan-ccp-c1-m1-mgmt_plip_1467714390_0
padawan-ccp-c1-m1-mgmt_plip_1467735990_0
padawan-ccp-c1-m1-mgmt_plip_1467741493_0
padawan-ccp-c1-m1-mgmt_plip_1467743741_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467649589_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467671190_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467692790_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467710785_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467714390_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467735990_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467741493_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467743741_0
root@padawan-ccp-c1-m1-mgmt:/home/stack# freezer-agent --action admin --remove-older-than 1 --container freezer_plop --backup-name plip
Option "remove_older_than" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
[*] Critical Error: Backup instance has no attribute 'rstrip'
{code}
Remove-older-than during backup
{code}
root@padawan-ccp-c1-m1-mgmt:/home/stack# cat action.ini
[default]
action = backup
path_to_backup = /etc/
remove_older_than = 1
backup_name = plip
container = freezer_plop
no_incremental = true
snapshot = true
root@padawan-ccp-c1-m1-mgmt:/home/stack# freeazer-agent --config action.ini
bash: freeazer-agent: command not found
root@padawan-ccp-c1-m1-mgmt:/home/stack# freezer-agent --config action.ini
root@padawan-ccp-c1-m1-mgmt:/home/stack# swift list freezer_plop | grep padawan-ccp-c1-m1-mgmt
padawan-ccp-c1-m1-mgmt_plip_1467649589_0
padawan-ccp-c1-m1-mgmt_plip_1467671190_0
padawan-ccp-c1-m1-mgmt_plip_1467692790_0
padawan-ccp-c1-m1-mgmt_plip_1467710785_0
padawan-ccp-c1-m1-mgmt_plip_1467714390_0
padawan-ccp-c1-m1-mgmt_plip_1467735990_0
padawan-ccp-c1-m1-mgmt_plip_1467741493_0
padawan-ccp-c1-m1-mgmt_plip_1467743741_0
padawan-ccp-c1-m1-mgmt_plip_1467744713_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467649589_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467671190_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467692790_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467710785_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467714390_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467735990_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467741493_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467743741_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467744713_0
{code}
Remove-from-date
{code}
root@padawan-ccp-c1-m1-mgmt:/home/stack# freezer-agent --action admin --remove-from-date 2016-07-05T18:00:00 --container freezer_plop
root@padawan-ccp-c1-m1-mgmt:/home/stack# swift list freezer_plop | grep padawan-ccp-c1-m1-mgmt
padawan-ccp-c1-m1-mgmt_plip_1467649589_0
padawan-ccp-c1-m1-mgmt_plip_1467671190_0
padawan-ccp-c1-m1-mgmt_plip_1467692790_0
padawan-ccp-c1-m1-mgmt_plip_1467710785_0
padawan-ccp-c1-m1-mgmt_plip_1467714390_0
padawan-ccp-c1-m1-mgmt_plip_1467735990_0
padawan-ccp-c1-m1-mgmt_plip_1467741493_0
padawan-ccp-c1-m1-mgmt_plip_1467743741_0
padawan-ccp-c1-m1-mgmt_plip_1467744713_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467649589_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467671190_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467692790_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467710785_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467714390_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467735990_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467741493_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467743741_0
tar_metadata_padawan-ccp-c1-m1-mgmt_plip_1467744713_0
{code}
Fix proposed to branch: master /review. openstack. org/340307
Review: https:/