Hi Felix, Thanks for this info. I did not aware of this K8S inventory plugin option. Now the ansible is working for us.
Thank again, very much appreciated your help. Cheers, Jagannath On Tuesday, February 15, 2022 at 12:33:15 PM UTC+1 Felix Fontein wrote: > Hi, > > are you sure you disabled HTTPS certificate checks for the k8s > inventory plugin? In your original posting, you disabled SSH host key > checking. > > Please check out > > https://docs.ansible.com/ansible/latest/collections/kubernetes/core/k8s_inventory.html#parameter-connections/validate_certs > > Cheers, > Felix > > > > On Tue, 15 Feb 2022 02:15:01 -0800 (PST) > Jagannath Pattar <[email protected]> wrote: > > > Hi, > > > > Thanks for the reply. This error occurs even for gather_facts command. > > > > ansible all -m gather_facts --tree /tmp/facts > > [WARNING]: * Failed to parse > > /home/ejagpat/mps/SOURCE_TTCN/mec_admin/script/ansibleSource/k8s.yml > > with k8s plugin: > > HTTPSConnectionPool(host='XXXX.XXX.XXX.XX', port=443): Max retries > > exceeded with url: /k8s/clusters/c-nmgnf/version (Caused by > > SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate > > verify failed (_ssl.c:661)'),)) > > [WARNING]: Unable to parse > > /home/ejagpat/mps/SOURCE_TTCN/mec_admin/script/ansibleSource/k8s.yml > > as an inventory source > > [WARNING]: No inventory was parsed, only implicit localhost is > > available [WARNING]: provided hosts list is empty, only localhost is > > available. Note that the implicit localhost does not match 'all' > > > > Disabling certificate check also didnot work. > > Please suggest other methods, i give a try. > > > > Thanks, > > Jagannath > > > > On Tuesday, February 15, 2022 at 10:08:18 AM UTC+1 [email protected] > > wrote: > > > > > Your error is clearly about HTTPS certificate verification. If that > > > fails, disable it. > > > You haven't shared any playbook code, so we don't know what task > > > generated this error, so we can't tell more. > > > > > > On Fri, 11 Feb 2022 at 15:55, Jagannath Pattar > > > <[email protected]> wrote: > > > > > > > > Hi Ansible team, > > > > > > > > We are facing the certificate verification issue while executing > > > > > > > ansible-playbook. > > > > Could you please suggest how to resolve this issue? > > > > > > > > ERROR Logs: > > > > ---------- > > > > 10:36:50 yml with k8s plugin: > > > > 10:36:50 > > > > HTTPSConnectionPool(host='access-XXXXX-ipv4.XXX.XXX.XXXX.se', > > > > 10:36:50 port=443): Max retries exceeded with url: > > > /k8s/clusters/c-nmgnf/version (Caused > > > > 10:36:50 by SSLError(SSLError(1, u'[SSL: > > > > CERTIFICATE_VERIFY_FAILED] > > > certificate verify > > > > 10:36:50 failed (_ssl.c:661)'),)) > > > > 10:36:50 [WARNING]: Unable to parse > > > /proj/MPS/MPS_CI_REPO/Jenkins_Slave/seliius21127/wor > > > > 10:36:50 > > > > kspace/runAnsiblePlaybook_CN/SOURCE_TTCN/mec_admin/script/ansibleSource/k8s.yml > > > > > > > > > > > > > > > Tried followings but did not work: > > > > ---------------------------------- > > > > host_key_checking = False > > > > > > > > Thanks, > > > > Jagannath > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/642462b0-82b3-4527-8089-0132e2f72d2an%40googlegroups.com.
