Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Can not execute kustomize build issue installing Ansible AWX Operator

While installing Ansible AWX operator tower (Automation Controller) for the development team, I was receiving the below error. I was following the official installation guide given from https://github.com/ansible/awx-operator.

kustomize kustomization.yaml yml kubernetes manifest configuration vmware vsphere ansible awx operator azure ansible platform automation controller tower setup sevalsymlink git.jpg

ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ kustomize build . | kubectl apply -f -
Error: accumulating resources: accumulation err='accumulating resources from 'github.com/ansible/awx-operator/config/default?ref=1.1.1': evalsymlink failure on '/home/ubuntu/github.comi/ansible/awx-operator/config/default?ref=1.1.1' : lstat /home/ubuntu/github.comi: no such file or directory': must build at directory: not a valid directory: evalsymlink failure on '/home/ubuntu/github.comi/ansible/awx-operator/config/default?ref=1.1.1' : lstat /home/ubuntu/github.comi: no such file or directory
error: no objects passed to apply
ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ kustomize build . | kubectl apply -f -
Error: accumulating resources: accumulation err='accumulating resources from 'github.com/ansible/awx-operator/config/default?ref=1.1.1': evalsymlink failure on '/home/ubuntu/github.com/ansible/awx-operator/config/default?ref=1.1.1' : lstat /home/ubuntu/github.com: no such file or directory': no 'git' program on path: exec: "git": executable file not found in $PATH
error: no objects passed to apply
ubuntu@AnsibleAWX:~$

To resolve this error first make sure you are using the correct tag and github.com url for ansible awx operator as mentioned on https://github.com/ansible/awx-operator/releases. 

Next another fix is you don't have git package application software installed on your linux OS system. Simply install the missing git application package either through yum or apt-get.

ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 29 not upgraded.
Need to get 5,443 kB of archives.
After this operation, 38.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.6 [887 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.6 [4,529 kB]
Fetched 5,443 kB in 1s (7,310 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 185929 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.25.1-1ubuntu3.6_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3.6) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.25.1-1ubuntu3.6_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3.6) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git-man (1:2.25.1-1ubuntu3.6) ...
Setting up git (1:2.25.1-1ubuntu3.6) ...
Processing triggers for man-db (2.9.1-1) ...
ubuntu@AnsibleAWX:~$

Rerun and check kustomize build command. It will be successful.

ubuntu@AnsibleAWX:~$
ubuntu@AnsibleAWX:~$ kustomize build . | kubectl apply -f -
namespace/awx created
customresourcedefinition.apiextensions.k8s.io/awxbackups.awx.ansible.com created
customresourcedefinition.apiextensions.k8s.io/awxrestores.awx.ansible.com created
customresourcedefinition.apiextensions.k8s.io/awxs.awx.ansible.com created
serviceaccount/awx-operator-controller-manager created
role.rbac.authorization.k8s.io/awx-operator-awx-manager-role created
role.rbac.authorization.k8s.io/awx-operator-leader-election-role created
clusterrole.rbac.authorization.k8s.io/awx-operator-metrics-reader created
clusterrole.rbac.authorization.k8s.io/awx-operator-proxy-role created
rolebinding.rbac.authorization.k8s.io/awx-operator-awx-manager-rolebinding created
rolebinding.rbac.authorization.k8s.io/awx-operator-leader-election-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/awx-operator-proxy-rolebinding created
configmap/awx-operator-awx-manager-config created
service/awx-operator-controller-manager-metrics-service created
deployment.apps/awx-operator-controller-manager created
ubuntu@AnsibleAWX:~$

Useful Articles
How to install and configure Ansible on Ubuntu
Get Started: Configure Ansible for Azure Cloud Infrastructure
Install the Microsoft Azure CLI on Ubuntu Linux

Redhat ansible logo azure vmware vsphere awx tower controller yml yaml configuration automation.pngDeploy create Virtual Network vNET in Azure cloud using Ansible
Quickstart How to authenticate Ansible with Microsoft Azure
Ansible authenticate to Microsoft Azure using credential profiles Part 1
Ansible authenticate to Microsoft Azure using credential profiles Part 2
Ansible authenticate to Microsoft Azure using credential inside yaml file

Go Back

Comment

Blog Search

Page Views

10399079

Follow me on Blogarama