Interface HostService.InstallRequest

  • All Superinterfaces:
    Request<HostService.InstallRequest,​HostService.InstallResponse>
    Enclosing interface:
    HostService

    public static interface HostService.InstallRequest
    extends Request<HostService.InstallRequest,​HostService.InstallResponse>
    Installs the latest version of VDSM and related software on the host. The action also performs every configuration steps on the host which is done during adding host to the engine: kdump configuration, hosted-engine deploy, kernel options changes, etc. The host type defines additional parameters for the action. Example of installing a host, using `curl` and JSON, plain: [source,bash] ---- curl \ --verbose \ --cacert /etc/pki/ovirt-engine/ca.pem \ --request PUT \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Version: 4" \ --user "admin@internal:..." \ --data ' { "root_password": "myrootpassword" } ' \ "https://engine.example.com/ovirt-engine/api/hosts/123" ---- Example of installing a host using `curl` and JSON with hosted engine components: [source,bash] ---- curl \ curl \ --verbose \ --cacert /etc/pki/ovirt-engine/ca.pem \ --request PUT \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Version: 4" \ --user "admin@internal:..." \ --data ' { "root_password": "myrootpassword" "deploy_hosted_engine" : "true" } ' \ "https://engine.example.com/ovirt-engine/api/hosts/123" ---- IMPORTANT: Since version 4.1.2 of the engine, when a host is reinstalled we override the host firewall definitions by default.
    • Method Detail

      • activate

        HostService.InstallRequest activate​(Boolean activate)
        When set to 'true', this host will be activated after its installation completes. When set to 'false' the host will remain in 'maintenance' status after its installation. Absence of this parameter will be interpreted as 'true', since the desired default behavior is activating the host after install.
      • deployHostedEngine

        HostService.InstallRequest deployHostedEngine​(Boolean deployHostedEngine)
        When set to `true` this host will also deploy the self-hosted engine components. A missing value is treated as `true` i.e deploy. Omitting this parameter means `false` and will not perform any operation in the self-hosted engine area.
      • undeployHostedEngine

        HostService.InstallRequest undeployHostedEngine​(Boolean undeployHostedEngine)
        When set to `true` this host will un-deploy the self-hosted engine components, and this host will not function as part of the High Availability cluster. A missing value is treated as `true` i.e un-deploy. Omitting this parameter means `false` and will not perform any operation in the self-hosted engine area.