Project

General

Profile

Actions

Bug #13281

open

vsphere: Fails to use DistributedVirtualPortGroup

Added by Guido Günther over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

As of 952ad8c1ad0741e3e4ef5883a2dc59885e1b0ca6 using image based installs fails to assign the correct network configuration when using a a DistributedVirtualPortGroup leaving the VM without network connection. This is due to this change in Fog 1.34:

if (options.key?('interfaces') )
if options.key?('network_label')
raise ArgumentError, "interfaces option can't be specified together with network_label"
end
device_change.concat(modify_template_nics_specs(template_path, options['interfaces'], options['datacenter']))
elsif options.key?('network_label')
device_change << modify_template_nics_simple_spec(options['network_label'], options['nic_type'], options['network_adapter_device_key'], options['datacenter'])
end

which makes it only use the network_label case (which does the corret setup) in case of network_label not in case of interfaces. The attached patch (basically a revert of 952ad8c1ad0741e3e4ef5883a2dc59885e1b0ca6) works around this. Any suggestions for a correct fix?


Files

distributed-port-group.diff distributed-port-group.diff 1.26 KB Guido Günther, 01/19/2016 01:31 PM

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #13507: Creating VMs with hammer requires too many parametersResolved02/01/2016Actions
Has duplicate Foreman - Bug #13932: After the provisioning of a vmware host, network interface always remains disconnectedDuplicate02/28/2016Actions
Actions

Also available in: Atom PDF