Commit Graph

23183 Commits

Author SHA1 Message Date
Min Chen 554cab8ea1 CLOUDSTACK-6513: templateFilter=shared should not show self-owned
template.
2014-05-01 10:37:46 +02:00
Min Chen 62b210b583 CLOUDSTACK-6502:Remove trailing whitespaces. 2014-05-01 10:28:09 +02:00
Daan Hoogland ce56894d37 CLOUDSTACK-6549: ommission due to insufficient tests in CLOUDSTACK-6231 2014-05-01 09:43:43 +02:00
Prachi Damle c32b7ab7c8 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-05-01 08:36:39 +02:00
Anthony Xu 376078e90f Revert "disble XS event, found there is an issue when event.from is called by multiple thread."
This reverts commit 8696f386dd.
2014-04-30 10:38:13 -07:00
Daan Hoogland 2239eb4b17 CLOUDSTACK-6231: network acl item cidrs loaded from a seperate table 2014-04-30 14:56:16 +02:00
Min Chen 683c242ed3 CLOUDSTACK-6513: Optimize code by removing deprecated utility to
QueryManagerImpl as private method just used for listTemplates and
listAffinityGroups to avoid misuse by new list APIs.
2014-04-30 10:40:39 +02:00
Min Chen 4f9b298817 CLOUDSTACK-6532:Affinity Groups - As admin user, not able to list all
affinity groups available for regular users by passing account and
domainId paramater. This is to revert IAM way of implementing
listAffinityGroupsCmd, will bring it back when we have implemented real
impersonation.
2014-04-30 10:39:43 +02:00
Min Chen 504bd0377d CLOUDSTACK-6533: IAM - Templates - Public templates do not have
permissions to be used by ROOT group.
2014-04-30 10:38:55 +02:00
Min Chen 4ca65496c2 CLOUDSTACK-6513: IAM - Templates - When templates are listed with
templatefilter="shared" is used , we see public templates also being
included in the list. This commit reverts listTemplates behavior to 4.3
old logic without using consistent interpretation of list parameters
adopted in new IAM model.
2014-04-30 10:38:02 +02:00
Min Chen 2f35ef2f9b CLOUDSTACK-6512:IAM - Not able to list shared networks in the Vm
deployment flow. This commit is to revert
ec5ee761d9 to still use old logic for
listNetworks to keep old behavior instead of new IAM model.
2014-04-30 10:36:57 +02:00
Anthony Xu 8696f386dd disble XS event, found there is an issue when event.from is called by multiple thread. 2014-04-29 11:06:03 -07:00
Rajani Karuturi 69e550f5ea Fixed CLOUDSTACK-6509 Cannot import multiple LDAP/AD users into a cloudstack account
Conflicts:
	api/src/com/cloud/user/AccountService.java
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapCreateAccountCmd.java
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapImportUsersCmd.java

Signed-off-by: Koushik Das <koushik@apache.org>
2014-04-29 13:37:28 +02:00
Nitin Mehta 8eb903ba48 CLOUDSTACK-6530: Populate the first class entities in the context to be available for publishing more information for the event bus, checking the displayable property etc. 2014-04-29 13:30:38 +02:00
Mike Tutkowski 815e391173 CLOUDSTACK-6170 Needed to add logic for XS 6.2 + XS62ESP1 + XS62ESP1004 2014-04-29 12:34:27 +02:00
Gabor Apati-Nagy b6fabfecf2 CLOUDSTACK-6255
UI for supporting region level VPC, distributed routing enabled VPC and
stretched L2 neworks
2014-04-28 18:45:54 +02:00
Daan Hoogland 90600f1bdf CLOUDSTACK-6485: private gateway network should not be associated with vpc
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-04-28 14:59:23 +02:00
Sanjay Tripathi b9c136d9aa CLOUDSTACK-6480: Creating Service Offering with Implict Dedication planner
fails with message:  "Please specify the pciDevice and vgpuType correctly".
2014-04-28 14:58:44 +02:00
Sanjay Tripathi b6d14d77bd CLOUDSTACK-6452: Failed to Live Migrate VM across clusters with Xenserver 6.2.5. 2014-04-26 13:43:31 +02:00
Amogh Vasekar 9c572eeae1 In 4.3, SSL was turned off by default.
However, for SSVM, the value from configuration server overrides the default in Config.java. Work around is to change in global properties.

Local testing, checking a fresh install has the above property false by default.

Signed-off-by: Nitin Mehta<nitin.mehta@citrix.com>
(cherry picked from commit 05802004e2)
2014-04-26 13:42:09 +02:00
Rajani Karuturi fe7ecad20b checkstyle fix for commit 8e2e8e5e8a
improved ldap logging. added stacktrace in debug level incase of exceptions.

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2014-04-25 22:49:25 +02:00
Mike Tutkowski 6b342ffce7 CLOUDSTACK-6170 Updated logic to more accurately calculate how much space is currently allocated for a managed storage pool 2014-04-25 22:23:54 +02:00
Murali Reddy 5ba7f6c006 CLOUDSTACK-6431: OVS migrating vm to a new host added to the cluster
does not create gre tunnel port on the new host

ensure OveElement gets a chance to setup tunnel network on the host
before VM is migrated.
2014-04-25 22:13:03 +02:00
Murali Reddy 61fc57121c CLOUDSTACK-6505: XenServer bridge for the OVS tunnel network gets reset
on the hosts in the xenserver cluster

this fix ensures that brige is created only once so that openflow rules
configured on the bridge are not lost.
2014-04-25 22:08:03 +02:00
Murali Reddy cbe326838d CLOUDSTACK-6507: ensure sequence numbers are honoured while processing
OvsVpcPhysicalTopologyConfigCommand and OvsVpcRoutingPolicyConfigCommand

fix ensures only latest updates are applied (new openflow rules) to the
bidge enabled for distributed routing.
2014-04-25 22:07:37 +02:00
Nitin Mehta 2f96d430c8 CLOUDSTACK-6499:
Made changes so that uploading custom certificate works for ssvm.
    1. Reboot ssvm only when private key is passed meaning the server cert is passed. This is because while uploading the server cert is the last to be uploaded. And we want to propagate the entire chain once uploading is done.
    2. Change the SecStorageSetupCommand sent to ssvm so that it also carries the root cert apart from having the chain and the server cert and key.
    3. Change ssvm agent code to be able to configure root cert to the java key store.
    4. Change ssvm configure ssl script to insert the chain certs correctly.
    5. Fix order of chain certificates for apache webserver in SSVM
    6. Remove double encoding and decoding for uploadCustomCertificate API from UI and server code respectively, so that API call without UI works fine
    7. Java 1.7 - disable using SNI since copyTemplate doesnt work for SSL.
2014-04-25 22:03:46 +02:00
Alena Prokharchyk 35767d1ee9 CLOUDSTACK-6436: listResourceDetails - don't return entries set with display=false, by default 2014-04-25 22:00:17 +02:00
Prachi Damle 0233bc88ba CLOUDSTACK-6458: IAM - When a domain is deleted , the group created for this domian is not removed.
Changes:
- When domain is deleted, IAM service will not find it unless it selects using 'removed' column
2014-04-25 21:57:41 +02:00
Prachi Damle 3d072b0d02 CLOUDSTACK-6458: IAM - When a domain is deleted , the group created for this domian is not removed.
Changes:
- When domain is deleted or is removed during account cleanup, send message to IAM to remove the domain group
2014-04-25 21:57:18 +02:00
Rajani Karuturi 9aab6046ae improved ldap logging. added stacktrace in debug level incase of exceptions.
Conflicts:
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapContextFactory.java

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2014-04-25 21:48:31 +02:00
Rajesh Battala 234f7e4b76 CLOUDSTACK-6338 [Automation] Failed to NetScaler Device with error 2014-04-25 21:45:54 +02:00
Sanjay Tripathi 8b56182e0f CLOUDSTACK-6494: Typing a pipe '|' character in VM console returns a question mark and pipe '?|'. 2014-04-25 21:44:37 +02:00
Mike Tutkowski 66fcfee220 CLOUDSTACK-6488 Fixed an issue where the "path" field was not being set properly in the DB when the volume had a snapshot taken of it 2014-04-25 21:35:24 +02:00
Jessica Wang c6d1e10cb6 CLOUDSTACK-6477: UI - Load Balancing - add VMs => fix error 'Unable to decode parameter vmidipmap[0].vmip[]; if specifying an object array, please use parameter[index].field=XXX, ~ ' 2014-04-25 21:33:26 +02:00
Min Chen 2bba381a63 CLOUDSTACK-6501:IAM - DomainAdmin - When listVirtualMachines is used
with listall=true and account and domainId , Vms owned by the account
account is not listed.
2014-04-25 21:27:13 +02:00
Min Chen e811e61ded CLOUDSTACK-6502:IAMGroup.list and IAMPolicy.list in marvin base.py are
not working.
2014-04-25 21:26:55 +02:00
Min Chen 65bdf2c9ca CLOUDSTACK-6478: Failed to download Template when having 3 SSVM's in one
zone on Vmware.
2014-04-25 21:26:27 +02:00
Anthony Xu 33c0d6c7bb CLOUDSTACK-6438
CLOUDSTACK-6442
  XAPI plugins must be copied to XS master first.
2014-04-23 15:30:36 -07:00
Prachi Damle 52f40433b9 CLOUDSTACK-6474: IAM - Not able to list shared networks that is created with scope="all"
Changes:
- On startup the root domain group should be created
- Also the SYSTEM and Root Admin accounts should be added to that group
- This will make sure that the root domain shared network's policy gets attached to the root domain group
2014-04-23 09:41:43 +02:00
Mike Tutkowski 4ae75b426b CLOUDSTACK-6469 2014-04-23 08:57:22 +02:00
Alena Prokharchyk dceaa7ccef Revert "Return isolation methods as a part of listPhysicalNetworks call"
This reverts commit eb877a093c.
2014-04-22 18:06:33 -07:00
Alena Prokharchyk eb877a093c Return isolation methods as a part of listPhysicalNetworks call 2014-04-22 14:46:34 -07:00
Mike Tutkowski b32fb37c51 [DB-CHANGE] CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-22 10:06:42 +02:00
Min Chen b6617843d2 CLOUDSTACK-6468:IAM - Templates - Admin user is not allowed to edit
template and set isExtractable() paramater.
2014-04-21 17:53:04 -07:00
Anthony Xu 3f74cb2feb enable event on XS 6.2 + FOX 2014-04-21 14:26:40 -07:00
John Kinsella dbc0a26f1e CLOUDSTACK-6156: removing rampart maven dependencies from awsapi
The removed dependencies don't seem to be used in code, and their
presence is causing at least some people to be unable to build awsapi
and RPM packages.

Signed-off-by: John Kinsella <jlk@stratosec.co> 1395207698 -0700
2014-04-21 20:28:39 +02:00
Mike Tutkowski e49e282c63 CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-19 10:13:10 -06:00
Sheng Yang 3578c7137f CLOUDSTACK-6047: Make aggregation command timeout configurable
In case some environments has different performance or we found some commands
would took too long to execute, one global configuration item is introduced to
specify "time out in seconds per one command in aggregation commands".

By default it's 3 seconds. If admin feel it's too long, it can be adjust to as
low as 1 seconds, which runs still well in my machine.
2014-04-18 23:27:12 -07:00
ynojima c7d8aae3bd Bugfix: java6 is installed instead of java7 by yum dependancy resolution. 2014-04-18 23:05:06 -06:00
Min Chen 7821da66cc Fix findBugs bug. 2014-04-18 17:35:01 -07:00