Bug 1895905

Summary: Binding to tang server fails as the passphrase include newline character
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhhiv-1.8CC: rcyriac, rhs-bugs
Target Milestone: ---Keywords: Regression, ZStream
Target Release: RHHI-V 1.8.z Batch Update 2   
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:
: 1895907 (view as bug list) Environment:
Last Closed: 2020-12-01 06:58:37 UTC Type: Bug
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: 1895907    
Bug Blocks:    

Description SATHEESARAN 2020-11-09 12:16:19 UTC
Description of problem:
-----------------------
Used the existing NBDE playbook to setup NBDE. The execution of the playbook failed to bind to tang server.

Version-Release number of selected component (if applicable):
---------------------------------------------------------------
clevis-luks-13-3.el8.x86_64
clevis-dracut-13-3.el8.x86_64
clevis-13-3.el8.x86_64
clevis-systemd-13-3.el8.x86_64
gluster-ansible-infra-1.0.4-15.el8rhgs.noarch

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Edit the NBDE playbook (/etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/luks_tang_inventory.yml) as per the requirement
2. Run the playbook

Actual results:
---------------
Fails to bind to tang server

Expected results:
-----------------
Success in binding to tang server

Additional info:
-----------------
[root@rhsqa-grafton10-nic2 hc-ansible-deployment]# cat -A /etc/root_key 
"redhat123\n"$

Comment 1 SATHEESARAN 2020-11-09 12:16:54 UTC
This bug is a blocker as the NBDE feature is broken

Comment 3 SATHEESARAN 2020-11-10 08:08:11 UTC
Tested with gluster-ansible-infra-1.0.4-16.el8rhgs

NBDE deployment is successful

Waiting for this package to be included in RHVH-4.4.3 ISO.
Once the package is available in RHVH 4.4.3, this bug would be verified

Comment 5 SATHEESARAN 2020-11-18 12:53:43 UTC
Tested with gluster-ansible-infra-1.0.4-16.el8rhgs and RHVH 4.4.3 ISO (rhvh-4.4.3.1-0.20201116.0+1)
NBDE deployment is successful