11 Commits

Author SHA1 Message Date
Pierre Riteau
f3c0526c09 Adapt to changes from the Bifrost Victoria release
The critical part of this commit is adapting code that was still
sourcing env-vars. This file was removed from Bifrost in the Victoria
release, breaking the `kayobe seed deployment image build` command.

The other changes are not yet breaking Kayobe:

1) Release notes claim that OpenStackClient is no longer installed when
   keystone is not enabled, but it appears to still be available. Use
   the ironic native baremetal command instead except in playbooks
   related to baremetal compute nodes (i.e. overcloud ironic).

2) The use of OS_CLOUD=bifrost-inspector is deprecated and should be
   replaced by OS_CLOUD=bifrost.

Change-Id: I25078e69acdf41a4ef9957f99fe5047de54b778d
Story: 2008558
Task: 41696
2021-01-27 11:00:36 +01:00
Pierre Riteau
b3c640de7e Fix "Wait for the ironic node to be inspected" task
Variables to customise hardware inspection timeouts were introduced in
change I2e45876f89121d66cf03b50824bd8258517b88cb. Unfortunately, the
wait_inspected_timeout variable is turned into a string despite
inspector_inspection_timeout being originally defined as an integer,
causing the following error:

Unexpected templating type error occurred on ({{ wait_inspected_timeout // wait_inspected_interval }}): unsupported operand type(s) for //: 'str' and 'int'

Change-Id: Ie40a3eed7146e2e2d8b1c08860da395b35ed99d6
Story: 2007844
Task: 40135
2020-10-14 17:54:25 +02:00
Pierre Riteau
db15a80123 Allow to customise hardware inspection timeouts
Change-Id: I2e45876f89121d66cf03b50824bd8258517b88cb
Story: 2007844
Task: 40135
2020-06-22 12:24:00 +02:00
Raimund Hook
6df6277096 Updating Jinja filters to conform to Ansible 2.5+
Since Ansible 2.5, the use of jinja tests as filters has been deprecated.

I've run the script provided by the ansible team to 'fix' the jinja filters
to conform to the newer syntax.

This fixes the deprecation warnings.

Change-Id: I775c849c944f82bdfc779c8c530346e7ebedbd2a
2019-06-28 16:34:24 +01:00
Mark Goddard
411340b005 Fix bifrost automation tasks for Rocky
Changes to the openstack ansible modules and client SDKs have rendered our
authentication for ironic invalid. Bifrost now provides a working clouds.yaml,
so use this instead of the fudged endpoint/token setup in env-vars.

Also updates some use of the ironic client to the openstack client, and adds
support for the new 'inspect wait' ironic state to avoid surprises during
inspection.

Change-Id: I15ea388b6df8ced9cc0e0eceed8dec8aa8f57a9b
Story: 2001864
Task: 28078
2018-12-20 17:03:16 +00:00
Mark Goddard
7341ced88f Fix Ansible warnings for use of until with {{ }}
As for 'when' clauses, 'until' should no longer use brackets, lest you
receive a written warning from Ansible.

TrivialFix

Change-Id: I1f10092ce283d288ae75600c4d0a450697b37c9f
2018-05-24 17:56:50 +01:00
Mark Goddard
d8fe45b3d8 Tag all (well, some of) the things (plays)
Having tagged plays allows us to easily run a subset of the plays for a
command, and perform targeted operations with less risk of unintended
consequences.

The tags are typically named after the playbook, although some of the
overcloud playbooks have been tagged without an overcloud- prefix.
2017-12-19 16:58:21 +00:00
Mark Goddard
ca284aea06 Fix ansible warnings for when clauses with curly braces 2017-10-20 12:14:35 +01:00
Mark Goddard
1e7502000e Work around issue with delegate_to not respecting ansible_user
When using delegate_to with an IP address, ansible does use the corresponding
host in the inventory, and so not respect the ansible_user variable of the
delegate host. Here we revert to using the delegate host's inventory hostname,
and force ansible to respect the ansible_host variable of that host by setting
the variable in the task explicitly.
2017-08-15 14:58:54 +00:00
Mark Goddard
27db155c0e Add support for monitoring nodes
Currently these nodes are not deployed using kolla-ansible but use the
host provisioning and host OS configuration pieces of kayobe. The
monasca-deploy project is used to deploy the monitoring services.
2017-05-29 16:52:17 +01:00
Mark Goddard
35aab4e4fe Add kayobe overcloud hardware inspect command
Performs hardware inspection of controllers using existing ironic nodes
2017-04-05 11:23:44 +01:00