Skip to content

[BUG] library.deploy does not honor OVA spec file via -options (properties) #2599

@nanw1103

Description

@nanw1103

Describe the bug
Deploy OVF in content library using library.deploy, but the config in ova spec file does not work as expected. The following fields are not working:

  1. power on
  2. waitForIp
  3. Property mapping

To Reproduce
Steps to reproduce the behavior:

  1. Import this (from VMware network) to content library: http://build-squid.eng.vmware.com/build/mts/release/bora-18567835/publish/edge-gw-2.1.0.0-18567835_OVF10.ovf
  2. Generate ova spec, and set VM name, set powerOn=true, waitForIp=true, and set connectionString in PropertyMapping
  3. Deploy using "govc library.deploy path_to_the_vm_in_lib my_vm_name -options path_to_my_ova_spec.json"

Expected behavior
Expect the VM to be deployed with powered on, with the OVA property "connectionString" to be set.

Affected version
0.26.1, Mac

Screenshots/Debug Output
Actually, the VM is deployed, and NOT powered on automatically, and the property is NOT set as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions