From c66dd8f3e72c02abaaf2650f30fc3a875a6164a8 Mon Sep 17 00:00:00 2001 From: howardlee Date: Fri, 25 Nov 2016 15:38:54 +0800 Subject: [PATCH] Change --mode description When backup cinder or nova using freezer-agent(do not use 'path-to-backup' option), if you do not use the --mode option(Default value 'fs' will be set), the command-line report a critial error. So, it is better to add nova and cinder to mode cfg description. You can also see: https://review.openstack.org/#/c/379281/7 Change-Id: I56981278986d4a032044421e356518b814f01a78 --- README.rst | 4 ++-- freezer/common/config.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 8a854f1e..0fbed7f5 100644 --- a/README.rst +++ b/README.rst @@ -347,7 +347,7 @@ data in the future. Execute a cinder backup:: - $ freezer-agent --cinder-vol-id 3ad7a62f-217a-48cd-a861-43ec0a04a78b + $ freezer-agent --mode cinder --cinder-vol-id 3ad7a62f-217a-48cd-a861-43ec0a04a78b Execute a MySQL backup with Cinder:: @@ -365,7 +365,7 @@ of that instance will be sufficient to restore your data in future. Execute a nova backup:: - $ freezer-agent --nova-inst-id 3ad7a62f-217a-48cd-a861-43ec0a04a78b + $ freezer-agent --mode nova --nova-inst-id 3ad7a62f-217a-48cd-a861-43ec0a04a78b Execute a MySQL backup with Nova:: diff --git a/freezer/common/config.py b/freezer/common/config.py index 4d9f2f64..ccd373fe 100644 --- a/freezer/common/config.py +++ b/freezer/common/config.py @@ -110,7 +110,8 @@ _COMMON = [ default=DEFAULT_PARAMS['mode'], help="Set the technology to back from. Options are, fs " "(filesystem),mongo (MongoDB), mysql (MySQL), sqlserver " - "(SQL Server) Default set to fs"), + "(SQL Server), cinder(OpenStack Volume), nova " + "(OpenStack Instance). Default set to fs"), cfg.StrOpt('engine', short='e', dest='engine_name',