Skip to content

Conversation

@vrutkovs
Copy link
Contributor

@vrutkovs vrutkovs commented Sep 6, 2018

Add configuration, jobs and profile to run openshift-ansible tests on AWS

PR with custom AWS provisioner - openshift/openshift-ansible#9744

PTAL @stevekuznetsov

@openshift-ci-robot openshift-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 6, 2018
@vrutkovs vrutkovs force-pushed the openshift-ansible-aws-ci branch from f5794e7 to 95791dd Compare September 6, 2018 11:55
@vrutkovs vrutkovs force-pushed the openshift-ansible-aws-ci branch from 95791dd to ac83ec3 Compare September 6, 2018 17:47
cd /usr/share/ansible/openshift-ansible
ansible-playbook -vv \
-i test/ci/inventory \
test/ci/launch.yml | tee -a /tmp/artifacts/ansible.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause the logs to be archived even if the container exits successfully.

If you want to log only in case of failure, just send it to stdout/err.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do want that, but I'll remove that until openshift/ci-operator#118 is implemented

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right, it's that case.

@bbguimaraes
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bbguimaraes, vrutkovs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 7, 2018
@openshift-merge-robot openshift-merge-robot merged commit 4dc3e53 into openshift:master Sep 7, 2018
@openshift-ci-robot
Copy link
Contributor

@vrutkovs: Updated the following 3 configmaps:

  • ci-operator-openshift-openshift-ansible configmap using the following files:
    • key master.json using file ci-operator/config/openshift/openshift-ansible/master.json
  • job-config configmap using the following files:
    • key openshift-openshift-ansible-presubmits.yaml using file ci-operator/jobs/openshift/openshift-ansible/openshift-openshift-ansible-presubmits.yaml
  • plugins configmap using the following files:
    • key plugins.yaml using file cluster/ci/config/prow/plugins.yaml
Details

In response to this:

Add configuration, jobs and profile to run openshift-ansible tests on AWS

PR with custom AWS provisioner - openshift/openshift-ansible#9744

PTAL @stevekuznetsov

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -0,0 +1,313 @@
kind: Template
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct. You should have been using cluster-launch-e2e which is already configured against AWS - anything "special" to AWS should have been in an if block, or better, placed within the entry point.

Please open a follow up and converge this - this file should not exist.

Copy link
Contributor Author

@vrutkovs vrutkovs Sep 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has a confusing title, sorry. Openshift ansible team needs a bare-metal-like tests, which use prerequisites and deploy_cluster playbooks with openshift-ansible-specific settings - e.g. Atomic host etc. This is why there is a new template - so that openshift-ansible changes won't affect new installer.

So in openshift/openshift-ansible#9744 a new provisoner was written. So far it supports AWS only, but this might change in the future.

@@ -0,0 +1,119 @@
ansible_become: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been in the aws-dev directory, and when ready for CI testing should have been copied into the aws dir. The aws profile is where CI testing for AWS goes.

openshift_additional_repos:
- id: origin
name: Origin
baseurl: "{{ lookup('env','RPM_REPO_BASEURL') }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you call this RPM_REPO_BASEURL instead of RPM_REPO, which is what ci-operator generates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RPM_REPO is a path to .repo file and openshift-ansible doesn't have a var for a full repo file yet (see openshift/openshift-ansible#9859)

wking added a commit to wking/openshift-release that referenced this pull request Feb 27, 2019
This image has been unused since the e2e template landed in 51df634
(Support an aws installer CI job, 2018-06-07, openshift#928) and since the
Ansible template landed in c35a30a (Add a profile openshift-ansible
custom AWS provisioner, 2018-08-30, openshift#1367).

Also remove the duplicated entry from the src template which landed in
aed67fc (Source installer tests should have access to IMAGE_FORMAT,
2019-01-25, openshift#2701).
@vrutkovs vrutkovs deleted the openshift-ansible-aws-ci branch May 16, 2019 11:06
derekhiggins pushed a commit to derekhiggins/release that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants