From c917e1e8828965c969a80ab00c46d0ddaa50b182 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Mon, 17 Jul 2023 17:10:44 +0200 Subject: [PATCH] Remove filtering by device_owner. 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. --- pkg/openstack/instances.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/openstack/instances.go b/pkg/openstack/instances.go index 927bb0458e..7cb4389198 100644 --- a/pkg/openstack/instances.go +++ b/pkg/openstack/instances.go @@ -703,8 +703,7 @@ func getAddressesByName(client *gophercloud.ServiceClient, name types.NodeName, // getAttachedPorts returns a list of ports attached to a server. func getAttachedPorts(client *gophercloud.ServiceClient, serverID string) ([]ports.Port, error) { listOpts := ports.ListOpts{ - DeviceID: serverID, - DeviceOwner: "compute:nova", + DeviceID: serverID, } return openstack.GetPorts(client, listOpts)