绕过oVirt 4.0的SSO属性

我已经将oVirt引擎从3.6升级到4.0,升级后我无法访问webadmin门户,欢迎页面显示此消息:

The client is not authorized to request an authorization. It's required to access the system using FQDN. 

在阅读oVirt 4.04发行注记之后,我了解到这是由于使用OAUTH2协议的单点login导致的,ovirt要求我使用FQDN访问引擎,不幸的是,我只用一个公共IP远程pipe理我的资源,而且我没有任何域名。 我如何解决这个问题? 如果可以有任何帮助,下面是我的oVirt引擎设置摘要

  Default SAN wipe after delete : False Firewall manager : firewalld Update Firewall : True Host FQDN : ovirt Upgrade packages : True Engine database secured connection : False Engine database host : localhost Engine database user name : engine Engine database name : engine Engine database port : 5432 Engine database host name validation : False DWH database secured connection : False DWH database host : localhost DWH database user name : ovirt_engine_history DWH database name : ovirt_engine_history DWH database port : 5432 DWH database host name validation : False Engine installation : True PKI organization : some_organization DWH installation : True Configure local DWH database : True Engine Host FQDN : ovirt Configure Image I/O Proxy : True Configure VMConsole Proxy : True Configure WebSocket Proxy : True 

如果您无法控制DNS,则可以使用本地/etc/hosts文件进行即兴创build。 一个肮脏的黑客攻击,但应该是足够有效的东西工作

您可以通过编辑oVirt引擎上的/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf中的SSO_ALTERNATE_ENGINE_FQDNSvariables来指定备用FQDN。

然后重新启动引擎守护进程:

 # systemctl restart ovirt-engine.service