Comment 2 for bug 1306491

Revision history for this message
sbartel (samuel-bartel) wrote : RE : [Bug 1306491] Re: no disk information leading to error during node allocation

Hello,

Do I need to reboot the node after the modification in nailgun agent?

________________________________________
De : <email address hidden> [<email address hidden>] de la part de Oscar Larrayoz [<email address hidden>]
Date d'envoi : vendredi 11 avril 2014 11:44
À : BARTEL Samuel NRS
Objet : [Bug 1306491] Re: no disk information leading to error during node allocation

Hello,

The problem is that the disks are detected as external (in ServeRaid
controllers) and nailgun agent doesn't see them.

Workaround in Fuel 4.1:

ssh to the node:
vi /opt/nailgun/bin/agent
in REMOVABLE_VENDORS add "ServeRA",
exit

You need to do two times, one during bootstrap and another one after the
operating system installation.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1306491

Title:
  no disk information leading to error during node allocation

Status in Fuel: OpenStack installer that works:
  New

Bug description:
  Hello,

  We are trying to create a HA environment with ubuntu release.
  the architecture of the plateform is :
  3 servers IBM System x3550 -[7978B9G]-
  1 server IBM System x3550 M3 -[7944W6B]-
  4 HP Proliant BL680c G5

  each server has the same network configuration :
  eth0 trunked : public and admin
  eth1 not trunked : pxe
  eth2 trunked : storage network

  during the nodes discovery, it seems there is a problem with the 3 servers IBM System x3550 -[7978B9G]-
  they are seen with no disk : Disks 0 drives, 0 bytes total

  where as when connecting on the node with ssh from the fuel master node we've got the following result for 'fdisk -l' command:
  Disk /dev/sda: 73.3 GB, 73283928064 bytes
  255 heads, 63 sectors/track, 8909 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disk identifier: 0x0009ea9c

     Device Boot Start End Blocks Id System
  /dev/sda1 * 1 3891 31249408 83 Linux
  /dev/sda2 7083 8910 14678017 5 Extended
  /dev/sda3 3891 7083 25636863 8e Linux LVM
  Partition 3 does not end on cylinder boundary.
  /dev/sda5 7083 8910 14678016 82 Linux swap / Solaris

  Partition table entries are not in disk order

  So there is a disk on the server

  So when we try to add them to the environnement we've got the following error
  2014-04-11 07:44:30 ERROR [7f907ffff700] (logger) Response code '500 Internal Server Error' for PUT /api/nodes/ from 10.20.1.246:58840

  2014-04-11 07:44:30 ERROR [7f907ffff700] (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 62, 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 843, 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 907, in expand_generators
      for (k, v) in value.iteritems())
    File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 907, in <genexpr>
      for (k, v) in value.iteritems())
    File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 900, in expand_generators
      generator, *generator_args)
    File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 714, in call_generator
      result = generators[generator](*args)
    File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 704, in <lambda>
      lambda: generators['calc_root_size']() + \
    File "/opt/nailgun/lib/python2.6/site-packages/nailgun/volumes/manager.py", line 720, in _calc_root_size
      size = int(self.disks[0].size * 0.2)
  IndexError: list index out of range

To manage notifications about this bug go to:
https://bugs.launchpad.net/fuel/+bug/1306491/+subscriptions
_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.