Skip to content

Commit 9ca7b82

Browse files
committed
Merge branch 'master' into Health-Check-UI
Conflicts: ui/css/cloudstack3.css
2 parents 1d47458 + 42d33fc commit 9ca7b82

44 files changed

Lines changed: 1120 additions & 1109 deletions

File tree

Some content is hidden

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

‎api/src/com/cloud/agent/api/BackupSnapshotCommand.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class BackupSnapshotCommand extends SnapshotCommand {
3535
private SwiftTO swift;
3636
private S3TO s3;
3737
StorageFilerTO pool;
38+
private Long secHostId;
3839

3940
protected BackupSnapshotCommand() {
4041

@@ -49,12 +50,14 @@ protected BackupSnapshotCommand() {
4950
* @param firstBackupUuid This is the backup of the first ever snapshot taken by the volume.
5051
* @param isFirstSnapshotOfRootVolume true if this is the first snapshot of a root volume. Set the parent of the backup to null.
5152
* @param isVolumeInactive True if the volume belongs to a VM that is not running or is detached.
53+
* @param secHostId This is the Id of the secondary storage.
5254
*/
5355
public BackupSnapshotCommand(String secondaryStoragePoolURL,
5456
Long dcId,
5557
Long accountId,
5658
Long volumeId,
5759
Long snapshotId,
60+
Long secHostId,
5861
String volumePath,
5962
StoragePool pool,
6063
String snapshotUuid,
@@ -71,6 +74,7 @@ public BackupSnapshotCommand(String secondaryStoragePoolURL,
7174
this.prevBackupUuid = prevBackupUuid;
7275
this.isVolumeInactive = isVolumeInactive;
7376
this.vmName = vmName;
77+
this.secHostId = secHostId;
7478
setVolumePath(volumePath);
7579
setWait(wait);
7680
}
@@ -111,4 +115,7 @@ public Long getSnapshotId() {
111115
return snapshotId;
112116
}
113117

118+
public Long getSecHostId() {
119+
return secHostId;
120+
}
114121
}

‎api/src/com/cloud/network/NetworkModel.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,6 @@ Map<PublicIpAddress, Set<Service>> getIpToServices(List<? extends PublicIpAddres
257257
void checkIp6Parameters(String startIPv6, String endIPv6, String ip6Gateway, String ip6Cidr) throws InvalidParameterValueException;
258258

259259
void checkRequestedIpAddresses(long networkId, String ip4, String ip6) throws InvalidParameterValueException;
260+
261+
String getStartIpv6Address(long id);
260262
}

‎api/src/com/cloud/vm/UserVmService.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,9 @@ UserVm createAdvancedVirtualMachine(DataCenter zone, ServiceOffering serviceOffe
356356
* @param cmd
357357
* - the command specifying vmId and new serviceOfferingId
358358
* @return the vm
359+
* @throws ResourceAllocationException
359360
*/
360-
UserVm upgradeVirtualMachine(UpgradeVMCmd cmd);
361+
UserVm upgradeVirtualMachine(UpgradeVMCmd cmd) throws ResourceAllocationException;
361362

362363
UserVm stopVirtualMachine(long vmId, boolean forced) throws ConcurrentOperationException;
363364

‎api/src/org/apache/cloudstack/api/ApiConstants.java.orig‎

Lines changed: 0 additions & 468 deletions
This file was deleted.

‎api/src/org/apache/cloudstack/api/command/user/template/ListTemplatesCmd.java‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ public class ListTemplatesCmd extends BaseListTaggedResourcesCmd {
5555
@Parameter(name=ApiConstants.NAME, type=CommandType.STRING, description="the template name")
5656
private String templateName;
5757

58-
@Parameter(name=ApiConstants.TEMPLATE_FILTER, type=CommandType.STRING, required=true, description="possible values are \"featured\", \"self\", \"self-executable\", \"executable\", and \"community\"." +
59-
"* featured-templates that are featured and are public" +
60-
"* self-templates that have been registered/created by the owner" +
61-
"* selfexecutable-templates that have been registered/created by the owner that can be used to deploy a new VM" +
62-
"* executable-all templates that can be used to deploy a new VM* community-templates that are public.")
58+
@Parameter(name=ApiConstants.TEMPLATE_FILTER, type=CommandType.STRING, required=true, description="possible values are \"featured\", \"self\", \"selfexecutable\",\"sharedexecutable\",\"executable\", and \"community\". " +
59+
"* featured : templates that have been marked as featured and public. " +
60+
"* self : templates that have been registered or created by the calling user. " +
61+
"* selfexecutable : same as self, but only returns templates that can be used to deploy a new VM. " +
62+
"* sharedexecutable : templates ready to be deployed that have been granted to the calling user by another user. " +
63+
"* executable : templates that are owned by the calling user, or public templates, that can be used to deploy a VM. " +
64+
"* community : templates that have been marked as public but not featured. " +
65+
"* all : all templates (only usable by admins).")
6366
private String templateFilter;
6467

6568
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.UUID, entityType = ZoneResponse.class,

‎api/src/org/apache/cloudstack/api/command/user/vm/UpgradeVMCmd.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
import org.apache.cloudstack.api.BaseCmd;
2323
import org.apache.cloudstack.api.Parameter;
2424
import org.apache.cloudstack.api.ServerApiException;
25-
import org.apache.cloudstack.api.response.DiskOfferingResponse;
2625
import org.apache.cloudstack.api.response.ServiceOfferingResponse;
2726
import org.apache.cloudstack.api.response.UserVmResponse;
2827
import org.apache.log4j.Logger;
2928

3029
import com.cloud.exception.InvalidParameterValueException;
30+
import com.cloud.exception.ResourceAllocationException;
3131
import com.cloud.offering.ServiceOffering;
3232
import com.cloud.user.Account;
3333
import com.cloud.user.UserContext;
@@ -88,7 +88,7 @@ public long getEntityOwnerId() {
8888
}
8989

9090
@Override
91-
public void execute(){
91+
public void execute() throws ResourceAllocationException{
9292
UserContext.current().setEventDetails("Vm Id: "+getId());
9393

9494
ServiceOffering serviceOffering = _configService.getServiceOffering(serviceOfferingId);

‎api/test/org/apache/cloudstack/api/agent/test/BackupSnapshotAnswerTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void setUp() {
3737
StoragePool pool = Mockito.mock(StoragePool.class);
3838

3939
bsc = new BackupSnapshotCommand(
40-
"secondaryStoragePoolURL", 101L, 102L, 103L, 104L,
40+
"secondaryStoragePoolURL", 101L, 102L, 103L, 104L, 105L,
4141
"volumePath", pool, "snapshotUuid", "snapshotName",
4242
"prevSnapshotUuid", "prevBackupUuid", false, "vmName", 5);
4343
bsa = new BackupSnapshotAnswer(bsc, true, "results", "bussname", false);

‎api/test/org/apache/cloudstack/api/agent/test/BackupSnapshotCommandTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ public boolean isInMaintenance() {
147147

148148
BackupSnapshotCommand bsc = new BackupSnapshotCommand(
149149
"http://secondary.Storage.Url",
150-
101L, 102L, 103L, 104L, "vPath", pool,
150+
101L, 102L, 103L, 104L, 105L, "vPath", pool,
151151
"420fa39c-4ef1-a83c-fd93-46dc1ff515ae", "sName",
152152
"9012793e-0657-11e2-bebc-0050568b0057",
153153
"7167e0b2-f5b0-11e1-8414-0050568b0057", false, "vmName", 5);
154154

155155
BackupSnapshotCommand bsc1 = new BackupSnapshotCommand(
156156
"http://secondary.Storage.Url",
157-
101L, 102L, 103L, 104L, "vPath", pool,
157+
101L, 102L, 103L, 104L, 105L,"vPath", pool,
158158
"420fa39c-4ef1-a83c-fd93-46dc1ff515ae", "sName",
159159
"9012793e-0657-11e2-bebc-0050568b0057",
160160
"7167e0b2-f5b0-11e1-8414-0050568b0057", false, "vmName", 5);

‎client/WEB-INF/classes/resources/messages.properties‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818

1919
#new labels (begin) **********************************************************************************************
20+
label.use.vm.ip=Use VM IP:
2021
label.menu.regions=Regions
2122
label.region=Region
2223
label.add.region=Add Region

‎debian/cloudstack-management.install‎

Lines changed: 4 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
@@ -18,6 +18,8 @@
1818
/etc/cloudstack/server/*
1919
/etc/cloudstack/management/*
2020
/etc/init.d/cloudstack-management
21+
/etc/security/limits.d/cloudstack-limits.conf
22+
/etc/sudoers.d/cloudstack
2123
/var/cache/cloudstack/management
2224
/var/cache/cloudstack/management/work
2325
/var/cache/cloudstack/management/temp

0 commit comments

Comments
 (0)