Commit Graph

11 Commits

Author SHA1 Message Date
Benjamin Michael Cooper 860c344ccf Fix bug in when verification is called
Fixes a bug introduced by change 422821. In this change, the schema
validation was moved from the 'prepare' to 'validate' method in
'_clean_up_images'. This causes the validation to be performed before
the provision.json has been generated for a given node and so results
in a Nova Scheduler error as '[Errno 2] No such file or directory'.
Moving the function call back to 'prepare' fixes this problem.

Change-Id: I9128abb5dbc0579190323979f93691e21f4ef6b2
2017-06-22 13:26:39 +01:00
Dmitry Bogun 7468264200 New communication interface with bareon instance
Set of tools that represent some sort of API to communicate with bareon
instance. This API use vendor_passthru ironic API to "catch" request
from bareon instance to ironic API. So bareon-ironic driver can receive
bareon insnstance requests. This is existing communication channel.

Before it was used to receive notification from bareon instance about
successfull node load.

Now this channel is extended to send "generic" tasks(step) from
bareon-ironic driver to bareon instance. Right now only one task(step)
is used - step to inject SSH key into bareon instance.

This new "steps" interface allow to refuse from preinstalled SSH key
in bareon instance, right now. And in future it allow to refuse from SSH
communication between bareon-ironic and bareon instance...

Change-Id: I0791807c7cb3dba70c71c4f46e5eddf01da76cdd
2017-02-28 16:06:57 +02:00
Andrei V. Ostapenko 2155173777 Adopt code to ironic changes (since kilo)
Ironic code now provide PXE configuration tools. So we can drop our own
PXE related code.

Ironic images manipulation code have been improved. This allow to drop
some more our code.

Change-Id: Iaeda025456dbde9163c792e6de6d165c6f03f197
2017-02-03 19:26:44 +02:00
Andrei V. Ostapenko 1d24cf4552 Rename variables
* Change default path of private key
* Rename config group
* Rename 'fuel-agent' to 'bareon'

Change-Id: Ibaf29ea769bcc9408d41ae94dd6bf9d507fe0564
2017-01-13 12:54:19 +00:00
Dmitry Bogun 9133da6104 Add deployment config validation
Use deployment-config validation API provided by bareon's data-drivers. It
makes early deployment termination possible in case of an error in
deployment-config.

Change-Id: I17b5d74f1452c9bb2ae3ea63ab0ee8f1fe597ae9
2017-01-13 14:53:00 +02:00
Dmitry Bogun 5c79e69521 FIX dashes usage in image names
Image names stored into deployment config are looses dash characters
during preparation of deployment config on node boot. This is not
desired behaviour. And now it is fixed.

Change-Id: If188b53160ffbad664b1505373edf3ee0fb14bd7
2016-12-13 17:48:50 +02:00
Dmitry Bogun 3c8941ffbe Reimplement SSH port forwarding
New implementation adds verification of created port forwarding. Also it
produce detailed error reporting including verbose output from ssh
process.

Change-Id: I8841e89cf7e78fad0f99e05d1d83a73cc253d05b
Closes-Bug: #1644835
2016-12-08 12:42:01 +02:00
Doug Szumski 65f5f65984 Support stable/mitaka
Add support for stable/mitaka including new patches for ironic
and nova.

Change-Id: Ie566dd22aaddc30858438a98767ef962182e97d9
2016-11-23 16:14:31 +00:00
Dmitry Bogun 52d26cafdd Change the way we use sphinx(autodocs)
To match the mainstream and pass gate-bareon-ironic-docs-ubuntu-xenial
move from Makefile based docs generation to setuptools based.

Change-Id: Iff77c8428490ab3147d9d1312369d712fe68643d
2016-11-23 17:09:06 +02:00
Mark Goddard 210a6383e4 Fixed compatibiliy with stable/liberty
Change-Id: I2e79db9816e7cd7c55318dcb20c72bd7671c00d2
2016-04-18 17:13:06 +03:00
Mark Goddard de9c84dc80 Initial commit
Change-Id: I34e41fabb648368189b479e4cfbc78747d465b95
2016-04-15 11:36:28 +03:00