Comments (4)
I can't confirm, because I don't run the latest jenkins template, but a modified version of one some number of releases back. I did a review of your PR though and from a static analysis viewpoint it looks fine to me.
from aws-cf-templates.
I believe I found the problem. The issue was that the test for docker was failing because the section '[amzn2extra-docker]' was already in amzn2-extras.repo and was set to latest (a dependency of some prior tool? enabled by default? changed in some new version of amazon linux since the template was written?). So the test section fails and the command is never run. I removed the test line and added the yum clean metadata line to the command, and now version 18.06.1 is installed on the nodes. Here's a diff:
'a_enable_docker':
- command: 'amazon-linux-extras enable docker=18.06.1'
- test: "! grep -Fxq '[amzn2extra-docker]' /etc/yum.repos.d/amzn2-extras.repo"
+ command: 'amazon-linux-extras enable docker=18.06.1; yum clean metadata'
It helped once I found that logs are in /var/log/cfn-init.log
and I noticed this:
021-05-02 16:21:07,651 P3079 [INFO] Test for Command a_enable_docker
2021-05-02 16:21:07,654 P3079 [ERROR] Exited with error code 1
2021-05-02 16:21:07,655 P3079 [INFO] ============================================================
2021-05-02 16:21:07,655 P3079 [INFO] Test for Command b_enable_corretto8
2021-05-02 16:21:07,658 P3079 [INFO] Completed successfully.
2021-05-02 16:21:07,658 P3079 [INFO] ============================================================
2021-05-02 16:21:07,658 P3079 [INFO] Command b_enable_corretto8
2021-05-02 16:21:07,891 P3079 [INFO] -----------------------Command Output-----------------------
2021-05-02 16:21:07,891 P3079 [INFO] 0 ansible2 available \
2021-05-02 16:21:07,891 P3079 [INFO] [ =2.4.2 =2.4.6 =2.8 =stable ]
...
2021-05-02 16:21:07,892 P3079 [INFO] 20 docker=latest enabled \
2021-05-02 16:21:07,892 P3079 [INFO] [ =17.12.1 =18.03.1 =18.06.1 =18.09.9 =stable ]
NOTE: that for some reason 18.09.9 would not install for me because the source could not be found for some reason, so 18.06.1 is the most recent version of docker available using this method of installation. I would have liked to use 19.03.13ce-1
as well, but that is not a valid option for amazon-linux-extras. An alternative may be to use amazon-linux-extras enable docker
and then add the version to the line where yum does the install, but unfortunately, I'm out of time for further exploration into this issue.
from aws-cf-templates.
Thanks for the bug report. I'm working on a fix.
from aws-cf-templates.
@timharsch could you confirm that the fix in #551 fixes your issue?
from aws-cf-templates.
Related Issues (20)
- Error with the service "awslogsd" HOT 5
- Wordpress Features Request HOT 2
- ECS AutoScalingGroup - CREATE_FAILED HOT 1
- Jenkins plugin dependencies not installed HOT 5
- Jenkins2-ha deployment failing: Unable to satisfy 100% MinSuccessfulInstancesPercent requirement HOT 4
- Monitoring ElastiCache redis is broken
- ElastiCache-Redis cannot UPDATE Template to use more than 1 Shard (clustermode:off -> on) HOT 2
- Updating Jenkins template HOT 2
- Jenkins fails to boot due to wrong ruby version HOT 4
- Static Website - Use new CloudFront Functions for URL redirects instead of Lambda@Edge HOT 1
- jenkins agents fail to start due to missing nodejs requirement HOT 3
- CloudTrail LogsStream Details HOT 3
- ECS Cluster - AutoScaling errors HOT 1
- Incorrect test and typo in test for `h_download_jenkins_plugin_manager` step HOT 1
- How to use Fargate Spot instances? HOT 2
- Add link to documentation for private ECR access from private subnet with no NAT gateway HOT 1
- jenkins2-ha-agents does not scale down if there is at least one job running HOT 1
- Documentation on UserData field EC2 template HOT 7
- Jenkins template broke because mirror is down HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cf-templates.