@@ -1612,10 +1612,7 @@ def test_shelve_offload(self):
1612
1612
# to any host but should still be owned by the vm
1613
1613
port = self .neutron .show_port (vdpa_port ['id' ])['port' ]
1614
1614
self .assertEqual (server ['id' ], port ['device_id' ])
1615
- # FIXME(sean-k-mooney): we should be unbinding the port from
1616
- # the host when we shelve offload but we don't today.
1617
- # This is unrelated to vdpa port and is a general issue.
1618
- self .assertEqual (hostname , port ['binding:host_id' ])
1615
+ self .assertIsNone (port ['binding:host_id' ])
1619
1616
self .assertIn ('binding:profile' , port )
1620
1617
self .assertIsNone (server ['OS-EXT-SRV-ATTR:hypervisor_hostname' ])
1621
1618
self .assertIsNone (server ['OS-EXT-SRV-ATTR:host' ])
@@ -1637,9 +1634,7 @@ def test_unshelve_to_same_host(self):
1637
1634
self .assertPCIDeviceCounts (hostname , total = num_pci , free = num_pci )
1638
1635
self .assertIsNone (server ['OS-EXT-SRV-ATTR:hypervisor_hostname' ])
1639
1636
port = self .neutron .show_port (vdpa_port ['id' ])['port' ]
1640
- # FIXME(sean-k-mooney): shelve offload should unbind the port
1641
- # self.assertEqual('', port['binding:host_id'])
1642
- self .assertEqual (hostname , port ['binding:host_id' ])
1637
+ self .assertIsNone (port ['binding:host_id' ])
1643
1638
1644
1639
server = self ._unshelve_server (server )
1645
1640
self .assertPCIDeviceCounts (hostname , total = num_pci , free = num_pci - 2 )
@@ -1670,9 +1665,7 @@ def test_unshelve_to_different_host(self):
1670
1665
self .assertPCIDeviceCounts (source , total = num_pci , free = num_pci )
1671
1666
self .assertIsNone (server ['OS-EXT-SRV-ATTR:hypervisor_hostname' ])
1672
1667
port = self .neutron .show_port (vdpa_port ['id' ])['port' ]
1673
- # FIXME(sean-k-mooney): shelve should unbind the port
1674
- # self.assertEqual('', port['binding:host_id'])
1675
- self .assertEqual (source , port ['binding:host_id' ])
1668
+ self .assertIsNone (port ['binding:host_id' ])
1676
1669
1677
1670
# force the unshelve to the other host
1678
1671
self .api .put_service (
@@ -3926,17 +3919,7 @@ def test_shelve(self):
3926
3919
3927
3920
port = self .neutron .show_port (uuids .dpu_tunnel_port )['port' ]
3928
3921
self .assertIn ('binding:profile' , port )
3929
- self .assertEqual (
3930
- {
3931
- 'pci_vendor_info' : '15b3:101e' ,
3932
- 'pci_slot' : '0000:82:00.4' ,
3933
- 'physical_network' : None ,
3934
- 'pf_mac_address' : '52:54:00:1e:59:02' ,
3935
- 'vf_num' : 3 ,
3936
- 'card_serial_number' : 'MT0000X00002' ,
3937
- },
3938
- port ['binding:profile' ],
3939
- )
3922
+ self .assertEqual ({}, port ['binding:profile' ])
3940
3923
3941
3924
def test_suspend (self ):
3942
3925
self .start_compute ()
0 commit comments