-
Feature Request
-
Resolution: Unresolved
-
None
-
None
Description of problem:
The end-user trying provision a VM in VSphere using an adapted version of the default UserData open-vm-tools template which reads
[...]
nicSettingMap:
<%- @host.interfaces.each do |interface| -%>
<%- next unless interface.subnet -%>
- adapter:
dnsDomain: <%= interface.domain %>
dnsServerList: [<%= interface.subnet.dns_servers.join(', ') %>]
gateway: [<%= interface.subnet.gateway %>]
ip: <%= interface.ip %>
subnetMask: <%= interface.subnet.mask %>
<% if interface.ip6 -%>ipV6Spec:
ipAddress: "<%= interface.ip6 %>"
subnetMask: 64
gateway: ["<%= interface.subnet6.gateway %>"]
<%- end -%>
<%- end -%>
But it fails with an error:
Failed to create a compute VMWare (vm.example.com) (VMware) instance client.example.com: expected array for 'ip', got CustomizationFixedIpV6
How reproducible:
Cu already reported the same to the upstream, please check the below link for the same.
https://github.com/fog/fog-vsphere/issues/290
Steps to Reproduce:
If you check the below link, you'll see the 'ip' field should be an array but if you see this is not mentioned like that.
Actual results:
custom_ipv6Spec = RbVmomi::VIM.CustomizationIPSettingsIpV6AddressSpec(ip: custom_ipv6)
Expected results:
custom_ipv6Spec = RbVmomi::VIM.CustomizationIPSettingsIpV6AddressSpec(ip: [custom_ipv6])
Additional info:
https://github.com/fog/fog-vsphere/commit/656d106f177256a44d69e189a61e67334c79e108