1307 Commits

Author SHA1 Message Date
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
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
Mark Goddard
1a6326ae4b Fix typo in docs
TrivialFix

Change-Id: I8b1c469de8ae0a4c78accccfdfcb7b7552b05081
2019-09-11 15:34:17 +01:00
Zuul
4169f2468f Merge "Revert "Use OpenStack Stein release"" 2019-09-03 18:50:58 +00:00
Zuul
c58cb2fbb8 Merge "Include branch name in URL for IPA on master" 2019-09-03 18:50:57 +00:00
Mark Goddard
45ef33ba91 Use earliest-version 6.0.0 for Stein reno
Change-Id: I7d6bbc700136a332e4e93d3c8e347f7efad196fd
2019-08-30 15:11:24 +01:00
Zuul
1f83d69aca Merge "Execute kayobe in verbose mode in CI" 2019-08-30 11:41:19 +00:00
Mark Goddard
37d313d461 Add source code orientation to development docs
Change-Id: Id26bc7f8f064aa979560e0d2d88d4675f701c89e
2019-08-30 10:12:48 +00:00
Zuul
f005dc2162 Merge "Set provisioning and cleaning networks as non-shared" 2019-08-28 19:24:58 +00:00
Mark Goddard
f91cf43876 Set provisioning and cleaning networks as non-shared
Modifies provisioning and cleaning networks in multi-tenant ironic
environments to be non-shared. Flat networks remain shared.

To apply the change to an existing environment, run 'kayobe overcloud
post configure'.

Change-Id: Ie59f0c729381e5bea112ab7f5d0c738a9488b772
Story: 2006409
Task: 36295
2019-08-28 15:15:53 +00:00
Will Szumski
300f90134e Only set up the kolla ansible venv on hosts in the kolla ansible inventory
Change-Id: Iaed6320f23a4dfe7a69e2921d363bf3bdcf035ef
Story: 2006247
Task: 35856
2019-08-27 17:22:58 +01:00
Mark Goddard
691ddeb614 Execute kayobe in verbose mode in CI
Also refactors the CI job playbooks to create the previous git repo
clones for upgrade jobs in the kayobe-base job.

Change-Id: I10c2b872887a47fab1a373fc0525dcd6fc78f7e2
2019-08-22 14:36:01 +00:00
Stig Telfer
c6263dbfd4 Add support for Arista switches
Support for invoking Ansible EOS network modules for Arista switches.

Change-Id: I3a570adf43e1addce5eeab88e29ae4ded44669f0
2019-08-22 16:20:40 +02:00