Skip to content

Commit a2c86f9

Browse files
authored
Remove filtering by device_owner. (#2304)
In OpenStack default AZ is called 'nova', thus device_owner is filled with 'compute:nova', and that's ok for deployments within one (default) AZ. Filtering by device_owner however, will make function getAttachedPorts to return zero ports for provided node. In this patch, filtering by device_owner is simply removed.
1 parent 4e18747 commit a2c86f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/openstack/instances.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ func getAddressesByName(client *gophercloud.ServiceClient, name types.NodeName,
703703
// getAttachedPorts returns a list of ports attached to a server.
704704
func getAttachedPorts(client *gophercloud.ServiceClient, serverID string) ([]ports.Port, error) {
705705
listOpts := ports.ListOpts{
706-
DeviceID: serverID,
707-
DeviceOwner: "compute:nova",
706+
DeviceID: serverID,
708707
}
709708

710709
return openstack.GetPorts(client, listOpts)

0 commit comments

Comments
 (0)