I am trying to install train using ansible playbook and get error in systax check

asked 2020-06-09 06:45:55 -0600

iconmani gravatar image

updated 2020-06-10 10:07:57 -0600

I am getting below error when running syntax check:

[root@ans110 playbooks]# openstack-ansible setup-infrastructure.yml --syntax-check /opt/ansible-runtime/bin/python: No module named ara.setup Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml " Inventory script (/root/poc/Ansible_openstack_poc/openstack_code/inventory/dynamic_inventory.py) had an execution error: Traceback (most recent call last): File "/root/poc/Ansible_openstack_poc/openstack_code/inventory/dynamic_inventory.py", line 80, in <module> output = generate.main(**all_args) File "/root/poc/Ansible_openstack_poc/openstack_code/osa_toolkit/generate.py", line 1176, in main ip.set_used_ips(user_defined_config, inventory) File "/root/poc/Ansible_openstack_poc/openstack_code/osa_toolkit/ip.py", line 96, in set_used_ips split_ip[-1] File "/opt/ansible-runtime/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 1702, in iter_iprange end = IPAddress(end) File "/opt/ansible-runtime/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 306, in __init__ 'address from %r' % addr) netaddr.core.AddrFormatError: failed to detect a valid IP address from ' 10.10.110.222'

/root/poc/Ansible_openstack_poc/openstack_code/inventory/dynamic_inventory.py:18: Expected key=value host variable assignment, got: argparse

change, but still be user configurable on deprecation. This feature will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to be in '/etc/ansible/roles/ceph-ansible/roles/ceph-config/tasks/main.yml': line 19, column 9, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • block:
    • name: look up for ceph-volume rejected devices ^ here

EXIT NOTICE [Playbook execution failure] ************

edit retag flag offensive close merge delete