ansible/awx

specify source for docker_image tasks

開放

#4,445 建立於 2019年8月7日

 (2 則留言) (0 個反應) (0 位負責人)Python (3,333 個分叉)batch import
component:installerhelp wantedtype:bug

倉庫指標

星標
 (13,071 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南