Commit Graph

24 Commits

Author SHA1 Message Date
Alex-Welsh 47829142cd Update gitignore for .vscode/ configuration files
Change-Id: Ie272e701b8952ef106be99b8fe36eb04cb524898
2023-05-31 09:53:11 +01:00
Mark Goddard c9f8d80ba6 Stop using kolla-ansible bootstrap-servers
The 'kayobe * host configure' commands no longer use the 'kolla-ansible
bootstrap-servers' command, and associated 'baremetal' role in Kolla
Ansible. The functionality provided by the 'baremetal' role has been
extracted into the openstack.kolla Ansible collection, and split
into separate roles. This allows Kayobe to use it directly, and only the
necessary parts.

This change improves failure handling in these Kayobe commands, and aims
to reduce confusion over which '--limit' and '--tags' arguments to
provide.  This ensures that if a host fails during a host configuration
command, other hosts are able to continue to completion. Previously, if
any host failed during the Kayobe playbooks, the 'kolla-ansible
bootstrap-servers' command would not run. This is useful at scale, where
host failures occur more frequently.

This change has implications for configuration of Kayobe, since some
variables that were previously in Kolla Ansible are now in Kayobe.

Several parts of the baremetal role have been split out and used here:

* apparmor-libvirt: disable AppArmor rules for libvirt on Ubuntu.
* docker: Docker installation & configuration. The docker role in
  openstack.kolla combines functionality from kolla-ansible and kayobe.
* etc-hosts: it proved difficult to generalise this, so we have some
  almost duplicated the code from kolla-ansible here. Requires delegated
  fact gathering for the case when --limit is used.
* firewall: support to disable UFW, for feature parity.
* kolla-packages: miscellaneous package installs & removals.

The addition of the stack user to the docker group has been moved to the
user bootstrapping playbook, and the docker SDK installation has been
moved to the virtualenv setup playbook.

Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/829587

Story: 2009854
Task: 44505

Change-Id: I61a61ca59652b13687c2247d5881012b51f666a7
2023-03-30 13:52:54 +00:00
Nick Jones bb28786069
Add 'venvs' to list of things which we don't want git to track
TrivialFix

Change-Id: I93e0e809341e40da293b9e74ea388d0bc0ff52a8
2018-07-02 14:17:18 +01:00
Mark Goddard 1579dc6c41 Use pbr to build the project
Python Build Reasonableness (PBR) [1] is used by most OpenStack projects
for building python packages, so we should fall into line here.

[1] https://pypi.python.org/pypi/pbr

Change-Id: Ic74a62eeb65e7158ce75a082e68652c2e50a2a91
Story: #2001637
Task: #6648
2018-03-08 16:37:08 +00:00
Mark Goddard 048fd82bef Use stestr for running unit tests, add a coverage environment
stestr [1] is a fork of the testrunner python test runner.

Coverage tests can be run using 'tox -e cover'.

Adds a job for checking coverage to Zuul check and gate.

[1] http://stestr.readthedocs.io/en/latest/

Change-Id: I25cd407677a4013d022f87d124c6db43ab6bb2e0
Story: #2001637
Task: #6648
2018-03-08 16:37:08 +00:00
Mark Goddard 318f73cc52 Add a tox environment & dependencies for running molecule tests 2018-02-20 18:48:28 +00:00
Mark Goddard 0f5832e865 Make gitignore for galaxy roles more sane 2018-02-20 16:37:50 +00:00
Doug Szumski 3a757b597d Address review comments 2018-01-23 12:00:12 +00:00
Mark Goddard 856cbed057 Add gitignore for libvirt-host and libvirt-vm roles 2018-01-16 19:36:49 +00:00
Mark Goddard a2cbe94b76 Improve bare metal compute node management
Adds these new commands:

kayobe baremetal compute inspect
kayobe baremetal compute manage
kayobe baremetal compute provide

These can be used to set the provision state of ironic nodes in the
baremetal-compute group.
2017-12-13 11:30:26 +00:00
Mark Goddard 76309988ff Initial unit testing of ansible - kolla-ansible role
Adds a new tox environment, ansible, which runs ansible unit tests. One
such test has been implemented so far, for the kolla-ansible role.
2017-12-07 11:26:50 +00:00
Nick Jones 4123550db2
Ignore contents of .vagrant 2017-11-28 15:32:49 +00:00
Mark Goddard 287acd1f92 Support configuration of user accounts
User accounts are configured during the following commands:

kayobe seed hypervisor host configure
kayobe seed host configure
kayobe overcloud host configure

The users are defined by the following variables:

seed_hypervisor_users
seed_users
controller_users
monitoring_users

The format required is described in the singleplatform-eng.users role
on Galaxy.

Any additional control plane hosts not in the controllers or monitoring
groups should define a 'users' variable.
2017-09-11 10:29:13 +00:00
Mark Goddard aa334068c2 Add stackhpc.os-images role to role dependencies 2017-08-15 14:58:54 +00:00
Mark Goddard 149a765f89 Extract neutron-net role into a separate project on galaxy
This allows it to be used by other projects.
2017-05-18 10:13:38 +01:00
Mark Goddard eb5551e3fb Extract nova-flavor role into a separate project on galaxy
This allows it to be used by other projects.
2017-05-18 10:10:56 +01:00
Mark Goddard 2a43254f7c Move shade, openstackclient and projects roles to Ansible Galaxy 2017-04-06 21:37:20 +01:00
Mark Goddard 61f7f804cb Expand documentation and change to sphinx from MarkDown 2017-03-29 14:02:51 +01:00
Mark Goddard cd33e4a75f Add playbooks for interactions with DRACs
Currently includes gathering facts, configuring the BIOS and setting the boot
order (sadly not via the drac role).
2017-03-15 09:44:24 +00:00
Mark Goddard 1260f9a87e Add support for configuration of LVM PVs, VGs and LVs
Currently we configure the seed with a single VG containing a volume for Docker volumes.
2017-03-15 09:44:15 +00:00
Mark Goddard b7d8ad6b19 Changes to .gitignore 2017-03-03 14:23:37 +00:00
Mark Goddard baf17c8cff Add unit tests and style checks for Kayobe python module
Unit tests can be run via:

tox -e py27

Style checks can be run via:

tox -e pep8
2017-03-01 13:32:37 +00:00
Mark Goddard b654a70e65 Initial mega commit of Kayobe 2017-02-14 15:14:29 +00:00
Mark Goddard 945adf2cc1 Initial commit 2017-01-06 15:50:37 +00:00