Power

 View Only

SSLCertVerificationError when contacting PowerVC using openstack.cloud.openstack ansible plugin

  • 1.  SSLCertVerificationError when contacting PowerVC using openstack.cloud.openstack ansible plugin

    Posted 12 days ago

    Hi,
    Follow the steps from the tutorial "Automating PowerVC using Ansible" (https://developer.ibm.com/tutorials/automating-powervc-using-ansible/), I failed to verify the inventory is working with SSLCertVerificationError. Any suggestions would be appreciated.

    (pvc) root# ansible-inventory --list --yaml
    Failed to discover available identity versions when contacting https://192.168.xx.xxx:5000/v3/. Attempting to parse version from URL.
    [WARNING]:  * Failed to parse openstack.yml with ansible_collections.openstack.cloud.plugins.inventory.openstack plugin: SSL exception
    connecting to https://192.168.xx.xxx:5000/v3/auth/tokens: HTTPSConnectionPool(host='192.168.xx.xxx', port=5000): Max retries exceeded with url: /v3/auth/tokens
    (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1129)')))
    [WARNING]: Unable to parse openstack.yml as an inventory source
    [WARNING]: No inventory was parsed, only implicit localhost is available
    {}



    ------------------------------
    Wai-man Chan
    ------------------------------