1362 Commits

Author SHA1 Message Date
Zuul
8280c86c0e Merge "Use docker_custom_config variable" 2019-12-06 18:19:33 +00:00
Zuul
a32efc1bb6 Merge "Don't list tasks for config dump" 2019-12-06 18:04:40 +00:00
Zuul
27138f3a2f Merge "Support installing packages in IPA images" 2019-12-06 18:04:36 +00:00
Zuul
7575bcf501 Merge "Add cross references from deployment to config docs" 2019-12-06 18:04:31 +00:00
Zuul
70f1a95363 Merge "Add documentation for Bifrost and IPA configuration" 2019-12-06 18:04:23 +00:00
Zuul
c540849994 Merge "Add new variables for customising the deployment image in Bifrost" 2019-12-06 18:04:21 +00:00
Zuul
081291dccf Merge "Remove sphinx from test-requirements.txt" 2019-12-06 18:04:20 +00:00
Zuul
bba4f1d568 Merge "Revert to yatesr.timezone role" 2019-12-06 18:04:19 +00:00
Zuul
7963abf7ba Merge "Stop gathering facts for host command run" 2019-12-06 17:11:40 +00:00
Zuul
5010c2c14d Merge "Stop running kolla-target-venv in seed hypervisor host upgrade" 2019-12-06 17:11:39 +00:00
Zuul
03cc5c5eab Merge "Fix use of IPA images in Bifrost without a checksum" 2019-12-06 17:06:01 +00:00
Zuul
17b2a778c9 Merge "Add docker_registry_mirrors to docker.yml" 2019-12-06 17:06:00 +00:00
Zuul
735b10f3d0 Merge "Fix kayobe overcloud provision without seed in limit" 2019-12-06 17:05:57 +00:00
Zuul
3bae0fd2e7 Merge "Remove workaround for kolla-ansible post-deploy" 2019-12-06 15:50:30 +00:00
Scott Solkhon
ec56393590 Task to generate nginx.conf in inspection-store missing become: True
Change-Id: Idf1e7b1e7018d1324326c3b8b8cb04f2e27ee0d2
2019-12-04 11:52:38 +00:00
Zuul
978b8692df Merge "Use internal API endpoints in overcloud API interaction" 2019-11-28 20:43:49 +00:00
Zuul
1445a104d6 Merge "CI: Remove workaround for upgrading from Rocky" 2019-11-28 18:53:49 +00:00
Zuul
ce18bd2e68 Merge "tox: Keeping going with docs" 2019-11-28 17:20:42 +00:00
Kayobe deployment user
84d17b055e Use internal API endpoints in overcloud API interaction
Connections default to 'public' interface when attempting to run
openstack commands.  This breaks setups where the network hosts are
separate from the controllers.

This change adds an ``openstack_interface`` variable to select the
correct endpoint to use, which defaults to ``internal``.

Co-Authored-By: Michael Senizaiz <michael@r-hpc.com>

Change-Id: Ifa766d2cc3ed7077f03c571398072ad5117701c6
Story: 2006814
Task: 37374
2019-11-28 16:56:38 +00:00
Mark Goddard
ca19d786c6 Add cross references from deployment to config docs
Hopefully this provides access to relevant information without breaking
the flow.

Change-Id: I40b71cdf782dda6971dafb5894670c30e446ccb0
Story: 2004337
Task: 37387
2019-11-28 16:46:55 +00:00
Mark Goddard
6b4f180a1e Support installing packages in IPA images
Diskimage builder supports specifying a list of packages to install via
-p. We currently support this for the root image, but not IPA images.

This change adds a new configuration option, 'ipa_build_dib_packages',
that should be a list of additional packages to install in locally built
IPA images. This affects the following commands:

kayobe seed deployment image build
kayobe overcloud deployment image build

This depends on
https://github.com/stackhpc/ansible-role-os-images/pull/25.

Also adds an example to the documentation for the equivalent option for
root image.

Change-Id: I04191d9541894b6a264e966c9ecb1056e0edade4
Story: 2006855
Task: 37446
2019-11-28 16:32:30 +00:00
Zuul
efbf1064e5 Merge "Fix kolla-ansible role tests" 2019-11-28 15:50:20 +00:00
Mark Goddard
994d790243 Fix kolla-ansible role tests
The kolla-ansible CLI now requires the kolla_ansible python module to be
importable. We need to activate the virtualenv to make this work.

Change-Id: I43d4761409df3eea146dc7ff16b4c8d80855a91b
2019-11-28 10:41:08 +00:00
Mark Goddard
61b64619f2 Remove workaround for kolla-ansible post-deploy
Kolla ansible now uses the correct path when templating admin-openrc.sh.

Change-Id: I2a38c91811ea5976c0065f6f28a85c3d911e9e9d
2019-11-26 15:19:07 +00:00
Mark Goddard
c619579fc1 CI: Remove workaround for upgrading from Rocky
We no longer need to cd to the kayobe repo path, since all tested
versions of kayobe support pip installation.

Change-Id: Id7b574cbc6bb5195eee16cfc8443075712ce3254
2019-11-26 14:51:25 +00:00
Zuul
07c0790ba2 Merge "Remove unused IPA config variables" 2019-11-25 20:07:16 +00:00
Zuul
a30cf063d1 Merge "Document requirements for BIOS and RAID configuration" 2019-11-25 14:17:05 +00:00
Zuul
e1d4774fdc Merge "Improve docs on updating the Ansible control host" 2019-11-25 14:17:01 +00:00
Mark Goddard
3c7a6ef6a3 Document requirements for BIOS and RAID configuration
Ideally we will fix these issues, but documenting them is a good first
step.

Change-Id: I9a840005d62b974f0681ac39e1ff02ae3ff0120e
Story: 2004967
Task: 29410
2019-11-25 13:57:43 +00:00
Mark Goddard
410466bb5c Improve docs on updating the Ansible control host
Also reorder upgrade documentation to make it clear that configuration
migration is something that should be done as a preparatory task.

Change-Id: I97ada3c6fd94a9ab7b5add97e90717f2a56bc8f3
Story: 2006677
Task: 36953
2019-11-25 13:57:23 +00:00
Mark Goddard
8c01771e29 Add documentation for Bifrost and IPA configuration
Depends-On: https://review.opendev.org/690559/

Change-Id: I4e766424607317e5817d26461f7a1e180e9b2146
Story: 2004337
Task: 37378
Task: 37381
2019-11-25 13:42:21 +00:00
Pierre Riteau
04cb3345a0 Add docker_registry_mirrors to docker.yml
This variable is mentioned in "Host Configuration" but was missing from
the Docker extra-vars file.

Change-Id: I22cf878c99824372adc17582f9bbba2db98b3eb0
2019-11-20 15:31:30 +01:00
Zuul
b6caf483e8 Merge "Add note to docs about overcloud node names being required" 2019-11-19 13:08:20 +00:00
Mark Goddard
25ea46debc Add note to docs about overcloud node names being required
If the kayobe overcloud provision command is executed with overcloud
ironic nodes without names, cloud-init will fail with the following
Traceback when the deployed image boots:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 447, in find_source
    if s.get_data():
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 132, in get_data
    self._get_standardized_metadata())
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 110, in _get_standardized_metadata
    'local-hostname': self.get_hostname(),
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 317, in get_hostname
    if util.is_ipv4(lhost):
  File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 544, in is_ipv4
    toks = instr.split('.')

This is a bug [1] in cloud-init. The symptom is that hosts provision
successfully, but are not accessible via SSH. A solution is to ensure
that all nodes are named.

Until we have a release of CentOS with the cloud-init fix included, we
should at least mention this limitation in our documentation.

[1] https://bugs.launchpad.net/cloud-init/+bug/1852100

Change-Id: If54f56fb9f0b626d9fae80db622b0feeae5464b9
Story: 2006832
Task: 37405
2019-11-19 13:51:38 +01:00
Zuul
27fa6b10af Merge "Add reference to zero touch provisioning blog in docs" 2019-11-14 15:31:59 +00:00
Zuul
483ad8f1c5 Merge "Fix customised inventory section" 2019-11-14 11:49:42 +00:00
Michal Nasiadka
ed8e1a63da Fix customised inventory section
Add a note to base customised inventory on a kayobe kolla-ansible
inventory template.

Change-Id: I75ace6878d36cb523c38a33daa9eecd62826fe43
2019-11-14 10:15:57 +00:00
Zuul
5820064ee6 Merge "Remove some references to Github" 2019-11-14 10:12:09 +00:00
Zuul
2bfdc21817 Merge "Add freezer to image build regex" 2019-11-13 20:19:13 +00:00
Zuul
a8ad7055aa Merge "Fix kolla ansible virtualenv creation on the seed" 2019-11-13 15:49:57 +00:00
Will Szumski
0703d18ba3 Add freezer to image build regex
Change-Id: I5a1bebf1f8b4f96fc593afde8d224073916a704d
2019-11-13 14:33:09 +00:00
Mark Goddard
170ebad1db Fix use of IPA images in Bifrost without a checksum
Ironic now provides DIB-built CentOS images at
https://tarballs.openstack.org/ironic-python-agent/dib/files. However,
if Bifrost is configured to use these, then the 'kayobe seed service
deploy' command fails because the checksum files are not available.

This change fixes the issue by allowing
'kolla_bifrost_ipa_kernel_checksum_url' and
'kolla_bifrost_ipa_ramdisk_checksum_url' to be overridden to empty
strings, indicating that there is no checksum.

Very similar to the issue fixed in https://review.opendev.org/688359 for
the overcloud.

Change-Id: If73cebb95c7d0596dc8087112fc19398a113f0cc
Story: 2006715
Task: 37407
2019-11-11 17:57:16 +00:00
gujin
d23ed92588 tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

2. Cleanup the folders before run commands

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ib3133820a3d3ca3027ea2f9bc9b6907929cff8ed
2019-11-11 13:49:54 +00:00
Mark Goddard
5408bb5453 Add reference to zero touch provisioning blog in docs
While not proper documentation, this should help people follow the ZTP
model.

Change-Id: If84a472826110bce151109ce80e70e1cef2a8177
Story: 2006640
Task: 37389
2019-11-11 10:16:31 +00:00
Mark Goddard
e0ff12eaef Fix kayobe overcloud provision without seed in limit
If you run 'kayobe overcloud provision' for the first time on a system,
and do not include the seed in the limit (e.g. --limit overcloud), then
the following error is seen:

    Destination directory /etc/kolla/bifrost/inventory/host_vars does
    not exist

This is because the first play in ansible/kolla-bifrost-hostvars.yml
executes against the seed. This is not ideal, as the --limit argment is
useful with this command, as a way to provision specific nodes.

This change fixes the issue by moving the initialisation tasks to the
second play which is targeted at the overcloud group. The run_once
parameter ensures it happens once.

Change-Id: I7dff72a50f0592a3564c9d84d684db562c30626a
Story: 2006757
Task: 37247
2019-11-11 09:47:20 +00:00
Will Szumski
114b92905a Only stop chrony on nodes in kolla inventory
If docker is not installed this task will currently fail.

Change-Id: I0d3c7865eab71e0020bdb4646550d8ae27e31458
Story: 2006247
Task: 37391
2019-11-08 13:53:03 +00:00
Mark Goddard
492605b64d Remove unused IPA config variables
These are not referenced anywhere in the code.

Change-Id: I0782fb095cc074fd586d87aa338cefb72b1b70e2
2019-11-08 11:10:10 +00:00
Mark Goddard
e4f8a5de8e Fix kolla ansible virtualenv creation on the seed
Backport: Stein, Rocky, Queens

In https://review.opendev.org/#/c/671502/ kolla ansible virtualenv
creation was modified to only happen on hosts in the kolla-ansible
inventory. However, that change omitted the seed. It passed CI because
the seed and overcloud are both in the inventory.

This change adds the seed group to the inventory_hostname lookup.

Change-Id: Ib5fb726600debee5df1f7085ea37b583bfccefcf
Story: 2006247
Task: 37368
2019-11-05 15:20:19 +00:00
Pierre Riteau
0b0b921a62 Stop running kolla-target-venv in seed hypervisor host upgrade
We don't run kolla-target-venv during `seed hypervisor host configure`.
This playbook is limited to seed:overcloud anyway.

Change-Id: Ia2c7c151aca75aadc1efc406383b3966d77d4b9e
2019-11-05 12:28:37 +01:00
Pierre Riteau
eed2561ce2 Stop gathering facts for host command run
This will speed up `kayobe overcloud host command run`.

Change-Id: I02adfa5819bff781e1649b81c1023b55de32ebd0
2019-11-05 11:59:28 +01:00