Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller_instance_groups managed before controller_credentials, which may be required #1014

Open
MallocArray opened this issue Dec 16, 2024 · 4 comments
Labels
bug Something isn't working new New issue, this should be removed once reviewed

Comments

@MallocArray
Copy link
Contributor

Summary

If setting up a new controller, controller_instance_groups is higher in the dispatch defaults main.yml than controller_credentials. This results in Instance groups being unable to be managed if they require a credential, such kubernetes authentication credentials.

Moving controller_instance_groups to lower in this list, after controller_credentials would address this

Issue Type

  • Bug Report

Ansible, Collection, Controller details

ansible --version

ansible-galaxy collection list
infra.aap_configuration   3.1.0  
Controller version
AWX 24.6.1
  • ansible installation method: one of source, pip, OS package, EE

OS / ENVIRONMENT

Desired Behavior

A new controller from scratch should build items in an order that does not depend on future items

Actual Behavior

Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:

  • playbook / task
  • configuration file / list
  • error

Instance group failed to be created because the credential needed by it had not been created yet

STEPS TO REPRODUCE

@MallocArray MallocArray added bug Something isn't working new New issue, this should be removed once reviewed labels Dec 16, 2024
@djdanielsson
Copy link
Collaborator

This was moved for #858 and I believe is working as is

@djdanielsson
Copy link
Collaborator

If there is an issue here we might need to add another skip until the required object(s) are created then add them back in

@MallocArray
Copy link
Contributor Author

I don't see the order of the roles being changed in the PR associated with #858, did you mean a different issue?

This isn't related to the Instance Group and an Organization being created, but the fact that the Instance Group may need Credentials, but with the current order, the Credentials haven't been created yet, so the Instance Group task fails if a credential is specified

@djdanielsson
Copy link
Collaborator

I am not positive, I thought this was a related issue but I would have to spend more time looking into it which I do not have right now. If anyone else has some more time to look into it that would be helpful if not I will try and get around to this sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new New issue, this should be removed once reviewed
Projects
None yet
Development

No branches or pull requests

2 participants