Skip to content

Commit d49d6d1

Browse files
Merge branch 'master' into component-tests-sanity
2 parents 2fb90f3 + 8acb090 commit d49d6d1

File tree

353 files changed

+8184
-2879
lines changed

Some content is hidden

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

353 files changed

+8184
-2879
lines changed

.travis.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ env:
3232
global:
3333
- PATH=$HOME/.local/bin:$PATH
3434
matrix:
35-
- TESTS="smoke/test_affinity_groups
35+
- TESTS="smoke/test_accounts
36+
smoke/test_affinity_groups
3637
smoke/test_affinity_groups_projects
3738
smoke/test_certauthority_root
3839
smoke/test_deploy_vgpu_enabled_vm
@@ -47,6 +48,8 @@ env:
4748

4849
- TESTS="smoke/test_hostha_kvm
4950
smoke/test_hostha_simulator
51+
smoke/test_host_annotations
52+
smoke/test_host_maintenance
5053
smoke/test_hosts
5154
smoke/test_internal_lb
5255
smoke/test_iso
@@ -66,12 +69,14 @@ env:
6669
smoke/test_over_provisioning
6770
smoke/test_password_server
6871
smoke/test_portable_publicip
69-
smoke/test_primary_storage
72+
smoke/test_portforwardingrules"
73+
74+
- TESTS="smoke/test_primary_storage
7075
smoke/test_privategw_acl
76+
smoke/test_projects
7177
smoke/test_public_ip_range
72-
smoke/test_pvlan"
73-
74-
- TESTS="smoke/test_regions
78+
smoke/test_pvlan
79+
smoke/test_regions
7580
smoke/test_reset_vm_on_reboot
7681
smoke/test_resource_detail
7782
smoke/test_router_dhcphosts
@@ -86,6 +91,7 @@ env:
8691
smoke/test_ssvm
8792
smoke/test_staticroles
8893
smoke/test_templates
94+
smoke/test_usage
8995
smoke/test_usage_events
9096
smoke/test_vm_life_cycle
9197
smoke/test_vm_snapshots
@@ -99,7 +105,6 @@ env:
99105
smoke/misc/test_vm_sync"
100106

101107
- TESTS="component/find_hosts_for_migration
102-
component/test_accounts
103108
component/test_acl_isolatednetwork_delete
104109
component/test_acl_listsnapshot
105110
component/test_acl_listvm
@@ -108,6 +113,11 @@ env:
108113
component/test_affinity_groups_projects
109114
component/test_allocation_states
110115
component/test_cpu_limits"
116+
component/test_affinity_groups_projects"
117+
118+
- TESTS="component/test_acl_sharednetwork_deployVM-impersonation
119+
component/test_cpu_domain_limits
120+
component/test_volumes"
111121

112122
- TESTS="component/test_acl_sharednetwork_deployVM-impersonation
113123
component/test_affinity_groups_projects
@@ -116,6 +126,7 @@ env:
116126
- TESTS="component/test_cpu_domain_limits"
117127

118128
- TESTS="component/test_cpu_max_limits
129+
component/test_acl_isolatednetwork
119130
component/test_cpu_project_limits
120131
component/test_deploy_vm_userdata_multi_nic
121132
component/test_egress_fw_rules
@@ -132,10 +143,10 @@ env:
132143
component/test_non_contiguous_vlan
133144
component/test_persistent_networks"
134145

135-
- TESTS="component/test_projects
146+
- TESTS="component/test_project_limits
136147
component/test_project_configs
137148
component/test_project_usage
138-
component/test_regions
149+
component/test_project_resources
139150
component/test_regions_accounts
140151
component/test_routers
141152
component/test_snapshots"
@@ -144,14 +155,15 @@ env:
144155

145156
- TESTS="component/test_project_limits
146157
component/test_resource_limits"
158+
component/test_stopped_vm"
159+
147160

148-
- TESTS="component/test_stopped_vm
161+
- TESTS="component/test_resource_limits
149162
component/test_tags
150163
component/test_templates
151-
component/test_update_vm
152-
component/test_usage"
164+
component/test_update_vm"
153165

154-
- TESTS="component/test_volumes
166+
- TESTS="component/test_vpc
155167
component/test_vpc_network
156168
component/test_vpc_offerings
157169
component/test_vpn_users"

agent/src/com/cloud/agent/dao/impl/PropertiesStorage.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import java.util.Map;
2424
import java.util.Properties;
2525

26-
import javax.ejb.Local;
27-
2826
import org.apache.commons.io.IOUtils;
2927
import org.apache.log4j.Logger;
3028

@@ -37,7 +35,6 @@
3735
* @config {@table || Param Name | Description | Values | Default || || path |
3836
* path to the properties _file | String | db/db.properties || * }
3937
**/
40-
@Local(value = {StorageComponent.class})
4138
public class PropertiesStorage implements StorageComponent {
4239
private static final Logger s_logger = Logger.getLogger(PropertiesStorage.class);
4340
Properties _properties = new Properties();

agent/src/com/cloud/agent/dhcp/FakeDhcpSnooper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424
import java.util.concurrent.ConcurrentHashMap;
2525
import java.util.concurrent.ConcurrentLinkedQueue;
2626

27-
import javax.ejb.Local;
2827
import javax.naming.ConfigurationException;
2928

3029
import org.apache.log4j.Logger;
3130

3231
import com.cloud.utils.Pair;
3332
import com.cloud.utils.net.NetUtils;
3433

35-
@Local(value = {DhcpSnooper.class})
3634
public class FakeDhcpSnooper implements DhcpSnooper {
3735
private static final Logger s_logger = Logger.getLogger(FakeDhcpSnooper.class);
3836
private Queue<String> _ipAddresses = new ConcurrentLinkedQueue<String>();

agent/src/com/cloud/agent/resource/DummyResource.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import java.util.Map;
2323
import java.util.UUID;
2424

25-
import javax.ejb.Local;
26-
2725
import com.cloud.agent.IAgentControl;
2826
import com.cloud.agent.api.Answer;
2927
import com.cloud.agent.api.CheckNetworkAnswer;
@@ -43,7 +41,6 @@
4341
import com.cloud.storage.Storage.StoragePoolType;
4442
import com.cloud.utils.StringUtils;
4543

46-
@Local(value = {ServerResource.class})
4744
public class DummyResource implements ServerResource {
4845
String _name;
4946
Host.Type _type;

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
import java.util.List;
2020

2121
import org.apache.cloudstack.api.command.admin.config.UpdateCfgCmd;
22+
import org.apache.cloudstack.api.command.admin.network.CreateManagementNetworkIpRangeCmd;
2223
import org.apache.cloudstack.api.command.admin.network.CreateNetworkOfferingCmd;
24+
import org.apache.cloudstack.api.command.admin.network.DeleteManagementNetworkIpRangeCmd;
2325
import org.apache.cloudstack.api.command.admin.network.DeleteNetworkOfferingCmd;
2426
import org.apache.cloudstack.api.command.admin.network.UpdateNetworkOfferingCmd;
2527
import org.apache.cloudstack.api.command.admin.offering.CreateDiskOfferingCmd;
@@ -160,6 +162,19 @@ public interface ConfigurationService {
160162
*/
161163
Pod createPod(long zoneId, String name, String startIp, String endIp, String gateway, String netmask, String allocationState);
162164

165+
/**
166+
* Creates a mutual exclusive IP range in the pod with same gateway, netmask.
167+
* @param cmd - The command specifying pod ID, start IP, end IP, gateway, netmask.
168+
* @return The new range if successful, null otherwise.
169+
*/
170+
Pod createPodIpRange(CreateManagementNetworkIpRangeCmd cmd);
171+
172+
/**
173+
* Deletes a mutually exclusive IP range in the pod.
174+
* @param cmd - The command specifying pod ID, start IP, end IP.
175+
*/
176+
void deletePodIpRange(DeleteManagementNetworkIpRangeCmd cmd) throws ResourceUnavailableException, ConcurrentOperationException;
177+
163178
/**
164179
* Edits a pod in the database. Will not allow you to edit pods that are being used anywhere in the system.
165180
*

api/src/com/cloud/dc/StorageNetworkIpRange.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@
2121
import org.apache.cloudstack.api.InternalIdentity;
2222

2323
public interface StorageNetworkIpRange extends InfrastructureEntity, InternalIdentity, Identity {
24-
2524
Integer getVlan();
2625

27-
String getPodUuid();
26+
String getGateway();
27+
28+
String getNetmask();
2829

2930
String getStartIp();
3031

3132
String getEndIp();
3233

33-
String getNetworkUuid();
34-
3534
String getZoneUuid();
3635

37-
String getNetmask();
36+
String getPodUuid();
3837

39-
String getGateway();
38+
String getNetworkUuid();
4039
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ public class EventTypes {
296296
public static final String EVENT_VLAN_IP_RANGE_DEDICATE = "VLAN.IP.RANGE.DEDICATE";
297297
public static final String EVENT_VLAN_IP_RANGE_RELEASE = "VLAN.IP.RANGE.RELEASE";
298298

299+
public static final String EVENT_MANAGEMENT_IP_RANGE_CREATE = "MANAGEMENT.IP.RANGE.CREATE";
300+
public static final String EVENT_MANAGEMENT_IP_RANGE_DELETE = "MANAGEMENT.IP.RANGE.DELETE";
301+
299302
public static final String EVENT_STORAGE_IP_RANGE_CREATE = "STORAGE.IP.RANGE.CREATE";
300303
public static final String EVENT_STORAGE_IP_RANGE_DELETE = "STORAGE.IP.RANGE.DELETE";
301304
public static final String EVENT_STORAGE_IP_RANGE_UPDATE = "STORAGE.IP.RANGE.UPDATE";
@@ -761,6 +764,9 @@ public class EventTypes {
761764
entityEventDetails.put(EVENT_VLAN_IP_RANGE_DEDICATE, Vlan.class);
762765
entityEventDetails.put(EVENT_VLAN_IP_RANGE_RELEASE, Vlan.class);
763766

767+
entityEventDetails.put(EVENT_MANAGEMENT_IP_RANGE_CREATE, Pod.class);
768+
entityEventDetails.put(EVENT_MANAGEMENT_IP_RANGE_DELETE, Pod.class);
769+
764770
entityEventDetails.put(EVENT_STORAGE_IP_RANGE_CREATE, StorageNetworkIpRange.class);
765771
entityEventDetails.put(EVENT_STORAGE_IP_RANGE_DELETE, StorageNetworkIpRange.class);
766772
entityEventDetails.put(EVENT_STORAGE_IP_RANGE_UPDATE, StorageNetworkIpRange.class);

api/src/com/cloud/network/Network.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static class Service {
4747
private static List<Service> supportedServices = new ArrayList<Service>();
4848

4949
public static final Service Vpn = new Service("Vpn", Capability.SupportedVpnProtocols, Capability.VpnTypes);
50-
public static final Service Dhcp = new Service("Dhcp");
50+
public static final Service Dhcp = new Service("Dhcp", Capability.ExtraDhcpOptions);
5151
public static final Service Dns = new Service("Dns", Capability.AllowDnsSuffixModification);
5252
public static final Service Gateway = new Service("Gateway");
5353
public static final Service Firewall = new Service("Firewall", Capability.SupportedProtocols, Capability.MultipleIps, Capability.TrafficStatistics,
@@ -218,6 +218,7 @@ public static class Capability {
218218
public static final Capability RegionLevelVpc = new Capability("RegionLevelVpc");
219219
public static final Capability NoVlan = new Capability("NoVlan");
220220
public static final Capability PublicAccess = new Capability("PublicAccess");
221+
public static final Capability ExtraDhcpOptions = new Capability("ExtraDhcpOptions");
221222

222223
private final String name;
223224

api/src/com/cloud/network/element/DhcpServiceProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// under the License.
1717
package com.cloud.network.element;
1818

19+
import java.util.Map;
20+
1921
import com.cloud.deploy.DeployDestination;
2022
import com.cloud.exception.ConcurrentOperationException;
2123
import com.cloud.exception.InsufficientCapacityException;
@@ -33,4 +35,6 @@ boolean configDhcpSupportForSubnet(Network network, NicProfile nic, VirtualMachi
3335
throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException;
3436

3537
boolean removeDhcpSupportForSubnet(Network network) throws ResourceUnavailableException;
38+
39+
boolean setExtraDhcpOptions(Network network, long nicId, Map<Integer, String> dhcpOptions);
3640
}

api/src/com/cloud/network/vpc/VpcOffering.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public enum State {
5252
boolean isDefault();
5353

5454
/**
55-
* @return service offering id used by VPC virutal router
55+
* @return service offering id used by VPC virtual router
5656
*/
5757
Long getServiceOfferingId();
5858

0 commit comments

Comments
 (0)