1369 Commits

Author SHA1 Message Date
U-CITRITE\vijayendra1
698c1ebe12 Bug 13127: API error text refer to database ids instead of uuids
Description:

1)	Adding two new classes, CloudException and RunTimeCloudException.
	The former extends Exception and the latter RunTimeException.
	These will be used by classes that formerly directly extended
	Exception and RuntimeException. These two classes have an attribute
	of type IdentityProxy to enable exceptions fill in db ids in separate
	attribute fields rather than in a string. Doing so will allow the
	serialization module (GSON for JSON and other for XML) to kick in
	and convert this db id to a uuid in ApiServer.java just before the
	JSON/XML responses are sent out.

2)	Moving IdentityProxy.java from api/ to utils/ since
	both CloudException and RuntimeCloudException refer to it.

3)	Changing references to IdentityProxy class from api/ to utils/.

4)	While rebasing to master, a new file was added, merging
	api/src/com/cloud/api/response/IsoVmResponse.java to this diff.
2012-02-27 17:54:50 -08:00
Alena Prokharchyk
867db1ae5e Don't initialize the logger in AsyncJobResponse class 2012-02-27 14:22:58 -08:00
Alena Prokharchyk
856418e700 bug 13860: Added async job types to Account/User Async api commands and more logging.
Reviewed-by: Kelven Yang
2012-02-27 10:36:17 -08:00
Alena Prokharchyk
75bbefec63 More details to api doc
Reviewed-by: Jessica Tomechak
2012-02-24 16:12:17 -08:00
Alena Prokharchyk
f03fc196ad bug 13961: always return NetworkUsageAnswer from the networkUsageCommand
status 13961: resolved fixed
Reviewed-by: Alex Huang
2012-02-23 11:15:38 -08:00
Alena Prokharchyk
6b9abf832b bug 13944: when delete the account, expunge detached volumes on the backend
status 13944: resolved fixed
Reviewed-by: Frank Zhang
2012-02-22 17:59:22 -08:00
prachi
e37732c4de Bug 13766 - VMs are still running after disabling the zone
Reviewed-by: Sheng Yang

Changes:
- Do not check if allocation_state is 'Enabled' in planner if the caller is Root Admin.
- This should let Root Admin create a VM in a disabled Zone.
2012-02-22 17:34:00 -08:00
Alena Prokharchyk
798accae10 Added isTagged parameter to listNetworkOfferings api. When set to true, it will return offerings with not null tag values
Reviewed-by: Jessica Wang
2012-02-22 16:09:35 -08:00
Alena Prokharchyk
df7439eca2 bug 13928: more description to migrateVm api
status 13928: resolved fixed
Reviewed-by: Jessica Tomechak
2012-02-22 15:07:19 -08:00
Alena Prokharchyk
2992c608c4 bug 13919: do includingRemoved Nic search when remove firewall rules during the vm expunge
status 13919: resolved fixed
Reviewed-by: Sheng Yang
2012-02-21 18:02:44 -08:00
Alena Prokharchyk
2e9511e2ae Changed isElastic to isSystem for the publicIpAddress assigned during the vm deployment in EIP enabled network
Reviewed-by: Chiradeep
2012-02-21 15:39:49 -08:00
Alena Prokharchyk
12b79da6c2 bug 13903: return vm's hostName as a displayName when displayName is null in bunch of api responses
status 13903: resolved fixed
Reviewed-by: Kelven Yang
2012-02-21 10:46:00 -08:00
frank
65351fd1ce Bug 13809 - Unable to execute API command deletestoragenetworkiprange due to invalid value. Object dc_storage_network_ip_range(uuid: undefined) does not exist.
status 13809: resolved fixed
reviewed-by: Sheng Yang
2012-02-17 16:24:38 -08:00
frank
a1fa313902 Bug 13568 - secondary storage VM's static route for nfs server breaks things!
status 13568: resolved fixed
reviewed-by: Sheng Yang
2012-02-17 16:24:32 -08:00
prachi
7181fed101 Added instanceType to some async commands related to physical network
Reviewed-By: Alena Prokharchyk

Conflicts:

	api/src/com/cloud/api/response/AsyncJobResponse.java
	api/src/com/cloud/async/AsyncJob.java
2012-02-17 15:41:34 -08:00
Alena Prokharchyk
31a3b878a3 bug 13864: for elastic IP address return the purpose (staticNat or Lb) in listPublicIpAddresses api response
Reviewed-by: Frank
2012-02-17 15:42:21 -08:00
Alena Prokharchyk
4d27f3c44b bug 13866: return publicIp info in listVms api response when vm is linked to public ip via static nat
Reviewed-by: Frank
2012-02-17 15:42:17 -08:00
Alena Prokharchyk
cf28936b5f bug 13860: set entity type in a bunch of async api commands
status 13860: resolved fixed
Reviewed-by: Prachi Damle
2012-02-17 14:16:13 -08:00
Edison Su
39403e845b bug 13843: storageid is mandatory
status 13843: resolved fixed
Reviewed-by: frank
2012-02-17 13:04:48 -08:00
Jessica Tomechak
458058bc87 Expand documentation of returned alert types in listAlerts API Reference page. 2012-02-17 04:22:04 -08:00
abhi
1d96a17698 bug 13812: throw error if addition of host fails 2012-02-17 16:27:29 +05:30
kishan
ced6fd46b8 Bug 12954: Added usage for security groups. Usage will be generated for each security group that is assigned to a Vm.
Status 12954: resolved fixed
Reviewed-By: Nitin
2012-02-17 13:50:18 +05:30
anthony
61603335b2 bug 13810: by default, remove local storage when host is removed
status 13810: resolved fixed

reviewed-by : edison
2012-02-16 18:27:40 -08:00
Alena Prokharchyk
5e9a15c07d bug 13708: make a search by traffic type when locate physical network in the zone
status 13708: resolved fixed
reviewed-by: Prachi Damle
2012-02-14 12:47:33 -08:00
Alena Prokharchyk
5446826a2f Added instanceType to some physical network async commands
Reviewed-by: Kelven Yang
2012-02-14 12:47:26 -08:00
Alena Prokharchyk
294d3a2fda Code format fixes 2012-02-10 15:10:21 -08:00
Nitin Mehta
b2c7986ba3 Bug 13059: Remove topused flag.
Reviewed-By: Kishan
2012-02-10 17:07:21 +05:30
Edison Su
1ab89dd436 add cert chain in db, and also open the api to upload a cert chain 2012-02-09 14:56:40 -08:00
frank
aa9d250280 port copy template fix to acton 2012-02-09 14:19:08 -08:00
prachi
05af078358 Bug 8791 - user dispersing allocator
Changes:
To migrate systems using 'use.user.concentrated.pod.allocation' as true and 'vm.allocation.algorithm' as true, we need to
add following changes:

- There will be 5 values to 'vm.allocation.algorithm': 'random', 'firstfit', 'userdispersing', 'userconcentratedpod_random', 'userconcentratedpod_firstfit'
- 'userconcentratedpod_random' means we apply user concentration to pods and clusters. To hosts and pools we use random ordering.
- 'userconcentratedpod_firstfit' means we apply user concentration to pods and clusters. To hosts and pools we use firstfit ordering.
2012-02-08 17:03:38 -08:00
Sheng Yang
fadec7afe7 Add "changecidr" parameter for updateNetwork API
CIDR may be different after update to a service offering contained external
network element, user is required to acknowledge this, otherwise the update
won't process
2012-02-08 15:57:50 -08:00
Sheng Yang
9317eb6bc3 Revert dynamic cidr change 2012-02-08 15:54:22 -08:00
Sheng Yang
18ec438793 Revert zone guest cidr setting 2012-02-08 15:54:16 -08:00
Alena Prokharchyk
30f9d1d82e Merged listCapacity and ListTopConsumedResources calls. To list most consumed resources, pass sortBy=usage to listCapacity api 2012-02-08 13:33:06 -08:00
Nitin Mehta
e6beb08f1b Bug 13059: Keeping the param name more intuitive Also adding the ciode for listing used and total capacity as well.
Reviewed-By: Kishan
2012-02-08 18:03:22 +05:30
Nitin Mehta
cbc47b9021 Bug 13059: For listing top consumed resources only uyse enabled zone for sec storage Also improve the transaction logic.
Reviewed-By: Kishan
2012-02-08 15:34:56 +05:30
abhi
44c172bdc2 bug 12980: added trust store for ssl 2012-02-08 13:07:19 +05:30
Nitin Mehta
1fc0afe3f2 Bug 13059: Remove the listTipConsumedResources api and introduced a sortbyusage flag in the listCapacity call.
Reviewed-By: Kishan
2012-02-08 11:50:55 +05:30
Nitin Mehta
ce26703e5c Bug 13059: Make DB changes to list top consumed resources for enabled resources only. For this introdiuced a new state called capacity state in the op_host_capacity table and would be updated on every operation of zone pod cluster and host
Reviewed-By: Kishan
2012-02-07 20:53:25 +05:30
frank
b59c3c595e return netmask in listStorageNetworkIpRangeCmd 2012-02-06 14:37:56 -08:00
frank
bea12dc6a4 fix typo in listStorageNetworkIpRangeCmd 2012-02-06 14:01:17 -08:00
Alena Prokharchyk
d04f0b4752 Removed port ranges from createPortForwardingRule API 2012-02-06 10:06:53 -08:00
Nitin Mehta
93b8178f19 Bug 13059: Introduce a new api to list top consumed resources in cloudstack.
Reviewed-By: Kishan
2012-02-06 20:32:40 +05:30
Naredula Janardhana Reddy
ce22712293 Bug 12812:
Summary of changes:  Database changes will be rollbacked while applying the LB rule to the Netscaler device.
   - Database changes will be rollbacked to previous state during the following Lb API's:
      1) assignVM to LB rule
      2) remove VM from LB rule
      3) updateLb rule
      4) deleteLb rule
      5) create/attach sticky policy to Lb rule
      6) delete sticky policy from Lb rule
   - Database changes of the Lb rule will be not be rolledback during:
       1) Removing IP
       2) removing VM
2012-02-06 19:16:34 +05:30
abhi
59c7150af7 bug 13439: full sync at management server restart, disabling hourly sync 2012-02-06 15:01:44 +05:30
Alena Prokharchyk
3a87cf8331 Code style fixes for API package 2012-02-03 14:25:26 -08:00
Alena Prokharchyk
1490e45a1c Fixed format style in a bunch of files (replaced tabs with spaces as a part of it) 2012-02-03 13:49:11 -08:00
Alena Prokharchyk
edd4c84ca1 Add domain name info for private zones in listZones api response 2012-02-01 11:26:00 -08:00
Naredula Janardhana Reddy
aea81205ef Bug 11845:
Summary of Changes:
    - created a generic way for LB rule validations, so as LB device(like Haproxy) specific validations can be done syncronously.
    - Removed asyncronous validations from Haproxy and done syncronously.
2012-02-01 18:01:11 +05:30
Nitin Mehta
0f30b0d46c Bug 13389: updatetemplate- Add the identity mapper for guest os id param.
Reviewed-By: Kishan
2012-01-31 22:05:54 +05:30