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

Add ansible deploy options #4619

Merged
merged 2 commits into from
Sep 16, 2019
Merged

Conversation

BillZong
Copy link
Contributor

Add docker image pull (or not) options to kafka and zookeeper deployment.

Description

If the docker tagged(especially the "latest") image is already in environment machine, adding this option could speed up deployment.

Related issue and scope

  • I opened an issue to propose and discuss this change (#????)

My changes affect the following components

  • API
  • Controller
  • Message Bus (e.g., Kafka)
  • Loadbalancer
  • Invoker
  • Intrinsic actions (e.g., sequences, conductors)
  • Data stores (e.g., CouchDB)
  • Tests
  • Deployment
  • CLI
  • General tooling
  • Documentation

Types of changes

  • Bug fix (generally a non-breaking change which closes an issue).
  • Enhancement or new feature (adds new functionality).
  • Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

  • I signed an Apache CLA.
  • I reviewed the style guides and followed the recommendations (Travis CI will check :).
  • I added tests to cover my changes.
  • My changes require further changes to the documentation.
  • I updated the documentation where necessary.

@codecov-io
Copy link

Codecov Report

Merging #4619 into master will decrease coverage by 5.76%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4619      +/-   ##
==========================================
- Coverage   84.54%   78.77%   -5.77%     
==========================================
  Files         183      183              
  Lines        8308     8308              
  Branches      571      571              
==========================================
- Hits         7024     6545     -479     
- Misses       1284     1763     +479
Impacted Files Coverage Δ
...core/database/cosmosdb/RxObservableImplicits.scala 0% <0%> (-100%) ⬇️
...ore/database/cosmosdb/cache/CacheInvalidator.scala 0% <0%> (-100%) ⬇️
...core/database/cosmosdb/CosmosDBArtifactStore.scala 0% <0%> (-95.89%) ⬇️
...tabase/cosmosdb/cache/CacheInvalidatorConfig.scala 0% <0%> (-94.74%) ⬇️
...sk/core/database/cosmosdb/CosmosDBViewMapper.scala 0% <0%> (-92.6%) ⬇️
...e/database/cosmosdb/cache/ChangeFeedListener.scala 0% <0%> (-86.67%) ⬇️
...e/database/cosmosdb/cache/KafkaEventProducer.scala 0% <0%> (-76.48%) ⬇️
...whisk/core/database/cosmosdb/CosmosDBSupport.scala 0% <0%> (-74.08%) ⬇️
...a/org/apache/openwhisk/common/ExecutorCloser.scala 0% <0%> (-66.67%) ⬇️
...abase/cosmosdb/CosmosDBArtifactStoreProvider.scala 4% <0%> (-52%) ⬇️
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94f7b14...4663969. Read the comment docs.

@@ -17,13 +17,6 @@
---
# This role will install Kafka with Zookeeper in group 'kafka' in the environment inventory

- name: "pull the zookeeper:{{ zookeeper.version }} image"
Copy link
Member

Choose a reason for hiding this comment

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

LGTM - not sure why there was a separate pull task.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like intuitive coding the same as manual operation.

Copy link
Member

Choose a reason for hiding this comment

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

I think all 3rd images are a separate task to have retries with delays and be configurable

I think I remember the docker will try once to pull and first error doesn’t retry

Copy link
Member

Choose a reason for hiding this comment

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

I thought so too but then noticed Kafka didn't have the same pull task - so I dismissed that explanation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The retry here is meaningless, since errors happened here are fatal for deployment.
e.g. image name/tag spelled wrong, wrong password for docker repo, network timeout, etc.

All we should do is to fix them and re-deploy, instead of retrying.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rabbah
Sorry for my bold clicked. ORZ
Not very familiar with the Github buttons.

@rabbah rabbah added the ready label Sep 12, 2019
@rabbah rabbah merged commit f946878 into apache:master Sep 16, 2019
@rabbah
Copy link
Member

rabbah commented Sep 16, 2019

Thanks for the contribution.

@BillZong BillZong deleted the add-ansible-deploy-options branch September 19, 2019 09:05
BillZong added a commit to BillZong/openwhisk that referenced this pull request Nov 18, 2019
* add docker image pull option for kafka ansible deployment

* add docker image pull option for zookeeper ansible deployment and remove mandatory pull task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants