Freezer Tar Error Handling Not Working Correctly
Bug #1591347 reported by
Deklan Dieterly
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Backup/Restore and DR (Freezer) |
Fix Released
|
Undecided
|
Unassigned | ||
Mitaka |
New
|
Undecided
|
Unassigned |
Bug Description
Freezer Tar error handling does not work correctly. The code is checking for the string 'error' in the stderr of the Tar subprocess. The string 'error' does not exist when an error is encountered in the Tar subprocess. The result is that the error checking code never invokes the error handling code when a Tar error occurs.
In addition, the error handling code does a sys.exit(1). This only shutdown the current Tar thread while the write thread is still active. The result is that the process hangs and never shuts down. sys.exit(1) needs to be changed to os._exit(1). This terminates all threads and the entire process.
Changed in freezer: | |
status: | New → In Progress |
Changed in freezer: | |
milestone: | none → newton-2 |
To post a comment you must log in.
Review: https:/ /review. openstack. org/#/c/ 327914/