Allocate full disk to root results in "IndexError: list index out of range"

Bug #1359070 reported by Tyler Wilson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Sebastian Kalinowski

Bug Description

{"build_id": "2014-08-19_05-27-34", "ostf_sha": "d2a894d228c1f3c22595a77f04b1e00d09d8e463", "build_number": "81", "auth_required": true, "api": "1.0", "nailgun_sha": "36d27ff737b361f92093986d061bbfc1670bee45", "production": "docker", "fuelmain_sha": "a19c69d1b80abb6dfa5bc8caafb11b32551c2cf8", "astute_sha": "efe3cb3668b9079e68fb1534fd4649ac45a344e1", "feature_groups": ["experimental"], "release": "5.1", "fuellib_sha": "85bf0728a8cbb5385cd644b2103c878b4251ccca"}

1. Create new environment (Ubuntu, HA mode)
2. Choose GRE segmentation
3. Add controller x3 + Ceilometer (4 disks on each node)
4. Add computes x3 + Ceph OSD (4 disks on each node)
5. Assign 100% of disk to Base System in controller and 0MB to MongoDB (Only on 1st Disk)

Error in REST API log shows as;

2014-08-20 06:04:37 ERROR
[7f3e73994740] (logger) Response code '500 Internal Server Error' for PUT /api/nodes/25/disks from 172.17.42.1:53963
2014-08-20 06:04:37 ERROR
[7f3e73994740] (logger) Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
    return handle_class(cls)
  File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
    return tocall(*args)
  File "<string>", line 2, in PUT
  File "/usr/lib/python2.6/site-packages/nailgun/api/v1/handlers/base.py", line 93, in content_json
    data = func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nailgun/api/v1/handlers/disks.py", line 66, in PUT
    volumes_data = DisksFormatConvertor.format_disks_to_full(node, data)
  File "/usr/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 226, in format_disks_to_full
    disk['id'], volume['name'], volume['size'])
  File "/usr/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 624, in set_volume_size
    disk = filter(lambda disk: disk.id == disk_id, self.disks)[0]
IndexError: list index out of range

Revision history for this message
Tyler Wilson (loth) wrote :
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: none → 5.1
assignee: nobody → Fuel Python Team (fuel-python)
Changed in fuel:
importance: Undecided → High
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Sebastian Kalinowski (prmtl)
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Reproduced on Ubuntu, simple, neutron-vlan, ceph, 1 ctrl + 1 comp + 2 ceph

Changed in fuel:
status: New → Confirmed
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Related ticket: https://bugs.launchpad.net/fuel/+bug/1360248 (see comment #2)

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/116809

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

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

commit ee906f1fbca842a7933578f547e6f88eadee8c1d
Author: Sebastian Kalinowski <email address hidden>
Date: Tue Aug 26 09:02:53 2014 +0200

    Force volumes to rebuild after cluster reset

    * rewritten `reset_environment_resp` to use objects
    * after each cluster reset volumes configuration will be rebuild
      to prevent issues when disks identifiers will change
      after reset

    Change-Id: I518a2ad36248b9a676455e8f43ac9f3f76515871
    Closes-Bug: #1359070
    Closes-Bug: #1360248

Changed in fuel:
status: In Progress → Fix Committed
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.