Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #569 #626

Merged
merged 1 commit into from Oct 13, 2017
Merged

Fix for issue #569 #626

merged 1 commit into from Oct 13, 2017

Conversation

ksatchit
Copy link
Member

What this PR does / why we need it:

  • Reduced the ansible poll time and increased retry counts during pod status checks in test playbooks
    This is intended to reduce the test time overhead caused by additional ansible run times (in waiting to get to next iteration)

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #569

Special notes for your reviewer:

---------------------------------------------------------

- Reduced the ansible poll time and increased retry counts
  during pod status checks in test playbooks
Copy link
Contributor

@yudaykiran yudaykiran left a comment

Choose a reason for hiding this comment

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

LGTM

@yudaykiran yudaykiran merged commit e777aaa into openebs:master Oct 13, 2017
@ksatchit ksatchit self-assigned this Oct 27, 2017
ksatchit pushed a commit to ksatchit/openebs that referenced this pull request Oct 27, 2017
-------------------------------------------

The CI integration suite is ever expanding and we need to make the run as efficient as possible.
Currently, we are running 3-4 applications and the run is seen to take around ~80 min.

Some ways to approach this are provided below :

- Increase the number of retries and decreasing poll interval while waiting on pod status changes
  post creation/deletion etc., during the testcase (openebs#626)

- Use test images wherever possible instead of buildin the image during the course of a testcase (openebs#623)

- Increasing the resources on the vagrant VMs being used in the kubernetes cluster (openebs#636)

- PrePull test images into test harness and load into kubernetes nodes upon bringup

Together, these changes have been observed to reduce the CI run time to ~45 min.

This commit provides the code changes needed to perform the PrePull test images. Changes include :

a) Ansible role and playbook to pull test images specified by a list (maintains images as versioned tarballs)
b) Ansible role and playbook to load this into test k8s nodes (vagrantVM /baremetal)
c) Updates to ci.yml to include load images step
d) Bash script that will run on test/jenkins harness to invoke the pull image role
e) Updates to jenkins cronfile to include the bash script run

Fixes issue openebs#463

Further optimizations will be taken up as in subsequent releases
sachinmukherjee pushed a commit to sachinmukherjee/openebs that referenced this pull request Nov 13, 2018
Signed-off-by: NerdyPepper <akshayoppiliappan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce polling time for pod status in ansible roles and test playbooks
2 participants