Octane stable/8.0 restore fails: ERROR: invalid input syntax for type inet: ""

Bug #1595262 reported by sryabin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Incomplete
Undecided
Unassigned

Bug Description

Detailed bug description
 [2016-06-22 16:48:11,161] INFO octane.util.subprocess Started process sudo[20719]: dockerctl shell postgres sudo -u postgres psql nailgun --tuples-only --no-align -c 'SELECT id FROM network_groups WHERE name = '"'"'fuelweb_admin'"'"''
[2016-06-22 16:48:11,436] INFO octane.util.subprocess Process sudo finished with return value 0
[2016-06-22 16:48:11,448] INFO octane.util.subprocess Started process sudo[20740]: dockerctl shell postgres sudo -u postgres psql nailgun --tuples-only --no-align -c 'UPDATE network_groups SET gateway = '"'"'10.108.0.2'"'"' WHERE id = '"'"'1'"'"' AND gateway = '"'"''"'"''
[2016-06-22 16:48:11,682] ERROR octane.util.subprocess sudo[20740] stderr: ERROR: invalid input syntax for type inet: ""
[2016-06-22 16:48:11,683] ERROR octane.util.subprocess sudo[20740] stderr: LINE 1: ...s SET gateway = '10.108.0.2' WHERE id = '1' AND gateway = ''
[2016-06-22 16:48:11,683] ERROR octane.util.subprocess sudo[20740] stderr: ^

 Restore command octane -v --debug fuel-restore --from /var/log/backup/backup_ceph_ha.tar.gz --admin-password admin1
  Unexpected exit_code returned: actual 1
  [2016-06-22 11:33:11,903] ERROR octane 'module' object has no attribute 'mkdtemp'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/octane/commands/restore.py", line 56, in take_action
    self.get_context(parsed_args))
  File "/usr/lib/python2.7/site-packages/octane/commands/restore.py", line 31, in restore_data
    archivator.restore()
  File "/usr/lib/python2.7/site-packages/octane/handlers/backup_restore/postgres.py", line 103, in restore
    docker.apply_patches(*args)
  File "/usr/lib/python2.7/site-packages/octane/util/docker.py", line 138, in apply_patches
    tempdir = tempfile.mkdtemp(prefix='octane_docker_patches.')
AttributeError: 'module' object has no attribute 'mkdtemp'

Steps to reproduce:
   Steps to reproduce:
 1. Install fuel 6.0
 2. Create cluster Ceph/Neutron vlan
 3. Upgrade master node up to 6.1
 4. Upgrade master node up to 7.0
 5. Create backup for master node 7.0
 6. Install fuel 8.0
 7. Restore backup
Expected results:
 octane return exit code 0
Expected results:
 octane return exit code 1
Reproducibility:
 100%
Workaround:
 No
Impact:
 Upgrade master node from 7.0->8.0
Description of the environment:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "c2a335b5b725f1b994f78d4c78723d29fa44685a"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"

Changed in fuel:
status: New → Incomplete
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.