Issue #5687
closedCannot set aws_default_acl to None using the Ansible installation
Description
I have installed pulp3 using the Ansible role. However, when trying to set AWS_DEFAULT_ACL = None (in order to configure django-storages properly) through Ansible, I have stumbled into issues.
Writing aws_default_acl: None in the pulp_settings variable gets rendered to AWS_DEFAULT_ACL = "None", not AWS_DEFAULT_ACL = None. My Ansible playbook runs fine, but when I try to sync a repo, the ACL seems to get passed as a file location to django-storages, yielding the somewhat cryptic error for the sync task
"An error occurred (InvalidArgument) when calling the PutObject operation: None"
I have also tried setting aws_default_acl to ~, null and leaving it empty. All of these get rendered as AWS_DEFAULT_ACL = null, which yields an error when trying to run the Ansible playbook:
TASK [pulp-database : Run database auth migrations] ***************************************************************************************************************************************************************
fatal: [xx.xx.xx.xx]: FAILED! =>
</code>
PLAY RECAP ********************************************************************************************************************************************************************************************************
xx.xx.xx.xx : ok=49 changed=0 unreachable=0 failed=1 skipped=20 rescued=0 ignored=0
Updated by fao89 almost 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 61
Updated by dkliban@redhat.com over 3 years ago
- Description updated (diff)
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Added by dkliban@redhat.com over 3 years ago
Added by dkliban@redhat.com over 3 years ago
Adds link to Dynaconf syntax for specifying pulp settings
Updated by dkliban@redhat.com over 3 years ago
- Tags Documentation added
After digging into this on the mailing list, we determined that this is a documentation problem[0]. The value for None should be specified as a string "@none None"[1].
Here is the ansible-pulp docs PR[2]. I'll add another one for pulpcore.
[0] https://www.redhat.com/archives/pulp-dev/2020-February/msg00070.html [1] https://dynaconf.readthedocs.io/en/latest/guides/environment_variables.html#precedence-and-type-casting [2] https://github.com/pulp/ansible-pulp/pull/228
Added by Fabricio Aguiar over 3 years ago
Changing S3 example to use dynaconf casting
https://pulp.plan.io/issues/5687 [noissue]
Updated by dkliban@redhat.com over 3 years ago
- Status changed from ASSIGNED to MODIFIED
Updated by mdepaulo@redhat.com over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Updated by bmbouter over 3 years ago
- Category set to Installer - Moved to GitHub issues
- Tags deleted (
Pulp 3 installer)
Adds link to Dynaconf syntax for specifying pulp settings
re: #5687 https://pulp.plan.io/issues/5687