Commit Graph

8241 Commits

Author SHA1 Message Date
Rajani Karuturi 2ab7bcade2 Fixed CLOUDSTACK-6756: usage id is not being returned for an ip in deleted ip range 2014-05-27 09:32:05 +05:30
Min Chen da5ad74d5f CLOUDSTACK-6752: IAM command class separation caused ApiDoc warning of
duplicated cmd class for the same api name.
2014-05-22 16:57:00 -07:00
Anthony Xu 40207929f7 fixed a typo 2014-05-22 15:46:48 -07:00
Min Chen 356f6121a7 CLOUDSTACK-6742: listVolumes - As regularuser , able to list Vms and
volumes of other users.
2014-05-21 16:26:20 -07:00
Anthony Xu 8c5a9ec4de if networkID is not specified, get one network with free ips. 2014-05-21 14:39:48 -07:00
Amogh Vasekar 7bbad0491f CLOUDSTACK-6671: Fixing NPE when a mapping is missing
Adding missing KVM mappings

Testing Done:
Local testing with removing CentOS mapping and launch a VM.

Signed-off-by: Nitin Mehta <nitin.mehta@citrix.com>
2014-05-21 08:27:27 -07:00
Murali Reddy c5d48c0530 CLOUDSTACK-6721: VolumeApiServiceImpl is sending wrong type for
updateAsyncJobAttachment

fix sends 'Volume' instead of 'volume'
2014-05-20 16:58:19 +05:30
Murali Reddy 497f5e5372 CLOUDSTACK-6712: NPE in findJobInstanceUuid() in ApiDBUtils 2014-05-20 10:21:01 +05:30
Min Chen f748a552e9 Disable IAM feature from 4.4 release. 2014-05-19 16:27:50 -07:00
Nitin Mehta d5425e1a4a CLOUDSTACK-6699: listResouceDetails - enhance it to list by (key,value) pair - allowed to Admin only. 2014-05-18 23:20:12 -07:00
Murali Reddy 8bcd2546ac CLOUDSTACK-6672: [Automation] NPE observed while listing system vms
fixing NPE
2014-05-19 10:30:21 +05:30
Sanjay Tripathi 4e44ac56c9 CLOUDSTACK-6678: API:MS: listCapacity returns; errorcode":530,"cserrorcode":9999,"errortext":"Index: 0, Size: 0"}. 2014-05-15 14:16:12 +05:30
Nitin Mehta 076bbdcfe8 CLOUDSTACK-6660: Dont assume every vm will have a root volume now. 2014-05-14 14:59:54 -07:00
Sanjay Tripathi e7e1ae254a CLOUDSTACK-6649: CS is not giving the system-wide capacity for GPU reosurce. 2014-05-14 15:02:59 +05:30
Amogh Vasekar 594f66d125 This patch disallows deleting / modifying system defined guest OS mappings
Local env
1. Create user defined mapping
2. Delete / modify user defined mapping. Should pass
3. Delete / modify system defined mapping. Should fail

Signed off by :- Nitin Mehta<nitin.mehta@citrix.com>
2014-05-12 22:43:49 -07:00
Sheng Yang a3e9d0ff12 CLOUDSTACK-5501: Allow one vpn customer gateway with multiple connections
This restriction was purposely avoid confusion of VPN setup, but later found too
strictly and cause troubles for deployment. Removed after testing one customer
gateway with multiple connections.
2014-05-12 18:26:53 -07:00
Nitin Mehta c12b28fc37 CLOUDSTACK-6633: listVolumes should return template/iso info for root volumes 2014-05-11 20:32:04 -07:00
Min Chen a7dd5aae55 CLOUDSTACK-6628:[Automation] Create PF rulw API failing with error
"database id can only provided by VO objects".
2014-05-09 18:24:54 -07:00
santhosh 550493cec3 Added fix for CLOUDSTACK-6548
Signed-off-by: santhosh <santhosh.edukulla@gmail.com>
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-05-09 17:03:52 +02:00
Min Chen e8e0449ed4 CLOUDSTACK-6613:IAM: authorizeSecurityGroupIngress fails when SG Name is
passed.
2014-05-08 23:09:12 -07:00
Min Chen b9bdaf9d31 CLOUDSTACK-6598:IAM - listAccount() retrurns "Caller cannot be passed as
NULL to IAM!" when domain deletion is in progress.
2014-05-08 15:19:23 -07:00
Murali Reddy 52257bc418 CLOUDSTACK-6608:OVS distributed firewall: default ACL rule is not
getting applied when a tier in VPC is created.

fix ensures, VpcRoutingPolicyUpdate is send when network rules are
programmed when network tier in VPC is created
2014-05-08 15:50:21 +05:30
Daan Hoogland 0ca013e647 Revert "CLOUDSTACK-6485: private gateway network should not be associated with vpc"
This reverts commit 69add34ad0.
2014-05-08 11:33:37 +02:00
Alena Prokharchyk cadefb1aeb CLOUDSTACK-6601: added "forDisplay" parameter to listLoadBalancerRules API 2014-05-07 17:12:58 -07:00
Alena Prokharchyk 515fa261ba CLOUDSTACK-6596: UUID and display flag update support for LBStickinessPolicy and LBHealthCheckPolicy 2014-05-07 15:38:17 -07:00
Amogh Vasekar 5949e33578 CLOUDSTACK-6358: As a part of supporting dynamic guest OS defined by user, removing the hard-coded dependencies.
This patch is for KVM

1. Local testing on KVM
2. Successfully got up system VMs
3. Successfully created a CentOS VM
4. Snapshots are not supported for KVM

 Signed off by :- Nitin Mehta<nitin.mehta@citrix.com>
2014-05-07 15:17:47 -07:00
Alena Prokharchyk b9284db857 CLOUDSTACK-6595: call expunge method marked with @ActionEvent from expunge thread context. So the action even EXPUNGE.VM is generated when vm is expunged by the thread. 2014-05-07 13:44:26 -07:00
Murali Reddy df65b2e7c4 CLOUDSTACK-6593: Connectivity service capabilites should be matched with
the provider only if at least one capability is specified

Fix avoids the check, and only if the createNetworkOffering
'StrechedL2'Subnet' capability is specified then it should match against
'Connectivity' service provider
2014-05-07 20:03:28 +05:30
Jayapal 99f75db1eb Fixed vpc private gateway backend issues 2014-05-07 16:17:22 +05:30
Devdeep Singh 681e628543 CLOUDSTACK-6510: Fix gson serialization exception in storage migration. Gson couldn't serialize
a map with volume and storagepool objects for logging. Fixed by using volume and storage pool
ids instead of objects in the map.
2014-05-07 14:07:36 +05:30
Prachi Damle eb28f77d1a CLOUDSTACK-6581: IAM - Shared Network -Root Admin user is allowed to deploy VM in a shared network that is scoped for a specific domain/account.
Changes:
- Strict access check in NetworkModel is needed as CS 4.3
- We cannot go through accountMgr since accountMgr is relaxed for rootAdmin
2014-05-06 17:21:05 -07:00
Alena Prokharchyk 8ffb2c1148 CLOUDSTACK-6585: added missing metadata support for LBStickiness/LBHealthcheck policies 2014-05-06 17:04:03 -07:00
Kelven Yang be2b5918e6 CLOUDSTACK-6586: Move EventBus hookup on job framework to ApiServer to decouple job framework away from business logic related hookups. The decoupling is done through internal messaging facility provided inside management server. 2014-05-06 16:48:35 -07:00
Jayapal a708d5c498 CLOUDSTACK-6577: Disable service monitoring in RVR 2014-05-06 19:35:34 +05:30
Jayapal 758f7f2f16 CLOUDSTACK-6578: Fixed issue in delete remote access vpn command 2014-05-06 19:35:34 +05:30
Rajani Karuturi 645516ee78 CLOUDSTACK-6531: stopping the router in case of command failures. Also added alerts for failures.
Signed-off-by: Jayapal <jayapal@apache.org>
2014-05-06 19:35:34 +05:30
wrodrigues 31b3f0a5ce CLOUDSTACK-6139 router vm on local storage 2014-05-06 13:37:24 +02:00
Tanner Danzey 2c4ae0883b CLOUDSTACK-5907, CLOUDSTACK-6396: KVM/RBD & KVM/CLVM volumes mistakenly shown as OVM, disables snapshotting
modified:   server/src/com/cloud/api/ApiDBUtils.java

Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-05-05 15:27:38 +02:00
Mike Tutkowski 0cdcab26f5 CLOUDSTACK-6170 Corrected an issue related to the "Reinstall VM" command and managed storage with VMware 2014-05-02 18:31:14 -06:00
Min Chen ffec3d0284 CLOUDSTACK-6568:API:createVolume: Volume gets created with wrong domain
ID.
2014-05-02 16:29:34 -07:00
Min Chen 03f6188c1c CLOUDSTACK-6569: IAM - Regular user is able to listNetworks of another
user in the same domain , by passing account and domainId.
2014-05-02 14:53:44 -07:00
Alena Prokharchyk 4e7498bc08 LOUDSTACK-6475: cleanupVPC task - removed the transaction wrapping up multiple VPC destroy as the destroy operation has external calls, to prevent long-locked transaction.
Reviewed-by: Prachi Damle
2014-05-02 14:20:27 -07:00
Sam Schmit fe84b674c1 CLOUDSTACK-6472 listUsageRecords: Pull information from removed items as well, fixing NPEs/Null UUIDs with usage API calls. 2014-05-02 16:36:37 -04:00
Sebastien Goasguen f328f6157b Review from pyr https://reviews.apache.org/r/20557/ 2014-05-02 16:35:46 -04:00
Prachi Damle 2e5b529157 CLOUDSTACK-6560: IAM - Admin user is denied permission to create Egress rule for a user's network
Changes:
- CS 4.3 handled Network entity in two ways:
a) Specified "UseNetwork" access and did a strict check w.r.t who can use this network. Regular users and Domain Admin went through the strict check. Root admin got access always.
b) Specified "null" access and that meant admins can access this network for the calling API that passes null access.

- Fixing CS 4.4 IAM to handle this behavior:
a) "UseNetwork" is mapped to "UseEntry" and IAM check will be done only for domain admin and regular users when this access is specified. Root Admin is grated access.
b) If "null" access is specified, root and domain admin both are granted access. Regular users still go through IAM.
2014-05-01 16:07:52 -07:00
Prachi Damle e89c628843 CLOUDSTACK-6558 IAM - Admin user is able to deploy VM in a regular user's Security Group.
Changes:
- Even for SecurityGroup, go through IAM to do permission checks for all type of accounts
2014-05-01 16:07:50 -07:00
Min Chen 6435b261de CLOUDSTACK-6556: Deploy VM failing with error "does
not have permission to access resource Ntwk".
2014-05-01 15:07:36 -07:00
Min Chen f0edfc7ac5 CLOUDSTACK-6535: IAM:MS:API createVMSnapshot doesn't preserve access
rights.
2014-05-01 12:13:59 -07:00
Min Chen 4415aee1e9 CLOUDSTACK-6556: [Automation] Deploy VM failing with error "does not
have permission to access resource Ntwk".
2014-05-01 11:33:41 -07:00
Prachi Damle e14c2ec724 CLOUDSTACK-6517: IAM - Admin is allowed to create PortFowarding rule for a regular user, when admin does not have " UseEntry" permission for IpAddress.
Changes:
- IAM was applying ordering on accessTypes. Thus if an account had Operate, he got USe access as well. So even if IAM schema did not have 'UseEntry" permission for IpAddress, some other 'OperateEntry' permission on IpAddress was letting this operation go through.
- Fixed IAM to NOT do ordering of access types anymore. IAm will perform strict accessType check only.
- This fix is needed so that admin does not get permission to USE resources from other account just becase he has OPERATE access on those resources due to some other APIs.

- However due to this fix, we break backwards compatibilty with CS 4.3.
- CS 4.3 allowed root admin to do the createPF operation for a user by passing in networkId of the user.
- Same was the case for domain admins within their domains
- Why this worked was due to CS 4.3 simply returning true for root admin/domain admin

- So to maintain backwards compatibilty, we are adding the logic to return "true" for root admin and domain admin just like CS 4.3.
- Exception is: For Network, AffinityGroup and Templates, we still call IAM even for root admin/domain admin, since thats what CS 4.3 did. Just for these 3 resource_types, it used to perform access checks even for root admin/domain admin.
2014-04-30 11:58:21 -07:00