Commit Graph

123 Commits

Author SHA1 Message Date
Andreas Jaeger 797016c54b 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: Icc6a810696788e65e9afd8be691400d4d39de313
2019-12-18 09:38:51 +01:00
Jenkins 92baf4b2d5 Merge "Replaces yaml.load() with yaml.safe_load() for fuel-agent" 2017-04-25 13:22:00 +00:00
Jenkins 18b834e52c Merge "Use new Ironic's heartbeat API" 2017-04-25 11:52:05 +00:00
Jenkins 2df314ec83 Merge "[Multitenancy] Add logic to work with network providers" 2017-04-25 11:49:51 +00:00
Vasyl Saienko 0d058150ad [Multitenancy] Add logic to work with network providers
This patch adds logic to work with network providers to fuel_* ironic drivers.

Depends-On: I742a52c991058d1f8bd9170f9b583c28dff22839

Change-Id: Ic3f831a9a9e5ec9031bf1a588df62c9338c47d20
Related-Bug: #1588380
2017-04-03 17:11:50 +00:00
Jenkins 2929226671 Merge "Packages for distributed serialization added to bootstrap" 2017-03-24 16:46:08 +00:00
Georgy Kibardin ea8fc2bdfe Sync mcollective config with /etc/nailgun_uid
The contents of /etc/nailgun_uid can be changed by nailgun agent. We need to
synchronize the change to mcollective config.

Closes-Bug: #1675668
Change-Id: Idabc7be6181bc89c09e4d0caa4a7cf0c22767bfe
2017-03-24 13:48:02 +03:00
Alexander Kislitsky 1b8728539c Packages for distributed serialization added to bootstrap
All packages required for fuel-nailgun added to the bootstrap image.
Dask worker startup added.

Change-Id: I7155601a0f95c891a40f3c9d02d1758936ffbb45
Implements: blueprint distributed-serialization
2017-03-23 14:03:16 +00:00
gengchc2 31c2a87e61 Replaces yaml.load() with yaml.safe_load() for fuel-agent
Yaml.load() return Python object may be dangerous if you receive
a YAML document from an untrusted source such as the Internet.
The function yaml.safe_load() limits this ability to simple Python
objects like integers or lists.

Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html

Change-Id: I5fb95063402e5adffeee0c2ead7adfd44eb76179
2017-03-10 01:08:02 +00:00
Igor Gajsin 5ca9406f49 Add to bootstrap image packages for distributed serialization
There are packges python-dispy and python-psutil that requares for
the distributed serialization.

Change-Id: Ife24b7de4eb1146cbe2a5a0c936f61a586d97e95
Implements: blueprint distributed-serialization
2017-03-09 18:48:36 +03:00
Georgy Kibardin fe2a888abd Remove nodiscover file from bootstrap
It is not used anymore during bootstrap boot phase to syncronize mcollective
service startup.

Change-Id: I4997e3cb8aa57f9ffac22f8d7c01de8447b640be
Partial-Bug: #1585671
Depends-On: Ic8e31d6381d8ffb8f7fdfd1aa8ebc655bb4535ec
2017-02-22 12:28:40 +03:00
Jenkins 7d1bb708d1 Merge "Add FCoE rules to fix env renaming" 2017-02-21 14:20:30 +00:00
Jenkins c2e6e802cb Merge "Change the way how we instantiate fuel client" 2017-02-15 13:40:14 +00:00
Vladimir Kuklin 179b418661 Add FCoE rules to fix env renaming
Add a special rule for fcoe devices to reuse ID and net_name
to avoid renaming issues in bootstrap.

Change-Id: I40c699b37199f93bfdf0157d0eb795b735254990
Closes-bug: #1656892
(cherry picked from commit 9ea6419878)
2017-02-14 10:38:55 +00:00
Georgy Kibardin b419f9a21e Remove nodiscover file
While new nailgun agent is not committed yet we need to explicitly remove
/etc/nailgun-agent/nodiscover to unblock it from starting

Change-Id: I3199591e7da95bac221be3554f97b00757db160a
Partial-Bug: #1585671
2017-02-13 10:53:20 +03:00
Georgy Kibardin 5877315c7f Configure mcollective identity in startup scripts
As a part of handing over control over mcollective from nailgun agent to
startup scripts lets get rid of of nodiscover file flag and perform
mcollective configuration and start

Change-Id: Ia2f984570b38642b1090f6483ed3fa78958550c5
Partial-Bug: #1585671
2017-02-09 14:33:48 +00:00
Vladimir Kozhukalov 5fa98926f5 Change the way how we instantiate fuel client
The issue is that in python-fuelclient API has been
changed and fuelclient.client.APIClient is not available
anymore. It used to be a singleton of fuel client but
now it is deprecated. So, let's use APIClient.default_client
classmethod to instantiate APIClient.

https://github.com/openstack/python-fuelclient/blob/stable/newton/fuelclient/client.py#L51

Change-Id: I5287184c6f1c6abf8ac61894db0bd51fbf730401
Closes-Bug: #1620584
(cherry picked from commit 02b7979845)
2017-02-08 12:53:29 +00:00
Georgy Kibardin 5c612875a6 Use explicit path in Xenial
Nobody promised PATH to be set during rc.local execution by systemd. And
it happens that this is the case on some systems, i.e. the PATH is not
set by the time of rc.local execution.

Change-Id: I4806df3217dd09430ad45b13cda49fab0925cb88
Partial-Bug: #1656150
2017-02-08 10:30:24 +00:00
Evgeny L 9488b8a324 Add to bootstrap image dependencies for network checker
Network checker should be able to run on bootstrap nodes
without the access to repositories.

Closes-bug: #1653294
Change-Id: I4fae538968ab4a75269858a73e5065818a9f4f04
2016-12-30 22:23:58 +00:00
Jenkins 451c4b8402 Merge "Revert "Ignore heartbeats lock fails"" 2016-12-28 11:42:18 +00:00
Georgy Kibardin f15987c3f2 Revert "Ignore heartbeats lock fails"
It seems that there are at least two level of ruby-stomp brokenness and
the fact that the mutex in original commit is locked actually means
there is no heartbeat received in time and we need to do something about
this.

This reverts commit b50241a7b2.

Closes-Bug: #1644618
Change-Id: I8351abaf0078b094bff2aa20994575c15aec213b
2016-12-27 09:33:51 +00:00
Jenkins 35d08b7061 Merge "Delete kernel debug related parameter for performance" 2016-11-21 09:55:20 +00:00
Vladimir Kozhukalov 0fd70bb712 Add pbr version hook to fuel_bootstrap
Change-Id: I5f3778c86314c59d90a8f1b74a4aa1bc8e90241e
Closes-Bug: #1642549
2016-11-17 14:07:33 +03:00
Wei Hui babe668c21 Delete kernel debug related parameter for performance
Those deleted kernel parameters are extremely heavy debug.
The boot process is rather slow on machines which has a
complicate motherboard and lots of pci devices(Lenovo RD640).
The debug process costs so much resouce, evetually it will impact
normal functions, such as cpus are so busy dealing with debug
info in kernelspace, they do not have time to reponse udev
event in userspace and failed to bring up pci devices.

Change-Id: I964c5fbc7f5b7d0ba6d1dd0166db3e4234179afa
Closes-bug: #1632592
2016-11-07 13:40:06 +00:00
Vasyl Saienko 8125d9ecd5 Add ironic-callback systemd script.
This patch replaced ironic-callback upstart script by systemd.

Change-Id: Idfbe2de940f0e99e8d0fcf952a9153631b6789b1
Closes-Bug: #1624011
2016-09-16 15:52:36 +03:00
Georgy Kibardin b50241a7b2 Ignore heartbeats lock fails
Stomp heartbeat handling is quite poorly designed. It happens in a
separate thread which sleeps, then tries to read a heartbeat if reading
mutex is acquired by message receiving thread it fails and increases
lock failure count. Upon reaching the limit (in our packets it is 2 by
default) it forcibly closes the connetion causing reconnect. Setting the
value to 0 turns the feature off.

Change-Id: I2187ce69508c530073582c542c963014acc5123a
Closes-Bug: #1613246
Closes-Bug: #1298262
2016-09-13 18:46:21 +03:00
Pavlo Shchelokovskyy 8770b8563d Use new Ironic's heartbeat API
also make the callback script more resilent by retrying attempts
to contact Ironic API (hardcoded 50 times).

Change-Id: I269c1b95ee5702ed435df30834e239bd6f6f0582
2016-09-07 11:27:18 +03:00
Albert b3b10de4c5 Enabling specify --config file from CLI when building fuel-bootstrap
Closes-Bug: #1608925

Change-Id: I5bac895daf85bdc52b1672f53fec1b707db24473
2016-09-06 11:33:49 +00:00
Pavlo Shchelokovskyy cb77827303 Rename pass_deploy_info to heartbeat
by default, Ironic's API routing now exposes only 'lookup' and 'heartbeat'
vendor passthru methods of drivers as public routes [0].

Rename the vendor passtru method 'pass_deploy_info' of fuel-agent driver
to 'heartbeat' to make it accessable w/o authentication by callback
script.

In the Ocata cycle, this also will be removed and fuel-agent driver
must switch to the root 'heartbeat' API (/v1/heartbeat/node-uuid>).

[0]
https://github.com/openstack/ironic/blob/master/ironic/api/config.py#L37

Change-Id: Ie1dbd8a8aac62034beba88ecd206a8e7712514e2
2016-08-31 16:51:15 +03:00
Stanislaw Bogatkin f88768583c Add puppet and daemonize to default packages list
Provision process moving to fuel-library tasks from nailgun and astute
and as all tasks we have are wrapped to puppet manifests, we need
puppet to have an ability running provision tasks in bootstrapped node.

Implements: blueprint graph-concept-extension

Change-Id: I0f0078071f8e32bace345d636c602e68c91aa55b
2016-08-17 14:27:13 +00:00
Jenkins b23fe46336 Merge "Switch to Ubuntu Xenial" 2016-08-02 13:55:14 +00:00
Dmitry Teselkin 9a7ce19453 Switch to Ubuntu Xenial
Switch bootstrap image to Xenial by default.

blueprint: mos-xenial

Change-Id: I7ed0d7a7cb5d82a191da353cc39e50820ab93084
2016-08-02 12:21:28 +00:00
Jenkins 21a2d92225 Merge "Xenial support for fuel-bootstrap" 2016-07-22 15:08:02 +00:00
Dmitry Teselkin 78f11337aa Xenial support for fuel-bootstrap
Add files required to build Xenial based
bootstrap image. This is for switching to Xenial
in the nearest feature.

blueprint: mos-xenial

Change-Id: I06ee5a036d49c989e977af77dcebd4be01ee7dcd
2016-07-21 15:44:25 +00:00
Artur Svechnikov ab6e0bdbc8 pin fuel-bootstrap version to 10.0.0
fuel-bootstrap is part of fuel and its version
should be appropriate

Change-Id: I31d3925ef3512d78c257721959b3f9fe37fe4588
Related-Bug: #1599155
2016-07-05 17:01:36 +03:00
Jenkins 1af3726d6b Merge "Add tests for commands" 2016-06-16 14:03:18 +00:00
Anastasiya f30cbe32a8 Add tests for commands
* add test for activate
* add test for build
* add test for delete
* add test for import

Change-Id: Ieee32ae87c25c6d7b8300ffed3fcd6903f3fb160
Partial-Bug: #1522353
2016-06-16 14:26:54 +03:00
Jenkins e5d0899d3e Merge "Add tests for app" 2016-06-15 11:26:03 +00:00
Artur Svechnikov c02f823c38 Add tests for app
* add pytest fixtures
* add base tests
* add test for list

Change-Id: I3dc043a43654ac4b18a8555baaa4bdcc9b2e67e6
Partial-Bug: #1522353
2016-06-14 11:42:30 +00:00
Jenkins 5b0cbec49c Merge "Add tests for utils.bootstrap_image module" 2016-06-09 15:28:53 +00:00
Anastasiya 00eb2a9aa6 Add tests for utils.bootstrap_image module
Change-Id: Iaa5164539ab7dcde6b0c0990f435f6209c4a6ba1
Partial-Bug: #1522353
2016-06-07 17:55:21 +03:00
Jenkins cd3f800e30 Merge "Add tests for utils.data module" 2016-06-01 17:50:46 +00:00
Anastasiya 67c704d255 Add tests for utils.data module
Change-Id: I411a0f8041e7361eb01f848c76a53a7ec3bea3f9
Partial-Bug: #1522353
2016-06-01 11:55:14 +03:00
Maksim Malchuk 39fe69492c Run console on the serial port if required
This commit adds the ability to use IPMI SOL console when the nodes
provisioned with an option 'console=ttySx' or 'console=ttySx,speed',
where x is 0 for the COM1 and 1 for COM2. If speed parameter doesn't
provided so 9600 used as default. This feature can be used for the
bootstrap nodes too.

DocImpact
Closes-Bug: #1544820
Change-Id: I210001c5692281add2439843f4ad69d65c8f6e17
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-05-24 18:43:53 +03:00
Lucas Alvares Gomes e330c28252 Drop ironic-lib dependency
This patch is copying the unlink_without_raise() method from the
ironic-lib to the fuel-agent repository. The ironic-lib is not a library
that should be considered stable to be used by projects outside the
Ironic umbrella.

Change-Id: I746fbb0dd18b59739e753282bf6ded6690df5230
2016-05-19 17:34:34 +01:00
Jenkins 6cba880c9e Merge "Added ability for running tests." 2016-05-17 14:42:29 +00:00
Jenkins 3725a02581 Merge "Remove NVMe devices workaround due to fixed LP #1551432" 2016-05-16 17:01:23 +00:00
Anastasiya 82fe6c4f96 Added ability for running tests.
* Configuration file shouldn't exist for running test.
* Class Configuration was refactored. If config file couldn't
  be found, object created with empty data. Exception isn't raised.

Change-Id: I614faa4cf17ae0c717d8ee9cad91ac8024924151
Partial-Bug: #1522353
2016-05-13 17:26:16 +03:00
Ivan Suzdal f8b132442a Remove NVMe devices workaround due to fixed LP #1551432
Change-Id: I205ed65c19aa01e883d1ca02a136b679ed8eb802
Closes-Bug: #1580723
2016-05-12 16:53:56 +03:00
Artur Svechnikov 305638331b Basic configurations for fuel-bootstrap tests
* Change tox.ini to run both fuel-agent tests
  and fuel-bootstrap tests
* Add basic requirements test

Change-Id: I877696503d56a511bd84ffe36099e6c57587e748
Partial-Bug: #1522353
2016-05-11 11:54:52 +03:00