[FOLIO-1558] Upgrade to Ansible 2.7 causes folio-snapshot build failure Created: 08/Oct/18 Updated: 05/Jul/19 Resolved: 09/Oct/18 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | P1 |
| Reporter: | Wayne Schneider | Assignee: | Wayne Schneider |
| Resolution: | Done | Votes: | 0 |
| Labels: | ci, sprint48 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||
| Sprint: | |||||||||
| Development Team: | Core: Platform | ||||||||
| Description |
|
Error message:
TASK [gather ec2 facts] ********************************************************
fatal: [10.36.1.44]: FAILED! => {"changed": false, "msg": "This module has been removed. The module documentation for Ansible-2.6 may contain hints for porting"}
|
| Comments |
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
The affected task:
- name: gather ec2 facts
ec2_facts:
register: ec2_facts
This is in all the playbooks in folio-infrastructure, so I'm not sure why only the snapshot build is failing. |
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
The ec2_facts module was removed in Ansible 2.4. Functionality may be included in ec2_instance_facts module? |
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
In addition, it looks like ec2_ami_find has been deprecated. See
|
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
Looks like the latest build of the jenkins-slave-all Docker image would have pulled in the new Ansible. |
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
jenkins-slave-all has Ansible 2.7. Oddly, running locally with Ansible 2.7 I get a deprecation warning for ec2_facts, [DEPRECATION WARNING]: ec2_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [54.146.162.64]: FAILED! => {"changed": false, "msg": "This module has been removed. The module documentation for Ansible-2.6 may contain hints for porting"}
|
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
folio-snapshot build has been converted to use ec2_instance_facts instead of ec2_facts. |
| Comment by Wayne Schneider [ 08/Oct/18 ] |
|
stripes, folio-testing-backend, and folio-release-2018-q3 have all been converted. |
| Comment by Wayne Schneider [ 09/Oct/18 ] |
|
All non-deprecated playbooks in folio-infrastructure that used ec2_facts have been converted to use ec2_instance_facts. |