Skip to content

Commit 6ba85bd

Browse files
author
Jing Zhang
committed
Get IP addresses of neutron subports
Vlan-aware VMs are commonly used in telecom. Those VMs are plugged into flat networks and use neutron trunk. https://docs.openstack.org/neutron/latest/admin/config-trunking.html Currenlty, getAttachedInterfacesByID() only returns neutron ports directly attached to VM. For vlan-aware VMs, IP addresses are assigned on neutron subports. Subports are attached to the trunk; they are not attached to the VM directly. This pull request changes getAttachedInterfacesByID() to return IP addresses of neutron subports when they exist. Without this change, Kubernetes is unable to IP addresses of vlan-aware VMs. This change is transparent to VMs noting using neturon trunk. Signed-off-by: Jing Zhang <[email protected]>
1 parent bd767ba commit 6ba85bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openstack/instances.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (os *OpenStack) instances() (*Instances, bool) {
154154

155155
network, err := client.NewNetworkV2(os.provider, os.epOpts)
156156
if err != nil {
157-
klog.Errorf("Failed to create an OpenStack Network client: %v", err)
157+
klog.Errorf("unable to access network v2 API : %v", err)
158158
return nil, false
159159
}
160160

0 commit comments

Comments
 (0)