Skip to content

[Bug]: Start-HoloDeckInstance fails with "Cannot find associated appliances" due to missing Appliance property in HoloDeckInstance class #108

@hirohiro43

Description

@hirohiro43

Holorouter Version

9.0.2

VCF Version

VCF 9.0.2.0

Target Type

vCenter Cluster

Describe the bug

Start-HoloDeckInstance always fails with the following error even when the instance JSON file contains a valid Appliance array:

StartHolodeckInstance[xxxxxx]: [INFO] Cannot find associated appliances on Instance:

Root cause: The HoloDeckInstance class defined in Model.psm1 does not declare an Appliance property, and the load() static method does not hydrate it from the JSON file. As a result, $instance.appliance is always $null regardless of the contents of the instance JSON.

Reproduction steps

1.Deploy a Holodeck instance via New-HoloDeckInstance

2.Run Stop-HoloDeckInstance -InstanceID "InstanceID" -Force

3.Run Start-HoloDeckInstance -InstanceID "InstanceID" -Force

4.Observe the error: Cannot find associated appliances on Instance:

Expected behavior

Start-HoloDeckInstance should read the Appliance array from the instance JSON and power on all associated VMs.

Workaround
Add the missing Appliance property to the HoloDeckInstance class and hydrate it in the load() method in /root/.local/share/powershell/Modules/HoloDeck/Modules/Model.psm1:

# Class definition - add after $FilePath
[object[]]$Appliance

# load() method - add after $instance.SiteB
$instance.Appliance = $jsonData.Appliance

Relevant logs

Additional context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions