freezer-agent tar restore broken in Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Backup/Restore and DR (Freezer) |
New
|
Undecided
|
Unassigned |
Bug Description
Restore not working on windows 10 python 2.7 for 2 reasons:
1. Because of this commit https:/
Looks for '/bin/bash' executable in freezer\
2. Multiprocessing module seems to have problems pickling/
Command:
freezer-agent --action restore --mode fs --restore-abs-path C:\Users\
Result:
Critical Error: Can't pickle <type 'thread.lock'>: it's not found as thread.lock
C:\Users\
File "<string>", line 1, in <module>
File "C:\Python27\
self = load(from_parent)
File "C:\Python27\
return Unpickler(
File "C:\Python27\
p dispatch[key](self)
File "C:\Python27\
raise EOFError
EOFError
More logging in log file:
2018-12-07 02:31:38.471 4084 INFO freezer.
2018-12-07 02:31:38.497 4084 INFO freezer.
2018-12-07 02:31:43.293 4084 INFO freezer.
2018-12-07 02:31:43.295 4084 INFO freezer.
2018-12-07 02:31:43.351 4084 ERROR freezer.main [-] Can't pickle <type 'thread.lock'>: it's not found as thread.lock: PicklingError: Can't pickle <type 'thread.lock'>: it's not found as thread.lock
2018-12-07 02:31:43.351 4084 ERROR freezer.main Traceback (most recent call last):
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main freezer_
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main return run_job(
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main response = freezer_
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main backup_
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main process_
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main self._popen = Popen(self)
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main dump(process_obj, to_child, HIGHEST_PROTOCOL)
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main ForkingPickler(
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main self.save(obj)
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main self.save_
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main save(state)
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main f(self, obj) # Call unbound method with explicit self
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main self._batch_
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
2018-12-07 02:31:43.351 4084 ERROR freezer.main save(v)
2018-12-07 02:31:43.351 4084 ERROR freezer.main File "C:\Python27\
description: | updated |