[Upgrade] Upgrade to 6.1 failed with IndexError: list index out of range

Bug #1409695 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Ihor Kalnytskyi
6.0.x
Invalid
Undecided
Fuel Python (Deprecated)

Bug Description

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  api: "1.0"
  build_number: "55"
  build_id: "2015-01-11_22-54-45"
  astute_sha: "18be5cd3b819f3cad4c970ce5f72d3fb211a0969"
  fuellib_sha: "129d4644b636c24e6535c66794717a04c73ca5f7"
  ostf_sha: "47b82d5130b00af85313125bdd19f0866d9e61cc"
  nailgun_sha: "aa904598b3071540a07e0403906ea37adb01b7b6"
  fuelmain_sha: "16e5e39a8fad6793667864af1b156e47ff7c3d48"

Steps:
1. Install 6.0-58 fuel
2. Deploy any simple cluster
3. Upload 6.1 upgrade script to fuel master
4. Run upgrade

Actual - it failed with
Traceback (most recent call last):
  File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/cli.py", line 179, in main
    run_upgrade(parse_args(sys.argv[1:]))
  File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/cli.py", line 152, in run_upgrade
    config = build_config(args.src, args.password)
  File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/config.py", line 90, in build_config
    return Config(config(update_path, admin_password))
  File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/config.py", line 620, in config
    host_system = get_host_system(update_path, new_version)
  File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/config.py", line 201, in get_host_system
    openstack_version = sorted(openstack_versions, reverse=True)[0]
IndexError: list index out of range

Logs are attached

Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/146432

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Igor Kalnitsky (ikalnitsky)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Igor Kalnitsky (<email address hidden>) on branch: master
Review: https://review.openstack.org/146432
Reason: There's another patch - https://review.openstack.org/#/c/144459/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/147199

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/147199
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=85a6132c20bd18e6ea5d121d14e6ea9e32cef056
Submitter: Jenkins
Branch: master

commit 85a6132c20bd18e6ea5d121d14e6ea9e32cef056
Author: Igor Kalnitsky <email address hidden>
Date: Wed Jan 14 17:16:55 2015 +0200

    fuel_upgrade: increment can_upgrade_version

    We need to increment can_upgrade_version since otherwise upgrade will
    fail.

    Change-Id: Ie1f0f443194d8790b8333199ddfdc3637e1386e8
    Partial-Bug: #1409695

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/144459
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=cb2b681283ebbb766e07d7d07519f4232e11ae40
Submitter: Jenkins
Branch: master

commit cb2b681283ebbb766e07d7d07519f4232e11ae40
Author: Aleksandra Fedorova <email address hidden>
Date: Tue Dec 30 16:32:48 2014 +0300

    Bump version to 6.1

    Leave OpenStack version unchanged.

    Related-Bug: #1409695

    Change-Id: Ib8b49f56c73307e01b79e357aed170a7361e28ee

Changed in fuel:
status: In Progress → Fix Committed
tags: added: system-test-not-required
Changed in fuel:
status: Fix Committed → 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.