Hi Team, I am trying to deploy the Pre-reqs in AKS with NFS storage, using the docker container, but it continually fails (without creating anything) with the following error:
###################################################################################################################################
TASK [baseline : Remove deprecated efs-provisioner namespace] ***********************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'openshift'
fatal: [localhost]: FAILED! => {"changed": false, "error": "No module named 'openshift'", "msg": "Failed to import the required Python library (openshift) on bf8e4dded2cf's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
PLAY RECAP **************************************************************************************************************************
localhost : ok=22 changed=2 unreachable=0 failed=1 skipped=11 rescued=0 ignored=0
Tuesday 27 July 2021 07:36:35 +0000 (0:00:00.783) 0:00:06.391 **********
===============================================================================
baseline : Remove deprecated nfs-client-provisioner -------------------------------------------------------------------------- 1.43s
baseline : Remove deprecated efs-provisioner --------------------------------------------------------------------------------- 1.30s
baseline : Remove deprecated efs-provisioner namespace ----------------------------------------------------------------------- 0.78s
Gathering Facts -------------------------------------------------------------------------------------------------------------- 0.77s
common : tfstate - export kubeconfig ----------------------------------------------------------------------------------------- 0.58s
global tmp dir --------------------------------------------------------------------------------------------------------------- 0.28s
baseline role ---------------------------------------------------------------------------------------------------------------- 0.07s
baseline : Include nfs-subdir-external-provisioner --------------------------------------------------------------------------- 0.06s
common role ------------------------------------------------------------------------------------------------------------------ 0.05s
common : Add nat ip to LOADBALANCER_SOURCE_RANGES ---------------------------------------------------------------------------- 0.05s
common : tfstate - cluster name ---------------------------------------------------------------------------------------------- 0.04s
common : tfstate - nfs path -------------------------------------------------------------------------------------------------- 0.04s
common : tfstate - provider -------------------------------------------------------------------------------------------------- 0.04s
common : Parse tfstate ------------------------------------------------------------------------------------------------------- 0.04s
common : tfstate - cluster node pool mode ------------------------------------------------------------------------------------ 0.04s
common : tfstate - jump server ----------------------------------------------------------------------------------------------- 0.04s
common : tfstate - jump user ------------------------------------------------------------------------------------------------- 0.04s
common : tfstate - jump rwx filestore path ----------------------------------------------------------------------------------- 0.04s
common : tfstate - kubeconfig var -------------------------------------------------------------------------------------------- 0.04s
common : tfstate - cluster autoscaler location ------------------------------------------------------------------------------- 0.04s
################################################################################################################################
I don't know why it looking for Openshift when this cluster is in AKS.
I rechecked the ansible-vars.yaml file - it has PROVIDER: azure -- see below
[sas@master-node viya4-deployment]$ head ansible-vars.yaml
Cluster
PROVIDER: azure
CLUSTER_NAME: ssaghi-aks
NAMESPACE: viya4nfs
I have also tried running it with ansible, but alas - the same error.
Any light on the above would be appreciated