Skip to content

[BUG] vcsim: VM extraConfig is not set when using Java SDK #4041

@nickcaballero

Description

@nickcaballero

Describe the bug

The ReconfigVM_Task in vcsim doesn't set virtual machine properties via the SET prefix when called from the Java SDK.

  • SET prefix as documented here

To Reproduce
Steps to reproduce the behavior:

  1. Add a VM to vcsim
  2. Call ReconfigVM_Task via Java SDK to set a property using SET prefix

Expected behavior
The VM has the new value.

Affected version
v0.54.0

Screenshots/Debug Output

Java SDK request:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ReconfigVM_Task xmlns="urn:vim25" xmlns:ns2="urn:vsan">
      <_this type="VirtualMachine">vm-1281</_this>
      <spec>
        <extraConfig>
          <key>SET.guest.customizationInfo.customizationStatus</key>
          <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">TEST_ME
          </value>
        </extraConfig>
      </spec>
    </ReconfigVM_Task>
  </soap:Body>
</soap:Envelope>

govc request:

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
  <Body>
    <ReconfigVM_Task xmlns="urn:vim25">
      <_this type="VirtualMachine">vm-1281</_this>
      <spec>
        <extraConfig xmlns:_XMLSchema-instance="http://www.w3.org/2001/XMLSchema-instance" _XMLSchema-instance:type="OptionValue">
          <key>SET.guest.customizationInfo.customizationStatus</key>
          <value _XMLSchema-instance:type="xsd:string">TEST_ME</value>
        </extraConfig>
      </spec>
    </ReconfigVM_Task>
  </Body>
</Envelope>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions