Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

Kube-config Error During MAS Core Installation

  • 1.  Kube-config Error During MAS Core Installation

    Posted Tue February 13, 2024 10:16 AM
    Hello,
     
    I am getting below error while trying to install MAS-Core 8.11. Any leads to resolve it would be appreciated.
     
    An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible_collections.kubernetes.core.plu
    gins.module_utils.k8s.exceptions.CoreException: Could not create API client: Invalid kube-config file. No configuration found.
    fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not create API client: Invalid kube-config file. No configuration found.
     
    The error is coming from the Python3.11 kube_config.py file.
     
    Environment Details - 
    1. Python - 3.11.5
    2. Ansible Core - 2.16.3
    3. IBM Devops - 18.14.0
    4. OCP - 4.12
    5. MultiNode Cluster
     
    Thanks,
    Vipin Kaushik


    ------------------------------
    Vipin Kaushik
    ------------------------------


  • 2.  RE: Kube-config Error During MAS Core Installation

    Posted Wed February 14, 2024 02:25 AM

    Hi Vipin,

    did You log into the cluster using "oc login" command before running the Ansible playbook? it seems that Ansbile is not able to reach the OCP API, most probably due to not logging in.

    WW



    ------------------------------
    Witold Wierzchowski
    ------------------------------