1
0
mirror of https://github.com/openshift/openshift-ansible.git synced 2026-02-05 06:46:04 +01:00

14653 Commits

Author SHA1 Message Date
OpenShift Merge Robot
879bdbf0a0 Merge pull request #12249 from mtnbikenc/fix-1870490
Bug 1870490: roles/openshift-node: Verify host matches cluster FIPS
2020-10-12 15:18:38 -04:00
Russell Teague
5a42bc035b roles/openshift-node: Verify host matches cluster FIPS
Determines the cluster FIPS status by retrieving the rendered-worker
machineconfig and checking .spec.fips.
2020-10-09 15:56:39 -04:00
OpenShift Merge Robot
706130ad52 Merge pull request #12242 from dcbw/46-nm-ovs
Bug 1884095: Update playbook to install NetworkManager-ovs
2020-10-01 06:31:47 -04:00
shahbazx7
b918c481cd Update README.md 2020-10-01 13:46:55 +08:00
Dan Williams
10a81a4766 Update playbook to install NetworkManager-ovs
The ovn-kubernetes OpenShift network plugin requires NetworkManager-ovs
for initial node interface setup.
2020-09-30 20:19:39 -05:00
OpenShift Merge Robot
a145cd6251 Merge pull request #12223 from dcbw/add-ovs-2.13
Bug 1874324: Update playbook to install and activate openvswitch2.13
2020-09-04 15:44:13 -04:00
OpenShift Merge Robot
b93ae0247c Merge pull request #12225 from mtnbikenc/fix-kernel
Bug 1779811: Install pre-release kernel (for scaleup-rhel7 CI)
2020-09-02 18:50:46 -04:00
Russell Teague
120543f36e Install pre-release kernel
A patched kernel is required to resolve a consistently failing test on
RHEL7 worker nodes.

Failing test - "[sig-network] Services should be rejected when no
endpoints exist"

Patched kernel: https://bugzilla.redhat.com/show_bug.cgi?id=1832332

Tracking this in https://bugzilla.redhat.com/show_bug.cgi?id=1779811
2020-09-01 16:07:19 -04:00
Dan Williams
badb7ce02c Update playbook to install and activate openvswitch2.13
Replaces https://github.com/openshift/openshift-ansible/pull/12216
2020-08-31 22:48:41 -05:00
OpenShift Merge Robot
11b701f32a Merge pull request #12212 from mtnbikenc/add-boto3
Add boto3 to Ansible test image in CI
2020-07-29 10:41:38 -04:00
Russell Teague
53603ec055 Add boto3 to Ansible test image in CI 2020-07-28 16:40:03 -04:00
OpenShift Merge Robot
a138a36c3d Merge pull request #12205 from mtnbikenc/update-image
Add boto to Ansible image for CI
2020-07-28 10:57:55 -04:00
Russell Teague
7f30202b4a Add boto to Ansible image for CI
python2-boto is required for using this image in CI to deploy test
clusters in AWS.
2020-07-28 09:12:37 -04:00
OpenShift Merge Robot
e80d3c0ac2 Merge pull request #12200 from mtnbikenc/fix-machineset-retry
[CI] test/aws/tasks: Properly retry task on command failure
2020-07-10 22:01:14 +02:00
OpenShift Merge Robot
669eb5a2b8 Merge pull request #12202 from mtnbikenc/fix-bootstrap
Fix bootstrap ignition user-agent
2020-07-09 20:53:36 +02:00
Russell Teague
6dc9474a6b Fix bootstrap ignition user-agent
api-int now requires an http user-agent to serve content
2020-07-07 10:14:29 -04:00
Russell Teague
c327900c63 test/aws/tasks: Properly retry task on command failure
Retry the task if rc != 0 and if no 'items' are returned.
The task was failing on the first exection and would not retry if
the command module failed.
2020-07-06 15:12:47 -04:00
OpenShift Merge Robot
694fb3285c Merge pull request #12174 from multi-arch/jpz-tps-fix-openshift-ansible-test-spec
Fixed the test spec to grab the latest Ansible in stream
openshift-ansible-4.6.0-202006231248.p0 openshift-ansible-4.6.0-202006221729.p0 openshift-ansible-4.6.0-202006221316.p0 openshift-ansible-4.6.0-202006192014
2020-06-18 19:38:22 -04:00
Jeremy Poulin
110357080d Fixed the test spec to grab the latest Ansible in the x.y stream
When we build our RPMs, we end up failing TPS tests because the Ansible version is locked to an x.y version, but we don't lock our deployment streams to a single version of Ansible.
2020-06-18 11:27:27 -04:00
OpenShift Merge Robot
b51c2eb324 Merge pull request #12193 from mtnbikenc/fix-loop-var
Use loop_var with include_tasks
openshift-ansible-4.6.0-202006181224
2020-06-18 02:39:35 -04:00
OpenShift Merge Robot
1b75fd7856 Merge pull request #12194 from mtnbikenc/remove-nfs-utils-task
Remove task to install nfs-utils
2020-06-18 00:51:26 -04:00
Russell Teague
501c1147fd Remove task to install nfs-utils
nfs-utils is installed by the openshift-node role and does not need to
be installed separately.  Additionally, any_errors_fatal is added to the
play which prepares new nodes to ensure the scaleup will only continue
if all expected nodes are available in CI.
2020-06-17 15:08:48 -04:00
OpenShift Merge Robot
2f7c2a8603 Merge pull request #12192 from mtnbikenc/fix-resuce
Fix machine creation failure message
2020-06-17 20:34:05 +02:00
Russell Teague
fe854fbaa4 Use loop_var with include_tasks
When looping over included tasks files, the loop_var option should be
used to prevent var collision of the default 'item' loop variable.  The
collision could cause unexpected behavior and failure of included tasks.
2020-06-17 11:32:15 -04:00
Russell Teague
ab95af033b Fix machine creation failure message
In CI we use machine sets to provision RHEL worker instances in AWS.
The rescue clause of the machine creation tasks should summarize the
failure state if one of these tasks fails.  The failure message was
referencing the 'resources' object which was previously used when using
the k8s Ansible modules and therefore was not valid because the creation
tasks have been moved to 'command' which provides 'stdout'.  The
status.errorMessage object is not present during some failures, so the
error detail has been removed.  Previous task output can be used to
determine the cause of the failure.
2020-06-17 09:52:54 -04:00
OpenShift Merge Robot
f0c53d4419 Merge pull request #12175 from mtnbikenc/fix-ignorelist
Correct terminology for ignore list
openshift-ansible-4.6.0-202006151641 openshift-ansible-4.6.0-202006050137
2020-06-04 20:44:27 -04:00
Russell Teague
e97719b78c Correct terminology for ignore list 2020-06-04 13:46:05 -04:00
OpenShift Merge Robot
3a1eee99af Merge pull request #12173 from mtnbikenc/fix-1839965
Bug 1839965: Enable seboolean for Azure mount support
openshift-ansible-4.5.0-202006231303.p0 openshift-ansible-4.5.0-202006221333.p0 openshift-ansible-4.5.0-202006201517 openshift-ansible-4.5.0-202006191627 openshift-ansible-4.5.0-202006180838 openshift-ansible-4.5.0-202006161654 openshift-ansible-4.5.0-202006160813 openshift-ansible-4.5.0-202006151640 openshift-ansible-4.5.0-202006061517 openshift-ansible-4.6.0-202006031739 openshift-ansible-4.5.0-202005301517 openshift-ansible-4.5.0-202005291917 openshift-ansible-4.5.0-202005271957
2020-05-27 14:18:29 -04:00
Russell Teague
9850858154 Enable seboolean for Azure mount support
Required for read/write support to mounted volumes on Azure.
SELinux booleans are updated to match RHCOS 8.x.

https://bugzilla.redhat.com/show_bug.cgi?id=1839965
2020-05-26 08:25:57 -04:00
OpenShift Merge Robot
23eb7004a8 Merge pull request #12145 from mtnbikenc/fix-1826213
Bug 1826213: Update version check to support semver change
openshift-ansible-4.5.0-202005231517 openshift-ansible-4.5.0-202005220507 openshift-ansible-4.5.0-202005211305 openshift-ansible-4.6.0-202005210021 openshift-ansible-4.5.0-202005161517 openshift-ansible-4.6.0-202005061824 openshift-ansible-4.5.0-202005061719 openshift-ansible-4.6.0-202005041702 openshift-ansible-4.5.0-202005021517 openshift-ansible-4.5.0-202005012117
2020-05-01 22:36:34 +02:00
OpenShift Merge Robot
e7cb285c75 Merge pull request #12151 from mtnbikenc/fix-1827982
Bug 1827982: Install cifs-utils, required for azure-file mounts
openshift-ansible-4.5.0-202005011857
2020-05-01 19:38:40 +02:00
Russell Teague
faeb205cf7 Update version check to support semver change 2020-04-29 15:40:59 -04:00
Russell Teague
886625720a Install cifs-utils, required for azure-file mounts
https://bugzilla.redhat.com/show_bug.cgi?id=1827982
2020-04-27 08:47:06 -04:00
OpenShift Merge Robot
89535cb215 Merge pull request #12141 from bysnupy/patch-27
Bug 1824101: Upgrading the RHEL7 worker nodes from OCP4.2 to OCP4.3 can be failed due to conflict of the podman package dependency
openshift-ansible-4.6.0-202004301651 openshift-ansible-4.5.0-202004250717 openshift-ansible-4.5.0-202004241517
2020-04-24 17:00:56 +02:00
Daein Park
7c01f17152 At the same time update cri-o and podman to avoid conmon dependency conflicts
cri-o and podman depend on same conmon package, so if the packages are updates at the individual transaction, then the dependency will conflict each other due to not resolving the dependency automatically.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1824101
2020-04-15 20:10:06 +09:00
OpenShift Merge Robot
2cf2144dff Merge pull request #12129 from mtnbikenc/fix-1815010
Bug 1815010: Use oc_csr_approve Ansible module for CSR approval
openshift-ansible-4.5.0-202004231620 openshift-ansible-4.5.0-202004180718 openshift-ansible-4.5.0-202004110717 openshift-ansible-4.5.0-202004040742 openshift-ansible-4.5.0-202003311716
2020-03-30 21:07:25 +02:00
Russell Teague
e210777c83 Add unit tests for oc_csr_approve 2020-03-30 13:25:00 -04:00
Russell Teague
6c27222b89 Use oc_csr_approve Ansible module for CSR approval
Module approves both the node-bootstrapper and node csr
2020-03-27 10:34:56 -04:00
OpenShift Merge Robot
228f62bb0e Merge pull request #12110 from mtnbikenc/remove-k8s-modules
Remove k8s modules from test playbooks
openshift-ansible-4.5.0-202003300001 openshift-ansible-4.5.0-202003101846
2020-03-10 18:47:22 +01:00
Russell Teague
55ddf4cf7b Remove k8s modules from test playbooks
The k8s Ansible modules were only used in the test playbooks which have
now been refactored to use the `command` module with `oc` to be
consistent with the main playbooks.

Summary of changes:
- Removed ssh bastion creation playbooks and files
- ssh bastion creation is done via script in CI
- Creating machine sets is broken out into a separately included playbook
- Preparation of nodes has been consolidated
- Wait for new worker configs to roll out before removing CoreOS nodes
- removed python2-openshift from -test package, was required for `k8s*` modules
- Playbooks in test/ are now syntax checked
2020-03-09 08:42:57 -04:00
OpenShift Merge Robot
7a9337f586 Merge pull request #12117 from mtnbikenc/ansible-2.9.5
Use Ansible 2.9.5 for OCP 4.5
openshift-ansible-4.5.0-202003062301
2020-03-06 21:36:44 +01:00
OpenShift Merge Robot
97b128af91 Merge pull request #12116 from mtnbikenc/tox-python
Refine Python version for tox in travis
2020-03-06 19:41:41 +01:00
Russell Teague
9b6960b315 Use Ansible 2.9.5 for OCP 4.5
Provides supported Ansible version for OCP 4.5 support cycle
2020-03-04 14:41:41 -05:00
OpenShift Merge Robot
bfd1848273 Merge pull request #12114 from mtnbikenc/increase-podman-timeout
Increase podman pull timeout
openshift-ansible-4.5.0-202003050131
2020-03-04 14:34:35 -05:00
Russell Teague
fb21a694d9 Refine Python version for tox in travis 2020-03-04 14:34:20 -05:00
Russell Teague
ee838df787 Increase podman pull timeout
Observing error pulling image in CI
"received unexpected HTTP status: 504 Gateway Time-out"
2020-02-27 16:06:19 -05:00
OpenShift Merge Robot
6802c0cc27 Merge pull request #12111 from mtnbikenc/remove-container-yaml
Delete container.yaml
2020-02-27 17:09:57 +01:00
OpenShift Merge Robot
70d415721f Merge pull request #12112 from mtnbikenc/increase-rollout-timeout
Increase worker config rollout timeout
2020-02-26 23:34:56 +01:00
Russell Teague
00a2b5def3 Increase worker config rollout timeout
Observed in CI this timeout expired before all node configs were
updated however, after reviewing node status, the nodes were all
properly updated.  Increasing the timeout to avoid flakes.
2020-02-26 15:37:35 -05:00
Russell Teague
8ce1a5f066 Delete container.yaml
This was for ODCS config and we've gone a different way to implement it;
this actually causes a problem now.
2020-02-26 08:33:53 -05:00