Bug 1895907
| Summary: | Binding to tang server fails as the passphrase include newline character | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | SATHEESARAN <sasundar> |
| Component: | gluster-ansible | Assignee: | Gobinda Das <godas> |
| Status: | CLOSED ERRATA | QA Contact: | SATHEESARAN <sasundar> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.5 | CC: | cshao, godas, pprakash, rcyriac, rhs-bugs, sabose, sasundar |
| Target Milestone: | --- | ||
| Target Release: | RHGS 3.5.z Async Update | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | gluster-ansible-infra-1.0.4-16.el8rhgs | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1895905 | Environment: | |
| Last Closed: | 2020-11-24 12:37:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1895905 | ||
|
Description
SATHEESARAN
2020-11-09 12:19:35 UTC
1. Fix is required in gluster-ansible-infra package
2. File that should edited is - /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/bind_tang_server.yml
3. Block to be edited in this file
<snip>
- name: Create key root file
no_log: true
copy:
dest: "/etc/root_key"
content: |
{{ rootpassphrase }}
when: gluster_infra_tangservers is defined
<snip>
Fix:
<snip>
- name: Create key root file
no_log: true
copy:
dest: "/etc/root_key"
content: "{{ rootpassphrase }}"
when: gluster_infra_tangservers is defined
</snip>
This makes sure that /etc/root_key doesn't include newline.
I have tested with the same and it works
Tested with gluster-ansible-infra-1.0.4-16.el8rhgs NBDE deployment is successful Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (gluster-ansible bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:5220 |