-
Notifications
You must be signed in to change notification settings - Fork 594
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
Restore fails if a value in the deployment has colon #370
Comments
Hello the following awx definition:
results to the following backup's awx_object:
As you can see, task_extra_env and web_extra_env is not properly defined:
Regards |
Another issue is that templating a dictionary like this does not necessarily results in a valid yaml. E.g.
where Will template into Additionally, this line also can cause problems: the documentation says "If you need variable interpolation in copied files, use the ansible.builtin.template module. Using a variable in the content field will result in unpredictable output." And indeed, if you try to write |
Sorry, I prob missed it, I got focus on top message. Please do. I'll work on it. |
I cannot open the issue right now, because with the latest release there is a new issue that is preventing me from reliable testing. Please let me know if anything is unclear in this issue I'll add more details if that's the case. |
@AndrewSav a fix has landed for the above issue. (extra space) If you pull |
I can reproduce the newline issue you mentioned. I will look into it and report my findings (or PR) here. |
@Zokormazo Why was it closed? |
Sorry, I should have explained this while closing: Colon thing was fixed on #404 I tested with a backup including tls secrets (newlines), a custom private ee image (identation and colons) and everything worked for me. Do you have any other issue on this process? Feel free to reopen the issue or open a new one |
Nope, it's just because without the explanation above it was not clear why it was closed. Now it is, thank you. |
Yeah, sorry about that :) |
@Zokormazo I ran through that one more time with this in the spec, I suspect there is still an issue here.
The extra_volume passed via the spec gets added to the deployment (utilizing a pvc I created manually in this namespace)
But it does fail at restore time:
This is what the spec looks like on the restored deployment:
|
sounds like @Zokormazo and @Spredzy consider this a release blocker because even if we fixed on 4.0.1, backups from 4.0.0 would be corrupted. it is generally a good idea to do a backup before an upgrade to 4.0.1, so if the upgrade failed, and the backup was unusable, the user would be out of luck |
Tested with some extra_envs and now it works properly |
ISSUE TYPE
SUMMARY
In awx object spec I have
ingress_annotations: 'cert-manager.io/cluster-issuer: letsencrypt'
, the value that has a colon. In such a case the awx object does not serialize correctly and restore fails with "unknown playbook failure".ENVIRONMENT
STEPS TO REPRODUCE
Backup:
Restore:
EXPECTED RESULTS
Restore should succeed
ACTUAL RESULTS
Restore fails with "unknown playbook failure".
ADDITIONAL INFORMATION
This is what persisted
awx_object
looks like:Note how there is no quotes around
cert-manager.io/cluster-issuer: letsencrypt
. The reason for this is that this line does not quite work as the author intended.Suggested fix:
AWX-OPERATOR LOGS
Can be found here: https://gist.github.com/AndrewSav/e9e73d9b4ab19341bf4926707ec52540
The text was updated successfully, but these errors were encountered: