Project

General

Profile

Actions

Bug #36922

open

VMware “Could not match network interface” on VM creation (Regression of #23909)

Added by Zachary Bedell about 1 year ago.

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

Description

It appears the issue in #23909 was reintroduced at some point. This bug is again present in Foreman 3.5.3. It looks like the same underlying confusion of the "key" versus "id" field in fog_extensions/vsphere/server.rb is to blame. In that file, changing

vm_network = all_networks.detect { |network| nic_attrs['network'] && [network[:name], network[:id]].compact.include?(nic_attrs['network']) }

to

vm_network = all_networks.detect { |network| nic_attrs['network'] && [network[:name], network[:key]].compact.include?(nic_attrs['network']) }

resolves the problem. The symptoms & conditions of this error are identical to the previous ticket.

No data to display

Actions

Also available in: Atom PDF