cockpit-project / cockpit

Cockpit is a web-based graphical interface for servers.
http://www.cockpit-project.org/
GNU Lesser General Public License v2.1
11.36k stars 1.13k forks source link

machines-ovirt: Login to the cockpit with host fqdn(hostname) will miss some information while adding the host to engine using the host ip. #8768

Closed kenzhaoyihui closed 6 years ago

kenzhaoyihui commented 6 years ago

Description of problem: Add host to engine by its ip, if log in to cockpit by hostname, then some infos will miss on pages, include overview info, consoles info, ovirt info, Host to maintaince button. if log in to cockpit by host ip, there is no such problem. Additionally, if add host to engine by its hostname(fqdn), then there is no such problem, no matter loging in to cockpit by host ip or hostname.

Version-Release number of selected component (if applicable): RHEL-7.5-20180221 cockpit-machines-ovirt-162-1.el7.centos.noarch cockpit-ws-154-3.el7.x86_64 cockpit-bridge-154-3.el7.x86_64 cockpit-system-154-3.el7.noarch cockpit-154-3.el7.x86_64

How reproducible: 100%

Steps to Reproduce:

  1. Add the host to the engine by its ip
  2. Create the vm by ovirt(engine)
  3. Login the cockpit by ip or fqdn

Actual results: The same as the Description

Expected results: After step3, login the cockpit by ip or fqdn have the same results.

Additional info: login_cockpit_ip login_cockpit_fqdn

martinpitt commented 6 years ago

CC @mareklibra, @suomiy

mareklibra commented 6 years ago

Thanks for reporting that.

To fix, selectors.es6:getHost() must be extended