Commit Graph

6100 Commits

Author SHA1 Message Date
Nitin Mehta cfff6708f3 CLOUDSTACK-1738 : Adding code for StatsCollector initialization using spring framework. This was not initialized and hence stats were not colleced on vm, host and storage in CS. 2013-03-20 15:44:22 +00:00
Kishan Kavala 65cc29734a CLOUDSTACK-198: Included VpnUsers in Add state while listing. Added state to Vpn user response. 2013-03-20 15:36:47 +00:00
Min Chen 7734650bf9 CLOUDSTACK-1511 and CLOUDSTACK-1446 2013-03-20 00:40:29 +00:00
Wei Zhou 0ce1d4fde1 CLOUDSTACK-1668: Fix IP conflict in VPC tier
Currently, allPossibleIps return the Ip lists which include the gateway,
so we need to remove gateway ip from this list.

Now, for non-VPC network it works, because NetUtils.getAllIpsFromCidr
return the Ip lists which do not include the first IP of the network
(like 192.168.0.1).
We need too add the first IP into the returned Ip list, because it can
be used for VM if it is not the gateway IP (for example, VPC networks).

The corresponding patch for 4.0.1 has been posted on
https://reviews.apache.org/r/9923/

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-03-20 00:26:37 +00:00
Rohit Yadav fff8048a3a CLOUDSTACK-1720: Add upgrade path from 4.0.x to 4.1.0
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-03-19 13:03:37 -04:00
Prachi Damle b66ee30566 CLOUDSTACK-1706 Failed to deploy VM with error "cannot find DeployPlannerSelector"
Changes:

- Regular plugin/adapter components should usually be loaded at run level RUNLEVEL_COMPONENT(5)
- HypervisorVmPlannerSelector was at level 0, while configurationServer at level 2  - causing config to be not loaded for the HypervisorVmPlannerSelector
2013-03-18 15:16:47 -04:00
Min Chen 6d01ce565d CLOUDSTACK-1690: Remove region_id from sql insert statement for inserting "system" and "admin" account and user in MS startup due to recent region feature change. 2013-03-15 21:19:55 -04:00
Kishan Kavala b41e6e929d CLOUDSTACK-1636: Removed the concept of owner region. Removed region_id from user/account and domain tables. Removed forwarding of api calls to owner region. Removed api_key and secret_key from region table. Included related DB upgrade changes. 2013-03-14 21:22:48 -04:00
Min Chen 93dfbd2672 CLOUDSTACK-1684: api.throttling.enabled configuration setting should be set to "false" in Config.java. 2013-03-14 21:16:40 -04:00
Sheng Yang 7aa16259fc CLOUDSTACK-1218: Use the first IP in the first vlan range for VR in shared network 2013-03-14 20:57:49 -04:00
Prachi Damle 48495f86f7 CLOUDSTACK-1604: deploy VM failed when global setting "vm.allocation.algorithm" is set to "userdispersing"
Changes:
- DeployPlannerSelector was newly introduced for BareMetal feature. It had the planner name hardcoded.
- Change it to decide the planner by referring to the global config vm.allocation.algorithm value
2013-03-14 15:08:08 -04:00
Kelven Yang 85198980ca CLOUDSTACK-1624: Initialize configuration variables properly to avoid influence of any racing conditions 2013-03-12 14:56:35 -07:00
Min Chen 1f1ba72cf4 CLOUDSTACK-1621: listProjectInvitations fails with NPE for valid requests. 2013-03-11 14:55:20 -04:00
Sheng Yang b8a16856ff CLOUDSTACK-1461: Don't set dns server for non-default ipv6 network
The non-default parameter can be used by ipv4 as well in the future.
2013-03-10 21:44:59 -04:00
Kelven Yang 00f63c44b6 CLOUDSTACK-1323: retire some of no-longer used files 2013-03-08 16:54:46 -08:00
Kishan Kavala ee4daf674c CLOUDSTACK-1569: Only forward API to source region and check for succcess. Do not convert the response to user/account/domain object since it is not updated locaaly. 2013-03-08 10:18:18 -05:00
Likitha Shetty 4ba28a5ba7 CLOUDSTACK-1509. During CreateVLANIPRange while trying to assign Public IPs to a new network if the network offering is persistent we get an NPE. Since associateIpRangeToAccount starts and commits a seaparte transaction, commit the transaction started for createVlanAndPublicIpRange before calling associateIpAddressListToAccount. 2013-03-08 10:14:59 -05:00
Sanjay Tripathi fd7f4103fe CLOUDSTACK-1574 : updateResourceCount API is failed saying to specify valida resource type even after parsing the valid resource type. 2013-03-08 10:14:03 -05:00
Alena Prokharchyk feee6bd60a CLOUDSTACK-1451 Pass randomly generated UUID instead of empty string when create internal account as a part of project creation. Otherwise entityexistsexception would happen when attempt to create more than 1 project in the system 2013-03-07 15:35:36 -05:00
Alena Prokharchyk dc07534979 Revert "CLOUDSTACK-1451 Pass randomly generated UUID instead of empty string when create internal account as a part of project creation. Otherwise entityexistsexception would happen when attempt to create more than 1 project in the system"
This reverts commit 45c51d1fdd.

The commit is reverted as it should go through the patch review
2013-03-07 11:41:27 -08:00
Alena Prokharchyk 45c51d1fdd CLOUDSTACK-1451 Pass randomly generated UUID instead of empty string when create internal account as a part of project creation. Otherwise entityexistsexception would happen when attempt to create more than 1 project in the system 2013-03-07 11:23:40 -08:00
Deepti Dohare e942df93e6 CLOUDSTACK-1541 NPE while deleting snapshots 2013-03-07 14:13:48 -05:00
Harikrishna Patnala 421a2308fb CLOUDSTACK-1013 : running cloudstack overwrites default public/private ssh keys
The default private/public keypairs in .ssh will not be overwritten.
Instead cloudstack will generate a new keypair id_rsa.cloud and
id_rsa.cloud.pub and use those in developer mode.

To use this insert the (name,value)=(develop,true) tuple into
`cloud`.`configuration`

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-03-07 10:23:51 -05:00
Sheng Yang 7c7b05f4e0 CLOUDSTACK-1315: Fix NPE when try to upgrade network from VR to SRX-F5
Still return a valid object when reverting non-existed rules.
2013-03-07 09:43:25 -05:00
Min Chen cbbc488d3c CLOUDSTACK-1402: listRouters API response doesn't return linklocal IP and public IP details. 2013-03-06 13:39:52 -05:00
Rohit Yadav 525d391d65 CLOUDSTACK-1417: cosmetics, print param name, value for uuid->id translate error
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-03-06 10:48:46 -05:00
Min Chen 7e12ffe4de CLOUDSTACK-1465: We should pass array instead of a List for SearchCriteria.Op.IN as value. 2013-03-05 17:11:11 -05:00
Kishan Kavala bf40ab48f2 CLOUDSTACK-1473: cleanp flag is optional param for deleteDomain API. Check for null before converting it to string 2013-03-05 12:59:04 -05:00
Min Chen 0afc2d0033 CLOUDSTACK-1484: provide api.throttling.enabled gloabl configuration settings to enable/disable api throttling feature. 2013-03-05 11:26:20 -05:00
Frank Zhang 22d017db99 CloudStack CLOUDSTACK-1485 Add Baremetal Provider back to 4.1 branch
fixed resolved
2013-03-05 11:24:28 -05:00
Min Chen 02bbb10826 CLOUDSTACK-1449: listAccounts and listProjectAccounts API lists all the users not account-specific users for each account returned. 2013-03-04 16:55:31 -05:00
Prasanna Santhanam d09a1cafd7 remove @author fields generated by eclipse
one line change, so no patch request to burden chipc.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-03-01 15:27:18 +05:30
Roeland Kuipers 5a655e8c75 review 8701: createSetupGuestNetworkCommand in
VpcVirtualNetworkApplianceManagerImpl.java fails when the broadcast URI
is not a long

Fixed whitespace issues

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
(cherry picked from commit 68b836d46d)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-03-01 09:44:17 +01:00
Kishan Kavala 79995bf629 CLOUDSTACK-241: Moved regions upgrade chnages to Upgrade40to41.jav from schema file. Sets the right regins_id from db.properties instead of using default 1. 2013-02-28 11:21:02 +05:30
Kishan Kavala 1a2173f4db CLOUDSTACK-241: Removed API based account sync. Removed all the related API changes. Converted tabs to spaces in the related files.
Verified account, user and domain APIs manually.
2013-02-28 11:21:02 +05:30
Prachi Damle 336d133f94 CLOUDSTACK-1418- As regular user , we are not allowed to deploy VM on a shared network.
- Added the access type attribute to @acl
- Domainchecker needs the AccessType.UseNetwork value specified to check access to network
2013-02-27 17:19:55 -08:00
Sheng Yang 02a0439dba CLOUDSTACK-1170: Use a unified way to generate PublicIp
Tired of manually generate mac address everytime when create PublicIp object.
2013-02-27 14:06:09 -08:00
Murali Reddy d76211d5d0 CLOUDSTACK-1391: EventBus is not getting injected after javelin merge
added logic to inject event bus using ComponentContext.getComponent
2013-02-27 14:52:11 +05:30
David Grizzanti 2fc5a3ca5e CLOUDSTACK-420: listZones missing name parameter
When calling the listZones API command, you can now supply a name to pull a specific zone by name.

Updated two classes to include name paramater and query data centers/zones by name if suppled:
- server/src/com/cloud/api/query/QueryManagerImpl.java
- api/src/org/apache/cloudstack/api/command/user/zone/ListZonesByCmd.java

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-02-27 13:39:59 +05:30
Sheng Yang 6c37fccc0b CLOUDSTACK-1232: Only support cidr=64 in IPv6 2013-02-26 19:39:37 -08:00
Kelven Yang df8c7506fc CLOUDSTACK-1173: fix the regression caused by life-cycle management changes 2013-02-26 11:51:31 -08:00
Kishan Kavala 609c7da383 CLOUDSTACK-1289: Added missing usage command processing for External firewall device. ExternalLoadBalancerUsageManagerImpl should be renamed as ExternalDeviceUsageManagerImpl 2013-02-26 17:33:23 +05:30
Harikrishna Patnala c3a37dd7ff CLOUDSTACK-1293 resetpasswordforVm shows "passsd reset to undefined" 2013-02-26 17:18:30 +05:30
Wei Zhou 03fdbfb291 CLOUDSTACK-962:setAggBytesSent/setAggBytesReceived in NetworkUsageTask when not in case of dailyor hourly
Removed duplicate userstatsdao injection
2013-02-26 16:26:30 +05:30
Rohit Yadav 6a76c96be1 spring: Remove annotations from interfaces and abstract classes
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit da7c0b1437)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-26 15:26:15 +05:30
Sheng Yang e06bf6ad2e CLOUDSTACK-1332: Add ip6dns to zone and domainrouter response 2013-02-25 16:55:47 -08:00
Sheng Yang 7c72aa66bd CLOUDSTACK-1332: Pass IPv6 DNS to VR 2013-02-25 16:07:36 -08:00
Sheng Yang 0760fdf6d0 CLOUDSTACK-1332: Add IPv6 DNS for Zone 2013-02-25 16:07:14 -08:00
David Nalley bc1fa4a4cf adding license header to make RAT happy 2013-02-24 22:33:56 -05:00
Kelven Yang 4f38d745b8 CLOUDSTACK-1339: Using Sping interface injection pattern to avoid using CGLIB proxying mode. Spring with CGLIB proxying will concflict with CGLIB usage in CloudStack DB code, CloudStack CGLIB usage can cause Spring to lose tack of its proxied object and therefore creates a massive amount of objects in memory 2013-02-24 13:31:42 -08:00