oVirt and Cockpit: Please provide valid oVirt engine fully qualified domain name (FQDN)



  • Screenshot from 2019-04-21 20-36-14.png

    Getting this error...

    Please provide valid oVirt engine fully qualified domain name (FQDN) and port (443 by default)
    

    But my FQDN is definitely correct and working, port is 443 (default.) I can see oVirt no issue on both 80 and 443. But Cockpit comes back instantly with the error, as if it doesn't like the FQDN given and is somehow checking it or something, but way too fast to actually be looking it up.



  • Here is the code segment that is generating this error:

    function configureOvirtUrl(oVirtFqdn, oVirtPort) {
        console.info('configureOvirtUrl: ', oVirtFqdn, oVirtPort);
    
        const dfd = cockpit.defer();
        dfd.notify(_("Registering oVirt to Cockpit"));
    
        const failHandler = (ex, data) => {
            if (ex && ex.status === 302) { // Found, redirects would follow
                doRegisterOvirt(oVirtFqdn, oVirtPort, dfd);
                return;
            }
    
            console.info('Unable to access oVirt engine: ', JSON.stringify(ex), JSON.stringify(data));
            dfd.reject(_("Please provide valid oVirt engine fully qualified domain name (FQDN) and port (443 by default)"));
        };
    

    https://github.com/cockpit-project/cockpit/blob/master/pkg/ovirt/components/InstallationDialog.jsx



  • Looks like a bug. You can get it to run correctly from the command line...

    cd /usr/share/cockpit/ovirt/
    chmod +x install.sh
    ./install.sh https://my.ovirt.com/ovirt-engine 443
    

    Running in this way produces good output. And it creates the necessary /etc/cockpit/machines-ovirt.config file.