ansible/awx

Openstack inventory don't load any group or host

開放

#4,197 建立於 2019年7月1日

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

倉庫指標

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

描述

ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • inventories management
SUMMARY

I'm not able to add hosts from openstack source

ENVIRONMENT
  • AWX version: 5.0.0.0
  • AWX install method: docker on linux
  • Ansible version: 2.8.1
  • Operating System: Debian9
  • Web Browser: Chrome/Safari
STEPS TO REPRODUCE
  1. Add your openstack credentials to AWX and select type "Openstack"

  2. go to inventory and add an openstack inventory using these credentials

  3. clic on "start sync" button

EXPECTED RESULTS

hosts from openstack must be integrated into awx

ACTUAL RESULTS
1.891 INFO     Updating inventory 7: openstack
  2.278 DEBUG    Using base command: python /usr/bin/ansible-inventory -i /tmp/awx_168_p5pex3g_/openstack.yml --playbook-dir /tmp/awx_168_p5pex3g_ -vvvvv
  2.278 INFO     Reading Ansible inventory source: /tmp/awx_168_p5pex3g_/openstack.yml
  2.280 INFO     Using VIRTUAL_ENV: /var/lib/awx/venv/ansible
  2.280 INFO     Using PATH: /var/lib/awx/venv/ansible/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  2.280 INFO     Using PYTHONPATH: /var/lib/awx/venv/ansible/lib/python2.7/site-packages:
  3.525 ERROR    ansible-inventory 2.8.1
  3.526 ERROR      config file = /etc/ansible/ansible.cfg
  3.526 ERROR      configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  3.526 ERROR      ansible python module location = /usr/lib/python2.7/site-packages/ansible
  3.526 ERROR      executable location = /usr/bin/ansible-inventory
  3.526 ERROR      python version = 2.7.5 (default, Apr  9 2019, 14:30:50) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
  3.526 ERROR    Using /etc/ansible/ansible.cfg as config file
  3.526 ERROR    setting up inventory plugins
  3.526 ERROR    Parsed /tmp/awx_168_p5pex3g_/openstack.yml inventory source with auto plugin
  3.527 DEBUG    Finished loading from source: /tmp/awx_168_p5pex3g_/openstack.yml
  3.527 INFO     Processing JSON output...
  3.527 DEBUG    Loaded group: all
  3.528 INFO     Loaded 0 groups, 0 hosts
  3.540 DEBUG    Inventory variables unmodified
2019-07-01 16:50:22,371 DEBUG    awx.main.models.inventory Going to update inventory computed fields, pk=7
2019-07-01 16:50:22,482 DEBUG    awx.main.models.inventory Finished updating inventory computed fields, pk=7, in 0.101 seconds
  3.661 INFO     Inventory import completed for openstack in 1.8s

貢獻者指南