freezer/freezer
gengchc2 43b64a1c63 Correct errors about freezer-api supporting for V1 and V2 api
At present, the codes as follows:
db/elastic/driver.py:
Def get_engine (self):
    If not self._engine:
        Self._engine = db_session.ElasticSearchEngineV2(self.backend)
    Return self._engine
There is that freezer-api can't support support v1.
Actually, there is enable_v1_api ,but it is not used correctly.
The documents will be modified in other patches.

For example:
1)freezer-api v1:
  /etc/freezer/freezer-api.conf:
      [DEFAULT]
          enable_v1_api = True
	  [storage]
          driver = elasticsearch
          backend = elasticsearch
	  [elasticsearch]
          hosts = http://172.16.1.200:9200
          number_of_replicas = 0
          index = freezer

  /etc/freezer/scheduler.conf:
      [DEFAULT]
          enable_v1_api = True

   command: freezer --os-backup-api-version 1  job-list

2)freezer-api v2:
  /etc/freezer/freezer-api.conf:
      [DEFAULT]
          enable_v1_api = False
		  or
		  # enable_v1_api = False
	  [storage]
          driver = elasticsearch
          backend = elasticsearch
	  [elasticsearch]
          hosts = http://172.16.1.200:9200
          number_of_replicas = 0
          index = freezer

  /etc/freezer/scheduler.conf:
      [DEFAULT]
         enable_v1_api = False
		 or
		 # enable_v1_api = False

   command: freezer job-list

Change-Id: I9eb490c874efa0d752982f38f0971f80bcab14f3
2018-11-09 00:21:20 +00:00
..
common Fixed using 'os_auth_ver' parameter when passed via --config 2018-09-05 10:22:30 +02:00
engine fix tox python3 overrides 2018-09-05 11:29:02 +09:00
exceptions Fix license boilerplates 2018-05-04 14:53:13 +00:00
lib update pylint to 1.9.2 2018-09-03 13:10:55 +00:00
mode Add cindernative mode to backup volume 2017-03-16 07:21:49 +00:00
openstack update pylint to 1.9.2 2018-09-03 13:10:55 +00:00
scheduler Correct errors about freezer-api supporting for V1 and V2 api 2018-11-09 00:21:20 +00:00
scripts Updating HP Copyright label 2015-08-21 14:19:39 +01:00
snapshot Merge "lvm backup: calculate path_to_backup after volume is mounted" 2018-10-25 07:28:16 +00:00
storage Implement create_dirs and put_metadata methods for multiple storage 2018-10-11 07:38:35 +00:00
tests Merge "Delete the unnecessary empty mode check" 2018-09-07 05:34:44 +00:00
utils switch to cryptography 2018-06-19 10:54:05 -05:00
__init__.py Migrating documentation to the new style 2017-09-14 10:13:46 -06:00
job.py Delete the unnecessary empty mode check 2018-09-06 08:40:51 +00:00
main.py Fix a typo 2018-11-05 20:02:38 -08:00