Actions
Bug #35797
closednic network/bridge comparison can be nil
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources - libvirt
Target version:
-
Description
When provisioning a VM with a bridge and sriov passthrough, the nic iteration may compare nil to nil resulting in random mac address being associated with the interface and boot/discovery not working as expected.
Nov 19 14:26:32 provisioning foreman[22162]: Comparing networks -- <Fog::Libvirt::Compute::Nic Nov 19 14:26:32 provisioning foreman[22162]: mac="52:54:00:f8:65:09", Nov 19 14:26:32 provisioning foreman[22162]: id=nil, Nov 19 14:26:32 provisioning foreman[22162]: type="bridge", Nov 19 14:26:32 provisioning foreman[22162]: network=nil, Nov 19 14:26:32 provisioning foreman[22162]: bridge="br-vm-mgmt", Nov 19 14:26:32 provisioning foreman[22162]: model="virtio" Nov 19 14:26:32 provisioning foreman[22162]: > to {"type"=>"bridge", "bridge"=>"br-vm-mgmt", "model"=>"virtio"} Nov 19 14:26:32 provisioning foreman[22162]: Comparing networks -- to Nov 19 14:26:32 provisioning foreman[22162]: Found Nov 19 14:26:32 provisioning foreman[22162]: Comparing networks -- <Fog::Libvirt::Compute::Nic Nov 19 14:26:32 provisioning foreman[22162]: mac="52:54:00:cd:74:06", Nov 19 14:26:32 provisioning foreman[22162]: id=nil, Nov 19 14:26:32 provisioning foreman[22162]: type="network", Nov 19 14:26:32 provisioning foreman[22162]: network="passthrough-p3p2", Nov 19 14:26:32 provisioning foreman[22162]: bridge=nil, Nov 19 14:26:32 provisioning foreman[22162]: model="virtio" Nov 19 14:26:32 provisioning foreman[22162]: > to {"type"=>"network", "network"=>"passthrough-p3p2", "bridge"=>"br-vm-mgmt", "model"=>"virtio"} Nov 19 14:26:32 provisioning foreman[22162]: Comparing networks -- passthrough-p3p2 to passthrough-p3p2 Nov 19 14:26:32 provisioning foreman[22162]: Found Nov 19 14:26:32 provisioning foreman[22162]: Comparing networks -- <Fog::Libvirt::Compute::Nic Nov 19 14:26:32 provisioning foreman[22162]: mac="52:54:00:45:28:cf", Nov 19 14:26:32 provisioning foreman[22162]: id=nil, Nov 19 14:26:32 provisioning foreman[22162]: type="network", Nov 19 14:26:32 provisioning foreman[22162]: network="passthrough-p3p2", Nov 19 14:26:32 provisioning foreman[22162]: bridge=nil, Nov 19 14:26:32 provisioning foreman[22162]: model="virtio" Nov 19 14:26:32 provisioning foreman[22162]: > to {"type"=>"network", "network"=>"passthrough-p3p2", "bridge"=>"br-vm-mgmt", "model"=>"virtio"} Nov 19 14:26:32 provisioning foreman[22162]: Comparing networks -- passthrough-p3p2 to passthrough-p3p2 Nov 19 14:26:32 provisioning foreman[22162]: Found
Files
Actions