ansible/awx

specify source for docker_image tasks

Aperta

#4445 aperta il 7 ago 2019

 (2 commenti) (0 reazioni) (0 assegnatari)Python (3333 fork)batch import
component:installerhelp wantedtype:bug

Metriche repository

Star
 (13.071 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

ISSUE TYPE
  • Bug Report
SUMMARY

A warning is produced when running installer/build.yml:

[WARNING]: The value of the "source" option was determined to be "pull". Please set the "source" option explicitly. Autodetection will be removed in Ansible 2.12.

(This is also the cause of later errors.)

ENVIRONMENT
  • AWX version: 6.1.0
  • AWX install method: docker-compose on linux
  • Ansible version: 2.8.2
  • Operating System: CentOS 7
  • Web Browser: N/A
STEPS TO REPRODUCE
ansible-playbook -i inventory build.yml
EXPECTED RESULTS

I expected the build playbook to complete successfully.

ACTUAL RESULTS
[WARNING]: The value of the "source" option was determined to be "pull". Please set the "source" option explicitly. Autodetection will be removed in Ansible 2.12.

failed: [localhost -> localhost] (item=latest) => {"ansible_loop_var": "item", "changed": false, "item": "latest", "msg": "Error pushing image 172.30.1.1:5000/awx/awx_web: Get https://172.30.1.1:5000/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"}
failed: [localhost -> localhost] (item=6.1.0) => {"ansible_loop_var": "item", "changed": false, "item": "6.1.0", "msg": "Error pushing image 172.30.1.1:5000/awx/awx_web: Get https://172.30.1.1:5000/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"}
ADDITIONAL INFORMATION

By editing awx/installer/roles/image_push/tasks/main.yml and adding source: local to the Tag and Push Container Images and Tag and push task image to registry, and running the build.yml playbook again I was able to run it to completion.

Guida contributor