-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
15.0.0 does not detect roles/requirements.yml #8341
Comments
@adgerth I'm wondering if this is a bug related to #7817; can you share the results of this API request?
...and also (for the Organization associated with the project update you ran):
|
@ryanpetrello this is the output from /api/v2/settings/jobs/
And here's the output for the galaxy_credentials:
Let me know if you need any more info on this. |
@adgerth how about this?
One of the things we changed in 15.0.0 was the ability to specify rules per-Organization about where to pull Galaxy-like content from. By default, on upgrade, each org is supposed to have a credential associated with it that represents galaxy.ansible.com, but your install doesn't seem to have that. |
Also, can you exec into one of your containers, and run
|
@ryanpetrello here's the output with credential_type__kind=galaxy:
And here's the output of the select statement:
|
What's odd is that the galaxy credential got created, but was never added to your organization. I'm reading the migration code the see if I can figure out why. |
@adgerth this Organization in question, is it one you've created since upgrading to AWX 15.0.0? |
@ryanpetrello yes, this is a testing instance that has been nuked and recreated from scratch. All content in it (organizations, projects ...) has been configured using the awx ansible modules. Also, I can always re-create this instance if necessary since this host is in a test environment. |
Gotcha. So one of the changes in 15.0.0 is that organizations now have this new endpoint that requires you to configure where content should be pulled from by default e.g., POST /api/v2/organizations/N/galaxy_credentials/
{
"id": 2,
"associate": true
} Because we moved this from a global configuration to a per-Org configuration, there's no longer a default global behavior here. Additionally, it's now possible to run your own on-premise Galaxy-like service for synchronizing and maintaining your own content, and we're beginning to nudge users towards this for their usage (and thus, away from the global default of automatically pulling community content from galaxy.ansible.com without first opting in): https://github.com/ansible/galaxy_ng Given these changes, you'll want to fold this into your process for automating the creation of organizations. |
Also, I should mention that the latest collection has support for this, and it's easy to get the old behavior out-of-the-box: |
@adgerth here's a PR that should help clarify this in the release notes; thanks for pointing it out: |
ISSUE TYPE
SUMMARY
With the Upgrade to 15.0.0, AWX does not detect the roles/requirements.yml
ENVIRONMENT
STEPS TO REPRODUCE
Using AWX 15.0.0, sync a project with roles included in roles/requirements.yml
EXPECTED RESULTS
roles/requirements.yml will be included and roles will be pulled from its sources
ACTUAL RESULTS
roles/requirements.yml is skipped and roles will not be pulled from the sources which will result in the job template failing due to mussing roles.
ADDITIONAL INFORMATION
structure of the roles/requirements.yml
Pulling the roles works with this setup in version 14.1.0 as expected.
The text was updated successfully, but these errors were encountered: