← Back to team overview

fuel-dev team mailing list archive

Re: error during node allocation

 

Hi all,

How to patch and rebuild bootstrap image right in place on master node:

On master node as root:

1. Unpack initramfs.img

`cp /var/www/nailgun/bootstrap/initramfs.img ./`
`mkdir initramfs`
`cd initramfs/`
`cat ../initramfs.img | gunzip | cpio -imudv`

2. Edit /initramfs/opt/nailgun/bin/agent

`vim /initramfs/opt/nailgun/bin/agent`

Locate
44 REMOVABLE_VENDORS = [
45   "Adaptec",
46 ]

and add necessary VendorID.
You may run ohai > ohai.log inside bootstrap to see which VendorID are
visible for Agent.


44 REMOVABLE_VENDORS = [
45   "Adaptec", "IBM", "ServeRA", "Vasya Pupkin"
46 ]

Save changes and exit editor.

3. Assemble new initramfs.img

`cd initramfs/` or where you did unpacked it
`find . -xdev | cpio --create --format='newc' | gzip -9 >
../initramfs.img.updated`

4. Install updated initramfs.img

`rm /var/lib/tftpboot/images/bootstrap/initramfs.img`
`rm /var/www/nailgun/bootstrap/initramfs.img`
`rm /var/www/cobbler/images/bootstrap/initramfs.img`

`cp ../initramfs.img.updated  /var/www/nailgun/bootstrap/initramfs.img`
`chmod +r /var/www/nailgun/bootstrap/initramfs.img`
`cobbler sync`

That's all.
Cobbler Sync should re-create both mandatory hard-links:
/var/lib/tftpboot/images/bootstrap/initramfs.img
/var/www/cobbler/images/bootstrap/initramfs.img

Sometimes cobbler stops booting nodes after sync - please reboot master
node in such case.
Now, you may boot your nodes to updated bootstrap.

Please also note - you should somehow update nailgun-agent package in local
repositories if you want new agent to be automatically installed to
deployed nodes.
Otherwise deployed nodes would report no disks.
Or you have to get the updated packages and manually install to all
necessary nodes.


Do you still want me to assemble new patch for you?


Kind regards,
Miroslav


On Fri, Apr 18, 2014 at 6:35 PM, Miroslav Anashkin
<manashkin@xxxxxxxxxxxx>wrote:

> Hi all,
>
> Yes, if ServeRA cards work the same way as Adaptecs - I'll build updated
> patch in hour or 2.
>
> Kind regards,
> Miroslav
>
>
> On Fri, Apr 18, 2014 at 4:50 PM, Roman Zhnichkov <rzhnichkov@xxxxxxxxxxxx>wrote:
>
>> Hi Miroslav,
>>   please see response from Samuel:
>>
>> Thanks the iso have been installed successfully.
>> Unfortunatly our IBM servers are still be seen with no disk. When logging
>> in on of the serveir and looking in the /opt/nailgun/bin/agent file, we can
>> see that there is still only one REMOTE_VENDORS (adapatec). We still need
>> to add "ServeRA" (please note that in our case it is necessary to add
>> "ServeRA" and not "IBM") in order to get the disk information
>>
>> Any further suggestions? Can you build the patch including 'ServeRA'
>> vendor value?
>>
>> Thank you.
>>
>> --
>> Roman Zhnichkov
>>
>>
>>
>> On Tue, Apr 15, 2014 at 7:50 PM, <samuel.bartel@xxxxxxxxxx> wrote:
>>
>>>  Thank Miroslav,
>>>
>>> but This patch is not relevant in our case. We are running a custom 4.1
>>> including vxlan support
>>>
>>> This patch doesn't seem to be compatible with the update done for vxlan
>>>
>>> regards,
>>>
>>> Samuel
>>>
>>>
>>>
>>>  ------------------------------
>>> *De :* Miroslav Anashkin [manashkin@xxxxxxxxxxxx]
>>> *Date d'envoi :* vendredi 11 avril 2014 16:10
>>>
>>> *À :* BARTEL Samuel NRS
>>> *Cc :* fuel-dev@xxxxxxxxxxxxxxxxxxx
>>> *Objet :* Re: [Fuel-dev] error during node allocation
>>>
>>>     Greetings Sam,
>>>
>>>  Your IBM hardware probably have Adaptec RAID controllers with VendorID
>>> changed to IBM.
>>>  It is known issue and it was fixed in the following patch:
>>>
>>> http://download.mirantis.com/fuelweb/Fuel_updates/4.1/fuel_partition_manager_patch_41_to_411/
>>>
>>>  Simply download the patch to master node, make it executable and apply.
>>>  After the patch application please reboot the not deployed nodes to
>>> the updated bootstrap. Disk drives should appear in about one minute after
>>> reboot.
>>>
>>>  Kind regards,
>>>  Miroslav
>>>
>>>
>>> On Fri, Apr 11, 2014 at 11:48 AM, <samuel.bartel@xxxxxxxxxx> wrote:
>>>
>>>>   Hello,
>>>>
>>>> We are trying to create a HA environment with ubuntu release.
>>>> the architecture of the plateform is :
>>>> 4 servers IBM x3550
>>>> 4 HP Proliant BL680c G5
>>>>
>>>> it seems, there is no problem with HP Fut but during hardware discovery
>>>> of the IBM there is an error. Nailgun is not able to collect infromation
>>>> about the disk of the servers so:
>>>> -the servers are shown with HDD:?GB
>>>> -when we try to add one of these node to the environment we have 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
>>>>
>>>>   is this a known issu?
>>>>
>>>> regards
>>>>
>>>> Samuel
>>>>
>>>> _________________________________________________________________________________________________________________________
>>>>
>>>> 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.
>>>>
>>>>
>>>> --
>>>> Mailing list: https://launchpad.net/~fuel-dev
>>>> Post to     : fuel-dev@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~fuel-dev
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Kind Regards*
>>>
>>> * Miroslav Anashkin **L2 support engineer**,*
>>> *Mirantis Inc.*
>>> *+7(495)640-4944 (office receptionist)*
>>> *+1(650)587-5200 (office receptionist, call from US)*
>>> *35b, Bld. 3, Vorontsovskaya St.*
>>> *Moscow**, Russia, 109147.*
>>>
>>> www.mirantis.com
>>>
>>> manashkin@xxxxxxxxxxxx
>>>
>>>     _________________________________________________________________________________________________________________________
>>>
>>> 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.
>>>
>>>
>>> --
>>> Mailing list: https://launchpad.net/~fuel-dev
>>> Post to     : fuel-dev@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~fuel-dev
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
>
> --
>
> *Kind Regards*
>
> *Miroslav Anashkin**L2 support engineer**,*
> *Mirantis Inc.*
> *+7(495)640-4944 (office receptionist)*
> *+1(650)587-5200 (office receptionist, call from US)*
> *35b, Bld. 3, Vorontsovskaya St.*
> *Moscow**, Russia, 109147.*
>
> www.mirantis.com
>
> manashkin@xxxxxxxxxxxx
>
>


-- 

*Kind Regards*

*Miroslav Anashkin**L2 support engineer**,*
*Mirantis Inc.*
*+7(495)640-4944 (office receptionist)*
*+1(650)587-5200 (office receptionist, call from US)*
*35b, Bld. 3, Vorontsovskaya St.*
*Moscow**, Russia, 109147.*

www.mirantis.com

manashkin@xxxxxxxxxxxx

References