Commit Graph

39 Commits

Author SHA1 Message Date
Jenkins a15361393e Merge "Register all config options in one place" 2017-03-02 10:25:29 +00:00
Dmitry Bogun 1f33e227f8 Improve ironic-callback
Add support to new bareon-ironic communication "protocol" - extension
for vendor passthru API. This protocol allow to receive generic
tasks(steps) from bareon-ironic driver, process them on bareon "side"
and send back results.

Right now only one step is implemented - step to inject SSH key.

Change-Id: I9ea828b24085fa72df470eef41ad32d9096f6b40
2017-03-01 16:03:28 +02:00
Dmitry Bogun 937eb632e5 Register all config options in one place
Make a single point responsible for config option registration to
increase control over config initialization and avoid conflicts.

Usually such conflicts become visible when sharing code with externa
callers. In our case it was the deployment config validator (part of
data drivers), exported as part of the ironic data driver via the
setuptools entry point.

Change-Id: Ibba18db61c222d910d8dca8866ea74b14ce011c8
2017-02-28 13:12:47 +00:00
Dmitry Bogun a00d1239bc Add data validation tool
Simple command line tool to check data intended to bareon. It uses data
validation API provided by data-drivers in same manner as data-drivers
do during "regular" call of bareon.

Change-Id: I2a8950178839c13d8ebcc72cacba203b4bfe37c5
2017-01-05 12:17:55 +00:00
Dmitry Bogun c1fb86038f Extend usage of jsonschema
Validate all data feeded into bareon by jsonschema, not only data
related to disk partitioning.

It allows ironic-driver to make early data validation
(https://review.openstack.org/410841).

Change-Id: Ic1acf6b162ada83950ad4a890d32ca2a80152302
2017-01-05 11:57:39 +00:00
Dmitry Bogun af70312e49 Adopt functional test to changes into ramdisk-func-test
ramdisk-func-test bring mixin for base test class. Also it provides more
comfort way to address template folders.

Change-Id: Iea8c92491b9d7a58a8ec806f9da7bf204c3f974e
2017-01-05 11:57:32 +00:00
Alexander Gordeev 478e4c149d Add bootloader do_action
Partially implements blueprint: pluggable-do-actions

Change-Id: I92c8864dc3021b04d0d0f898198007176a1e92fe
2016-04-27 19:54:33 +03:00
Alexander Gordeev 981a3e9023 Add copyimage do_action
Partially implements blueprint: pluggable-do-actions

Change-Id: I35dc0dcca286c7c9867aef417a72232f79b74ed4
2016-04-27 19:44:09 +03:00
Alexander Gordeev 9b4258a908 Add configdrive do_action
Partially implements blueprint: pluggable-do-actions

Change-Id: I26ef45dea9fe0b72308e242fb96aa48d170da3d8
2016-04-25 20:23:56 +03:00
Alexander Gordeev 711c4a1fca Rename do_actions to actions
Partially implements blueprint: pluggable-do-actions

Change-Id: I58a995e1e373b8ce5b9718e2c26f1044b51f4e11
2016-04-25 19:00:16 +03:00
Jenkins efa231baa3 Merge "Add partitioning do_action" 2016-04-22 13:49:19 +00:00
Alexander Gordeev 2944f826b3 Add partitioning do_action
Partially implements blueprint: pluggable-do-actions

Change-Id: I338bced3879d1327d24b0d68ca09206353edd4ad
2016-04-20 15:18:12 +03:00
Evgeny L 4f9b423697 Release 0.0.1.a3 version
Change-Id: I8e07b9ecd048b784930cdeeb85b76cffd4d3bfc7
Closes-bug: #1571669
2016-04-19 12:28:42 +03:00
Evgeny L fa8e43f1d9 Release 0.0.1.a2 version
Closes-bug: #1571669
Change-Id: Iec318c95669e591bdf1b411664ab0c7b300087db
2016-04-18 19:06:17 +03:00
Evgeny L 6aebe663d2 Change version of bareon to 0.0.1.a1
Version of bareon has to be changed from 0.0.1.dev1
to 0.0.1.a1 since .dev1 does not match to regexp
in publishing gate.

Change-Id: Id9be97f91ddf430a90ead8b396dea53ea14b1905
Closes-bug: #1565862
2016-04-15 17:55:46 +03:00
Alexander Gordeev f24eaf5712 Introduce Flow DeployDriver
Partially implements blueprint: pluggable-do-actions

Change-Id: I1bb6a5e904741a8689d08e1939a3e098864a5d03
2016-04-07 20:20:13 +03:00
Evgeniy L f2f89a63eb Change version of bareon to 0.0.1.dev1
Closes-bug: #1565862
Change-Id: Ica789b1340666875475b37f7fa3be5c6108909fc
2016-04-04 18:52:16 +03:00
Mark Goddard 8fe4fff91f Contribute core Cray changes to Bareon
This is a contribution of features made in the scope of Cray
Bareon adoption. Even though changes affect a lot of code,
they are not breaking. To proove that we have created a functional
test that covers existing nailgun deployment flow
(see /tests_functional/test_nailgun.py)

We have made Manager a deploy_driver. Current nailgun's manager
has been moved to nailgun deploy driver, which is default. Most of
the changes made in the scope of the project are enclosed within
Ironic data driver and Ironic (swift & rsync) deploy drivers.

To make this review easier I propose the following order:
Review changes to existing code:
- review changes to object model
- review changes related to splitting deploy driver / base drivers
- review changes to common utils
Review the new code:
- review Ironic data driver
- review Ironic deploy drivers

Change-Id: Id2d32a7574e6fcafee09490c39fb114c80407db7
Implements: blueprint size-unit-conversion-and-relative-sizing
Implements: blueprint policy-based-partitioning
Implements: blueprint multi-image-deployment
Implements: blueprint rsync-image-deployment
2016-03-23 16:42:32 +02:00
Ronald Bradford 2eed19e922 Graduate to using oslo-config-generator
Move to using the oslo.config library to generate sample
configuration file using  tox -e genconfig

Implements: oslo-config-generator [1]
[1] https://blueprints.launchpad.net/oslo-incubator/+spec/oslo-config-generator

Change-Id: Ic390f4409b5e24f01b7d561e1e1998d66dd97e33
2016-03-15 15:22:02 -04:00
Evgeniy L 4c844e9584 Accoding to pbr doc development version should have numeric postfix
Pbr documentation of versioning:
http://docs.openstack.org/developer/pbr/semver.html

Change-Id: I5c57b0b45a5ae0adc5460caa9e1065dc6e2787ae
Closes-bug: #1535728
2016-01-19 16:41:13 +03:00
Evgeniy L 18893f0d08 Use bareon-* namespace for command line entry points
Change-Id: I3aa9bcf81a961f2eac5068ab243001f0b03738f6
Closes-bug: #1526346
2015-12-15 18:02:44 +03:00
Evgeniy L 99528c2de7 Rename fuel_agent into bareon
Change-Id: I5c0552db35595b726c35ab5dab626cc326ef759f
Closes-bug: #1524269
2015-12-15 14:14:42 +03:00
Evgeniy L cbfef42bd0 Create initial structure for the documentation
This basic structure is basically gets generated
by cookie-cutter.

Add dependencies from openstack global requirements.

Change-Id: I8391720f183555bcac6a26c1a55276c775d5d369
Closes-bug: #1524896
2015-12-14 15:56:57 +03:00
Fedor Zhadaev 7aacc60886 Add driver for building bootstrap image
Change-Id: Id6f0bc993e307fdb02d46f0a5bc5260755b1d86b
Partially-implements: blueprint dynamically-build-bootstrap
2015-11-25 18:47:33 +03:00
alexz df64c30ff9 Add do_mkbootstrap entry point
* New entry point, which adds possibility to create console_script
  with native setup.py

Change-Id: I4c2004b355339a1b601fa9120faf547e181decc4
Implements: blueprint dynamically-build-bootstrap
2015-11-18 12:49:56 +02:00
Yuriy Zveryanskyy fb042124a1 [Ironic] Add callback script for deploy with Ironic
A new executable 'fa_ironic_callback' added. This script does
call back to Ironic API with IP address of boot interface.

Implements blueprint: baremetal-deploy-ironic
Change-Id: I10fadd34f3c0c0979a5fcb9bcb487ef99e720523
2015-10-12 16:36:01 +00:00
Vladyslav Drok bb7b13b6c0 [Ironic] Ironic deploy support for Fuel Agent
This patch adds support for Ironic Fuel Agent deploy
driver.

Co-Authored-By: Yuriy Zveryanskyy <yzveryanskyy@mirantis.com>
Implements blueprint: baremetal-deploy-ironic

Change-Id: Ia64099b0f99ca1844421e569fad2415c1214713f
2015-10-12 19:34:21 +03:00
Vladimir Kozhukalov 5a0893726a Change version to 8.0
Change-Id: Ibcf0659293f659392aa2fa11996a124828d32a04
2015-09-03 12:02:36 +03:00
Sebastian Kalinowski 9e22866f3e Add simple data driver for partitioning info
This new "simple" data driver takes serialized partitioning info
that is provided before provisioning from external tool.
It does not make any calculations for that data and expect it to have
all required informations about partitioning.
Other changes:
* added unittest2 to use some of it features
* added requests_mock to mock http requests
* added objects conversion to/from dictionary to make serialization
  easier
* added a common "interface" for data drivers
* fixed test for "do_build_image" - now a correct data driver is used

Change-Id: I673cde6f0ead9945919a87cd1cfce7ed09c6e593
Implements: blueprint volume-manager-refactoring
2015-07-16 10:11:02 +02:00
Sebastian Kalinowski 5e552e4b0a Remove pbr import from fuel_agent's setup.py
Importing pbr in setup.py prevents installing
fuel_agent into clean environment (without pbr).

Change-Id: I2734b3cd97ddde7d243b71c3a7112e2519b7b7e2
Closes-Bug: #1472082
2015-07-07 14:48:59 +02:00
Aleksandra Fedorova df13e2c9a0 Bump version to 7.0
Change-Id: I0c3a3a62c26724ad10a5108f019002c5fbf091f9
2015-06-09 15:31:45 +03:00
Jenkins b8246b88ff Merge "Set version of Fuel to 6.1 everywhere" 2015-04-22 13:23:56 +00:00
Vladimir Kozhukalov 9c5e3579bf IBP: Added driver and objects for building images
As far as building of OS images is nothing more than
just a stage of the whole OS installing procedure
it is sounds rational to implement this in terms
of fuel-agent. Besides, we already have plenty of utilities
which could be useful during building of images.
And some tasks are the same like pre-configuring
some files inside target OS.

Related-bug: #1433193
Implements: blueprint ibp-build-ubuntu-images
Change-Id: I3fadfb16e06e4ee16926da29b7b83ca005500698
2015-04-17 17:11:09 +03:00
Dmitry Pyzhov 9f3839c7ac Set version of Fuel to 6.1 everywhere
blueprint package-fuel-components

Change-Id: I728b06cae0abb6a4a491641545b0cf8ee19bfd01
2015-04-16 14:55:58 +00:00
Igor Kalnitsky 26530dc506 Increase Fuel-Web projects' versions
Should be merged at once with relevant patches to:

* fuel-ostf
* fuel-astute
* fuel-main

Change-Id: Ic68983a8fb91c32d73408cd1f54439062175ee75
Closes-Bug: #1395279
2014-11-29 10:44:42 +02:00
Dmitry Pyzhov c6ab65210d Revert "Increase Fuel-Web projects' versions"
This reverts commit f60f39c7b904b27d99502a48c551167cb6171a62.

Change-Id: I77370f00f31ed50efea3bc51503e150736a572d6
2014-11-28 21:53:03 +00:00
Igor Kalnitsky 5b9e4e23d2 Increase Fuel-Web projects' versions
We need to increase Fuel projects' versions at least once per release,
because that will help us to track problems in multi-releases
environments and prevent us from some bugs (like the nailgun of same
version are available in few repos).

The patch should be merged at once with next one:

    https://review.openstack.org/#/c/137555/
    https://review.openstack.org/#/c/137566/
    https://review.openstack.org/#/c/137563/

Change-Id: I7ba73ce63a9fb228ef8c8b40f5feda5a32150a3c
Closes-Bug: #1395279
2014-11-27 18:22:15 +02:00
Alexander Gordeev f56cde93e0 Add more enpoints mainly for tests
Partially implements: blueprint image-based-provisioning
Change-Id: I8c2d2abc38068b6da59243d73d545dad62097aff
2014-09-08 17:34:11 +04:00
Vladimir Kozhukalov 7730a743bb Added Fuel agent
Fuel agent is a bunch of tools which are
supposed to be placed on bootstrap image and
used for node discovering and image based
provisioning.

Implements: blueprint image-based-provisioning
Change-Id: I946decd50c51e6db767401682d9effbe3cf42bed
2014-07-10 19:05:58 +04:00