Skip to content

Commit 60b645f

Browse files
committed
Revert "Merge remote-tracking branch 'upstream/main' into ui-polish"
This reverts commit 50dca9c, reversing changes made to 92a3dcd.
1 parent 159f4e8 commit 60b645f

File tree

923 files changed

+70024
-77468
lines changed

Some content is hidden

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

923 files changed

+70024
-77468
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,27 @@ MD004: false
2727
# MD007/ul-indent Unordered list indentation
2828
MD007: false
2929

30+
# MD009/no-trailing-spaces Trailing spaces
31+
MD009: false
32+
3033
# MD010/no-hard-tabs Hard tabs
3134
MD010: false
3235

36+
# MD012/no-multiple-blanks Multiple consecutive blank lines
37+
MD012: false
38+
3339
# MD013/line-length Line length
3440
MD013: false
3541

3642
# MD014/commands-show-output Dollar signs used before commands without showing output
3743
MD014: false
3844

45+
# MD018/no-missing-space-atx No space after hash on atx style heading
46+
MD018: false
47+
48+
# MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading
49+
MD019: false
50+
3951
# MD022/blanks-around-headings Headings should be surrounded by blank lines
4052
MD022: false
4153

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
#
8+
#
99
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
10+
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ repos:
5454
^systemvm/agent/certs/realhostip\.key$
5555
- id: end-of-file-fixer
5656
exclude: \.vhd$
57-
- id: fix-byte-order-marker
57+
#- id: fix-byte-order-marker
5858
- id: forbid-submodules
5959
- id: mixed-line-ending
60-
exclude: \.cs$
60+
exclude: \.(cs|xml)$
6161
- id: trailing-whitespace
62-
files: \.(bat|cfg|cs|css|gitignore|header|in|install|java|md|properties|py|rb|sh|sql|txt|vue|xml|xsl|yaml|yml)$
62+
files: \.(header|in|java|md|properties|py|rb|sh|sql|txt|vue|xml|yaml|yml)$
6363
args: [--markdown-linebreak-ext=md]
6464
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
6565
- repo: https://github.com/codespell-project/codespell
@@ -87,7 +87,7 @@ repos:
8787
^setup/bindir/cloud-setup-encryption\.in$|
8888
^venv/.*$
8989
- repo: https://github.com/igorshubovych/markdownlint-cli
90-
rev: v0.43.0
90+
rev: v0.40.0
9191
hooks:
9292
- id: markdownlint
9393
name: run markdownlint

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Bug ID | Description
242242
[CLOUDSTACK-7722](https://issues.apache.org/jira/browse/CLOUDSTACK-7722) | add.label: Add button for tags show the label not "Add" text...
243243
[CLOUDSTACK-7246](https://issues.apache.org/jira/browse/CLOUDSTACK-7246) | VM deployment failed due to wrong in script name createipalias.sh...
244244

245+
245246
Version 4.4.1
246247
-------------
247248

@@ -275,6 +276,7 @@ Bug ID | Description
275276
[CLOUDSTACK-1632](https://issues.apache.org/jira/browse/CLOUDSTACK-1632) | Mistakes in authorizeSecurityGroup* API docs...
276277
[CLOUDSTACK-401](https://issues.apache.org/jira/browse/CLOUDSTACK-401) | Storage options missing from table...
277278

279+
278280
Version 4.4.0
279281
-------------
280282

@@ -928,6 +930,7 @@ Security Fixes:
928930

929931
* CVE-2012-4501: Apache CloudStack configuration vulnerability
930932

933+
931934
Version 4.0.2
932935
------------------------
933936

@@ -976,6 +979,7 @@ Issues fixed in this release:
976979
* CLOUDSTACK-2090: Upgrade from version 4.0.1 to version 4.0.2 triggers the 4.0.0 to 4.0.1.
977980
* CLOUDSTACK-2091: Error in API documentation for 4.0.x.
978981

982+
979983
Version 4.0.1-incubating
980984
------------------------
981985

@@ -1019,6 +1023,7 @@ Bugs fixed in this release:
10191023
* CLOUDSTACK-961: Installation docs don't detail dependencies for building RPMs
10201024
* CLOUDSTACK-995: Not able to add the KVM host
10211025

1026+
10221027
Version 4.0.0-incubating
10231028
------------------------
10241029

@@ -1051,6 +1056,7 @@ Security Fixes:
10511056

10521057
* CVE-2012-4501: Apache CloudStack configuration vulnerability
10531058

1059+
10541060
Updating this file
10551061
------------------
10561062

CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ $ git fetch upstream
5151
$ git rebase upstream/main
5252
```
5353

54+
5455
Making changes
5556
--------------
5657

58+
5759
It is important that you create a new branch to make changes on and that you do not change the `main` branch (other than to rebase in changes from `upstream/main`). In this example I will assume you will be making your changes to a branch called `feature_x`. This `feature_x` branch will be created on your local repository and will be pushed to your forked repository on GitHub. Once this branch is on your fork you will create a Pull Request for the changes to be added to the ACS project.
5860

5961
It is best practice to create a new branch each time you want to contribute to the project and only track the changes for that pull request in this branch.
@@ -68,6 +70,7 @@ $ git commit -a -m "descriptive commit message for your changes"
6870

6971
> The `-b` specifies that you want to create a new branch called `feature_x`. You only specify `-b` the first time you checkout because you are creating a new branch. Once the `feature_x` branch exists, you can later switch to it with only `git checkout feature_x`.
7072
73+
7174
Rebase `feature_x` to include updates from `upstream/main`
7275
------------------------------------------------------------
7376

@@ -89,6 +92,7 @@ $ git rebase main
8992

9093
> Now your `feature_x` branch is up-to-date with all the code in `upstream/main`.
9194
95+
9296
Make a GitHub Pull Request to contribute your changes
9397
-----------------------------------------------------
9498

@@ -103,7 +107,7 @@ $ git push origin main
103107
$ git push origin feature_x
104108
```
105109

106-
Now that the `feature_x` branch has been pushed to your GitHub repository, you can initiate the pull request.
110+
Now that the `feature_x` branch has been pushed to your GitHub repository, you can initiate the pull request.
107111

108112
To initiate the pull request, do the following:
109113

@@ -114,6 +118,7 @@ To initiate the pull request, do the following:
114118

115119
If you are requested to make modifications to your proposed changes, make the changes locally on your `feature_x` branch, re-push the `feature_x` branch to your fork. The existing pull request should automatically pick up the change and update accordingly.
116120

121+
117122
Cleaning up after a successful pull request
118123
-------------------------------------------
119124

ISSUE_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@ New line separated list of affected versions, commit ID for issues on main branc
3535
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
3636
-->
3737

38+
3839
##### OS / ENVIRONMENT
3940
<!--
4041
Information about the environment if relevant, N/A otherwise
4142
-->
4243

44+
4345
##### SUMMARY
4446
<!-- Explain the problem/feature briefly -->
4547

48+
4649
##### STEPS TO REPRODUCE
4750
<!--
4851
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.

PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ This PR...
4040
- [ ] Minor
4141
- [ ] Trivial
4242

43+
4344
### Screenshots (if appropriate):
4445

46+
4547
### How Has This Been Tested?
4648

4749
<!-- Please describe in detail how you tested your changes. -->
@@ -51,4 +53,5 @@ This PR...
5153

5254
<!-- see how your change affects other areas of the code, etc. -->
5355

56+
5457
<!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document -->

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Apache CloudStack [![Build Status](https://github.com/apache/cloudstack/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/build.yml) [![UI Build](https://github.com/apache/cloudstack/actions/workflows/ui.yml/badge.svg)](https://github.com/apache/cloudstack/actions/workflows/ui.yml) [![License Check](https://github.com/apache/cloudstack/actions/workflows/rat.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/rat.yml) [![Simulator CI](https://github.com/apache/cloudstack/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/ci.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=apache_cloudstack&metric=alert_status)](https://sonarcloud.io/dashboard?id=apache_cloudstack) [![codecov](https://codecov.io/gh/apache/cloudstack/branch/main/graph/badge.svg)](https://codecov.io/gh/apache/cloudstack)
22

3-
[![Apache CloudStack](tools/logo/acsxmas.jpg)](https://cloudstack.apache.org/)
3+
[![Apache CloudStack](tools/logo/apache_cloudstack.png)](https://cloudstack.apache.org/)
44

55
Apache CloudStack is open source software designed to deploy and manage large
66
networks of virtual machines, as a highly available, highly scalable

agent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.apache.cloudstack</groupId>
2626
<artifactId>cloudstack</artifactId>
27-
<version>4.21.0.0-SNAPSHOT</version>
27+
<version>4.20.1.0-SNAPSHOT</version>
2828
</parent>
2929
<dependencies>
3030
<dependency>

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

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ public int value() {
132132
ServerResource _resource;
133133
Link _link;
134134
Long _id;
135-
String _uuid;
136-
String _name;
137135

138136
Timer _timer = new Timer("Agent Timer");
139137
Timer certTimer;
@@ -184,10 +182,8 @@ public Agent(final IAgentShell shell, final int localAgentId, final ServerResour
184182
resource.setAgentControl(this);
185183

186184
final String value = _shell.getPersistentProperty(getResourceName(), "id");
187-
_uuid = _shell.getPersistentProperty(getResourceName(), "uuid");
188-
_name = _shell.getPersistentProperty(getResourceName(), "name");
189185
_id = value != null ? Long.parseLong(value) : null;
190-
logger.info("Initialising agent [id: {}, uuid: {}, name: {}]", ObjectUtils.defaultIfNull(_id, ""), _uuid, _name);
186+
logger.info("id is {}", ObjectUtils.defaultIfNull(_id, ""));
191187

192188
final Map<String, Object> params = new HashMap<>();
193189

@@ -216,9 +212,8 @@ public Agent(final IAgentShell shell, final int localAgentId, final ServerResour
216212
new ThreadPoolExecutor(_shell.getWorkers(), 5 * _shell.getWorkers(), 1, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(
217213
"agentRequest-Handler"));
218214

219-
logger.info("Agent [id = {}, uuid: {}, name: {}] : type = {} : zone = {} : pod = {} : workers = {} : host = {} : port = {}",
220-
ObjectUtils.defaultIfNull(_id, "new"), _uuid, _name, getResourceName(),
221-
_shell.getZone(), _shell.getPod(), _shell.getWorkers(), host, _shell.getPort());
215+
logger.info("Agent [id = {} : type = {} : zone = {} : pod = {} : workers = {} : host = {} : port = {}", ObjectUtils.defaultIfNull(_id, "new"), getResourceName(),
216+
_shell.getZone(), _shell.getPod(), _shell.getWorkers(), host, _shell.getPort());
222217
}
223218

224219
public String getVersion() {
@@ -382,28 +377,11 @@ public Long getId() {
382377
}
383378

384379
public void setId(final Long id) {
380+
logger.debug("Set agent id {}", id);
385381
_id = id;
386382
_shell.setPersistentProperty(getResourceName(), "id", Long.toString(id));
387383
}
388384

389-
public String getUuid() {
390-
return _uuid;
391-
}
392-
393-
public void setUuid(String uuid) {
394-
this._uuid = uuid;
395-
_shell.setPersistentProperty(getResourceName(), "uuid", uuid);
396-
}
397-
398-
public String getName() {
399-
return _name;
400-
}
401-
402-
public void setName(String name) {
403-
this._name = name;
404-
_shell.setPersistentProperty(getResourceName(), "name", name);
405-
}
406-
407385
private synchronized void scheduleServicesRestartTask() {
408386
if (certTimer != null) {
409387
certTimer.cancel();
@@ -616,21 +594,17 @@ public void processStartupAnswer(final Answer answer, final Response response, f
616594
return;
617595
}
618596

619-
logger.info("Process agent startup answer, agent [id: {}, uuid: {}, name: {}] connected to the server",
620-
startup.getHostId(), startup.getHostUuid(), startup.getHostName());
597+
logger.info("Process agent startup answer, agent id = {}", startup.getHostId());
621598

622599
setId(startup.getHostId());
623-
setUuid(startup.getHostUuid());
624-
setName(startup.getHostName());
625600
_pingInterval = (long)startup.getPingInterval() * 1000; // change to ms.
626601

627602
setLastPingResponseTime();
628603
scheduleWatch(link, response, _pingInterval, _pingInterval);
629604

630605
_ugentTaskPool.setKeepAliveTime(2 * _pingInterval, TimeUnit.MILLISECONDS);
631606

632-
logger.info("Startup Response Received: agent [id: {}, uuid: {}, name: {}]",
633-
startup.getHostId(), startup.getHostUuid(), startup.getHostName());
607+
logger.info("Startup Response Received: agent id = {}", getId());
634608
}
635609

636610
protected void processRequest(final Request request, final Link link) {
@@ -886,17 +860,15 @@ public void processReadyCommand(final Command cmd) {
886860
NumbersUtil.enableHumanReadableSizes = humanReadable;
887861
}
888862

889-
logger.info("Processing agent ready command, agent id = {}, uuid = {}, name = {}", ready.getHostId(), ready.getHostUuid(), ready.getHostName());
863+
logger.info("Processing agent ready command, agent id = {}", ready.getHostId());
890864
if (ready.getHostId() != null) {
891865
setId(ready.getHostId());
892-
setUuid(ready.getHostUuid());
893-
setName(ready.getHostName());
894866
}
895867

896868
verifyAgentArch(ready.getArch());
897869
processManagementServerList(ready.getMsHostList(), ready.getLbAlgorithm(), ready.getLbCheckInterval());
898870

899-
logger.info("Ready command is processed for agent [id: {}, uuid: {}, name: {}]", getId(), getUuid(), getName());
871+
logger.info("Ready command is processed for agent id = {}", getId());
900872
}
901873

902874
private void verifyAgentArch(String arch) {

0 commit comments

Comments
 (0)