-
Notifications
You must be signed in to change notification settings - Fork 54
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
infra.ah_configuration.publish fails to publish more than one collection #327
Comments
I think the issue is timing, I do not believe hub has time to show the content in staging before the check runs which is why you get an error... I thought we added a timeout for this but I have been away for a while and don't remember anymore. If you could test adding some wait time to see if that is the issue that would be helpful. |
Thanks for looking into this. Adding "pause: 1" for the loop in the task "Publish Collections" or setting ah_request_timeout to 1 allows publishing more than one collection, so then the example configuration shared in the initial comment works. The second run of the playbook still fails with this, increasing the timeout doesn't seem to help with that. |
correct, we could look into adding an API check to see if that exact collection version is already there before trying anything to then skip to make it more idempotent. but currently we are trying to improve other functionality currently. |
FWIW, I think this the only real issue preventing fully GitOps based PAH management. After the initial installation and population of the hub, typical day 2 tasks would be mostly occasional collection and EE updates but due to this issue the process for above kind of collections more or less has to be manual as otherwise the update most likely fails. Thanks. |
I'm happy to confirm that PR 386 fixed this issue! After that I ran another issue so I filed #397 for that. Thanks. |
With a local automation hub and collection version 2.0.4 using the following with the needed namespace created earlier the publish role fails with a permission denied message:
If I run the role with either one commented out then the role works. However, then every second playbook run fails with the "Collection .. exists" error even with ah_auto_approve set to true. In my tests I've restored all the AAP 2.4 VMs from snapshots created after installation so previous runs or leftovers in /var/tmp are not affecting my tests.
Thanks.
The text was updated successfully, but these errors were encountered: