Skip to content

Commit 9fd410b

Browse files
committed
Merge remote-tracking branch 'apache/4.18' into 4.19
2 parents 813d53d + 9bd359a commit 9fd410b

File tree

11 files changed

+34
-13
lines changed

11 files changed

+34
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434

3535
- name: Set up JDK 11
36-
uses: actions/setup-java@v3
36+
uses: actions/setup-java@v4
3737
with:
3838
java-version: '11'
3939
distribution: 'adopt'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
fetch-depth: 0
211211

212212
- name: Set up JDK
213-
uses: actions/setup-java@v3
213+
uses: actions/setup-java@v4
214214
with:
215215
java-version: '11'
216216
distribution: 'adopt'

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838

3939
- name: Set up JDK11
40-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@v4
4141
with:
4242
distribution: 'temurin'
4343
java-version: '11'

.github/workflows/main-sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838

3939
- name: Set up JDK11
40-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@v4
4141
with:
4242
distribution: 'temurin'
4343
java-version: '11'

.github/workflows/rat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: Set up JDK 11
35-
uses: actions/setup-java@v3
35+
uses: actions/setup-java@v4
3636
with:
3737
java-version: '11'
3838
distribution: 'adopt'

.github/workflows/sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
fetch-depth: 0
4040

4141
- name: Set up JDK11
42-
uses: actions/setup-java@v3
42+
uses: actions/setup-java@v4
4343
with:
4444
distribution: 'temurin'
4545
java-version: '11'

plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4771,7 +4771,13 @@ protected Answer execute(MigrateCommand cmd) {
47714771
final String vmName = cmd.getVmName();
47724772
try {
47734773
VmwareHypervisorHost hyperHost = getHyperHost(getServiceContext());
4774+
if (hyperHost == null) {
4775+
throw new CloudRuntimeException("no hypervisor host found for migrate command");
4776+
}
47744777
ManagedObjectReference morDc = hyperHost.getHyperHostDatacenter();
4778+
if (morDc == null) {
4779+
throw new CloudRuntimeException("no Managed Object Reference for the Data Center found for migrate command");
4780+
}
47754781

47764782
// find VM through datacenter (VM is not at the target host yet)
47774783
VirtualMachineMO vmMo = hyperHost.findVmOnPeerHyperHost(vmName);
@@ -4782,6 +4788,9 @@ protected Answer execute(MigrateCommand cmd) {
47824788
}
47834789

47844790
VmwareHypervisorHost destHyperHost = getTargetHyperHost(new DatacenterMO(hyperHost.getContext(), morDc), cmd.getDestinationIp());
4791+
if (destHyperHost == null) {
4792+
throw new CloudRuntimeException("no destination Hypervisor Host found for migrate command");
4793+
}
47854794

47864795
ManagedObjectReference morTargetPhysicalHost = destHyperHost.findMigrationTarget(vmMo);
47874796
if (morTargetPhysicalHost == null) {
@@ -4793,7 +4802,8 @@ protected Answer execute(MigrateCommand cmd) {
47934802
}
47944803

47954804
return new MigrateAnswer(cmd, true, "migration succeeded", null);
4796-
} catch (Throwable e) {
4805+
} catch (Exception e) {
4806+
s_logger.info(String.format("migrate command for %s failed due to %s", vmName, e.getLocalizedMessage()));
47974807
return new MigrateAnswer(cmd, false, createLogMessageException(e, cmd), null);
47984808
}
47994809
}

services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVncClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ public void run() {
114114
updateFrontEndActivityTime();
115115
}
116116
connectionAlive = session.isOpen();
117-
try {
118-
Thread.sleep(1);
119-
} catch (InterruptedException e) {
120-
s_logger.error("Error on sleep for vnc over websocket", e);
121-
}
122117
} else if (client.isVncOverNioSocket()) {
123118
byte[] bytesArr;
124119
int nextBytes = client.getNextBytes();
@@ -139,6 +134,11 @@ public void run() {
139134
connectionAlive = false;
140135
}
141136
}
137+
try {
138+
Thread.sleep(1);
139+
} catch (InterruptedException e) {
140+
s_logger.error("Error on sleep for vnc sessions", e);
141+
}
142142
}
143143
s_logger.info(String.format("Connection with client [%s] is dead.", clientId));
144144
} catch (IOException e) {

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3056,7 +3056,7 @@
30563056
"message.remove.vpc": "Please confirm that you want to remove the VPC",
30573057
"message.request.failed": "Request failed.",
30583058
"message.required.add.least.ip": "Please add at least 1 IP Range",
3059-
"message.required.traffic.type": "All required traffic types should be added and with multiple physical networks each network should have a label.",
3059+
"message.required.traffic.type": "All required traffic types should be added and with multiple physical networks each traffic type should have a label.",
30603060
"message.required.tagged.physical.network": "There can only be one untagged physical network with guest traffic type.",
30613061
"message.reset.vpn.connection": "Please confirm that you want to reset VPN connection.",
30623062
"message.resize.volume.failed": "Failed to resize volume.",

ui/src/config/section/infra/phynetworks.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ export default {
4242
name: 'guestnetwork',
4343
title: 'label.guest.networks',
4444
param: 'physicalnetworkid'
45+
},
46+
{
47+
name: 'publicip',
48+
title: 'label.public.ip.addresses',
49+
param: 'physicalnetworkid'
4550
}],
4651
actions: [
4752
{

0 commit comments

Comments
 (0)