ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

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

    IT Discussion
    cockpit kvm ovirt fedora linux
    3
    5
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • S
              Starke427
              last edited by

              Ran into this same problem today on 4.3 node installation.

              The install script didn't work for me, it just made the web interface loop back to the engine in a weird way.

              I wound up coming across the cli command for registering the node with the engine.

              vdsm-tool register --engine-fqdn engine.localdomain

              https://ovirt.org/develop/release-management/features/node/genericregistration.html

              1 Reply Last reply Reply Quote 1
              • D
                dyasny
                last edited by

                it relies on DNS (or hosts files) to resolve itself and generate SSL certs, this has to work before you install the engine. If it did work, and you still get this error, this is a bug

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post