Commit Graph

156 Commits

Author SHA1 Message Date
Andreas Jaeger e61cc055ab Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I10917e42829b459c41ca46514faa72fc46abf7be
2019-12-18 09:52:23 +01:00
Vitaly Parakhin d9e1ac25c6 Remove downloading debian-installer components
In Fuel 7.0 we dropped classic provisioning mode,
fully switching to IBP. Remove pre-provision task
of downloading of debian-installer parts and related
script.

Related-Bug: #1549346
Depends-On: I36ff56c1e4a0437b33fc8e31da3df6f311607307
Change-Id: I1001225edd737a29edc263fee48715ba52f53af7
2016-04-18 10:18:20 +00:00
Sergey Kulanov 992cfa612e Remove nailgun-agent related stuff from fuel-web repo
Move nailgun-agent from fuel-web project[1] to
separate stackforge repo [2]

[1]. https://github.com/stackforge/fuel-web
[2]. https://github.com/stackforge/fuel-nailgun-agent

Change-Id: I893646dda915b867fcb1b2c99be1d9e3acc37a3d
Related-bug: #1475726
2015-07-22 17:25:42 +00:00
Valyavskiy Viacheslav 5f3ce3ea71 Fix net-nic default assignment
Forbid to assign admin network to non-pxe interface

Change-Id: Iddd57f74bf12cd18f1b973319849a7b426dcd884
Closes-Bug: #1474330
2015-07-20 18:23:37 +03:00
Jenkins 4343a3af25 Merge "Gather available offloading modes" 2015-07-09 08:50:09 +00:00
Valyavskiy Viacheslav 4bf1095593 Stick 'pxe' role to physical interface
* add 'pxe' property to the nic db model
* collect 'pxe' property during the
  bootstrap stage
* forbid to assign admin net to non pxe interfaces
* allow to assign admin net only to bond interface
  what containing pxe interface

Change-Id: I70dcaed66607728b76ae3d93c59048c310ddb22c
Implements: blueprint admin-network-on-bond
2015-07-08 20:49:07 +03:00
Valyavskiy Viacheslav 8dff1e0334 Gather available offloading modes
Gather available offloading modes for physical interfaces
during the bootstrap stage. In this commit 'ethtool' util
output parsing approach has been used. Nailgun agent
collects modes and sent it to the nailgun API. These modes
will be parsed via nailgun and will be put into
offloading_modes JSON field of the interface db model.

Change-Id: I172b61d3fccc00e5951616646fa82e33b8322997
Implements: blueprint selectable-offloading-type
2015-07-07 14:34:22 +03:00
Evgeniy L 7ec89774f4 Revert "Gather available offloading modes"
Closes-bug: #1471856
This reverts commit 5686432eff.
Change-Id: Ie575bea40ff1c289d1b256879db60ab320e411fd
2015-07-06 16:32:27 +00:00
vvalyavskiy 5686432eff Gather available offloading modes
Gather available offloading modes for physical interfaces
during the bootstrap stage. In this commit 'ethtool' util
output parsing approach has been used. Nailgun agent
collects modes and sent it to the nailgun API. These modes
will be parsed via nailgun and will be put into
offloading_modes JSON field of the interface db model.

Change-Id: Ic58abf4e4da30e6fd7320dd385c9ddee74057ee1
Implements: blueprint selectable-offloading-type
2015-07-03 16:09:37 +03:00
Igor Kalnitsky b2d7bc92c2
Download debian netboot installer each time
Currently if debian netboot installer is already downloaded we skip
downloading and start provisioning. It's an error-prone approach
because the installer may stuck if its kernel version mismatch
archive's kernel version. This patch starts to download debian
installer each time we start provisioning.

Closes-Bug: #1461206

Change-Id: Ia6b8653461e604ae05f306406e8a3515a593fc53
Signed-off-by: Igor Kalnitsky <igor@kalnitsky.org>
2015-06-03 14:43:09 +03:00
Alexei Sheplyakov 81bafb7619 nailgun-agent: use service command to restart mcollective
mcollectived can be launched via upstart job or systemd unit.
Fortunately the service command hides those gory details.

Change-Id: Iad4c8bc5d89176513b4d3bcc37a4161a9d900caf
Related-Bug: #1454741
2015-05-27 18:20:21 +03:00
Vladimir Kozhukalov 5166b68208 Prevent nailgun-agent/cloud-init collision
This patch prevents nailgun-agent from doing anything
until cloud-init has finished its magic.

/etc/nailgun-agent/nodiscover file is created during provisioning stage
and then it is removed in /etc/rc.local which guarantees
that nailgun-agent doesn't change mcollective config at the
same time when cloud-init does this. Otherwise, we can
end up with corrupted mcollective config.

Related-Patch: I5fca4ca39abdc273f6958f2643fae6c5c99fba68
Change-Id: If8d1252e6d351ad073de26afc13a19de76f531fb
Closes-Bug: #1449186
2015-05-19 12:07:52 +03:00
Vladimir Sharshov (warpc) 689fdeddb8 Prevent agent hangs if ohai does not return disks
Instead of freeze we got all data without disks now.
Current timeout - 30 sec.

Co-Authored-By: Mike Scherbakov (mihgen) <mscherbakov@mirantis.com>
Change-Id: I65d1b570cd01e12b521403c6d6e990043eb2c2ab
Closes-Bug: #1396086
2015-05-06 14:03:06 +03:00
Nikolay Markov 6e3ca9592f Moved sleep in Nailgun agent
Node should not wait after checking '/var/run/nodiscover' file
when reboot is started, it should give Astute time to react
(and to create this file) and only then check it and reboot.

Change-Id: I2c6464262e100244bc525f8e8b456eb26d35e3a1
Related-Bug: #1371225
2015-04-08 12:35:00 +03:00
Aleksandr Didenko 581d8b03b0 Skip downed interfaces in master_ip_and_mac method
In case we have any interface down (like generic bond0 interface),
we fail with 'undefined method each for nil:NilClass' error in the
middle of _master_ip_and_mac method. And it can happen before we
find needed info thus failing to update Nailgun.

So we just need to skip interfaces that do not have 'addresses'
key.

Change-Id: Ieb1de216931fa9334f07bd21f1a4096bf429afb0
Closes-bug: #1429807
2015-03-13 20:04:03 +02:00
Vladimir Kozhukalov 7af91d78cb Added download-debian-installer script
We are going to download debian-installer initrd and kernel
from one of user defined ubuntu repos. We implemented this
as a pre-provision task which is supposed to run a shell
script.

This patch introduces this script for downloading
debian-installer initrd image.

Change-Id: I9e7ac50d19ea8b984e1ad2831c73f2cb88ddbd54
Implements: blueprint consume-external-ubuntu
2015-03-13 12:06:34 +00:00
Aviram Bar-Haim 88f13fe99a Added driver and bus_info interface parameters
Adding driver and bus info interface parameters support with
these changes:
  1. Adding driver and bus_info parameters into nailgun DB
     and nailgun agent.
  2. Adding driver and bus_info parameters into UI dialogs
     and publishing it to astute yaml.
  3. Publishing user physical interfaces and vlan mappings
     to astute yaml.

Partially implements: blueprint support-infiniband-network

Change-Id: I4e91447a99a7ada35a2af4507725e2705aaa69d6
2015-03-10 21:06:33 +02:00
Alexei Sheplyakov 1323393f30 Make nailgun agent work with ruby 1.9
* String.inject does not exist any more (String is not Enumerable any
  more, and it doesn't get automatically splitted).
* Ohai::System.fetch is gone

blueprint support-ubuntu-trusty

Change-Id: I0271ac5a3c991b093ddce2050cd195d047c1be39
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2015-01-21 01:52:13 +01:00
Dima Shulyak 3366486fdb Decrese agent to log to INFO level after uid is received
Biggest part of agent logs is information about disks discovery
which is DEBUG level

Any changes with disks will be available in nailgun api log

Change-Id: Idecbb1a4b045ea126acd04b6164b93e9c1fb1d0f
Closes-Bug: 1393115
2014-11-18 16:08:41 +02:00
Kamil Sambor 8cf375f768 Handle exception in agent when node was removed and rediscovered
Change-Id: Icb9bb4282d00b83de44477f9063292a76c444c4c
Closes-Bug: #1349815
2014-07-29 15:07:31 +02:00
Kamil Sambor 4cb2bb5375 Added the status 403 catching after post request
Change-Id: Iaaddf05f3efecd6064f0b2d598eefaf35af8171f
Closes-Bug: #1305017
2014-07-24 23:29:37 +02:00
Kamil Sambor 2d1c53abc1 Changed order of calls to register new nodes
Modified agent to checking if node was before registered, based on existence
of nailgun_uid file. If file exist, only put is call, in other case when we
try made post (if call was succes-201 or node exist 409, we call put method)

Change-Id: I98680be7355e77512addb97f301c713cbf13c23c
Closes-Bug: #1305017
2014-07-21 16:35:58 +02:00
Christian Berendt 8c0f8a62e9 Use /usr/bin/env python instead of /usr/bin/python
The usage of /usr/bin/env ensures that the first interpreter
found in the environment's $PATH variable is used. This should
be preferred.

Change-Id: I692afbf4ac4ea0c546e4d7480dcf1a7ac158af85
2014-07-13 19:04:18 +02:00
Jenkins b8713a4026 Merge "Revert "Changed order of calls to register new nodes"" 2014-06-24 10:56:48 +00:00
Evgeniy L 40000f2c11 Revert "Changed order of calls to register new nodes"
Closes-bug: #1333629
This reverts commit 779afd8882.

Change-Id: I1d292bd771e7f5a097bf84d8ec878085d3e645c9
2014-06-24 09:55:32 +00:00
Jenkins f92c162b4b Merge "Changed order of calls to register new nodes" 2014-06-23 09:55:23 +00:00
Kamil Sambor 779afd8882 Changed order of calls to register new nodes
Modified agent to checking if node was before registered, based on existence
of nailgun_uid file. If file exist, only put is call, in other case when we
try made post (if call was succes-201 or node exist 409, we call put method)

Change-Id: Id1ef1650cf47c8e5fd7e844362b3fb41afad8fdd
Closes-Bug: #1305017
2014-05-29 09:28:35 +00:00
Jenkins 565df4b2b5 Merge "Sends netprobe logs to master from bootstrap node" 2014-05-27 15:47:26 +00:00
Evgeniy L c93a2deca7 Remove virtual interfaces from list which agent sends to nailgun
Remove interfaces like eth0.101-hapr,
eth1-hapr which are created in ha mode.

Change-Id: I0085f06dab2f90af7d876a2c335e180f8d983eef
Closes-bug: #1322208
2014-05-22 18:58:54 +04:00
Igor Kalnitsky 0462e3e192 agent: add ServerRA to removable disk vendors
Change-Id: If00038a5c6e93f981b2fa125ca94720774b04cb7
Closes-Bug: 1306491
2014-04-28 17:22:48 +03:00
Igor Kalnitsky afaf27ec6e Sends netprobe logs to master from bootstrap node
Boostrap nodes don't sends syslog message to master. We use a special
script (send2syslog.py) for this purpose. Unfortunely, it knows nothing
about netprobe, so the log wasn't sent.

Since now, the problem is fixed.

Depends on: https://review.openstack.org/#/c/90338/

Closes-Bug: #1291663
Change-Id: If8e350f981fb01e117163e460dd5f8e4774e2dc5
2014-04-25 16:06:27 +03:00
Ryan Moe 622487c5d5 Fix interface type check in nailgun agent
The regular expression used in ohai to determine interface type
doesn't work with interfaces containing more than one digit (e.g.
eth10). Consequently the "type" is returned as eth1 instead of eth
for all interfaces above eth9 and the agent skips them.

Ohai bug here: https://tickets.opscode.com/browse/OHAI-571

Change-Id: Ib302542255ec25bee43e4f012d66658219ec1710
Closes-bug: #1308036
2014-04-18 14:52:07 -07:00
Miroslav Anashkin 3f2a2948b9 Add IBM to the Nailgun Agent REMOVABLE_VENDORS list
Some Adaptec controllers shipped with IBM hardware have
VendorID changed to IBM.

Change-Id: Id23e1bdfa45ac4533aa101dff1e44ad5d0e5f5d7
Closes-Bug: #1294222
2014-03-19 20:19:30 +04:00
Jenkins 0a75052b3c Merge "Reduced database overhead from agents" 2014-03-19 05:34:47 +00:00
Jenkins ffd36bc479 Merge "Fixed searching by-path and by-id links for cciss" 2014-03-18 15:47:36 +00:00
demon.mhm 59ed8c081d Reduced database overhead from agents
- added dedicated handler for node agents update only requests
 - caching data from agents to avoid db update with same data
 - nailgun responses with appropriate http statuses
 - changed agent update logic. Now it tries to update first and respects
   nailgun response statuses

Change-Id: I2658cf7561cd8c9116acced2443d072d471f3bdb
Implements: blueprint nailgun-agent-handler
Closes-Bug: #1274614
2014-03-17 12:15:24 +04:00
Vladimir Kozhukalov bad7388fd9 Fixed searching by-path and by-id links for cciss
The problem was that we try to find by-path and by-id
links comparing them with cciss!c0d0 instead of cciss/c0d0.

Change-Id: I2ba76ff615cd94dfef8a275779a1fb917ec70150
Closes-Bug: #1291692
2014-03-13 22:25:00 +04:00
Bogdan Dobrelya a028465775 Send nailgun-agent logs to syslog as well
Partial blueprint: collect-mco-and-agent-logs-with-shotgun

Change-Id: I6bc16ddc39d970ae52a3cbeaf5531f0358a5b41d
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-03-04 13:35:28 +02:00
Evgeniy L e67ea5c139 Add additional checking of net type in agent
When we call method IPAddr.new("some non api string")
it stuck on several seconds in VMware, with several
interfaces we have several minutes additional timeout.

Change-Id: I25e784eef2e471922cb5128c0cbf94eff8ba3726
Closes-bug: #1284571
2014-02-25 15:30:57 +04:00
Vladimir Kozhukalov 490f5e419e Workaround for Adaptec removable disk
This is workaround for the case when Adaptec RAID
controller is mappet into sysfs as removable device.

Change-Id: I3a8f08040b0eaa972ab5f4c1bfc6342c29480822
Closes-bug: #1282068
2014-02-21 20:31:07 +04:00
Vladimir Kuklin d528441c49 Fix nailgun agent master ip and mac POST data
Change-Id: I775960eab817d9ccee8b7f76e074f670914180bc
Closes-bug: #1282023
2014-02-20 23:25:08 +04:00
Vladimir Kozhukalov 44195acbea Added extra field into node disks
Extra parameters, which actually are the id names
of hard drives, allow to find them under ubuntu
kernel.

Closes-bug: #1277151
Change-Id: I01c0a3cd47ebf0ec8f8a723321ca8452c623994e
2014-02-11 18:32:19 +04:00
Vladimir Kozhukalov 04f17482e9 Removed -cciss-* tail from /dev/disk/by-path links
It is to address the issue which appears when centos
udev names smart array devices like this
/dev/disk/by-path/pci-0000:06:00.0-cciss-disk0
and debian-installer udev names them like this
/dev/disk/by-path/pci-0000:06:00.0 and can not
find device.

Change-Id: I052ae1839b49f4abbd12f44582d53923e0836411
2014-01-31 18:06:51 +04:00
Vladimir Sharshov cf18aa880f Improve support the SCSI disk identification: detect 128 disks instead of 16
Change-Id: Ibc8132efd12ba8e73c6f16fda38b18506c7f21eb
Closes-Bug: #1273086
2014-01-29 07:57:26 +04:00
Jenkins 1bdee28c2f Merge "Add uuid to facts" 2014-01-24 11:18:03 +00:00
Bogdan Dobrelya a641e5dcad Add uuid to facts
For physical HW that would be unique chassis id (from BIOS settings).
For kvm guests that would be virsh domain uuid. Used with fence_virsh agent.
For other hypervizors - not tested.

Implements: blueprint facter-uuid

Change-Id: Idd92a3e0dc41040c76243f92fa84e14b9da03b6d
Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-01-23 16:51:29 +02:00
Bogdan Dobrelya 894a1c68e8 Add fencing agent script as a separated task
Based on nailgun agent, should be installed the same way
To run unit tests use:
rspec ./bin/fencing-agent_spec.rb --color --format documentation

Requirements for tests:
ruby 1.9.3p429 / 1.8.7p371
rspec 2.14.7
---------------------
httpclient (2.3.4.1)
json (1.8.1)
logger (1.2.8)
ohai (6.20.0)
rethtool (0.0.3)

Depends on: https://review.openstack.org/66607
Implements blueprint: fencing-in-nailgun-agent

Change-Id: Iceee47c47d35969f4ff08a0eb5b1e74b12b8b92f
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-01-22 14:50:25 +02:00
Andrew Woodward 807ecd7b3c Fix typo in agent mac fallback selection
Fix typo in agent mac fallback when no interface is inside the network
 that also contains the api address

Resolves-bug: #1270963

Change-Id: I7744c9fae3db2df63c8e73b0e557a7ff992efe0e
2014-01-20 15:04:20 -08:00
Ryan Moe 0fb17b83ca Add cciss device numbers to nailgun agent
Change-Id: I1cc9d7579855ca9e069179d914efa0609546f14b
Closes-bug: #1259612
2013-12-18 10:11:52 -08:00
Vladimir Sharshov 0e60ff862d [PRD-1728] Add state for node network interfaces(agent, nailgun, web UI)
Related-Bug #1247022

Change-Id: If8358938aa67ff0d90eeaec0923b7cffe523bf33
2013-11-25 12:45:31 +04:00