Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host_list declined parsing verify_file() method in amazon.aws.aws_ec2 inventory plugin #2015

Open
1 task done
ced455 opened this issue Mar 11, 2024 · 1 comment
Open
1 task done
Labels
needs_info This issue requires further information. Please answer any outstanding questions

Comments

@ced455
Copy link

ced455 commented Mar 11, 2024

Summary

When trying to run the inventory plugin for the first time i get the error :

host_list declined parsing /ansiblepath/demo.aws_ec2.yml as it did not pass its verify_file() method
script declined parsing /ansiblepath/demo.aws_ec2.yml as it did not pass its verify_file() method

I am using an account that can list all the ressources in all my account.

Issue Type

Bug Report

Component Name

amazon.aws.aws_ec2

Ansible Version

$ ansible --version
ansible [core 2.16.3]
  config file = /home/cedric/Documents/labo/zol-ansible/ansible.cfg
  configured module search path = ['/home/cedric/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/cedric/Documents/labo/zol-ansible/.venv/lib/python3.11/site-packages/ansible
  ansible collection location = /home/cedric/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/cedric/Documents/labo/zol-ansible/.venv/bin/ansible
  python version = 3.11.6 (main, Oct  8 2023, 05:06:43) [GCC 13.2.0] (/home/cedric/Documents/labo/zol-ansible/.venv/bin/python3)
  jinja version = 3.1.3
  libyaml = True

Collection Versions

$ ansible-galaxy collection list
Collection                               Version
---------------------------------------- -------
amazon.aws                               7.2.0  
ansible.netcommon                        5.3.0  
ansible.posix                            1.5.4  
ansible.utils                            2.12.0 
ansible.windows                          2.2.0  
arista.eos                               6.2.2  
awx.awx                                  23.6.0 
azure.azcollection                       1.19.0 
check_point.mgmt                         5.2.2  
chocolatey.chocolatey                    1.5.1  
cisco.aci                                2.8.0  
cisco.asa                                4.0.3  
cisco.dnac                               6.10.2 
cisco.intersight                         2.0.7  
cisco.ios                                5.3.0  
cisco.iosxr                              6.1.1  
cisco.ise                                2.7.0  
cisco.meraki                             2.17.2 
cisco.mso                                2.5.0  
cisco.nxos                               5.3.0  
cisco.ucs                                1.10.0 
cloud.common                             2.1.4  
cloudscale_ch.cloud                      2.3.1  
community.aws                            7.1.0  
community.azure                          2.0.0  
community.ciscosmb                       1.0.7  
community.crypto                         2.17.1 
community.digitalocean                   1.26.0 
community.dns                            2.8.0  
community.docker                         3.7.0  
community.general                        8.3.0  
community.grafana                        1.7.0  
community.hashi_vault                    6.1.0  
community.hrobot                         1.9.0  
community.library_inventory_filtering_v1 1.0.0  
community.libvirt                        1.3.0  
community.mongodb                        1.6.3  
community.mysql                          3.8.0  
community.network                        5.0.2  
community.okd                            2.3.0  
community.postgresql                     3.3.0  
community.proxysql                       1.5.1  
community.rabbitmq                       1.2.3  
community.routeros                       2.12.0 
community.sap                            2.0.0  
community.sap_libs                       1.4.2  
community.sops                           1.6.7  
community.vmware                         4.1.0  
community.windows                        2.1.0  
community.zabbix                         2.3.1  
containers.podman                        1.11.0 
cyberark.conjur                          1.2.2  
cyberark.pas                             1.0.25 
dellemc.enterprise_sonic                 2.4.0  
dellemc.openmanage                       8.7.0  
dellemc.powerflex                        2.1.0  
dellemc.unity                            1.7.1  
f5networks.f5_modules                    1.27.1 
fortinet.fortimanager                    2.3.1  
fortinet.fortios                         2.3.4  
frr.frr                                  2.0.2  
gluster.gluster                          1.0.2  
google.cloud                             1.3.0  
grafana.grafana                          2.2.4  
hetzner.hcloud                           2.4.1  
hpe.nimble                               1.1.4  
ibm.qradar                               2.1.0  
ibm.spectrum_virtualize                  2.0.0  
ibm.storage_virtualize                   2.2.0  
infinidat.infinibox                      1.3.12 
infoblox.nios_modules                    1.6.1  
inspur.ispim                             2.2.0  
inspur.sm                                2.3.0  
junipernetworks.junos                    5.3.1  
kubernetes.core                          2.4.0  
lowlydba.sqlserver                       2.2.2  
microsoft.ad                             1.4.1  
netapp.aws                               21.7.1 
netapp.azure                             21.10.1
netapp.cloudmanager                      21.22.1
netapp.elementsw                         21.7.0 
netapp.ontap                             22.9.0 
netapp.storagegrid                       21.11.1
netapp.um_info                           21.8.1 
netapp_eseries.santricity                1.4.0  
netbox.netbox                            3.16.0 
ngine_io.cloudstack                      2.3.0  
ngine_io.exoscale                        1.1.0  
openstack.cloud                          2.2.0  
openvswitch.openvswitch                  2.1.1  
ovirt.ovirt                              3.2.0  
purestorage.flasharray                   1.26.0 
purestorage.flashblade                   1.15.0 
purestorage.fusion                       1.6.0  
sensu.sensu_go                           1.14.0 
splunk.es                                2.1.2  
t_systems_mms.icinga_director            2.0.1  
telekom_mms.icinga_director              1.35.0 
theforeman.foreman                       3.15.0 
vmware.vmware_rest                       2.3.1  
vultr.cloud                              1.12.1 
vyos.vyos                                4.1.0  
wti.remote                               1.0.5 

AWS SDK versions

$ pip show boto boto3 botocore
WARNING: Package(s) not found: boto
Name: boto3
Version: 1.34.59
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
Author-email: 
License: Apache License 2.0
Location: /home/cedric/Documents/labo/zol-ansible/.venv/lib/python3.11/site-packages
Requires: botocore, jmespath, s3transfer
Required-by: 
---
Name: botocore
Version: 1.34.59
Summary: Low-level, data-driven core of boto 3.
Home-page: https://github.com/boto/botocore
Author: Amazon Web Services
Author-email: 
License: Apache License 2.0
Location: /home/cedric/Documents/labo/zol-ansible/.venv/lib/python3.11/site-packages
Requires: jmespath, python-dateutil, urllib3
Required-by: boto3, s3transfer

Configuration

$ ansible-config dump --only-changed
ANSIBLE_PIPELINING(/ansible-path/ansible.cfg) = True
CONFIG_FILE() = /ansible-path/ansible.cfg
DEFAULT_FORKS(/ansible-path/ansible.cfg) = 30
DEFAULT_HOST_LIST(/ansible-path/ansible.cfg) = ['/home/cedric/Documents/lab>
DEFAULT_PRIVATE_KEY_FILE(/ansible-path/ansible.cfg) = /home/cedric/.ssh/zol>
DEFAULT_REMOTE_USER(/ansible-path/ansible.cfg) = zolsible
DEFAULT_ROLES_PATH(/ansible-path/ansible.cfg) = ['/home/cedric/Documents/la>
HOST_KEY_CHECKING(/ansible-path/ansible.cfg) = False
INTERPRETER_PYTHON(/ansible-path/ansible.cfg) = auto_silent
PLAYBOOK_DIR(/ansible-path/ansible.cfg) = /ansible-path/>

OS / Environment

ubuntu 23.10

Steps to Reproduce

plugin: amazon.aws.aws_ec2
role_arn: "arn:aws:iam::XXXXXXXXX:role/read-only"
role_session_name: "read-only"
profile: main
regions:
  - eu-west-1
  - eu-west-3

Expected Results

get the list of machines in all account inside my organization

Actual Results

ansible-inventory -i demo.aws_ec2.yml --graph  -vvvv


ansible-inventory -i demo.aws_ec2.yml --graph  -vvvv
ansible-inventory [core 2.16.3]
  config file = /ansiblepath/ansible.cfg
  configured module search path = ['/home/cedric/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /ansiblepath/.venv/lib/python3.11/site-packages/ansible
  ansible collection location = /home/cedric/.ansible/collections:/usr/share/ansible/collections
  executable location = /ansiblepath/.venv/bin/ansible-inventory
  python version = 3.11.6 (main, Oct  8 2023, 05:06:43) [GCC 13.2.0] (/ansiblepath/.venv/bin/python3)
  jinja version = 3.1.3
  libyaml = True
Using /ansiblepath/ansible.cfg as config file
setting up inventory plugins
Loading collection ansible.builtin from
host_list declined parsing /ansiblepath/demo.aws_ec2.yml as it did not pass its verify_file() method
script declined parsing /ansiblepath/demo.aws_ec2.yml as it did not pass its verify_file() method

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@GomathiselviS
Copy link
Contributor

Hi @ced455 Can you please provide us the complete output so that we can check where the issue is? script declined parsing /ansiblepath/demo.aws_ec2.yml as it did not pass its verify_file() method message is an informational message and it does not mean any error or failure.

@GomathiselviS GomathiselviS added needs_info This issue requires further information. Please answer any outstanding questions and removed needs_triage labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_info This issue requires further information. Please answer any outstanding questions
Projects
None yet
Development

No branches or pull requests

2 participants