Giter VIP home page Giter VIP logo

Comments (9)

OlhaTuranska avatar OlhaTuranska commented on June 3, 2024 11

Hi, I faced the same issue and found out a solution after several hours inspecting awx-web and awx-task containers :)

It seems that the current version of awx from the devel branch is not stable and doesn't create the admin user at all.

Therefore, this command from Installition Guidline with AWX Operator and Minikube doesn't work:
minikube kubectl -- get secret awx-admin-password -o jsonpath='{.data.password}' | base64 --decode

To fix this issue you can run:
minikube kubectl get pods
and then replace <awx_pod_name> with your awx pod name:
minikube kubectl exec pod/<awx_pod_name> -- --container awx-web -it awx-manage createsuperuser

I created user with default awx name and it works perfectly.
Hope, it will help :)

from awx-operator.

jeffpascal avatar jeffpascal commented on June 3, 2024 3

Hey, I reset the password for my installation using:

http://vcloud-lab.com/entries/devops/reset-ansible-awx-tower-admin-password

awx-manage changepassword admin

If the user does not exist, you need to:

awx-manage createsuperuser --user admin

To ssh into the awx_task container you can install lens, and get your kubeconfig from:

kubectl config view

from awx-operator.

k-harutyunyan avatar k-harutyunyan commented on June 3, 2024 1

Thank you all, I already created the admin superuser from inside the awx-web.
Just let this open, as there is a bug with admin user creating.

from awx-operator.

Spredzy avatar Spredzy commented on June 3, 2024 1

Hello all,

My guess is that you might be affected by this #124

TL;DR: Current devel of the CRDs and logic does not necessarily work with 0.6.0. If you want to fix this now while the above issue is addressed, follow this pattern:

  1. Download and install operator-sdk==0.19.4 https://v0-19-x.sdk.operatorframework.io/docs/install-operator-sdk/
  2. Build the operator container operator-sdk build <url>:<tag> (at the root of this repo)
  3. Push the container docker push <url>:<tag>
  4. Retrieve locally https://raw.githubusercontent.com/ansible/awx-operator/devel/deploy/awx-operator.yaml and update the url to the operator container
  5. Deploy.

Hope this helps,

from awx-operator.

k-harutyunyan avatar k-harutyunyan commented on June 3, 2024

I tried this way to create a superuser not with name admin, but it doesn't work, will try with admin. Thanks.
Anyway the documentation doesn't reflect the reality.

from awx-operator.

veekrum avatar veekrum commented on June 3, 2024

Thanks it works,
on kubernetes cluster : kubectl exec pod/<awx_pod_name> --container awx-web -it awx-manage createsuperuser
on minikube : minikube kubectl exec pod/<awx_pod_name> -- --container awx-web -it awx-manage createsuperuser

from awx-operator.

k-harutyunyan avatar k-harutyunyan commented on June 3, 2024

Hi @Spredzy, thanks. I built and replaced the image and it works.
I hope this inconsistency will be fixed shortly.

from awx-operator.

kgoddarddev avatar kgoddarddev commented on June 3, 2024

Yes! Thank you even the current version is glitched with this issue:

This command works: k exec -n awx -it $(k get pods -n awx -l app.kubernetes.io/component=awx -o name) -c awx-task -- awx-

from awx-operator.

vivekshete9 avatar vivekshete9 commented on June 3, 2024

Current version (v2.16.1 for operator and v24.3.1 for awx) is glitched with this issue as well. This helped on kubernetes cluster : kubectl exec pod/<awx_pod_name> --container awx-web -it awx-manage createsuperuser

from awx-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.