Adding OneView Collection in AWX

Hi there,

I’ve recently deployed AWX 19.5 using k3s/awx operator (0.15). I’ve followed a quite basic documentation found online which helped in deploying the cluster and a functional AWX without major issues. I’ve managed to also execute some playbooks using the vmware collections which is nice and confirms that its working.

Now im looking into adding the HPE libraries in AWX however it seems like i’ve hit a wall and cannot figure it out. HPE documentation (https://developer.hpe.com/blog/accessing-ilo-redfish-apis-and-hpe-oneview-apis-on-ansible-awx/) mentions that one needs to install gcc and also other stuff on the containers themselves. Apart from that it doesnt feel right to directly mess with the containers , didnt manage to connect to container awx-task using root or admin privilege’s.

Super user was created using the below example :
kubectl -n awx exec pod/awx-858d78f68c-k67d7 --container awx-task -it awx-manage createsuperuser

I’ve created a test user named mula :

when connecting to the container itself still dont have permissions and connected as awx.

kubectl exec -n awx pod/awx-858d78f68c-k67d7 --container awx-task -it mula – /bin/bash
bash-4.4$ id
uid=1000(awx) gid=0(root) groups=0(root),1000

** shows that user was created **

[root@XXXXX kubectl-plugins]# kubectl exec -n awx pod/awx-858d78f68c-k67d7 --container awx-task -it awx-manage createsuperuser
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.
Username: mula
Error: That username is already taken.

Had a quick read in ansible-builder but im unsure whether this will solve the below problem.

Thank you!
mulae

Hi!

That blog appears to be have written based on an older version of AWX.

ansible-builder is the recommended way to put dependencies like gcc into your container, so please try that route and let us know how it goes.

Seth

Thanks Seth, will try that out.