Skip to content

Commit 4db539b

Browse files
authored
Merge branch 'main' into template-restriction
2 parents a4b7770 + 3fd9250 commit 4db539b

File tree

939 files changed

+33795
-23646
lines changed

Some content is hidden

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

939 files changed

+33795
-23646
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
system
1+
3.6

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jdk:
2525
- openjdk11
2626

2727
python:
28-
- "2.7"
28+
- "3.9"
2929

3030
node_js:
3131
- 12
@@ -164,6 +164,7 @@ env:
164164

165165
- TESTS="component/test_project_usage
166166
component/test_protocol_number_security_group
167+
component/test_public_ip
167168
component/test_resource_limits"
168169

169170
- TESTS="component/test_regions_accounts

CONTRIBUTING.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Bug fixes
1414
It's very important that we can easily track bug fix commits, so their hashes should remain the same in all branches.
1515
Therefore, a pull request (PR) that fixes a bug, should be sent against a release branch.
1616
This can be either the "current release" or the "previous release", depending on which ones are maintained.
17-
Since the goal is a stable master, bug fixes should be "merged forward" to the next branch in order: "previous release" -> "current release" -> master (in other words: old to new)
17+
Since the goal is a stable main, bug fixes should be "merged forward" to the next branch in order: "previous release" -> "current release" -> main (in other words: old to new)
1818

1919
Developing new features
2020
-----------------------
2121

22-
Development should be done in a feature branch, branched off of master.
23-
Send a PR(steps below) to get it into master (2x LGTM applies).
24-
PR will only be merged when master is open, will be held otherwise until master is open again.
22+
Development should be done in a feature branch, branched off of main.
23+
Send a PR(steps below) to get it into main (2x LGTM applies).
24+
PR will only be merged when main is open, will be held otherwise until main is open again.
2525
No back porting / cherry-picking features to existing branches!
2626

2727
PendingReleaseNotes file
@@ -46,17 +46,17 @@ On your computer, follow these steps to setup a local repository for working on
4646
$ git clone https://github.com/YOUR_ACCOUNT/cloudstack.git
4747
$ cd cloudstack
4848
$ git remote add upstream https://github.com/apache/cloudstack.git
49-
$ git checkout master
49+
$ git checkout main
5050
$ git fetch upstream
51-
$ git rebase upstream/master
51+
$ git rebase upstream/main
5252
```
5353

5454

5555
Making changes
5656
--------------
5757

5858

59-
It is important that you create a new branch to make changes on and that you do not change the `master` branch (other than to rebase in changes from `upstream/master`). 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.
59+
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.
6060

6161
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.
6262

@@ -71,26 +71,26 @@ $ git commit -a -m "descriptive commit message for your changes"
7171
> 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`.
7272
7373

74-
Rebase `feature_x` to include updates from `upstream/master`
74+
Rebase `feature_x` to include updates from `upstream/main`
7575
------------------------------------------------------------
7676

77-
It is important that you maintain an up-to-date `master` branch in your local repository. This is done by rebasing in the code changes from `upstream/master` (the official ACS project repository) into your local repository. You will want to do this before you start working on a feature as well as right before you submit your changes as a pull request. I recommend you do this process periodically while you work to make sure you are working off the most recent project code.
77+
It is important that you maintain an up-to-date `main` branch in your local repository. This is done by rebasing in the code changes from `upstream/main` (the official ACS project repository) into your local repository. You will want to do this before you start working on a feature as well as right before you submit your changes as a pull request. I recommend you do this process periodically while you work to make sure you are working off the most recent project code.
7878

7979
This process will do the following:
8080

81-
1. Checkout your local `master` branch
82-
2. Synchronize your local `master` branch with the `upstream/master` so you have all the latest changes from the project
81+
1. Checkout your local `main` branch
82+
2. Synchronize your local `main` branch with the `upstream/main` so you have all the latest changes from the project
8383
3. Rebase the latest project code into your `feature_x` branch so it is up-to-date with the upstream code
8484

8585
``` bash
86-
$ git checkout master
86+
$ git checkout main
8787
$ git fetch upstream
88-
$ git rebase upstream/master
88+
$ git rebase upstream/main
8989
$ git checkout feature_x
90-
$ git rebase master
90+
$ git rebase main
9191
```
9292

93-
> Now your `feature_x` branch is up-to-date with all the code in `upstream/master`.
93+
> Now your `feature_x` branch is up-to-date with all the code in `upstream/main`.
9494
9595

9696
Make a GitHub Pull Request to contribute your changes
@@ -100,10 +100,10 @@ When you are happy with your changes and you are ready to contribute them, you w
100100

101101
Please include JIRA id, detailed information about the bug/feature, what all tests are executed, how the reviewer can test this feature etc. Incase of UI PRs, a screenshot is preferred.
102102

103-
> **IMPORTANT:** Make sure you have rebased your `feature_x` branch to include the latest code from `upstream/master` _before_ you do this.
103+
> **IMPORTANT:** Make sure you have rebased your `feature_x` branch to include the latest code from `upstream/main` _before_ you do this.
104104
105105
``` bash
106-
$ git push origin master
106+
$ git push origin main
107107
$ git push origin feature_x
108108
```
109109

@@ -113,7 +113,7 @@ To initiate the pull request, do the following:
113113

114114
1. In your browser, navigate to your forked repository: [https://github.com/YOUR_ACCOUNT/cloudstack](https://github.com/YOUR_ACCOUNT/cloudstack)
115115
2. Click the new button called '**Compare & pull request**' that showed up just above the main area in your forked repository
116-
3. Validate the pull request will be into the upstream `master` and will be from your `feature_x` branch
116+
3. Validate the pull request will be into the upstream `main` and will be from your `feature_x` branch
117117
4. Enter a detailed description of the work you have done and then click '**Send pull request**'
118118

119119
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.
@@ -122,14 +122,14 @@ If you are requested to make modifications to your proposed changes, make the ch
122122
Cleaning up after a successful pull request
123123
-------------------------------------------
124124

125-
Once the `feature_x` branch has been committed into the `upstream/master` branch, your local `feature_x` branch and the `origin/feature_x` branch are no longer needed. If you want to make additional changes, restart the process with a new branch.
125+
Once the `feature_x` branch has been committed into the `upstream/main` branch, your local `feature_x` branch and the `origin/feature_x` branch are no longer needed. If you want to make additional changes, restart the process with a new branch.
126126

127-
> **IMPORTANT:** Make sure that your changes are in `upstream/master` before you delete your `feature_x` and `origin/feature_x` branches!
127+
> **IMPORTANT:** Make sure that your changes are in `upstream/main` before you delete your `feature_x` and `origin/feature_x` branches!
128128
129129
You can delete these deprecated branches with the following:
130130

131131
``` bash
132-
$ git checkout master
132+
$ git checkout main
133133
$ git branch -D feature_x
134134
$ git push origin :feature_x
135135
```

ISSUE_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Verify first that your issue/request is not already reported on GitHub.
3-
Also test if the latest release and master branch are affected too.
3+
Also test if the latest release and main branch are affected too.
44
Always add information AFTER of these HTML comments, but no need to delete the comments.
55
-->
66

@@ -23,7 +23,7 @@ Categorize the issue, e.g. API, VR, VPN, UI, etc.
2323

2424
##### CLOUDSTACK VERSION
2525
<!--
26-
New line separated list of affected versions, commit ID for issues on master branch.
26+
New line separated list of affected versions, commit ID for issues on main branch.
2727
-->
2828

2929
~~~

PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ This PR...
4848
<!-- see how your change affects other areas of the code, etc. -->
4949

5050

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

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Apache CloudStack [![Build Status](https://travis-ci.org/apache/cloudstack.svg?branch=master)](https://travis-ci.org/apache/cloudstack) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=apachecloudstack&metric=alert_status)](https://sonarcloud.io/dashboard?id=apachecloudstack) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=apachecloudstack&metric=ncloc)](https://sonarcloud.io/dashboard?id=apachecloudstack) ![GitHub language count](https://img.shields.io/github/languages/count/apache/cloudstack.svg) ![GitHub top language](https://img.shields.io/github/languages/top/apache/cloudstack.svg)
1+
# Apache CloudStack [![Build Status](https://travis-ci.org/apache/cloudstack.svg?branch=main)](https://travis-ci.org/apache/cloudstack) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=apachecloudstack&metric=alert_status)](https://sonarcloud.io/dashboard?id=apachecloudstack) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=apachecloudstack&metric=ncloc)](https://sonarcloud.io/dashboard?id=apachecloudstack) ![GitHub language count](https://img.shields.io/github/languages/count/apache/cloudstack.svg) ![GitHub top language](https://img.shields.io/github/languages/top/apache/cloudstack.svg)
22

33
![Apache CloudStack](tools/logo/apache_cloudstack.png)
44

@@ -58,7 +58,7 @@ via Github pull requests.
5858
* Developer [wiki](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home)
5959
* [Release notes](http://docs.cloudstack.apache.org/projects/cloudstack-release-notes)
6060
* Design [documents](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Design)
61-
* API [documentation](http://cloudstack.apache.org/docs/api)
61+
* API [documentation](https://cloudstack.apache.org/api.html)
6262
* How to [contribute](CONTRIBUTING.md)
6363

6464
## Getting Involved and Contributing
@@ -81,11 +81,7 @@ Mailing lists:
8181
- [Issues Mailing List](mailto:[email protected])
8282
- [Marketing Mailing List](mailto:[email protected])
8383

84-
IRC, join us on irc.freenode.net on:
85-
- `#cloudstack`: General Apache CloudStack conversation and end user support
86-
- `#cloudstack-dev`: Development discussions
87-
88-
Report and/or check bugs on [JIRA](https://issues.apache.org/jira/browse/CLOUDSTACK) and check our
84+
Report and/or check bugs on [Github](https://github.com/apache/cloudstack/issues) and check our
8985
developer [page](http://cloudstack.apache.org/developers.html) for contributing code.
9086

9187
## News and Events

api/src/main/java/com/cloud/agent/api/Command.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public static enum OnError {
3737
@LogLevel(Log4jLevel.Trace)
3838
protected Map<String, String> contextMap = new HashMap<String, String>();
3939
private int wait; //in second
40+
private boolean bypassHostMaintenance = false;
4041

4142
protected Command() {
4243
this.wait = 0;
@@ -74,6 +75,14 @@ public boolean allowCaching() {
7475
return true;
7576
}
7677

78+
public boolean isBypassHostMaintenance() {
79+
return bypassHostMaintenance;
80+
}
81+
82+
public void setBypassHostMaintenance(boolean bypassHostMaintenance) {
83+
this.bypassHostMaintenance = bypassHostMaintenance;
84+
}
85+
7786
@Override
7887
public boolean equals(Object o) {
7988
if (this == o) return true;

api/src/main/java/com/cloud/event/EventTypes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ public class EventTypes {
374374
// Primary storage pool
375375
public static final String EVENT_ENABLE_PRIMARY_STORAGE = "ENABLE.PS";
376376
public static final String EVENT_DISABLE_PRIMARY_STORAGE = "DISABLE.PS";
377+
public static final String EVENT_SYNC_STORAGE_POOL = "SYNC.STORAGE.POOL";
377378

378379
// VPN
379380
public static final String EVENT_REMOTE_ACCESS_VPN_CREATE = "VPN.REMOTE.ACCESS.CREATE";

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ public static String[] toStrings(Status... states) {
131131
s_fsm.addTransition(Status.Up, Event.PingTimeout, Status.Alert);
132132
s_fsm.addTransition(Status.Up, Event.AgentDisconnected, Status.Alert);
133133
s_fsm.addTransition(Status.Up, Event.ShutdownRequested, Status.Disconnected);
134+
s_fsm.addTransition(Status.Disconnected, Event.ShutdownRequested, Status.Disconnected);
135+
s_fsm.addTransition(Status.Down, Event.ShutdownRequested, Status.Disconnected);
136+
s_fsm.addTransition(Status.Rebalancing, Event.ShutdownRequested, Status.Disconnected);
134137
s_fsm.addTransition(Status.Up, Event.HostDown, Status.Down);
135138
s_fsm.addTransition(Status.Up, Event.Ping, Status.Up);
136139
s_fsm.addTransition(Status.Up, Event.AgentConnected, Status.Connecting);

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@ public interface Site2SiteCustomerGateway extends ControlledEntity, Identity, In
4343

4444
public Date getRemoved();
4545

46+
public Boolean getSplitConnections();
47+
48+
public String getIkeVersion();
49+
4650
String getName();
4751
}

0 commit comments

Comments
 (0)