Deletion of temporary snapshot is causing nova engine problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Backup/Restore and DR (Freezer) |
Fix Released
|
Critical
|
jiaopengju |
Bug Description
I tried to do backup of an instance with the following command :
freezer-agent --debug --action backup --nova-inst-id 69e956dd-
Backup fails with the following error
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:53.810 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.664 12709 ERROR freezer.
2017-05-03 13:13:54.665 12709 CRITICAL freezer.
2017-05-03 13:13:54.665 12709 CRITICAL freezer.
2017-05-03 13:13:54.665 12709 ERROR freezer.main [-] ('Engine error. Failed to backup.', {})
2017-05-03 13:13:54.665 12709 ERROR freezer.main Traceback (most recent call last):
2017-05-03 13:13:54.665 12709 ERROR freezer.main File "/home/
2017-05-03 13:13:54.665 12709 ERROR freezer.main freezer_
2017-05-03 13:13:54.665 12709 ERROR freezer.main File "/home/
2017-05-03 13:13:54.665 12709 ERROR freezer.main return run_job(
2017-05-03 13:13:54.665 12709 ERROR freezer.main File "/home/
2017-05-03 13:13:54.665 12709 ERROR freezer.main response = freezer_
2017-05-03 13:13:54.665 12709 ERROR freezer.main File "/home/
2017-05-03 13:13:54.665 12709 ERROR freezer.main backup_level = self.backup(
2017-05-03 13:13:54.665 12709 ERROR freezer.main File "/home/
2017-05-03 13:13:54.665 12709 ERROR freezer.main restart_
2017-05-03 13:13:54.665 12709 ERROR freezer.main File "/home/
2017-05-03 13:13:54.665 12709 ERROR freezer.main "Engine error. Failed to backup.")
2017-05-03 13:13:54.665 12709 ERROR freezer.main EngineException: ('Engine error. Failed to backup.', {})
2017-05-03 13:13:54.665 12709 ERROR freezer.main
2017-05-03 13:13:54.666 12709 CRITICAL freezer.main [-] End freezer agent process unsuccessfully
2017-05-03 13:13:54.666 12709 CRITICAL freezer.main [-] Critical Error: ('Engine error. Failed to backup.', {})
For a complete stack trace, check http://
I suspect this change is causing this problem
https:/
git revert bd1bb00afb5f947
Changed in freezer: | |
importance: | Undecided → Critical |
assignee: | nobody → jiaopengju (jiaopengju) |
status: | New → Confirmed |
milestone: | none → pike-2 |
Changed in freezer: | |
status: | Confirmed → In Progress |
Hi, I have tested it.
The patch that I have submited is in the situation when doing backup of volume or snapshot launched nova instance.
The error above occurred when doing backup of nova instance which was launched by image, cause it has no info about 'block_ device_ mapping' , I think I should add the "none judgment" before line 205 of nova.py.
Few days ago, with more in-depth testing, I found that freezer does not support volume or snapshot correctly and the patch I have submited will fail when doing backup of image launched nova instance. So I submit a new patch https:/ /review. openstack. org/#/c/ 460427/ and fix the error(include the above error).
The above error will not occur when doing backup of volume or snapshot based nova instance.