Skip to content

Commit f4fd95a

Browse files
committed
resolve conflict with main
2 parents 3a392e9 + cfe9602 commit f4fd95a

File tree

196 files changed

+1180
-1513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+1180
-1513
lines changed

.github/workflows/dependabot.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# To get started with Dependabot version updates, you'll need to specify which
19+
# package ecosystems to update and where the package manifests are located.
20+
# Please see the documentation for all configuration options:
21+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
22+
23+
version: 2
24+
updates:
25+
- package-ecosystem: "maven" # See documentation for possible values
26+
directory: "/" # Location of package manifests
27+
schedule:
28+
interval: "daily"

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ repos:
8181
- --license-filepath
8282
- .github/workflows/license-templates/LICENSE.txt
8383
- --fuzzy-match-generates-todo
84+
- id: insert-license
85+
name: add license for all Vue files
86+
files: \.vue$
87+
args:
88+
- --comment-style
89+
- '|//|'
90+
- --license-filepath
91+
- .github/workflows/license-templates/LICENSE.txt
92+
- --fuzzy-match-generates-todo
8493
- id: insert-license
8594
name: add license for all YAML files
8695
description: automatically adds a licence header to all YAML files that don't have a license header

PRE-COMMIT.md renamed to PRE_COMMIT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# pre-commit
2121

2222
We run [pre-commit](https://pre-commit.com/) with
23-
[GitHub Actions](https://github.com/apache/cloudstack/blob/main/.github/workflows/linter.yml) so installation on your
23+
[GitHub Actions](https://github.com/apache/cloudstack/blob/main/.github/workflows/pre-commit.yml) so installation on your
2424
local machine is currently optional.
2525

2626
The `pre-commit` [configuration file](https://github.com/apache/cloudstack/blob/main/.pre-commit-config.yaml)

agent/conf/uefi.properties.in

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Configuration file for UEFI
19+
20+
guest.nvram.template.legacy=@GUESTNVRAMTEMPLATELEGACY@
21+
guest.loader.legacy=@GUESTLOADERLEGACY@
22+
guest.nvram.template.secure=@GUESTNVRAMTEMPLATESECURE@
23+
guest.loader.secure=@GUESTLOADERSECURE@
24+
guest.nvram.path=@GUESTNVRAMPATH@

agent/src/main/java/com/cloud/agent/Agent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,6 @@ public void doTask(final Task task) throws TaskExecutionException {
13221322
processResponse((Response)request, task.getLink());
13231323
} else {
13241324
//put the requests from mgt server into another thread pool, as the request may take a longer time to finish. Don't block the NIO main thread pool
1325-
//processRequest(request, task.getLink());
13261325
requestHandler.submit(new AgentRequestHandler(getType(), getLink(), request));
13271326
}
13281327
} catch (final ClassNotFoundException e) {
@@ -1332,13 +1331,14 @@ public void doTask(final Task task) throws TaskExecutionException {
13321331
}
13331332
} else if (task.getType() == Task.Type.DISCONNECT) {
13341333
try {
1335-
// an issue has been found if reconnect immediately after disconnecting. please refer to https://github.com/apache/cloudstack/issues/8517
1334+
// an issue has been found if reconnect immediately after disconnecting.
13361335
// wait 5 seconds before reconnecting
1336+
logger.debug("Wait for 5 secs before reconnecting, disconnect task - {}", () -> getLinkLog(task.getLink()));
13371337
Thread.sleep(5000);
13381338
} catch (InterruptedException e) {
13391339
}
13401340
shell.setConnectionTransfer(false);
1341-
logger.debug("Executing disconnect task - {}", () -> getLinkLog(task.getLink()));
1341+
logger.debug("Executing disconnect task - {} and reconnecting", () -> getLinkLog(task.getLink()));
13421342
reconnect(task.getLink());
13431343
} else if (task.getType() == Task.Type.OTHER) {
13441344
processOtherTask(task);

api/src/main/java/com/cloud/host/HostStats.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ public interface HostStats {
3636
public HostStats getHostStats();
3737

3838
public double getLoadAverage();
39-
// public double getXapiMemoryUsageKBs();
4039
}

api/src/main/java/com/cloud/network/Networks.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public <T> URI toUri(T value) {
7878
}
7979
@Override
8080
public String getValueFrom(URI uri) {
81-
return uri.getAuthority();
81+
return uri == null ? null : uri.getAuthority();
8282
}
8383
},
8484
Vswitch("vs", String.class), LinkLocal(null, null), Vnet("vnet", Long.class), Storage("storage", Integer.class), Lswitch("lswitch", String.class) {
@@ -96,7 +96,7 @@ public <T> URI toUri(T value) {
9696
*/
9797
@Override
9898
public String getValueFrom(URI uri) {
99-
return uri.getSchemeSpecificPart();
99+
return uri == null ? null : uri.getSchemeSpecificPart();
100100
}
101101
},
102102
Mido("mido", String.class), Pvlan("pvlan", String.class),
@@ -177,7 +177,7 @@ public <T> URI toUri(T value) {
177177
* @return the scheme as BroadcastDomainType
178178
*/
179179
public static BroadcastDomainType getSchemeValue(URI uri) {
180-
return toEnumValue(uri.getScheme());
180+
return toEnumValue(uri == null ? null : uri.getScheme());
181181
}
182182

183183
/**
@@ -191,7 +191,7 @@ public static BroadcastDomainType getTypeOf(String str) throws URISyntaxExceptio
191191
if (com.cloud.dc.Vlan.UNTAGGED.equalsIgnoreCase(str)) {
192192
return Native;
193193
}
194-
return getSchemeValue(new URI(str));
194+
return getSchemeValue(str == null ? null : new URI(str));
195195
}
196196

197197
/**
@@ -220,7 +220,7 @@ public static BroadcastDomainType toEnumValue(String scheme) {
220220
* @return the host part as String
221221
*/
222222
public String getValueFrom(URI uri) {
223-
return uri.getHost();
223+
return uri == null ? null : uri.getHost();
224224
}
225225

226226
/**
@@ -243,7 +243,7 @@ public static String getValue(URI uri) {
243243
* @throws URISyntaxException the string is not even an uri
244244
*/
245245
public static String getValue(String uriString) throws URISyntaxException {
246-
return getValue(new URI(uriString));
246+
return getValue(uriString == null ? null : new URI(uriString));
247247
}
248248

249249
/**

api/src/main/java/com/cloud/network/rules/LbStickinessMethod.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ public LbStickinessMethod(StickinessMethodType methodType, String description) {
108108
}
109109

110110
public void addParam(String name, Boolean required, String description, Boolean isFlag) {
111-
/* FIXME : UI is breaking if the capability string length is larger , temporarily description is commented out */
112-
// LbStickinessMethodParam param = new LbStickinessMethodParam(name, required, description);
111+
/* is this still a valid comment: FIXME : UI is breaking if the capability string length is larger , temporarily description is commented out */
113112
LbStickinessMethodParam param = new LbStickinessMethodParam(name, required, " ", isFlag);
114113
_paramList.add(param);
115114
return;
@@ -133,7 +132,6 @@ public String getDescription() {
133132

134133
public void setDescription(String description) {
135134
/* FIXME : UI is breaking if the capability string length is larger , temporarily description is commented out */
136-
//this.description = description;
137135
this._description = " ";
138136
}
139137
}

api/src/main/java/org/apache/cloudstack/api/command/admin/iso/ListIsoPermissionsCmdByAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensedname = "listIsoPermissions", to the Apache Software Foundation (ASF) under one
1+
// Licensed to the Apache Software Foundation (ASF) under one
22
// or more contributor license agreements. See the NOTICE file
33
// distributed with this work for additional information
44
// regarding copyright ownership. The ASF licenses this file

api/src/main/java/org/apache/cloudstack/api/command/admin/template/ListTemplatePermissionsCmdByAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensedname = "listTemplatePermissions", to the Apache Software Foundation (ASF) under one
1+
// Licensed to the Apache Software Foundation (ASF) under one
22
// or more contributor license agreements. See the NOTICE file
33
// distributed with this work for additional information
44
// regarding copyright ownership. The ASF licenses this file

0 commit comments

Comments
 (0)