Bug 2115263

Summary: Unable to authenticate (BMC) Interface in Satellite GUI if IPMI password includes special characters.
Product: Red Hat Satellite Reporter: Satyajit Das <sadas>
Component: Power & BMCAssignee: Lukas Zapletal <lzap>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.7CC: gisoni
Target Milestone: UnspecifiedKeywords: Triaged, WorkAround
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Satyajit Das 2022-08-04 09:41:08 UTC
Description of problem:

Unable to authenticate (BMC) Interface in Satellite GUI if password includes special characters.

Version-Release number of selected component (if applicable):

6.10


How reproducible:

100%


Steps to Reproduce:

1.In the Satellite web UI, navigate to Hosts > All hosts > Edit host.
On the Interfaces tab, click Add Interface Select BMC from the Type list and set the provider  IPMI, put the username and a password which include a combination of special characters.
2. Fill in the rest of the required details and submit.

Actual results:

It failed to load the interface. In the logs below exceptions were observed.

==> /var/log/foreman-proxy/proxy.log <==
2022-08-02T10:32:08 48b35495 [D] "/usr/sbin/bmc-config --hostname=xx.xx.xx.xx   --driver-type=LAN_2_0 --verbose --checkout --section=Lan_Conf --config-file=/tmp/20220802-6795-14wq0zq"
2022-08-02T10:32:08 48b35495 [D] /usr/sbin/ipmi-config: password invalid
2022-08-02T10:32:08 48b35495 [I] Finished GET /bmc/xx.xx.xx.xx/lan/mac with 200 (111.47 ms)
2022-08-02T10:32:08  [D] close: xx.xx.xx.xx:42252
2022-08-02T10:32:08  [D] accept: xx.xx.xx.x:42254
2022-08-02T10:32:08  [D] Rack::Handler::WEBrick is invoked.
2022-08-02T10:32:08 48b35495 [I] Started GET /bmc/ xx.xx.xx.xx/lan/gateway 
2022-08-02T10:32:08 48b35495 [D] verifying remote client  xx.xx.xx.xx against trusted_hosts ["satellite.example.com"]
2022-08-02T10:32:08 48b35495 [D] /usr/sbin/bmc-config --hostname=  xx.xx.xx.xx  --driver-type=LAN_2_0 --verbose --checkout --section=Lan_Conf --config-file=/tmp/20220802-6795-1imkp2a
2022-08-02T10:32:09 48b35495 [D] "/usr/sbin/bmc-config --hostname= xx.xx.xx.xx   --driver-type=LAN_2_0 --verbose --checkout --section=Lan_Conf --config-file=/tmp/20220802-6795-1imkp2a"
2022-08-02T10:32:09 48b35495 [D] /usr/sbin/ipmi-config: password invalid
2022-08-02T10:32:09 48b35495 [I] Finished GET /bmc/ xx.xx.xx.xx/lan/gateway with 200 (134.99 ms)
2022-08-02T10:32:09  [D] close:  xx.xx.xx.xx:42254


Expected results:

Should be able to authenticate with a complex password.


Additional info:

From Satellite's CLI via ipmitool I can authenticate with a complex password.