Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1722

SolusVM: KVM/HVM templates not loading

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0-b5, 3.5.0
    • Fix Version/s: 3.5.1
    • Component/s: None
    • Labels:
      None

      Description

      It appears that KVM/HVM templates are not retrieved and shown for the module, as it does not distinguish between normal templates and the KVM/HVM templates.

        Activity

        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        To fix:
        Update /components/modules/solusvm/solusvm.php

        Find this line:
        $templates = $this->csvToArray($response->templates);

        Replace it with the following:
        $templates = array();
        switch (strtolower($type)) {
        case "kvm":
        $templates = (isset($response->templateskvm) ? $this->csvToArray($response->templateskvm) : array());
        break;
        case "xen hvm":
        $templates = (isset($response->templateshvm) ? $this->csvToArray($response->templateshvm) : array());
        break;
        default:
        $templates = (isset($response->templates) ? $this->csvToArray($response->templates) : array());
        break;
        }

        Show
        tyson Tyson Phillips (Inactive) added a comment - To fix: Update /components/modules/solusvm/solusvm.php Find this line: $templates = $this->csvToArray($response->templates); Replace it with the following: $templates = array(); switch (strtolower($type)) { case "kvm": $templates = (isset($response->templateskvm) ? $this->csvToArray($response->templateskvm) : array()); break; case "xen hvm": $templates = (isset($response->templateshvm) ? $this->csvToArray($response->templateshvm) : array()); break; default: $templates = (isset($response->templates) ? $this->csvToArray($response->templates) : array()); break; }
        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        The above comment does not include KVM or HVM ISOs in its fix. ISO templates are included in v3.2.2 of the SolusVM module.

        Show
        tyson Tyson Phillips (Inactive) added a comment - The above comment does not include KVM or HVM ISOs in its fix. ISO templates are included in v3.2.2 of the SolusVM module.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jul/15