freezer-agent --config configfile parse error
Bug #1710238 reported by
jiaopengju
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Backup/Restore and DR (Freezer) |
Fix Released
|
Undecided
|
jiaopengju |
Bug Description
I'am doing some development with using freezerclient and found some errors.
After analysis, I found that freezer-scheduler will call 'freezer-agent --config file1' to run the backup/restore task. But it was failed when doing nova backups, it is because that the config opts in file1 were not parsed to CONF, but EngineManager uses the CONF.engine_
configfile content as below:
[action]
engine_name = nova
backup_name = backup40ad1e61-
container = freezer
no_incremental = true
storage = swift
mode = nova
action = backup
nova_inst_id = 477a6fd7-
description: | updated |
Changed in freezer: | |
assignee: | nobody → jiaopengju (pj-jiao) |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/493044 /git.openstack. org/cgit/ openstack/ freezer/ commit/ ?id=50df2c8ca3e 1083ea53a0937a8 3a35bb9ed1d499
Committed: https:/
Submitter: Jenkins
Branch: master
commit 50df2c8ca3e1083 ea53a0937a83a35 bb9ed1d499
Author: Pengju Jiao <email address hidden>
Date: Fri Aug 11 23:15:55 2017 +0800
Fix backup nova instance with creating job error
Currently, it will fail when doing nova backup with creating name(now it is the default 'tar'), this will lead the
a backup job. It is because freezer-scheduler will call freezer-agent
with '--config config-file', but the config opts in config-file (from
job file) were not parsed to CONF, at the same time EngineManager uses
the CONF.engine_
code go into wrong branch, although it will not throw errors and show
the backup is success, but when doing restore after this, we can find
that the backup data can not be used and print EOF error in log file.
This patch will fix the above issue.
Change-Id: I826e4ed71dfd2c de6103e8432faba 7adb4648c36
Closes-Bug: #1710238