[7.0][octane][upgrade] Import error in 7.0 restore procedure

Bug #1603990 reported by Vladimir Khlyunev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Sergey Abramov

Bug Description

[2016-07-18 11:05:12,085] ERROR octane 'module' object has no attribute 'mkdtemp'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/command.py", line 50, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/octane/commands/restore.py", line 56, in take_action
    self.get_context(parsed_args))
  File "/usr/lib/python2.6/site-packages/octane/commands/restore.py", line 31, in restore_data
    archivator.restore()
  File "/usr/lib/python2.6/site-packages/octane/handlers/backup_restore/postgres.py", line 87, in restore
    docker.apply_patches(*args)
  File "/usr/lib/python2.6/site-packages/octane/util/docker.py", line 137, in apply_patches
    tempdir = tempfile.mkdtemp(prefix='octane_docker_patches.')
AttributeError: 'module' object has no attribute 'mkdtemp'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/343707

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (stable/7.0)

Reviewed: https://review.openstack.org/343707
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=76d5fb409484d8c58c0ab99534f88f1fec7d95b1
Submitter: Jenkins
Branch: stable/7.0

commit 76d5fb409484d8c58c0ab99534f88f1fec7d95b1
Author: Yuriy Taraday <email address hidden>
Date: Wed Jun 22 15:28:45 2016 +0300

    Add absolute_import to util/docker.py to avoid local tempfile module

    Closes-Bug: 1595156
    Closes-Bug: 1603990
    Change-Id: I9484efce6fa7aec1b41cf592f9e9768d85931fa7
    (cherry picked from commit 896aba1191eeb59cf85cc8be6a2ae67e08b76070)

Changed in fuel:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.