1318 Commits

Author SHA1 Message Date
Will Szumski
5f688777ba Add kayobe as openstack project for release notes
This allows you to use a project reference for documentation, e.g

features:
  - |
    :kayobe-doc:`Testing versioned docs <configuration/kayobe.html#configuration-patterns>`

Change-Id: Ie25a7f12b99b8b02dfd76848ec7c3fc08c8b8108
2019-12-11 15:07:58 +00: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
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
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
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
Mark Goddard
ee98efa8f0 Remove some references to Github
Change-Id: I358585260cc85fb1d364d2e246656557a2398ef9
2019-10-31 17:17:35 +00:00
Zuul
a02c65832c Merge "Fix baremetal serial console autoenable" 2019-10-28 14:50:29 +00:00
Zuul
3c98bfa5b2 Merge "Add ansible tag headers to Host Configuration doc page" 2019-10-25 16:57:59 +00:00
Zuul
48bc325f28 Merge "Fix issue with image download when checksum url is none" 2019-10-25 16:02:54 +00:00
Zuul
d42b0691dd Merge "Example should use hyphen instead of underscore" 2019-10-25 15:49:00 +00:00
Zuul
8b5a08c60c Merge "Only set up the kolla ansible venv on hosts in the kolla ansible inventory" 2019-10-25 15:26:26 +00:00
Zuul
de92890b25 Merge "Fix validation of locally built IPA when ironic is disabled" 2019-10-25 15:26:22 +00:00
Zuul
1d82724875 Merge "Add source code orientation to development docs" 2019-10-25 13:28:51 +00:00
Zuul
6066300097 Merge "Allow Kayobe to wipe virtualized disks" 2019-10-25 13:02:57 +00:00
Bharat Kunwar
9c9e456006 Example should use hyphen instead of underscore
As per the kolla_sources documentation:
https://docs.openstack.org/kayobe/latest/configuration/kolla.html#source-code-locations

Change-Id: I39b59e3fed94d4fc56514c98ae1d9d1c0ad6bebc
2019-10-25 12:40:56 +01:00
Zuul
0fd5e57b43 Merge "CI: Don't set cpu mode" 2019-10-25 10:41:35 +00:00
Zuul
f289a7a1ce Merge "Add nova-super-conductor to inventory" 2019-10-24 13:23:38 +00:00
Zuul
e5f5cda76b Merge "Use releases.o.o for upper constraints" 2019-10-23 13:39:43 +00:00
Mark Goddard
5977a44119 Fix baremetal serial console autoenable
If ironic_serial_console_autoenable is set to true, ironic compute node
serial consoles are automatically enabled during kayobe overcloud post
configure. However, the baremetal-compute-serial-console.yml playbook
expects a variable called cmd to be defined, and set to 'enable' in
order to enable serial consoles. This patch fixes the issue.

We also add a conditional to only import the playbook when ironic is
enabled in the overcloud.

Change-Id: Ice26a113f9023b1a25a4af0552d07c5e95e64556
Story: 2006662
Task: 36924
2019-10-21 14:16:20 +01:00
Will Szumski
cc71fd03f9 CI: Don't set cpu mode
Not setting cpu-mode will reduce the number of TCG emulated features.
Hopefully this will make CI more reliable.

Change-Id: I24a8832c02db6ba019ab8f5c2b9d7216a9b7d213
2019-10-21 10:28:07 +00:00
Zuul
a34065233f Merge "Build pdf doc" 2019-10-21 09:38:07 +00:00
Zuul
f9d0c256c7 Merge "Try running docker info again if it fails" 2019-10-16 17:17:53 +00:00
Mark Goddard
798b7dfc53 Build pdf doc
The is one of community goals that each project should produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is
recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Ib8a238f5ad4329527147be72331b87f57877f68e
2019-10-16 14:36:13 +01:00
Mark Goddard
56b98f93c9 Add nova-super-conductor to inventory
This is a new group, added to kolla ansible for multiple nova cells
support.

Depends-On: https://review.opendev.org/675659
Depends-On: https://review.opendev.org/688697

Change-Id: I65e0175402441ba6422f12ebd4baa06640b9181b
Story: 2004291
Task: 37132
2019-10-15 15:42:26 +01:00
Will Szumski
a3d3649c5e Install libffi headers
This is to resolve the following issue in CI:

    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
                     ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/zuul/kayobe-venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-PV3WhJ/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-PV3WhJ/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ZvlZVY/install-record.txt --single-version-externally-managed --compile --install-headers /home/zuul/kayobe-venv/include/site/python2.7/cffi Check the logs for full command output.

Change-Id: I1bd724be7dc77058870f37cb1c9404472fa466ca
see: https://zuul.opendev.org/t/openstack/build/c20a316a699b4073abf75960634ebfcd
2019-10-15 13:35:15 +01:00
Pierre Riteau
3993d89839 Try running docker info again if it fails
Docker sometimes fails to reply if it has just been started.

Change-Id: I5ae37b8f264437a9e49b09da459e604191f9ed3e
Story: 2006718
Task: 37089
2019-10-14 19:04:23 +02:00
Will Szumski
dea36ac9d2 Fix issue with image download when checksum url is none
TASK [image-download : Ensure the image is downloaded] *************************
task path: /home/zuul/kayobe-venv/share/kayobe/ansible/roles/image-download/tasks/main.yml:19
fatal: [localhost]: FAILED! => {
    "msg": "The field 'vars' has an invalid value, which includes an undefined variable. The error was: 'dict object' has no attribute 'content'\n\nThe error appears to have been in '/home/zuul/kayobe-venv/share/kayobe/ansible/roles/image-download/tasks/main.yml': line 19, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Ensure the image is downloaded\n      ^ here\n"
}
	to retry, use: --limit @/home/zuul/kayobe-venv/share/kayobe/ansible/kolla-openstack.retry

PLAY RECAP *********************************************************************
controller0                : ok=3    changed=0    unreachable=0    failed=0
localhost                  : ok=6    changed=2    unreachable=0    failed=1

Change-Id: I45fb193b423c7e874aa70cd5f0252e0b0f4e2f05
Story: 2006715
Task: 37086
2019-10-14 12:24:44 +00:00
Will Szumski
6430ec5261 format pxe_append_params as string and not a list
Please see: https://docs.openstack.org/ironic/latest/configuration/sample-config.html

Change-Id: Idc96523a5108712a072b14889b1fba0f05c381e8
Story: 2006707
Task: 37067
2019-10-14 10:22:46 +01:00
Isaac Prior
ee72de447c Add ansible tag headers to Host Configuration doc page
Change-Id: I3caa80da7c44704a3b6559d98f928d95e83289e5
Story: #2006212
Task: #35802
2019-10-09 09:33:26 +01:00
pengyuesheng
c620dd84f7 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: Ia2c3c6f3d38474465fc012bc4b798a5da0d3aadb
2019-10-09 16:25:25 +08:00
Mark Goddard
b05fc00dcf Fix validation of locally built IPA when ironic is disabled
In an environment where ironic is disabled, but IPA images are built
locally for the seed, the following task will fail in a number of
commands, e.g. kayobe overcloud service deploy:

Validate the presence of locally built Ironic Python Agent (IPA) images

We need to only execute this task when ironic is enabled.

Change-Id: I61067164a003bcdf6079cdaca36f0e1755186f60
Story: 2006669
Task: 36935
2019-10-07 13:50:35 +01:00
Zuul
886fe4fd76 Merge "CI: Remove rocky pin from molecule requirements" 2019-10-02 17:44:58 +00:00
Zuul
dea732e7d5 Merge "Fix container image build with multiple regexes" 2019-10-02 15:26:47 +00:00
Zuul
185e93d653 Merge "CI: set previous_release to stein" 2019-10-01 17:18:39 +00:00
pengyuesheng
aabf913c9b Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I90662a9816c4f4af5a4a481d0e815bf6a398f8d3
2019-09-24 15:48:27 +08:00
Pierre Riteau
ea7fd93692 Allow Kayobe to wipe virtualized disks
Change-Id: Id8cf5f8e50af438e2d8f0077225c38175e38b662
Story: 2002046
Task: 19692
2019-09-17 19:13:56 +02:00
Mark Goddard
4b180502a5 Fix kayobe-overcloud-centos CI job flakiness
Docker CE has added a default DROP policy to the FORWARD chain.  When
nova-compute runs on the controller, kolla ansible sets the
net.bridge.bridge-nf-call-iptables sysctl to 1, which causes iptables to
process frames forwarded across bridges.

Currently, the kayobe-overcloud-centos job is failing quite frequently
with timeouts when deploying bare metal compute. Experimentation with
iptables hasn't revealed why this only happens sometimes, or exactly
what traffic is being blocked, but opening up the firewall does seem to
fix the issue. We won't see this in production since control and compute
services are on separate hosts.

This change updates the iptables configuration used in CI to forward all
frames on the bridge, breth1.

Change-Id: If96437b73b9b5c58600ba1b004f53ee0c1f14398
Story: 2006534
Task: 36590
2019-09-17 16:42:09 +01:00
Mark Goddard
4657c0cd13 Use releases.o.o for upper constraints
Change-Id: Icd99fa0a262d7f42346cfcfc5013cf7c91c34459
2019-09-17 12:09:12 +01:00
Mark Goddard
7321205c06 Update docs after repo rename x/ to openstack/
Depends-On: https://review.opendev.org/669298
Change-Id: Ia4138179132d3a284b0c4bcc882b87bde22c9cc4
2019-09-16 17:39:29 +01:00
Andreas Jaeger
aea7117764 Fix after x/kayobe rename
Update .git review and zuul configuration.

Change-Id: I8efee18cf28344a6af44acbe1ca1d4470f7258fe
2019-09-16 16:26:27 +02:00
Mark Goddard
0765c09368 CI: Remove rocky pin from molecule requirements
Change-Id: I6f56ba2d6e3c5e5f91e83bd12d8a09c04845cd62
2019-09-12 10:46:22 +01:00
Mark Goddard
266b087244 CI: set previous_release to stein
This controls which release we are upgrading from.

Change-Id: I76f0db99cbfc0dea8cf16f0db370c8865e7dae03
2019-09-12 10:43:32 +01:00
Mark Goddard
1e5fb00754 Fix container image build with multiple regexes
We don't need to provide additional quotes for passing these arguments
to playbooks, since this is now done automatically via
kayobe.utils.quote_and_escape.

Change-Id: I9588b58449e8c8f8eab85ce01b4e130adc150ac6
Story: 2006475
Task: 36416
2019-09-11 18:34:15 +01:00
Zuul
fc0d0907f7 Merge "Fix typo in docs" 2019-09-11 15:02:22 +00:00