Skip to content

Commit 6a7255b

Browse files
committed
kvm: fix ovs network creation issue
This fixes the issue when create a ovs network ``` 2024-10-29 16:02:45,089 WARN [resource.wrapper.LibvirtOvsFetchInterfaceCommandWrapper] (agentRequest-Handler-2:null) (logid:e716722e) Network interface: ''cloudbr1'' not found ``` This is a regression of a previous security release see "framework/cluster: improve cluster service, integration API server" since we now use NetworkInterface.getByName to get network interface, we should NOT add single quotes before/after the label.
1 parent 175eed2 commit 6a7255b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtOvsFetchInterfaceCommandWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public Ternary<String, String, String> getInterfaceDetails(String interfaceName)
9292

9393
@Override
9494
public Answer execute(final OvsFetchInterfaceCommand command, final LibvirtComputingResource libvirtComputingResource) {
95-
final String label = "'" + command.getLabel() + "'";
95+
final String label = command.getLabel();
9696

9797
s_logger.debug("Will look for network with name-label:" + label);
9898
try {

0 commit comments

Comments
 (0)