731 Commits

Author SHA1 Message Date
alena
efd4cfa297 bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
status 9201: resolved fixed
2011-03-29 19:26:20 -07:00
alena
aab78874c7 bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
status 9201: resolved fixed
2011-03-29 19:21:25 -07:00
alena
f04f2ab10c bug 9192: More improvements to listVm performance - cache dataCenter/serviceOffering/Network/Template/Iso information on Api level
status 9192: resolved fixed
2011-03-29 19:18:30 -07:00
alena
2af46789cb bug 9192: multiple improvementes to listVms command.
1) No longer do multiple searches involving "domain" table; only one join with domain is being done.
2) Do join with domain table only when command is executed by domainAdmin
3) Added index for "path" field in "domain" table
4) No longer do joins with account table as account_id is already present in vm_instance table.
2011-03-29 19:18:30 -07:00
alena
9f3f99f27f bug 9192: More improvements to listVm performance - cache dataCenter/serviceOffering/Network/Template/Iso information on Api level
status 9192: resolved fixed
2011-03-29 18:42:44 -07:00
alena
46a80a599a bug 9192: multiple improvementes to listVms command.
1) No longer do multiple searches involving "domain" table; only one join with domain is being done.
2) Do join with domain table only when command is executed by domainAdmin
3) Added index for "path" field in "domain" table
4) No longer do joins with account table as account_id is already present in vm_instance table.
2011-03-29 18:42:44 -07:00
anthony
0ed810824c bug 9189:
add new command
2011-03-29 10:55:24 -07:00
anthony
4ae19b76ab bug 9189:
add new command
2011-03-29 10:52:11 -07:00
alena
7436654f4f Use correct response type for the user response in list/create/update/enable/disableAccount commands. 2011-03-28 18:28:09 -07:00
alena
65a083b1db bug 8831: no need for "isdedicatedtodomain" and "dedicateddomainid" parameters. If 1) network is private, return account/domainId 2)If network is shared for specific domain, return domainId only 3) If network is shared in zone, don't return account/domainId
status 8831: resolved fixed
2011-03-28 16:54:09 -07:00
alena
d3357c6691 Set network limit to be 0 by default for Control/Management/Storage/Public networks (these networks are used by SSVM/ConsoleProxy/domR) 2011-03-28 15:48:11 -07:00
alena
cc79f75197 createIpForwardingRule - revoke the rule when it fails to apply on the backend - the way it's done for portForwarding rules 2011-03-28 12:27:00 -07:00
alena
8c61e10c08 bug 9158: introduced new parameter "storageId" to listVirtualMachines api.
status 9158: resolved fixed

1) Works for admins only
2) When specified, list only vms that have volumes on this storage
2011-03-25 18:26:59 -07:00
nit
ded1184548 bug 8710: Introducing a new user role in cloudstack called RESOURCE_DOMAIN_ADMIN. The role would have all the domain_admin rights and the rights to list zone,pods,clusters and so on. More info in the bug 2011-03-25 18:04:09 -07:00
alena
bb895a7b75 bug 8103: don't allow to remove host if it has Running/Stopping/Starting vms
status 8103: resolved fixed
2011-03-25 17:29:54 -07:00
alena
1932652125 bug 5912: Added events and logging for securityGroup create/delete
status 5912: resolved fixed
2011-03-25 15:23:18 -07:00
Alex Huang
9d158dc060 Removed the async create status for volume now that our customers don't use it 2011-03-24 20:04:23 -07:00
prachi
923f562aa8 Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
- Added a new flag 'allocation_state' to zone,pod,cluster and host
- The possible values for this flag are 'Enabled' or 'Disabled'
- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.
- For existing zone,pod,cluster or host, the state is 'Enabled'.
- All Add/Update/List  commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'
- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.
- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.
- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.
- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.
If this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.
If VM cannot be deployed to that host, allocators and deployVM fails without retrying
2011-03-23 22:15:35 -07:00
Kelven Yang
1c9196f9af add vncPassword on hypervisor back 2011-03-23 16:18:22 -07:00
alena
8de3bacd2b bug 9026: added ability to turn off apiCommand/commandParameter for docGeneration
status 9026: resolved fixed

1) Don't expose following commands in doc:

* registerSSHKeyPair
* createSSHKeyPair
* deleteSSHKeyPair
* listSSHKeyPairs

2) Don't show "sshKeyPairName" parameter for deployVm command
2011-03-23 12:56:58 -07:00
alena
7dce8412e4 Fixed API xml doc generation 2011-03-23 12:12:29 -07:00
alena
f95d845360 bug 9053: modified updateUser api (mentioned that api and secret keys must be specified together. 2011-03-23 12:12:29 -07:00
alena
f84c81a47d bug 8533: all IP Address fields in DB have char(40) type
status 8533: resolved fixed
2011-03-22 14:06:14 -07:00
alena
718386a2b6 bug 8862: added updateNetwork api command. Can update name/displayText only 2011-03-22 11:26:56 -07:00
alena
e9a10c53dc bug 8831: added 2 new parameters to create/listNetworks api: "isdedicatedtodomain" and "dedicateddomainid" 2011-03-22 10:17:08 -07:00
alena
7c1a6e4884 bug 8831: API/Management server part is done for "Dedicate Network to domain". UI part is left 2011-03-21 18:17:59 -07:00
Frank
b4e18b7fbe Bug 8208 - bare metal provisioning
use hostTags in addHostCmd
2011-03-18 18:04:34 -07:00
alena
a27c4881ea bug 7424: 0 value for network.throttling.rate global config param indicates that network throttling is disabled
status 7424: resolved fixed
2011-03-18 15:23:03 -07:00
Kelven Yang
65d4cc98be Allow template re-deployment once template is deleted from hypervisor and CloudStack still holds out-dated status 2011-03-17 17:59:51 -07:00
alena
96e83fe97f bug 8146: Elastic IP support in Basic zone.
Following was done as a part of checkin:

1) NetworkOffering/Network:

* add PF service support for default Guest network offering.
* Add one more additional network - Public.
* Allow to enable external firewall in Basic zone.

2) Don't allow to deployVm in Public Network.
3) Allow to add vlan ip ranges to Public networks in Basic zone.
4) Associate IP - allow to associate with Direct vms.
5) Allow to create PF/Static nat rules. Rules are being sent to External Firewall Rule only.
6) Add PF support to External Firewall element.
2011-03-17 17:19:36 -07:00
will
ae549ed4d1 bug 8208: Added first addHost dialog to take into account baremetal requirements in the resource page.
- Standardized the addHost optional parameters for baremetal.
2011-03-17 16:29:31 -07:00
Chiradeep Vittal
8d791777db Introduce zone (datacenter) details 2011-03-15 15:44:36 -07:00
alena
d2f92f1c76 bug 8973: Create Virtual Guest network as a part of deployVm if corresponding networkOffering has availability=Required and no networkIds are specified
status 8973: resolved fixed
2011-03-15 15:06:52 -07:00
alena
d3f04b2b38 bug 8945: introduced "default.page.limit" config param (default value is 500). Used for pagination in API list* commands.
status 8945: resolved fixed
2011-03-15 15:06:52 -07:00
nit
f88fb1e505 bug 8887 : Stats Calculation Improvement - Storage stats wont update DB anymore and would be kept "in memory" just like other stats. For the listCapacityCmd which consumes it (sec. storage used and primary storage used) this would be constructed using the in memory maps rather than DB which wont have sec storage and primary storage used in the DB anymore. 2011-03-14 18:45:00 -07:00
Frank
ffb900fc86 Bug 8208 - bare metal provisioning
Add useExternalDhcp option to createPodCmd
2011-03-14 16:42:59 -07:00
alena
bf1aae8413 bug 8730: perform permission check when listSshKeyPair
status 8730: resolved fixed
2011-03-14 16:03:25 -07:00
alena
c32198838f bug 8724: can create sshKeyPair in behalf of other users now
status 8724: resolved fixed
2011-03-14 15:37:50 -07:00
prachi
402f275a9f Change for Bug 3316 - manual live migration
The MigrateVMCmd response should be in all small case.
2011-03-11 17:49:54 -08:00
prachi
ed9a11c6b6 API changes for Bug 3316 - Manual live migration of Virtual Machines
This is a Root admin only functionality
---------------------
Service API changes:
---------------------
- ManagementServer  will expose new API:
   Pair<List<HostVO>, List<Long>> listHostsForMigrationOfVM(UserVm vm, Long
startIndex, Long pageSize)
The API returns list of all hosts in the VM's cluster minus the current host and also a list of hostIds that seem to have enough CPU and RAM capacity to host this VM.
- ListHostsCmd will call this service API if virtualmachineid is present in the request.
- MigrateVmCmd is the new command added that takes in virtualmachineid and destination hostid
- UserVmService  will expose a new API:  UserVm migrateVirtualMachine(UserVm vm, Host destinationHost)

------------------------------------
API throws error in following cases:
------------------------------------
- User is not a root Admin. (‘Permission denied’)
- A VM uses local storage, we cannot migrate it, so ‘listHosts’ will throw error.
- We fail to migrate the VM on the chosen host.
- API will support migration for XenServer only currently. So error is thrown
if hypervisor is not XenServer (e.g KVM, vSphere etc)
- Destination host is not in same cluster as source host.
- VM is not in running state
2011-03-11 17:49:53 -08:00
Frank
e872996084 Bug 8208 - bare metal provisioning
get DHCP entry state from DHCP server
2011-03-11 14:09:23 -08:00
Frank
4324efea26 Bug 8208 - bare metal provisioning
able to get IP from external DHCP server
2011-03-11 14:09:23 -08:00
alena
346ca43714 bug 6892: update resourceCount for snapshot after the DB record is created; if snapshot fails to create on the backend - reduce resource count
Also fixed couple of other issues:
* usage event generation - generate event only when snapshot is created on primary and backed up on secondary
* zoneId was always set to 0 for snapshot.delete event, fixed this.
* Fixed resource_count decrement for manual snapshot deletion
2011-03-10 18:03:06 -08:00
alena
df3704e360 bug 8861: introduced optional zoneId parameter to listNetworkOfferings command
status 8861: resolved fixed
2011-03-09 18:05:53 -08:00
alena
b6ae35728e bug 8816: 1) return linkLocal instead of private ip/netmask/mac in listRouters 2) return linkLocal/private ip/netmask/mac in listSystemVms response 2011-03-09 16:47:46 -08:00
alena
a0d79bda91 bug 8931: get account information for Action even from IP object, not from the Caller
status 8931: resolved fixed
2011-03-09 13:32:36 -08:00
alena
0c04007e04 bug 8734: search by keyword in listPublicIpAddresses command
status 8734: resolved fixed
2011-03-09 13:32:36 -08:00
alena
5129df106b bug 8847: createUser api - "account" parameter is required now
status 8847: resolved fixed
2011-03-09 10:21:50 -08:00
alena
e2de70f363 bug 8884: deleteUser - id is required parameter
status 8884: resolved fixed
2011-03-09 09:44:50 -08:00
alena
e25fbe3a89 bug 8885: enableAccount - account/domainID are required parameters now
status 8885: resolved fixed
2011-03-09 09:31:39 -08:00