@@ -879,7 +879,7 @@ def test_live_migrate_server_with_neutron(self):
879
879
880
880
# start two compute services with differing PCI device inventory
881
881
source_pci_info = fakelibvirt .HostPCIDevicesInfo (
882
- num_pfs = 2 , num_vfs = 8 , numa_node = 0 )
882
+ num_pfs = 1 , num_vfs = 4 , numa_node = 0 )
883
883
# add an extra PF without VF to be used by direct-physical ports
884
884
source_pci_info .add_device (
885
885
dev_type = 'PF' ,
@@ -932,7 +932,7 @@ def test_live_migrate_server_with_neutron(self):
932
932
# our source host should have marked two PCI devices as used, the VF
933
933
# and the parent PF, while the future destination is currently unused
934
934
self .assertEqual ('test_compute0' , server ['OS-EXT-SRV-ATTR:host' ])
935
- self .assertPCIDeviceCounts ('test_compute0' , total = 11 , free = 8 )
935
+ self .assertPCIDeviceCounts ('test_compute0' , total = 6 , free = 3 )
936
936
self .assertPCIDeviceCounts ('test_compute1' , total = 4 , free = 4 )
937
937
938
938
# the instance should be on host NUMA node 0, since that's where our
@@ -956,7 +956,7 @@ def test_live_migrate_server_with_neutron(self):
956
956
# TODO(stephenfin): Stop relying on a side-effect of how nova
957
957
# chooses from multiple PCI devices (apparently the last
958
958
# matching one)
959
- 'pci_slot' : '0000:81:01 .4' ,
959
+ 'pci_slot' : '0000:81:00 .4' ,
960
960
'physical_network' : 'physnet4' ,
961
961
},
962
962
port ['binding:profile' ],
@@ -980,7 +980,7 @@ def test_live_migrate_server_with_neutron(self):
980
980
981
981
# we should now have transitioned our usage to the destination, freeing
982
982
# up the source in the process
983
- self .assertPCIDeviceCounts ('test_compute0' , total = 11 , free = 11 )
983
+ self .assertPCIDeviceCounts ('test_compute0' , total = 6 , free = 6 )
984
984
self .assertPCIDeviceCounts ('test_compute1' , total = 4 , free = 1 )
985
985
986
986
# the instance should now be on host NUMA node 1, since that's where
0 commit comments