Error when adding a new node, which does not have a HDD

Bug #1316332 reported by Mateusz Matuszkowiak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Wishlist
Unassigned

Bug Description

Hello.

When adding a newly discovered, diskless, node from the webUI on master, the described below error occurs (Rest API source log):

[7ff34cdfa700] (logger) Response code '500 Internal Server Error' for PUT /api/nodes/ from xx.xx.xx.xx:36704
[7ff34cdfa700] (logger) Traceback (most recent call last):
  File "/opt/nailgun/lib/python2.6/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/opt/nailgun/lib/python2.6/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/opt/nailgun/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
    return handle_class(cls)
  File "/opt/nailgun/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
    return tocall(*args)
  File "<string>", line 2, in PUT
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/api/handlers/base.py", line 56, in content_json
    data = func(*args, **kwargs)
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/api/handlers/node.py", line 385, in PUT
    node.volume_manager.gen_volumes_info()
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 819, in gen_volumes_info
    min_size = self.expand_generators(volume)['min_size']
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 883, in expand_generators
    for (k, v) in value.iteritems())
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 883, in <genexpr>
    for (k, v) in value.iteritems())
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 876, in expand_generators
    generator, *generator_args)
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 690, in call_generator
    result = generators[generator](*args)
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 680, in <lambda>
    lambda: generators['calc_root_size']() + \
  File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 696, in _calc_root_size
    size = int(self.disks[0].size * 0.2)
IndexError: list index out of range

Steps to reproduce:
1) Create a new environment on master
2) Start the new node (without any hdd's), do the "PXE booting" and wait for "automatic boot"
3) On the master, after node's discovery add a new Compute node from the "Unallocated nodes" list and apply changes

As a result I can see that there are "0 unallocated nodes" / "1 total node", however, I'm unable to manage that node from the webUI.

Fuel version: 4.1

Wkr,
Mateusz

Tags: ui
description: updated
Revision history for this message
Andrew Woodward (xarses) wrote :

Unfortunately, Fuel makes a lot of assumptions roles and volumes and is effectively hard-coded to assume you have at least one disk. So this isn't something that we can currently support. If this is something that you are looking to add support for yourself, then We'd be happy to help you where this may need to be modified

Changed in fuel:
importance: Undecided → Wishlist
status: New → Won't Fix
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: none → 5.0
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.