Skip to content

UI: Instances list not filterable by hostid #6786

Description

@kohrar
ISSUE TYPE
  • Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.17.0.1
CONFIGURATION

Standard install

OS / ENVIRONMENT

N/A

SUMMARY

On the 'Hosts' page, clicking on 'View Instances' brings the user to a table of instances (VMs). However, this table is not filtered by the host appropriately even though the URL includes a hostid=xxxx. Instead, the table shows all instances in CloudStack.

STEPS TO REPRODUCE
  1. Go to Infrastructure -> Hosts
  2. Select a host (For example: hostA)
  3. Click on 'View Instances'
  4. See that the Instances table contains all VMs in CloudStack (not filtered to show only hostA's VMs). The URL should contain something like: /client/#/vm?hostid=7b313bd8-81fe-4e57-bccb-90df970f6d67. Note that hostA's hostid is being passed in the URI but has no effect.
EXPECTED RESULTS

Expect the Instances table is filtered to show only hostA's VMs.

ACTUAL RESULTS

Instances table is not filtered to show only hostA's VMs.

Additional info

I think the hostid parameter isn't actually used by the view. I think the table view is generated and filtered by this file/line:

} else if (this.$route.name === 'vm') {

I don't see hostid actually be used here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions