Red Hat Bugzilla – Bug 1480213
SSH public key field not shown when adding a host
Last modified: 2017-12-20 06:45:36 EST
Created attachment 1311728 [details]
Only chrome can show the root ssh public key when configuring the root authentication of a new host.
Created attachment 1311729 [details]
Created attachment 1311731 [details]
Ravi, can you please take a look?
I'm not able to reproduce this issue with latest oVirt 4.1.6 RC1 build. I've tested Firefox 52.3.0 and Chrome 60.0.3112.113 and on both browsers the SSH Public Key field is displayed properly.
Could you please try to clear your cache and check again? If it doesn't help, could you please try to upgrade engine to latest 4.1.z version?
This bug is here from at least 3.6. So I don't think it's a clean cache problem. But I'm on mac os, it might be related. But it's still strange that it shows on FF too.
<div class="form-group" title="For allowing PK authentication, copy the following PK to host under /root/.ssh/authorized_keys" style="visibility: hidden"><label class="control-label labelEnabled" for="HostPopupView_publicKey" style="display: none;" aria-hidden="true"></label><div><div class="GKIIXFICK-B"><textarea style="border-width: 0px;" id="HostPopupView_publicKey" class="form-control form-control-readonly" readonly="" tabindex="15"></textarea></div></div><div class="GKIIXFICH-B"></div></div>
note the "hidden" - once I removed it, it's shown.
Chrome probably doesn't respect that element, thus is only which shows it.
(Safari nor FF 55.0.3 - don't show).
Greg, could someone from UX team a look, why this issue exists on MacOS? As it works fine on Linux as mentioned in Comment 4
The visibility style on the form-group holding the ssh public key field wasn't being changed when the radio buttons were clicked, but only in Safari. Patch addresses 2 potential issues:
1. directly changing the style vs standard #setVisibility()
2. change from onFocus to onClick for the event handlers on the
password and ssh public key radio buttons
Verified in RHVM version 4.2.0-0.6.el7 on Firefox 57.0.
Verified by following the reproducer.
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.
Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.