Wei Zhou
5cfc69a7aa
CLOUDSTACK-3947: Fix similar issues related to getSyncObjType / getSyncObjId
2013-08-06 10:42:31 +02:00
Sateesh Chodapuneedi
f17e6fc0a6
CLOUDSTACK-4097 2 optional parameters of addCluster API are not declared correctly
...
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-06 06:49:09 +05:30
Jessica Wang
0a0aae5f72
This reverts commit c4589e6ec7. Should not unescape queryFilter on server-side.
2013-08-05 15:06:40 -07:00
Min Chen
151a7ee497
CLOUDSTACK-3861 and CLOUDSTACK-3862: Deprecate old S3/Swift classes.
2013-08-02 18:16:46 -07:00
Min Chen
3e5a84a8bb
CLOUDSTACK-4053: Removal of AddSwiftCmd and ListSwiftsCmd APIs broke api
...
back compatibility.
2013-08-02 15:33:43 -07:00
Min Chen
9f3f13f70a
CLOUDSTACK-3748:AddS3Cmd NPE.
2013-08-02 13:53:43 -07:00
Min Chen
a2f1d23378
CLOUDSTACK-3748: AddS3Cmd NPE.
2013-08-02 13:53:43 -07:00
Alex Huang
8930cfa983
Switched over to use the new jobs framework
2013-08-02 11:07:55 -07:00
Ian Duffy
532e04db1a
Disable password changing when ldap is enabled
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-08-02 14:20:47 +05:30
Bharat Kumar
21f1b137cb
Cloudstack-3753 Multiple VLAN range API need to accept a list rather than "add" or "remove" per command
...
Reviewed-by: Alena Prokharchyk
Conflicts:
server/test/com/cloud/network/MockNetworkManagerImpl.java
2013-08-01 13:36:20 -07:00
Likitha Shetty
871e3bb279
CLOUDSTACK-3981. ListAccounts always sets 'networkTotal' to 0.
...
Add vpc resource count to the response. And set the right values for network resource count.
2013-08-01 14:18:33 +05:30
Wei Zhou
d571b49d00
CLOUDSTACK-3947: Override getSyncObjType and getSyncObjId in CreateLBStickinessPolicyCmd.java to prevent concurrent operations on Loadbalancer in a network
2013-08-01 10:04:18 +02:00
Mice Xia
51e4f597e0
fix CLOUDSTACK-3591 add usage recording for VM snapshots
...
Conflicts:
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
setup/db/db/schema-410to420.sql
2013-08-01 10:47:36 +08:00
Bharat Kumar
c7a1dbb176
Cloudstack-2997 unable to update concurrent_conncetions feild in network_offerin.
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-31 15:31:42 +05:30
Harikrishna Patnala
2c53ede1de
CLOUDSTACK-3848: Usage events for dynamic scaling of cpu/ram operation on VM
2013-07-31 15:07:17 +05:30
Alex Huang
1e1ee902a2
Moved over the new jobs framework from vmsync. This has not been integrated into the server package yet. Will do that next
2013-07-30 15:00:58 -07:00
Alena Prokharchyk
9b7c4a6c47
CLOUDSTACK-3948: fixed createAutoscaleVmProfile - for situation when no autoscaleUserId is passed in, take it from caller user id, not caller account id
...
Conflicts:
api/src/org/apache/cloudstack/api/command/user/autoscale/CreateAutoScaleVmProfileCmd.java
server/src/com/cloud/network/as/AutoScaleManagerImpl.java
2013-07-30 14:13:58 -07:00
Isaac Chiang
452176c0b4
CLOUDSTACK-3935:Inconsistent json object name for image store api
2013-07-30 19:20:56 +08:00
Jonathan Creasy
650de7998d
Fixing typo of "createing" that should be "creating" https://issues.apache.org/jira/browse/CLOUDSTACK-3915
...
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2388157596 )
2013-07-30 09:41:38 +05:30
Alex Huang
a4cea4ebf2
Removed schema from the dependency of many components
2013-07-29 10:55:19 -07:00
Prasanna Santhanam
bcf239db08
CLOUDSTACK-2715: Making MigrateSysteVm response uniform
...
with responses on other systemVm apis. All systemVM apis return
SystemVmResponse - rebootSystemVm, stopSystemVm etc. MigrateSystemVm is
now made uniform.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 12:32:57 +05:30
Prachi Damle
790a02f936
CLOUDSTACK-3343 UI/API should also return the mode(Strict/Preferred) when listing the ServiceOffering that uses ImplicitDedicationPlanner
...
Changes:
- API is fixed to return the service_offering details
Conflicts:
api/src/org/apache/cloudstack/api/response/ServiceOfferingResponse.java
2013-07-28 22:44:00 -07:00
Min Chen
c8cafb91a7
CLOUDSTACK-3818: NFS Cache Improperly Named.
2013-07-26 15:07:45 -07:00
Alex Huang
f5e5b39c9b
Moved the DB layer code into framework-db and change only the necessary projects to refer to it. Cut down on the dependencies introduced with all the code in utils.
2013-07-26 15:02:10 -07:00
Rajesh Battala
24a8d60d6f
CLOUDSTACK-62 [AWS Style Health Checks] Response of the API listLoadBalancerRuleInstances should show the service state of a VM if health check is configured for it
2013-07-26 16:40:26 +05:30
Alex Huang
9aaa378b08
Moved ClusterManager into it's own package. Removed the agent load balancing code.
2013-07-25 19:00:26 -07:00
Min Chen
45d38c4142
CLOUDSTACK-3709:[Object_Store_Refactor][UI] Can't delete NFS Cache
...
storage through UI. Fixed at API side.
Conflicts:
server/src/com/cloud/storage/StorageManagerImpl.java
2013-07-25 17:33:28 -07:00
Min Chen
b2cad5b698
CLOUDSTACK-3709: Add the missing file.
2013-07-25 17:29:58 -07:00
frank
42738c2fda
change associatesUcsProfileToBlade to async api
2013-07-25 15:26:51 -07:00
Murali Reddy
739f7cadeb
CLOUDSTACK-3764: [EIP/ELB] [BasicZone] Unable acquire IP as non-ROOT
...
domain users
Since the basic zone network is owned by 'Root' domain, domain access
checkers will fail for the accounts in non-root domains while acquiring
public IP. So add an exception for the 'Basic' zone shared network with
EIP/ELB service.
2013-07-25 19:17:39 +05:30
Ian Duffy
eaa4143371
Merge LDAPPlugin
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-25 17:54:52 +05:30
Alex Huang
555211a080
Moved Configuration from api to utils and moved the package. This was done by eclipse so I only ran the unit test to verify everything is fine
2013-07-25 03:57:12 -07:00
Harikrishna Patnala
0010faee4b
Fix for CLOUDSTACK-2536
...
Removing memoryovercommitratio and cpuovercommitratio parameters from addCluster and updateCluster APIs,
since these can be configurable using updateConfiguration API at cluster level.
By default while creating cluster these values are taken from global configuration parameters.
2013-07-25 13:42:08 +05:30
Edison Su
7f200d966e
CLOUDSTACK-3681: fix bunch of bugs related to vmware, regarding to snapshot
2013-07-24 19:06:30 -07:00
Saksham Srivastava
135a2e66c5
CLOUDSTACK-2508: Template usage should report both physical and virtual sizes
2013-07-24 18:17:09 +05:30
Alena Prokharchyk
57623832b0
CLOUDSTACK-3478: fixed volume destroy. #1 - don't call destroy() when the volume is in Expunged/Expunging/Destroy state. #2 - added state transition for Expunged state
2013-07-23 14:40:59 -07:00
Alex Huang
319d91e1c2
Removed the getByTypeAndId() method and replace it with getById method
2013-07-22 20:06:04 -07:00
Alena Prokharchyk
6c22c7b614
CLOUDSTACK-3720: fixed API doc for listResourceLimits API
2013-07-22 13:24:27 -07:00
Alex Huang
02236576c0
Changed some debug logs to trace
2013-07-22 11:48:12 -07:00
Alex Huang
1325014a03
Changed VirtualMachineProfile to be non-generic. From here on VirtualMachineManager will only manage vm instance. It doesn't understand the difference between different types of VMs. This makes the vmsync code to be generic across all vms.
2013-07-22 11:48:11 -07:00
Min Chen
d423a755f5
CLOUDSTACK-3274: API Refactoring: secretkey and accesskey of the backing
...
store is found in plaintext in the logs.
Conflicts:
server/src/com/cloud/api/ApiServer.java
server/src/com/cloud/api/ApiServlet.java
2013-07-20 18:01:49 -07:00
Alex Huang
2d4464d2ba
Applied review request 12685
2013-07-19 08:29:33 -07:00
Harikrishna Patnala
03fac83180
CLOUDSTACK-3358: create template from a volume/snapshot should also take input from User/Admin whether xstools / vmware tools installed in the VM
...
Signed off by : Nitin Mehta<nitin.mehta@citrix.com>
2013-07-19 11:55:32 +05:30
Ian Duffy
cd11fbd3d8
CLOUDSTACK-3344: unescape value
2013-07-18 15:20:40 +05:30
ahuang
11971b5a58
Bring over from vmsync changes in utils package. Simple changes. New files are not being used yet in master
2013-07-17 18:29:42 -07:00
Alena Prokharchyk
36c0224142
CLOUDSTACK-3584: fixed security group related apis with the correct class reference for projectid parameter
...
Conflicts:
api/src/org/apache/cloudstack/api/command/user/vmgroup/CreateVMGroupCmd.java
2013-07-17 10:58:44 -07:00
Bharat Kumar
d73bb22802
Incorportaed the review changes Now dhcpservice IPs are removed when last vm from the subnet is removed. Rebased with master.
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 12:35:06 +05:30
Bharat Kumar
dd33abffbe
Cloudstack-2997 Make haproxy maxconn configurable
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 10:06:11 +05:30
Edison Su
bf32776f9f
be able to upload template into swift
2013-07-16 18:07:06 -07:00
Prachi Damle
ee664a1cac
CLOUDSTACK-2159 Anti-Affinity - When "HostAntiAffinityProcessor" plugin is not included in the deployment , deployVirtualMachine() command does not error out when passing the affiitygroupnames parameter.
...
Changes:
- Added a check during vm deployment to see if a processor for the affinity group type is available
2013-07-16 15:48:07 -07:00
Prachi Damle
686f9ae64f
CLOUDSTACK-2155 Anti-Affinity -When Vm deployment is done in parallel , anti-affinity rule is not honored.
...
- Changes to the API Cmd needed to use CallContext instead of UserContext
2013-07-16 13:17:43 -07:00
ahuang
11e1e585b1
UserContext switched to CallContext. Added generic storage mechanism for other code to carry information throughout a call. Made the calling User and Account a must have. Added an interface to carry entities in error. Fixed up the code. Part of the vmsync branch
2013-07-16 11:24:21 -07:00
Prachi Damle
fa9ca72f36
CLOUDSTACK-2155: Anti-Affinity -When Vm deployment is done in parallel , anti-affinity rule is not honored.
...
Changes:
- Locking the group and save reservation mechanism done by DPM
- Added admin operation to cleanup VM reservations
- DPM will also cleanup VM reservations on startup
2013-07-16 10:53:06 -07:00
Prachi Damle
661088927d
CLOUDSTACK-2155 Anti-Affinity -When Vm deployment is done in parallel , anti-affinity rule is not honored.
...
Changes to check if the destination found does not conflict with any vm reservation
2013-07-16 10:53:02 -07:00
Alena Prokharchyk
9b521be4d0
CLOUDSTACK-1948: fixed pagesize to support -1 (unlimited) value
2013-07-15 11:35:46 -07:00
Toshiaki Hatano
b134854937
CLOUDSTACK-3431: KVM: cloudstack-plugin-hypervisor-kvm with BridgeVifDriver doesn't cleanup vNet due to multiple reasons
...
- Move vnetBridge clean up function from LibvirtComputingResource to BridgeVifDriver
-- since only BridgeVifDriver have to handle this event
- LibvirtComputingResource now properly call VifDriver.unplug() when it receives UnPlugCommand
- Remove not working and no longer used method getVnet(String) from VirtualMachineName
- Remove not working and no longer used method getVnet() from StopCommand
- Remove unused constructer StopCommand(VirtualMachine, String, boolean) from StopCommand
- Remove unused member vnet from StopCommand
- Remove unused member _modifyVlanPath from OvsVifDriver
Tested with 2 KVM hosts and confirmed it correctly manipulate vnetBridge with start, stop, migrate, plug, and unplug event
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-07-15 09:12:52 +02:00
Edison Su
8f4575e877
CLOUDSTACK-3400: add swift support
2013-07-13 02:07:15 -07:00
Edison Su
0c1ae20e77
add inital swift support
...
Conflicts:
server/src/com/cloud/resource/ResourceManagerImpl.java
server/test/com/cloud/resource/MockResourceManagerImpl.java
2013-07-13 02:07:03 -07:00
Hugo Trippaers
2691970f28
CLOUDSTACK-728 Get the framework in place the support the removal of the portgroup that is created for a nic connected to an lswitch.
...
Add a command to tell a hypervisor guru to take some action when
expunging a nic
2013-07-12 12:18:34 +02:00
Alena Prokharchyk
dd91974920
CLOUDSTACK-2843: added CopyCommand to the list of the commands controlled by execute.in.sequence.hypervisor.commands global config. This command was introduced by the Storage refactoring, and used for volume creation on the primary storage
2013-07-11 17:44:12 -07:00
Murali Reddy
7f2c659630
CLOUDSTACK-1673: AWS Regions - Events - User disable / Domain Delete event does not
...
include the UUID of the user/domain that was disabled.
- added enity type and enity UUID details to UserContext
- publish the entity type and UUID details for the action events
generated for accout/user/domain
2013-07-11 18:01:43 +05:30
Sanjay Tripathi
429e6bd4bb
CLOUDSTACK-1768: Ability to delete Events and Alerts: Delete by a time period is required.
...
User should be able to delete/archive alerts and events by selecting a time period or by
choosing the alerts and events older than a date. Added the ability to choose a time period
too.
2013-07-11 14:12:17 +05:30
Vijayendra Bhamidipati
7ea8c5fd9a
CLOUDSTACK-1510: NPE when primary storage is added with wrong path
...
Description:
a) Fixing NPE when wrong path is provided for primary datastore.
b) No error dialog shows up in GUI when wrong path is provided,
after NPE fix - propagating exception upward.
c) If the KVM agent is down, an invalid datastore gets logged in
storage_pool table and doesn't get removed, so it shows up
in the GUI in the list of datastores - fixing this as well.
2013-07-10 14:55:57 -07:00
Edison Su
94aa67eae0
fix simulator
2013-07-09 10:42:03 -07:00
Jayapal
e46b90078e
CLOUDSTACK-3352 fixed removing previous acl rules when emply acl is applied
2013-07-09 12:50:39 +05:30
Ryan Dietrich
70f33efa72
CLOUDSTACK-3190: Async jobs actions now trigger event bus messages to be
...
published
-AsyncJobManagerImpl to publish async job events when async jobs are
created, updated and completed
2013-07-05 17:48:25 +05:30
Prasanna Santhanam
f96b89f25e
CLOUDSTACK-3273: ClassCastException when adding cache store via API
...
Filter the detail map sent over the wire into Map<String, String> before
processing underneath by storage life cycle
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-05 15:32:41 +05:30
Alex Huang
43ab9506ab
Moved HostAllocator and PodAllocator from server to api package, where they are supposed to be. In the process, I had to change the VO objects used by these two itnerfaces to interface equivalent. This makes sense because there's really no reasons why allocators require write access to the database. One of the files have been reformatted because it contained a bunch of tabs instead of spaces for indentation.
2013-07-03 17:48:53 -07:00
Alex Huang
ab5f5809c3
VMSync: Added copyright
2013-07-03 11:23:22 -07:00
Alex Huang
bec53fb59a
VMSync: Separating jobs from api
2013-07-03 11:22:40 -07:00
Alena Prokharchyk
8a0470ee0f
CLOUDSTACK-3207: added resourceLimit/resourceCount to the Project API response
...
Conflicts:
setup/db/db/schema-410to420.sql
2013-07-02 15:34:08 -07:00
Min Chen
05f4680735
CLOUDSTACK-3314: ListTemplates only show one entry for cross-zone
...
templates.
2013-07-02 13:54:40 -07:00
Murali Reddy
2f3764ef94
CLOUDSTACK-1959: GSLB: add capability to provide weights to the sites
...
involved in the GSLB
add weights to each site participating in the GSLB. Traffic will be load
balanced across the sites based on the weigths associated with each
site. If not specified weight of site is defaulted to 1.
2013-07-02 17:55:58 +05:30
Murali Reddy
1c67e34c82
CLOUDSTACK-3287: [GSLB] API "updateGlobalLoadBalancerRule" is not
...
recognised by CloudStack
added api to managementServerImpl and ensure glsb config is applied to
gslb service providers
2013-07-02 00:07:58 +05:30
Mike Tutkowski
99227f7b3e
SolidFire plug-in and related changes
...
SolidFire plug-in
SolidFire plug-in related
2013-06-28 16:59:21 -06:00
Jayapal
3096261c05
Updated to show same value in log msg SetFirewallRulesCommand and accessdetails for egress default policy
2013-06-28 19:05:54 +05:30
Murali Reddy
0f40cfbea8
CLOUDSTACK-2045: [Multiple IPs Per Nic] This feature is not working well
...
in case of networks with external devices after GC
add an exception for networks that use external networking devices and has
secondary guest IP's allocated. On network GC, when network goes through
implement phase a new vlan is allocated, based on the acquired VLAN id cidr
of the network is decided in case of external networking case. While NIC
uses reservation strategy 'Start' which ensures that new primary ip is
allocated for the NiC from the new CIDR. Secondary IP's have hardcoded
IP's in network rules. So prevent network GC.
2013-06-28 12:26:20 +05:30
Min Chen
3160a0c2da
Add template zone related information into TemplateZoneResponse.
2013-06-27 14:34:00 -07:00
Harikrishna Patnala
c8692f2e4a
CLOUDSTACK-3245: non admin user not able to register template
...
Reviewed-by: Alena Prokharchyk
2013-06-27 14:09:52 -07:00
Donal Lafferty
4361418e41
Removed Dead Code from Management Server Hyper-V 2012 Support
...
Update ImageFormat enum to include VHDX format introduced with Hyper-V
Server 2012.
Remove existing Hyper-V plugin, because it does not work and is dead
code.
Remove references to existing Hyper-V plugin from config files.
Remove Hypervisor.HypervisorType.Hyperv special cases from manager code
that are unused or unsupported.
Specifically, there is no CIFS secondary storage class
"CifsSecondaryStorageResource". Also, the Hyper-V plugin's
ServerResource is contacted by the management server and not the other
way around.
Add Hyperv-V support to ListHypervisorsCmd API call
Signed-off-by: Edison Su <sudison@gmail.com>
2013-06-27 11:46:02 -07:00
Min Chen
a654e52cb6
Fix an issue of createVolumeCmd for regular user.
2013-06-26 15:46:48 -07:00
Harikrishna Patnala
9385cf0453
CLOUDSTACK-2835: VR Deployement from admin registered template is failing because registered template type is user. Additional parameter "isrouter" in register/update template API for the root admin. True if registered template is of type ROUTING.
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-26 16:00:12 +05:30
Wei Zhou
3bb4ec9f65
CLOUDSTACK-1192: Disk I/O Statistics support KVM only util 20130625
2013-06-26 11:10:11 +02:00
Hiroaki KAWAI
2d6369c826
CLOUDSTACK-2756: Stratosphere SSP plugin
...
Stratosphere SSP is an SDN solution which creates virtual L2
networks backed by vxlan and vlan. SSP will ask hypervisor to set a
specific vlan, then SSP will interact with openflow switches and
put vxlan/vlan translation flow rules.
This plugin provides SSP as "connctivity" service provider.
Signed-off-by: Hiroaki KAWAI <kawai@stratosphere.co.jp>
2013-06-25 15:31:40 +09:00
Alena Prokharchyk
8b2aae0bfe
CLOUDSTACK-3169: ipAssoc - set account id of the ip to the project account. Used to be set to the network owner which is System in Shared network case, and the further verification used to fail because of that
2013-06-24 15:25:05 -07:00
Jayapal
c22e7d0052
CLOUDSTACK-1578 SRX: Egress default policy configurable using network offering on SRX firewall
2013-06-24 13:37:01 +05:30
Jayapal
6a7ae637dd
CLOUDSTACK-1578 Egress default policy configurable using network offering in xenserver with VR as firewall provider
2013-06-24 13:37:00 +05:30
Sebastien Goasguen
5f06500ed4
CLOUDSTACK-3143: add response in the response string
2013-06-23 23:32:56 -04:00
Min Chen
933e4e6dff
Code cleanup.
2013-06-21 10:10:42 -07:00
Min Chen
2f9ba709a5
Add listCacheStoresCmd api for UI to list cache stores.
2013-06-20 18:06:30 -07:00
Edison Su
97f8c524b8
merge object_store
2013-06-20 00:18:00 -07:00
Abhinandan Prateek
d3d6350219
CLOUDSTACK-2168: removed unused commit
2013-06-20 11:30:26 +05:30
Ian Duffy
576884ec10
Add fix for CLOUDSTACK-2168. Changed listAll output to conform to the same output as listconfiguration
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-20 11:28:22 +05:30
Harikrishna Patnala
7b6b8d7a07
CLOUDSTACK-2987 Ensure XStools to be there in template inorder to enable dynamic scaling of vm
...
CLOUDSTACK-3042 - handle Scaling up of vm memory/CPU based on the presence of XS tools in the template
This also takes care of updation of VM after XS tools are installed in the vm and set memory values accordingly to support dynamic scaling after stop start of VM
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-20 11:08:38 +05:30
Edison Su
9aec9c605c
merge to master
2013-06-19 18:16:47 -07:00
Edison Su
11b9d5ff64
CLOUDSTACK-1405: add scope type in liststoragepoolcmd
2013-06-19 14:09:49 -07:00
Jessica Wang
d5d0142ed4
CLOUDSTACK-3016: listZones API - take in networktype instead of zonetype parameter to be consistent with networktype property in ZoneResponse.
2013-06-19 10:22:14 -07:00
Alena Prokharchyk
d66e9c7b51
CLOUDSTACK-2843: Provideded an ability to turn off the synchronization being done on the CS agent side,
...
for number of commands participating in Vm deployment process, as parallel deployment is supported on the hypervisor side.
The behavior is controlled by global config varirables:
"execute.in.sequence.hypervisor.commands" (false by default) sets/resets the synchronization for commands:
=========================
StartCommand
StopCommand
CreateCommand
CopyVolumeCommand
"execute.in.sequence.network.element.commands" (false by default) sets/resets the synchronization for commands:
==========================
DhcpEntryCommand
SavePasswordCommand
UserDataCommand
VmDataCommand
As a part of the fix, increased the global lock timeout to 30 mins in several VR scripts:
===========================
edithosts.sh
savepassword.sh
userdata.sh
to support situations when multiple concurrent calls to the script are being made.
2013-06-19 10:12:13 -07:00
Hiroaki KAWAI
2f659d6d86
Add comment
...
Comment for RBD explanation.
2013-06-19 15:36:26 +09:00
Jessica Wang
2f2bb6b316
CLOUDSTACK-3016: remove zonetype property from API response (userVM)
2013-06-18 14:55:56 -07:00