838 Commits

Author SHA1 Message Date
Mark Goddard
8ad23be9eb Persistent sysctls broken due to missing .conf suffix
Kayobe provides support for setting arbitrary sysctls on hosts. These
should be persistent, but the configuration file used
(/etc/sysctl.d/kayobe) does not have the required .conf extension, so
the file is ignored.

This change adds a .conf suffix to make the file
/etc/sysctl.d/kayobe.conf.

Change-Id: I222250a91bc28aed9577293534cf481579992f52
Story: 2002972
Task: 22980
2018-07-13 19:36:21 +01:00
Zuul
8f76845f51 Merge "Don't assume user's primary group name is the same as username" 2018-07-12 16:21:46 +00:00
Will Miller
2d5fd703a0 Reconcile all 'Ansible control host' references
Ensure all references to the Ansible control host are worded as such, to
ensure consistency and avoid potential confusion with the OpenStack
controllers.

Change-Id: Id92e537ccbfdd55287b8eae296f649640c70ce17
2018-07-11 17:19:18 +01:00
Zuul
c2f5c5ef48 Merge "Fix the task name" 2018-07-10 19:25:05 +00:00
Zuul
3c8b93e839 Merge "Add necessary _ for setup.cfg" 2018-07-10 19:16:44 +00:00
jacky06
ecebcb87d8 Fix the task name
remove the duplicated word "the"

Change-Id: I6e3fe6d8277c23b4ae04ba79c0b0f73e72c53661
2018-07-10 13:47:28 -04:00
jacky06
058a3e10eb Add necessary _ for setup.cfg
Change-Id: I2140926828366b86a1cb423275330ae17c55fdcd
2018-07-10 12:09:51 -04:00
Kevin Tibi
fc9ef3e9d1 Fix typo doc administration
Change-Id: I755d0cf9b9302b1698c199088514a0e7242009bd
2018-07-10 17:41:10 +02:00
Nick Jones
5265993134
Don't assume user's primary group name is the same as username
In certain environments, a user's primary group doesn't necessarily
match that of their username.  This change updates various playbooks to
make use of the `ansible_user_gid` fact instead.

This change also makes ownership explicit by using `ansible_user_uid`
instead of `ansible_user` or `ansible_user_id`, where appropriate.

Change-Id: Ifc2ea7d95ec90e91791ccb10772b15d991379479
Story: 2002770
Task: 22636
2018-07-04 19:56:05 +01: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
Zuul
df69f9f700 Merge "Add support for configuring MariaDB" 2018-06-27 14:39:29 +00:00
Doug Szumski
0353dba39a Add support for configuring MariaDB
This enables:

* Disabling MariaDB if external MariaDB is used
* Merging additional configuration with the default Kolla
  provided configuration for MariaDB

Story: 2002704
Task: 22545
Change-Id: I345f56d50dd64b516d563a025ec877bc4a4034e1
2018-06-27 13:42:46 +01:00
Will Szumski
3fca0d00a9 Adds a separate admin network
The admin network is intended for remote admin access to
the overcloud hosts e.g SSH. If admin_oc_net_name is not set
it will default to provision_oc_net_name for backwards
compatability.

Story: 2002096
Task: 19774

Change-Id: Ib04bbc07f97218d7503000cc363624c60c287822
2018-06-25 14:21:51 +00:00
Zuul
3037361cb0 Merge "Test nova server (VM) boot in overcloud job" 2018-06-22 16:38:30 +00:00
Zuul
f7320aa5c4 Merge "kolla dnsmasq server should listen on inspection interface" 2018-06-22 16:38:29 +00:00
Mark Goddard
920d9e0eee Add Dell PowerConnect switch support
PowerConnect switches do not support the dellos Ansible modules, since
they are based on DellOS version 4. This role uses the expect module to
perform simple switch configuration.

Change-Id: Icb59aaff75f9faf089423610fecb06598f75e35e
Story: 2002106
Task: 19784
2018-06-22 15:12:29 +01:00
Zuul
16d837710a Merge "Support Ansible 2.5" 2018-06-22 14:08:26 +00:00
Zuul
f09d0eae11 Merge "fix tox python3 overrides" 2018-06-22 13:55:33 +00:00
Zuul
811ce46959 Merge "add cloud-init workaround" 2018-06-22 10:50:19 +00:00
Zuul
0646ae5da8 Merge "Enable iPXE boot in ironic" 2018-06-22 09:18:35 +00:00
Zuul
d9d66adb55 Merge "Add support for neutron provider networks" 2018-06-21 16:30:26 +00:00
Will Szumski
d1ba6d5027 add cloud-init workaround
The version of cloud-init included with CentOS7.5 (0.7.9-24)
fails to assign an IP address on VLAN subinterfaces. This
workaround upgrades cloud-init to 18.2 using a private
repository.

Story: 2002610
Task: 22229
Change-Id: Idc570b9ca7558dfd42246c74b1ec0331011d692f
2018-06-21 15:58:01 +01:00
Zuul
e8e459b7da Merge "create parent directories for extra config files" 2018-06-21 14:40:11 +00:00
Mark Goddard
2803950422 Add support for neutron provider networks
Kolla provides a flag, enable_neutron_provider_networks, to enable
virtualised compute nodes to access provider (e.g. flat, VLAN) networks.

In kayobe, we now connect compute nodes to the external networks when
this flag is set. This ensures that the OVS network on compute nodes
is wired into the external networks.

Change-Id: Ida3d8eb2e2bfc95f6007c105ce410b3e5d360afe
Story: 2002636
Task: 22278
2018-06-21 14:30:27 +01:00
Will Szumski
d4a0da9960 create parent directories for extra config files
TrivialFix

Change-Id: I022afa3b5cf489eb43e85d58de1009ef8ddb7ded
2018-06-20 17:13:17 +01:00
Zuul
5f56c5acf4 Merge "Adds new command to rename baremetal compute nodes" 2018-06-19 11:22:38 +00:00
Will Szumski
05dfcc8199 Adds new command to rename baremetal compute nodes
Story: 2002176
Task: 20042
Change-Id: I2174a4719aaff63fff24e35ce62eab57b369b457
2018-06-19 10:07:16 +01:00
huang.zhiping
18b5498050 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I9aaae4949e2cf6c8a33fb6fbf8be15e1d09cce44
2018-06-18 10:39:33 +00:00
Kayobe deployment user
e7148bc61a Make tftp server listen on the internal interface
TrivialFix

Change-Id: I32e53f018e2d8b3f7740fb5fd2cb05074fb17661
2018-06-11 14:52:28 +01:00
Will Szumski
903700584d Enable iPXE boot in ironic
a new variable, kolla_enable_ironic_ipxe is added to control whether or not
iPXE is used as the network boot program in ironic. You can set this is in
etc/kayobe/kolla.yml, e.g:

  kolla_enable_ironic_ipxe: True

Change-Id: I7da15e7ceea580e5b7bee7fc732351cbec666f4c
Story: 2001949
Task: 15068
Depends-On: I08fca1864a00afb768494406c49e968920c83ae7
2018-06-06 14:16:00 +01:00
Will Szumski
a21d1e7015 kolla dnsmasq server should listen on inspection interface
TrivialFix

Change-Id: I8f6aeceb5262d1063d88e3dcb59a689edfe175e5
2018-06-06 13:15:23 +01:00
Mark Goddard
07b2f06a82 Support Ansible 2.5
Raises the maximum Ansible version in requirements.txt to Ansible 2.5.x
for both kayobe and kolla ansible.

Also removes the hack to use a patched parted module for ceph block
device management, as Ansible 2.4 contains the required fix.

Change-Id: I0d2f564eb1ddb63b07829d6f0d918af26887db97
Story: 2001649
Task: 6668
2018-06-06 12:45:51 +01:00
Zuul
f034ae4741 Merge "Add documentation for custom ansible playbooks" 2018-06-06 10:01:14 +00:00
Zuul
9e3902441f Merge "Change reserved keyword 'action' to 'kayobe_action'" 2018-06-06 10:01:12 +00:00
Zuul
15231c53b5 Merge "Support installing galaxy roles from kayobe-config" 2018-06-06 10:01:10 +00:00
Will Szumski
0511f67eb2 Adds configuration option for separate cleaning network
To improve network isolation it is desirable to perform
cleaning on a separate network. A new network, `cleaning_net`
was added. If cleaning_net_name is not overriden cleaning
will still be performed on the workload provisioning network
to maintain backwards compatability.

Story: 2002097
Task: 19775
Change-Id: I7dd246ca830820f9c2468b281f6ac8f0db2e9cbe
2018-06-06 09:11:56 +01:00
Zuul
4bd25a8d20 Merge "Add the storage group to the inventory" 2018-06-05 19:30:29 +00:00
Zuul
6a506ee9ce Merge "Fix empty kolla_overcloud_inventory_storage_groups" 2018-06-05 18:38:42 +00:00
Zuul
2d7a221fbf Merge "Fix Ansible warnings for use of until with {{ }}" 2018-06-05 17:55:55 +00:00
Zuul
ca3110d426 Merge "Specify Vagrant box version" 2018-06-05 17:55:53 +00:00
Zuul
c459af349a Merge "Collect kayobe and kolla configuration in deployment CI jobs" 2018-06-05 17:49:45 +00:00
Zuul
a7bea3e4b4 Merge "Add some regex for build image" 2018-06-05 16:59:58 +00:00
Will Szumski
2294cf3357 Adds controllers to inspection network by default
Change-Id: I976cd0727219314150ed5b1b6f715756151a0089
Story: 2002109
Task: 19788
2018-06-05 12:51:57 +00:00
Kevin Tibi
0a091c44db Add some regex for build image
Change-Id: I837d42cec2bcd11965622addf7943bd3c8932549
2018-06-04 17:05:23 +02:00
Will Szumski
af8c88d5f3 Make provisioning workload physical network configurable
The provider_physical_network, as passed to neutron, can
now be configured with the physical_network attribute on
workload provisioning network.

TrivialFix

Change-Id: I96ff4b5ef3da32c07c01a9378fac5c34503fa08d
2018-05-31 12:33:24 +01:00
Mark Goddard
22c155349f Fix empty kolla_overcloud_inventory_storage_groups
In some cases we may have a kolla group defined in
'kolla_overcloud_inventory_top_level_group_map' which has no kayobe
groups mapped to it. This causes no entry to be added to the inventory
for the group.  If the group is referenced elsewhere in the inventory,
then Ansible will fail to parse the inventory file.

The specific case that failed was when setting
'kolla_overcloud_inventory_storage_groups' to an empty list.

This change ensures that we add an empty definition for the group in the
kolla inventory.

Change-Id: I8e797aa6c55f8cf0cf6d52a33f213d8131581fea
Story: 2002105
Task: 19783
2018-05-25 12:42:03 +01:00
Mark Goddard
853222cc6f Add the storage group to the inventory
Adds the storage group to the example inventory. The storage group is a
subgroup of the overcloud and docker groups.

TrivialFix

Change-Id: I18897c3bd86e12291cd4b13641beb5a8b6fdb89f
2018-05-24 18:12:49 +01: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
Zuul
1b8c98ff24 Merge "Update kayobe-config repo URL to openstack/kayobe-config" 2018-05-24 10:03:43 +00:00
zhangdebo
f231baee77 Replace Chinese quotes with English quotes
Change-Id: I79afa2e05932e152eda46f91c20fb750234224d2
2018-05-23 16:49:50 +08:00