Commit Graph

4201 Commits

Author SHA1 Message Date
Alena Prokharchyk 5423f744b3 Fixed multiple bugs in registerTemplate/registerIso:
1) throw exception when try to register template/iso when there are no zones in the system
2) don't add the template to template_zone_ref when the zone is removed
3) Don't try to download the template when template failed to persist in the DB
2011-11-28 16:50:54 -08:00
Alena Prokharchyk abfbac7928 Moved listAccount/listDomains/listDomainChildren methods from ManagementServer to Account/Domain managers 2011-11-28 15:32:12 -08:00
Alena Prokharchyk 8f91856822 bug 11859: Added Usage param to @Implementation in API docs. Usage would explain what parameters combinations are valid for specific cases
status 11859: resolved fixed
2011-11-28 14:40:13 -08:00
Alena Prokharchyk 628ca6c6d7 bug 11018: removed private_netmask from vm_instance table
status 11018: resolved fixed
2011-11-28 14:15:14 -08:00
Alena Prokharchyk afb56d2112 bug 11492: check volume resource limit when deployVm
status 11492: resolved fixed
2011-11-28 13:38:32 -08:00
Alena Prokharchyk ecd7004f15 bug 11978: don't allow passing -, + and spaces for instance.name config param
status 11978: resolved fixed
2011-11-28 11:52:46 -08:00
Alena Prokharchyk 102f460458 Fixed updateConfiguration - updateHostDetails used to swallow the exceptions 2011-11-28 11:52:45 -08:00
Kelven Yang c3eba2933e bug 11973: Escape VM name to prevent from XSS attack. Reviewed-by: Alex huang 2011-11-28 11:38:31 -08:00
Kelven Yang a7ac3d577a Limit the ID valid range to be either numeric -1L for special usage or in range that it hits a DB record 2011-11-28 11:36:47 -08:00
Alena Prokharchyk 586febd4c1 bug 11965: check the user state on the Services layer, not in the VmManager as VmManager can be called not only from the API, but also by internal methods - HA for instance - and in this case we shouldn't care about the account state
11965 status: resolved fixed

Also fixed gson serialization error in account response
2011-11-28 10:05:19 -08:00
kishan 4e8a0a65f8 bug 12187, 12188: Encrypt system, admin user passwords. Use configDao for ssl.keystore. Set configuration init to null instead of false.
status 12187, 12188: resolved fixed
reviewed-by: Abhi
2011-11-28 18:21:20 +05:30
Abhinandan Prateek 88f9b1ab7c bug 8962: review changes incorporated 2011-11-25 15:03:45 +05:30
Alena Prokharchyk 34b24895eb bug 12176: fixed NPE in resource limit calculation for snapshots
status 12176: resolved fixed
2011-11-24 10:33:11 -08:00
Alena Prokharchyk fc2b95d9c3 Fixed NPE in listIso API 2011-11-24 10:27:00 -08:00
Abhinandan Prateek 655a9805f3 bug 11966: added findNonDisabledAccount 2011-11-24 13:43:12 +05:30
Abhinandan Prateek 16e342836e bug 11966: chnaged the findActiveAccount method to return only the accounts which are active 2011-11-24 13:12:28 +05:30
Abhinandan Prateek d90e19ae28 bug 11825: removing the trace as from the message the origin of problem can be easily traced. 2011-11-24 11:15:51 +05:30
prachi 8134cfb4c8 Bug 11131 - Allocators: when vm fails to deploy in DataCenter, we should never retry in the same DC again as the DC is already in Avoid set
Changes:
- Added check in planner to verfiy that the datacenter is not in avoid set. If found in avoid set, planner does not proceed.
2011-11-23 17:40:20 -08:00
Sheng Yang f14e536cea NaaS: Make CloudZonesNetworkElement implement UserDataServiceProvider 2011-11-23 16:18:28 -08:00
Sheng Yang 539477f5e1 NaaS: Make ExternalDhcpElement implements DhcpServiceProvider 2011-11-23 16:18:21 -08:00
prachi 5eba3d9326 Removing whitespace from tags while storing the Host tags. 2011-11-23 14:21:36 -08:00
prachi f56c3d7bc5 Bug 11126 - Give ability to define tags post storage addition
Changes:
- Enabled updating storage tags
- All existing tags are wiped out and new ones provided are stored.
- Note that, if tags are updated on the storage, no changes are done to the deployment of already running VMs that were deployed prior to tag addition.
- Also added some validation to host tags update API.
2011-11-23 14:21:34 -08:00
frank 275a5ffa3c Fix wrong usage of SearchCriteria2 in AgentMonitor 2011-11-23 11:05:39 -08:00
Nitin Mehta cdd94c1b9a bug 11811: Introduce a global config to disable extraction altogether for all users except root admin. Make changes so that volumes are based out of ISO. Take care of upgrade as well for this global config.
Reviewed by : Kishan.
2011-11-24 00:12:24 +05:30
Nitin Mehta e034e3d7a3 Revert "bug 11811: Changing permissions for extraction of volumes based out of isos."
This reverts commit 9ed2be7ecda7c0bad05aec8e0213e95507ad9be6.
2011-11-23 18:38:37 +05:30
Abhinandan Prateek da20d33e27 bug 11910: full sync will only stop unknown VMs on agent 2011-11-23 16:48:12 +05:30
Murali Reddy beb38c8310 making devices enabled independent of config commands
adding default device capacity when admin does not specify a vlaue
fixed bug in device allocation logic
2011-11-22 19:52:07 -08:00
Alena Prokharchyk aa78c9bfb9 vm Expunge: check that securityGroup-Vm mappings exists before locking the row in userVm table 2011-11-22 16:24:08 -08:00
Alena Prokharchyk c66842b640 bug 11812: added domainId parameter to "login" api doc
status 11812: resolved fixed
2011-11-22 15:34:07 -08:00
Alena Prokharchyk 38b25f3466 bug 11289: return only Free ip addresses as available Ips as a part of listAccounts
status 11289: resolved fixed
2011-11-22 15:25:45 -08:00
Alena Prokharchyk f111d8377e bug 11702: removed obsolete ipaddress parameter from userVm response
status 11792: resolved fixed
2011-11-22 14:29:13 -08:00
Alena Prokharchyk 1ce1f520f1 bug 11406: don't return hypervisor type in API response 2011-11-22 14:13:07 -08:00
Alena Prokharchyk 683b5635e3 bug 11674: fixed listVolumes by zoneId for regularUsers/domainAdmins
status 11674: resolved fixed
2011-11-22 13:55:03 -08:00
prachi a8ffd0ea06 Added unique constraint on providername <-> physical network mapping. 2011-11-22 13:11:02 -08:00
Alena Prokharchyk 74f217e1d0 Introduced new parameter to listNetworkOfferings API - sourceNatEnabled (Boolean). 2011-11-22 10:54:29 -08:00
Alena Prokharchyk e014426889 Added global flag defining if the regular user is allowed to create a project 2011-11-22 10:04:32 -08:00
Abhinandan Prateek 488ac8238e bug 11311: lis host takes in a additional parameter to fine tune the details, the default behavious is still unchanged. 2011-11-22 16:26:52 +05:30
Murali Reddy f302533474 changes response object name for F5/Netscaler/SRX to be lower case 2011-11-21 18:28:51 -08:00
Alena Prokharchyk 45b058a89d Project "Owner" is called project "Admin" 2011-11-21 18:01:44 -08:00
Alena Prokharchyk 85d9de58d6 bug 12127: fixed releasing non-source nat ips
status 12127: resolved fixed
2011-11-21 17:53:40 -08:00
Alena Prokharchyk 4f54b5e9d3 Fixed error message 2011-11-21 17:53:40 -08:00
prachi 0dc7fb48a1 Bug 11962 - MigrateVirtualMachine fails with AgentUnavailableException when the targeted host for migration is under Maintenance
Bug 11964 - You are allowed to migrate a virtual machine on to the host that it already exists o

Changes:
Validations were missing in th MigrateVmCmd API, since from UI the validations are always done while listing hosts for migration as first step.
2011-11-21 17:12:36 -08:00
Murali Reddy 54f4ebf08c changes for SRX add/config commands for UI integration 2011-11-21 16:57:41 -08:00
Alena Prokharchyk 00f6738e24 bug 12105: don't generate corresponding firewall rule for the pf/staticNat/lb rule in revoke state
Conflicts:

	server/test/com/cloud/network/MockNetworkManagerImpl.java
	server/test/com/cloud/user/MockAccountManagerImpl.java
	server/test/com/cloud/vm/MockUserVmManagerImpl.java
2011-11-21 16:34:55 -08:00
prachi 6dc4ae47db Bug 12103: Adding host without labelling guest network fails
We do not set the default network labels as 'cloud-private' anymore. Instead it is set to the values set in global config variable. This should avoid the host connect failures requiring the network labels to be setup.
2011-11-21 14:46:02 -08:00
Murali Reddy c9b2031fa9 changes in add/configure API commands for F5 & Netscaler for UI integration 2011-11-21 13:31:54 -08:00
Alena Prokharchyk d67bef8e78 Owner of the network is system if the network is shared to Domain 2011-11-21 11:52:40 -08:00
Nitin Mehta ec3a00a230 bug 10281: Template/ISO APIs should throw an exception in failure case for the events to be registered as failure.
Reviewed by : Kishan.

status 10281: resolved fixed
2011-11-21 18:58:06 +05:30
Nitin Mehta 57aa7dec91 bug 11811: Changing permissions for extraction of volumes based out of isos.
As per the new design following would be done.
(a) any ISO-derived disk can be extracted
(b) there will be a global config to disable  extraction of ISO based volumes.
That way people concerned about (a) can just use (b) to fix it.
Reviewed by : Kishan.

status 11811: resolved fixed
2011-11-21 16:58:09 +05:30
prachi 4531c9d6f7 Bug 12082 - Not able to deploy Vms with Host tags.
After recent changes of AgentManager, HostDao was wrongly referring to getState() instead of getResourceState().
Fixed this to refer to getResourceState(). This should fix the IndexOutOfBounds error.
2011-11-18 19:03:12 -08:00