Skip to content

Commit 3e90ab6

Browse files
authored
Merge branch 'main' into fix-spelling-grammar-case-whitespace
2 parents a4368eb + b106d6e commit 3e90ab6

File tree

345 files changed

+13250
-2557
lines changed

Some content is hidden

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

345 files changed

+13250
-2557
lines changed

.asf.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ github:
6363
protected_branches: ~
6464

6565
notifications:
66-
67-
66+
67+
6868
pullrequests: [email protected]
69-
discussions: [email protected]
69+
discussions: [email protected]

.github/linters/.yamllint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
extends: relaxed
19+
20+
rules:
21+
line-length:
22+
max: 400 # Very forgiving for GitHub Actions and infrastructure files
23+
indentation: disable # Disable indentation checking for existing files
24+
comments: disable # Disable comment formatting checks
25+
brackets: disable # Disable bracket spacing checks
26+
colons:
27+
max-spaces-after: -1 # Allow any number of spaces after colon
28+
max-spaces-before: 0
29+
document-start: disable # Many files don't have ---
30+
truthy:
31+
allowed-values: ['true', 'false', 'on', 'off', 'yes', 'no']

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,13 @@ repos:
9494
args: [--config=.github/linters/.markdown-lint.yml]
9595
types: [markdown]
9696
files: \.(md|mdown|markdown)$
97+
- repo: https://github.com/adrienverge/yamllint
98+
rev: v1.37.1
99+
hooks:
100+
- id: yamllint
101+
name: run yamllint
102+
description: check YAML files with yamllint
103+
args: [--config-file=.github/linters/.yamllint.yml]
104+
types: [yaml]
105+
files: \.ya?ml$
106+
exclude: ^.*k8s-.*\.ya?ml$

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,12 @@ Bug ID | Description
644644
Version 4.2.1
645645
-------------
646646

647-
Release notes contain the list of [bug fixes](http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/version-4.2.html#issues-fixed-4.2.1)
647+
Release notes contain the list of [bug fixes](https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/version-4.2.html#issues-fixed-4.2.1)
648648

649649
Version 4.2.0
650650
-------------
651651
Released on October 1 2013.
652-
Release notes contain the list of [bug fixes](http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Release_Notes/index.html)
652+
Release notes contain the list of [bug fixes](https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Release_Notes/index.html)
653653

654654
Version 4.1.0
655655
-------------

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Apache CloudStack Installation basics
22

33
This document describes how to develop, build, package and install Apache
4-
CloudStack. For more information please refer to the official [documentation](http://docs.cloudstack.apache.org)
4+
CloudStack. For more information please refer to the official [documentation](https://docs.cloudstack.apache.org)
55
or the developer [wiki](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home).
66

77
Apache CloudStack developers use various platforms for development, this guide
@@ -41,7 +41,7 @@ Start the MySQL service:
4141

4242
### Using jenv and/or pyenv for Version Management
4343

44-
CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](http://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session.
44+
CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](https://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session.
4545

4646
Following installation, execute the following commands to configure jenv and pyenv for use with CloudStack development:
4747

@@ -171,7 +171,7 @@ All the rpm packages will be created in `dist/rpmbuild/RPMS/x86_64` directory.
171171

172172
## Notes
173173

174-
If you will be using Xen as your hypervisor, please download [vhd-util](http://download.cloudstack.org/tools/vhd-util)
174+
If you will be using Xen as your hypervisor, please download [vhd-util](https://download.cloudstack.org/tools/vhd-util)
175175

176176
If management server is installed on RHEL/CentOS, then copy vhd-util into:
177177

PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ This PR...
2222
- [ ] Bug fix (non-breaking change which fixes an issue)
2323
- [ ] Enhancement (improves an existing feature and functionality)
2424
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
25-
- [ ] build/CI
26-
- [ ] test (unit or integration test code)
25+
- [ ] Build/CI
26+
- [ ] Test (unit or integration test code)
2727

2828
### Feature/Enhancement Scale or Bug Severity
2929

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ OVM and LXC containers.
3131
Users can manage their cloud with an easy to use Web interface, command line
3232
tools, and/or a full-featured query based API.
3333

34-
For more information on Apache CloudStack, please visit the [website](http://cloudstack.apache.org)
34+
For more information on Apache CloudStack, please visit the [website](https://cloudstack.apache.org)
3535

3636
## Who Uses CloudStack?
3737

@@ -88,10 +88,10 @@ via GitHub pull requests.
8888
## Getting Involved and Contributing
8989

9090
Interested in helping out with Apache CloudStack? Great! We welcome
91-
participation from anybody willing to work [The Apache Way](http://theapacheway.com) and make a
91+
participation from anybody willing to work [The Apache Way](https://theapacheway.com) and make a
9292
contribution. Note that you do not have to be a developer in order to contribute
9393
to Apache CloudStack. We need folks to help with documentation, translation,
94-
promotion etc. See our contribution [page](http://cloudstack.apache.org/contribute.html).
94+
promotion etc. See our contribution [page](https://cloudstack.apache.org/contribute.html).
9595

9696
If you are a frequent contributors, you can request to be added as collaborators
9797
(see https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-AssigningexternalcollaboratorswiththetriageroleonGitHub)
@@ -102,7 +102,7 @@ You may do so by sharing your GitHub users ID or raise a GitHub issue.
102102

103103
If you're interested in learning more or participating in the Apache CloudStack
104104
project, the mailing lists are the best way to do that. While the project has
105-
several communications channels, the [mailing lists](http://cloudstack.apache.org/mailing-lists.html) are the most active and the
105+
several communications channels, the [mailing lists](https://cloudstack.apache.org/mailing-lists.html) are the most active and the
106106
official channels for making decisions about the project itself.
107107

108108
Mailing lists:
@@ -122,7 +122,7 @@ released version of CloudStack, please report it to `[email protected]` with
122122
details about the vulnerability, how it might be exploited, and any additional
123123
information that might be useful.
124124

125-
For more details, please visit our security [page](http://cloudstack.apache.org/security.html).
125+
For more details, please visit our security [page](https://cloudstack.apache.org/security.html).
126126

127127
## License
128128

agent/conf/agent.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,3 +451,9 @@ iscsi.session.cleanup.enabled=false
451451

452452
# If set to true, creates VMs as full clones of their templates on KVM hypervisor. Creates as linked clones otherwise.
453453
# create.full.clone=false
454+
455+
# Instance conversion TMPDIR env var
456+
#convert.instance.env.tmpdir=
457+
458+
# Instance conversion VIRT_V2V_TMPDIR env var
459+
#convert.instance.env.virtv2v.tmpdir=

agent/src/main/java/com/cloud/agent/properties/AgentProperties.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,20 @@ public Property<Integer> getWorkers() {
794794
*/
795795
public static final Property<Boolean> VIRTV2V_VERBOSE_ENABLED = new Property<>("virtv2v.verbose.enabled", false);
796796

797+
/**
798+
* Set env TMPDIR var for virt-v2v Instance Conversion from VMware to KVM
799+
* Data type: String.<br>
800+
* Default value: <code>null</code>
801+
*/
802+
public static final Property<String> CONVERT_ENV_TMPDIR = new Property<>("convert.instance.env.tmpdir", null, String.class);
803+
804+
/**
805+
* Set env VIRT_V2V_TMPDIR var for virt-v2v Instance Conversion from VMware to KVM
806+
* Data type: String.<br>
807+
* Default value: <code>null</code>
808+
*/
809+
public static final Property<String> CONVERT_ENV_VIRTV2V_TMPDIR = new Property<>("convert.instance.env.virtv2v.tmpdir", null, String.class);
810+
797811
/**
798812
* BGP controll CIDR
799813
* Data type: String.<br>

api/src/main/java/com/cloud/configuration/ConfigurationService.java

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -108,36 +108,22 @@ public interface ConfigurationService {
108108
/**
109109
* Updates a service offering
110110
*
111-
* @param serviceOfferingId
112-
* @param userId
113-
* @param name
114-
* @param displayText
115-
* @param offerHA
116-
* @param useVirtualNetwork
117-
* @param tags
118111
* @return updated service offering
119112
*/
120113
ServiceOffering updateServiceOffering(UpdateServiceOfferingCmd cmd);
121114

122115
/**
123116
* Deletes a service offering
124-
*
125-
* @param userId
126-
* @param serviceOfferingId
127117
*/
128118
boolean deleteServiceOffering(DeleteServiceOfferingCmd cmd);
129119

130120
/**
131121
* Retrieve ID of domains for a service offering
132-
*
133-
* @param serviceOfferingId
134122
*/
135123
List<Long> getServiceOfferingDomains(Long serviceOfferingId);
136124

137125
/**
138126
* Retrieve ID of domains for a service offering
139-
*
140-
* @param serviceOfferingId
141127
*/
142128
List<Long> getServiceOfferingZones(Long serviceOfferingId);
143129

@@ -147,7 +133,6 @@ public interface ConfigurationService {
147133
* @param cmd
148134
* - the command specifying diskOfferingId, name, description, tags
149135
* @return updated disk offering
150-
* @throws
151136
*/
152137
DiskOffering updateDiskOffering(UpdateDiskOfferingCmd cmd);
153138

@@ -157,34 +142,22 @@ public interface ConfigurationService {
157142
* @param cmd
158143
* - the command specifying disk offering id
159144
* @return true or false
160-
* @throws
161145
*/
162146
boolean deleteDiskOffering(DeleteDiskOfferingCmd cmd);
163147

164148
/**
165149
* Creates a new disk offering
166-
*
167-
* @param domainId
168-
* @param name
169-
* @param description
170-
* @param numGibibytes
171-
* @param mirrored
172-
* @param size
173150
* @return ID
174151
*/
175152
DiskOffering createDiskOffering(CreateDiskOfferingCmd cmd);
176153

177154
/**
178155
* Retrieve ID of domains for a disk offering
179-
*
180-
* @param diskOfferingId
181156
*/
182157
List<Long> getDiskOfferingDomains(Long diskOfferingId);
183158

184159
/**
185160
* Retrieve ID of domains for a disk offering
186-
*
187-
* @param diskOfferingId
188161
*/
189162
List<Long> getDiskOfferingZones(Long diskOfferingId);
190163

@@ -207,8 +180,6 @@ public interface ConfigurationService {
207180
* TODO
208181
* @param storageAccessGroups
209182
* @return the new pod if successful, null otherwise
210-
* @throws
211-
* @throws
212183
*/
213184
Pod createPod(long zoneId, String name, String startIp, String endIp, String gateway, String netmask, String allocationState, List<String> storageAccessGroups);
214185

@@ -228,8 +199,7 @@ public interface ConfigurationService {
228199
/**
229200
* Updates a mutually exclusive IP range in the pod.
230201
* @param cmd - The command specifying pod ID, current Start IP, current End IP, new Start IP, new End IP.
231-
* @throws com.cloud.exception.ConcurrentOperationException
232-
* @return Success
202+
* @throws com.cloud.exception.ConcurrentOperationException when this pod is already being accessed
233203
*/
234204
void updatePodIpRange(UpdatePodManagementNetworkIpRangeCmd cmd) throws ConcurrentOperationException;
235205

@@ -250,9 +220,6 @@ public interface ConfigurationService {
250220

251221
/**
252222
* Edits a pod in the database. Will not allow you to edit pods that are being used anywhere in the system.
253-
*
254-
* @param UpdatePodCmd
255-
* api command
256223
*/
257224
Pod editPod(UpdatePodCmd cmd);
258225

@@ -262,17 +229,12 @@ public interface ConfigurationService {
262229
* @param cmd
263230
* - the command containing podId
264231
* @return true or false
265-
* @throws ,
266232
*/
267233
boolean deletePod(DeletePodCmd cmd);
268234

269235
/**
270236
* Creates a new zone
271-
*
272-
* @param cmd
273237
* @return the zone if successful, null otherwise
274-
* @throws
275-
* @throws
276238
*/
277239
DataCenter createZone(CreateZoneCmd cmd);
278240

@@ -295,22 +257,7 @@ public interface ConfigurationService {
295257
* Adds a VLAN to the database, along with an IP address range. Can add three types of VLANs: (1) zone-wide VLANs on
296258
* the
297259
* virtual public network (2) pod-wide direct attached VLANs (3) account-specific direct attached VLANs
298-
*
299-
* @param userId
300-
* @param vlanType
301-
* - either "DomR" (VLAN for a virtual public network) or "DirectAttached" (VLAN for IPs that will be
302-
* directly
303-
* attached to UserVMs)
304-
* @param zoneId
305-
* @param accountId
306-
* @param podId
307-
* @param add
308-
* @param vlanId
309-
* @param gateway
310-
* @param startIP
311-
* @param endIP
312260
* @throws ResourceAllocationException TODO
313-
* @throws
314261
* @return The new Vlan object
315262
*/
316263
Vlan createVlanAndPublicIpRange(CreateVlanIpRangeCmd cmd) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException,
@@ -325,9 +272,6 @@ Vlan updateVlanAndPublicIpRange(UpdateVlanIpRangeCmd cmd) throws ConcurrentOpera
325272
/**
326273
* Marks the account with the default zone-id.
327274
*
328-
* @param accountName
329-
* @param domainId
330-
* @param defaultZoneId
331275
* @return The new account object
332276
*/
333277
Account markDefaultZone(String accountName, long domainId, long defaultZoneId);
@@ -349,14 +293,12 @@ Vlan updateVlanAndPublicIpRange(UpdateVlanIpRangeCmd cmd) throws ConcurrentOpera
349293
/**
350294
* Retrieve ID of domains for a network offering
351295
*
352-
* @param networkOfferingId
353296
*/
354297
List<Long> getNetworkOfferingDomains(Long networkOfferingId);
355298

356299
/**
357300
* Retrieve ID of domains for a network offering
358301
*
359-
* @param networkOfferingId
360302
*/
361303
List<Long> getNetworkOfferingZones(Long networkOfferingId);
362304

0 commit comments

Comments
 (0)