prachi
313e6ca284
Bug 8791 user dispersing allocator
...
Changes:
- Added a two new deployment planners 'UserDispersingPlanner' and 'UserConcentratedPodPlanner' to the DeploymentPlanners
- Planner can be chosen by setting the global config variable 'vm.allocation.algorithm' to either of the following values:
('random', 'firstfit', 'userdispersing', 'userconcentratedpod')
- By default, the value is 'random'. When the value is 'random', FirstFitPlanner is invoked as before that shuffles the resource lists.
- Now Admin can choose whether the deployment heuristic should be applied starting at cluster or pod level. This can be done by using the
global config variable 'apply.allocation.algorithm.to.pods' which is false by default. Thus by default as earlier, planner starts at clusters directly.
'UserConcentratedPodPlanner' changes:
- Earlier to 3.0, FirstFitPlanner used to reorder the clusters in case this heuristic was chosen.
- Now this is done by a separate planner and is applied only when 'vm.allocation.algorithm' is set to this planner
- It reorders the capacity based clusters/pods such that those pods having more number of Running Vms for the given account are tried first.
- Note that this userconcentration is applied only to pods and clusters. Not to hosts or storagepools within a cluster.
'UserDispersingPlanner' changes:
- 'UserDispersingPlanner' reorders the capacity ordered pods and clusters based on number of 'Running' VMs for the given account in ascending order. Aim is to choose thodes pods/clusters first which have less number of Running VMs for the given account
- Admin can provide weights to capacity and user dispersion so that both parameters get considered in reordering the pods/clusters. This can be done by setting
the global config parameter 'vm.user.dispersion.weight'. Default value is 1. Thus if this planner is chosen, by default, ordering will be done only by number of Running Vms, unless the weight is changed.
- HostAlllocators and StoragePoolAllocators also reorder the hosts and pools by ascending order of number of Running VMS/ Ready Volumes respectively for the given account. Thus try to choose that host or pool within a cluster with less number of VMs for the account.
2011-11-17 18:29:39 -08:00
Alena Prokharchyk
d0cdc451db
bug 11193: throw insufficientCapacityException when run out of link local ip addresses
...
status 11193: resolved fixed
2011-11-17 17:35:04 -08:00
Murali Reddy
4bdcddf96c
fixed bug in addSrxFirewallCmd API
2011-11-17 17:22:14 -08:00
Alena Prokharchyk
337c07c0d1
Default gateway service to sourceNat service in the API
2011-11-17 16:28:10 -08:00
Sheng Yang
7724bac41b
NaaS: Separate DNS service from DHCP service of virtual router
...
If virtual router provide DHCP but not DNS service, the DHCP response would
contained DNS server address rather than domr itself's address. Then user VM
would use specified DNS server directly.
2011-11-17 16:19:03 -08:00
Alena Prokharchyk
5571afa471
Virtual router elements: prepare nics only when VirtualRouter is a provider for at least one service in the network
2011-11-17 14:33:22 -08:00
Alena Prokharchyk
0bb325ac12
Call implement() and shutdown() methods for providers only when the provider serves a service for the network
2011-11-17 13:53:53 -08:00
Sheng Yang
cb6c1424ef
NaaS: Add virtual router state check for virtual router element
2011-11-17 13:42:29 -08:00
prachi
b0cdb86d9e
Merging listSupportedNetworkServices and listSupportedNetworkServiceProviders.
...
listSupportedNetworkServiceProviders returs list of services with providers and capabilities of each service.
It supports 2 parameters:
-service : list providers and capabilities of this service
-provider: list services of this provider
- if none is specified, lists all services supported
2011-11-17 12:54:31 -08:00
Sheng Yang
cdd8d741ca
NaaS: Add redundant router capability to virtual router
2011-11-17 11:33:04 -08:00
Abhi
9086a39bda
bug 11910: avoid Starting to Running state changes during full sync, as the VM startup process does not like it
2011-11-17 14:32:56 +05:30
Murali Reddy
37908d2669
fixing bug in provider verify logic of SRX element
2011-11-16 18:23:09 -08:00
Alena Prokharchyk
1fadde2082
Fixed bug in list domain level networks
2011-11-16 15:07:24 -08:00
Alena Prokharchyk
790b33bdfc
More validation to network and network offering creation/upgrade
2011-11-16 14:53:38 -08:00
Murali Reddy
cbc72f3ef7
adding service capabities to network offering response
2011-11-16 13:43:09 -08:00
Sheng Yang
d4b1732ff4
NaaS: Fix redundant virtual router
2011-11-16 11:30:09 -08:00
Alena Prokharchyk
339e72d414
Introduced "supportedServices" parameter to createNetworkOffering API. This parameter replaces old parameters: dhcpService, gatewayService, etc.
2011-11-16 11:17:07 -08:00
Murali Reddy
75121bd762
bug 11817 : NAAS external networking device support
...
- added pluggable (service) API's for managing F5 and SRX devices
2011-11-16 10:53:22 -08:00
Murali Reddy
f347158beb
NAAS:fixed provider network element mapping for F5 & netscaler and permit device add when provider in disabled state
2011-11-15 17:29:18 -08:00
Sheng Yang
3aef381b37
NaaS: Add service provider to server-setup.xml
2011-11-15 17:09:55 -08:00
Edison Su
b2a5e26c06
bug 10792: add default system wide firewall rule
...
status 10792: resolved fixed
2011-11-15 16:51:30 -08:00
Alena Prokharchyk
03eb3c9037
Removed unused imports
2011-11-15 16:42:26 -08:00
Kelven Yang
16530b532f
Make XML serializer support all fields within the class tree
2011-11-15 15:01:47 -08:00
Kelven Yang
277c60e4f6
bug 11814: Allow template to have details info in key/value pairs.
2011-11-15 15:01:46 -08:00
Murali Reddy
0b05badaaa
bug 11817: NAAS external network device support
...
-made Netscaler, SRX, F5 network elements as pluggable service
-added abstract load balancer device manager ExternaLoadBalancerDeviceManager
-made both F5 and Netscaler pluggable service to extend ExternaLoadBalancerDeviceManager
-added abstract firewall device manager ExternalFirewallDeviceManager
-made SRX pluugable service to extende ExternalFirewallDeviceManager
-added API's to configure and manage netscaler devices
2011-11-15 12:18:59 -08:00
Alena Prokharchyk
bb2a8cf7ea
NaaS: added "subdomainAccess" parameter to domain level network object. The parameter defines whether the network can be accessed from the subdomains. If the parameter is not specified, it would be defaulted to allow.subdomain.network.access Global Config param
2011-11-14 18:13:47 -08:00
prachi
d7ae15beea
- Fixed missing UUId in listNetworkServiceProviders API
...
- BroadcastDomainRange will be 'POD' for 'basic' zone and 'ZONE' for an advance zone.
2011-11-14 17:39:09 -08:00
Alena Prokharchyk
f157148ea1
aclType is Domain for Guest network in Basic zone
2011-11-14 11:24:17 -08:00
Alena Prokharchyk
87f5150e38
Basic zone is fixed and works with new NaaS now
2011-11-14 10:46:05 -08:00
Alena Prokharchyk
f4136bfd9e
Basic zone
2011-11-14 10:46:04 -08:00
prachi
20e53ce90f
- fixing updateProvider to throw error when the underlying element is not ready
...
- not use includingRemoved while listing networks
- Processing checkNetworkCommand dummy method to avoid failures connecting to Vmware and hyperv resource
2011-11-11 14:20:46 -08:00
Alena Prokharchyk
9ca379fc61
Changes to updateNetwork command:
...
* update network with new networkOfferingId only after the network is shutdown
* fixed NPE happenining when updateNetwork with the networkOffering w/o soucrceNat service in Advance zone
2011-11-11 14:06:42 -08:00
Sheng Yang
cdfac9a5e1
NaaS: Fix UUID of virtual router providers
2011-11-11 13:42:19 -08:00
prachi
da846e9c08
Adding UUID to new entities and API commands. PhysicalNetwork, PhysicalNetworkTrafficType, PhysicalNetworkServiceProviders changed.
2011-11-11 13:23:23 -08:00
Alena Prokharchyk
daec18b4ae
All default network offerings come as Enabled by default
2011-11-11 11:56:10 -08:00
Alena Prokharchyk
08160fa882
Fixed responsename for VirtualRouter element
2011-11-11 11:03:01 -08:00
Naredula Janardhana Reddy
f1b99f4f07
Revert "bug 10617: merging code from branch bug10617"
...
This reverts commit 8bc33448b9220534ba0ddc6c642ffb1e69d5844e.
Conflicts:
server/src/com/cloud/api/ApiResponseHelper.java
2011-11-11 20:23:26 +05:30
Abhinandan Prateek
b793ce6c33
bug 11987: changing virtualmachineimpl to reoccuring listener
...
reviewed-by: nitin
2011-11-11 19:24:09 +05:30
Alena Prokharchyk
039e09ce93
* Introduced aclType parameter for createNetwork command (can hold 2 values now: Account and Domain). This parameter defines the access control type to the network object. If it's account -
...
only owner of the network can access it; if it's domain - all accounts in the domain and domain children can have an access.
* aclType replaces 2 old fields: isShared and isDomainSpecific.
* All 2.2.x account specific networks will have aclType=Account; 2.2.x Domain specific networks - aclType=domain; 2.2.x Zone level networks - aclType=Domain with domainId = Root domain id
2011-11-10 18:34:56 -08:00
Sheng Yang
7adedca8a3
NaaS: Update listVirtualRouterElements to accept nspid as parameter
...
Also fix VirtualRouterProviderResponse by adding objectName.
2011-11-10 17:26:11 -08:00
frank
66645ec478
Bug 11933 - Unable to add Primary Storage (OCFS2) to a OVM Cluster
...
Don't allow character beyond [A-Z0-9] in OCFS2 cluster name
it is not allowed by OCFS2 configure script
reviewed-by: edison
2011-11-10 17:07:06 -08:00
Sheng Yang
8b9b2d0f1a
Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss
...
Conflicts:
setup/db/create-index-fk.sql
setup/db/create-schema.sql
2011-11-10 16:40:54 -08:00
Sheng Yang
bde1f6d2de
Merge branch 'networkasservice'
...
Conflicts:
api/src/com/cloud/api/commands/CreateRedundantVirtualRouterElementCmd.java
api/src/com/cloud/api/commands/CreateVirtualRouterElementCmd.java
server/src/com/cloud/api/ApiResponseHelper.java
server/src/com/cloud/network/ExternalNetworkDeviceManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/src/com/cloud/offerings/NetworkOfferingVO.java
setup/db/create-schema.sql
2011-11-10 16:36:08 -08:00
Alena Prokharchyk
88cdd9f2cf
removed unused fields from networkVO
2011-11-10 16:28:42 -08:00
Edison Su
6d5c27c1e3
bug 11981: upgrade snapshot version number from 2.1 to 2.2 if it's a root volume
...
status 11981: resolved fixed
Reviewed-by: Anthony
2011-11-10 16:22:37 -08:00
Alena Prokharchyk
a1e247ad03
Renamed the field in NetworkOfferingVO
2011-11-10 16:13:31 -08:00
Alex Huang
3ecceedf34
Changed to use resource manager
2011-11-10 15:50:08 -08:00
Alex Huang
d6c22c42fe
Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss
2011-11-10 15:26:39 -08:00
Alex Huang
f6fcaa49ec
Merge complete except for virtualnetworkappliancemanager
2011-11-10 15:18:16 -08:00
Murali Reddy
122b62066a
bug 11817: NAAS: device allocation logic
...
- adding a allocation state to device
- change device allocation logic based on network offering and device state
2011-11-10 09:55:23 -08:00
Naredula Janardhana Reddy
02adbd4bd3
bug 10617: merging code from branch bug10617
2011-11-10 15:23:48 +05:30
Abhinandan Prateek
a2499c9e69
bug 11910: during full sync ignoring VMs which have been into starting state shortly
...
reviewed-by: kishan
2011-11-10 12:00:10 +05:30
Sheng Yang
4ea3aaeb18
NaaS: Add checking for gateway service in update network offering
2011-11-09 19:14:16 -08:00
Sheng Yang
5c1773dd26
NaaS: Add response for VirtualRouterProvider
2011-11-09 18:52:34 -08:00
Murali Reddy
53a636518f
NAAS: changing sharedsourcenat capability to sourceNat service and changin serviceCapablityList parameter to one level map
2011-11-09 18:44:18 -08:00
Sheng Yang
47114af94b
NaaS: Add redundant capability for Gateway service
2011-11-09 17:09:46 -08:00
Sheng Yang
bc86800d30
NaaS: Remove Redundant Virtual Router element
...
Would use capability instead.
2011-11-09 17:09:38 -08:00
Sheng Yang
d6d878c250
NaaS: Refactor capability map of network offering
2011-11-09 17:09:30 -08:00
Sheng Yang
c3c6e4f57a
NaaS: Remove unused code
2011-11-09 17:09:23 -08:00
Sheng Yang
9b8f96c06d
NaaS: Merge Role.DHCP_USERDATA and Role.DHCP_FIREWALL_LB_USERDATA to Role.VIRTUAL_ROUTER
2011-11-09 17:09:17 -08:00
Alena Prokharchyk
79e13ec3f7
Added support for listing networks based on the supported services information
2011-11-09 16:41:15 -08:00
Alena Prokharchyk
0228bca0c2
Use type instead of guestType in network API response (just the way it was done in 2.2.x)
2011-11-09 15:29:13 -08:00
Sheng Yang
29fbb8fa5a
NaaS: Add check for domr start up command
...
DomR may only responsible for a part of them, determined by the service DomR
provided.
2011-11-09 15:24:43 -08:00
Sheng Yang
0876cbeda7
NaaS: Rename VirtualRouterProviderType
2011-11-09 15:24:28 -08:00
Sheng Yang
c09b2b94b3
NaaS: Add ElbVm to Virtual Router Provider
2011-11-09 15:23:33 -08:00
Sheng Yang
be72d81529
NaaS: Make element.prepare() contain only prepare, not DHCP or userdata apply
2011-11-09 15:23:25 -08:00
Sheng Yang
8616705293
NaaS: Add getPhysicalNetworkId()
2011-11-09 15:23:13 -08:00
Sheng Yang
b569a11e45
NaaS: Add DHCP and userdata service provider
2011-11-09 15:23:06 -08:00
Sheng Yang
58568db1d0
NaaS: Use provider() instead of explicit isRedundant flag
2011-11-09 15:23:01 -08:00
Sheng Yang
b85744859f
NaaS: Set new added virtual router element enabled by default
2011-11-09 13:56:35 -08:00
Alena Prokharchyk
3c3cf26f64
Fixed API doc problem
2011-11-09 13:27:35 -08:00
Alena Prokharchyk
8d128fa737
bug 11573: made network wait timeout configurable
...
status 11573: resolved fixed
reviewed-by: Alex Huang
Conflicts:
setup/db/db/schema-2212to2213.sql
2011-11-09 13:14:27 -08:00
Murali Reddy
aaf3b99228
NAAS: fixing NPE in createnetworkoffering with out service capabilities specified
2011-11-09 11:51:04 -08:00
Edison Su
44218ef07c
bug 11919: if volume is dettached, instance id is null
...
status 11919: resolved fixed
Reviewed-by: frank
2011-11-09 10:43:32 -08:00
Alena Prokharchyk
9ae3dffee4
bug 11924: don't return ISO entries where removed != null
...
status 11924: resolved fixed
reviewed by: Will Chan
Conflicts:
server/src/com/cloud/storage/dao/VMTemplateDao.java
server/src/com/cloud/storage/dao/VMTemplateDaoImpl.java
2011-11-09 09:42:31 -08:00
Alex Huang
0353133369
Added ways to acquired ip to network guru
2011-11-09 09:37:22 -08:00
kishan
e331e1c80f
bug 10285: Throw exception when loadbalancer API fails
...
status 10285: resolved fixed
2011-11-09 18:52:55 +05:30
Naredula Janardhana Reddy
00ea2a5995
bug 11590:
...
reviewed-by: Abhi
Summary of Changes:
while adding a primary address to the domR interface, previous primaray addresses(ip) are removed and added as with 32-bit netmask.
This is to avoid two same ip's with different netmask attached to the interface.
2011-11-09 16:44:47 +05:30
Nitin
e2e7da3ff4
bug 11428: Under VMware with current version, for snapshot related related operations,
...
1) if snapshot is originally created from root volume, allow only CreateTemplateCommand from snapshot 2) if snapshot is originally created from data volume, allow only CreateVolumeCommand from snapshot Reviewed by - Kishan
status 11428: resolved fixed
2011-11-09 16:33:09 +05:30
kishan
507bc20c03
bug 11938: Removed unique constraint on usage_network_offering table.
...
status 11938: resolved fixed
reviewed-by: Abhi
2011-11-09 16:28:22 +05:30
kishan
2a620fa5ed
bug 10286: When router API fails, throw error instead of returning null
...
status 10286: resolved fixed
2011-11-09 15:02:43 +05:30
Alena Prokharchyk
50cf9cb8fb
Removed unused code
2011-11-08 15:54:56 -08:00
Alena Prokharchyk
3aff7f00ff
Re-create serviceProvider map when network is updated
2011-11-08 14:55:06 -08:00
Alena Prokharchyk
9c09c35fa5
Fixed incorrect exception method
2011-11-08 14:55:06 -08:00
Murali Reddy
db991dd8f6
NAAS : adding support for service capabilities to be specified as part of network offering
2011-11-08 13:01:44 -08:00
Alena Prokharchyk
eac54e3ad4
Don't allow to upgrade networkOfferingId and networkDomain for Shared network offerings
2011-11-08 12:33:28 -08:00
Alena Prokharchyk
5e6fedb7ff
Removed unused code
2011-11-08 10:36:29 -08:00
kishan
606779b300
bug 11851: When Add VPN user fails, remove the user entry from db instead of leaving in Add state.
...
status 11851: resolved fixed
reviewed-by: Abhi
2011-11-08 15:56:16 +05:30
Alena
0785b64306
bug 11923: don't expose command name in the exception response when command is not available
...
status 11923: resolved fixed
reviewed-by: Will Chan
2011-11-07 18:00:33 -08:00
Kelven Yang
9489d6ffeb
1) Fix a serialization problem in command inherits AsyncCreateCommand.
...
2) Deal with special IDs (i.e. -1) in UUID translation
2011-11-07 18:00:14 -08:00
alena
3a845d2d75
Keep Service/Provider map per network as well as per networkOffering (to handle the case when there are multiple providers defined for the same service in the network offering, and only one is picked when the network is created)
2011-11-07 16:16:03 -08:00
prachi
810f9e4034
While creating Zone, adding default VirtualRouter provider and instance to the default Physical Network.
...
Also adding default trafficTypes to through server-setup.xml
2011-11-07 14:43:41 -08:00
frank
d6db4a686e
Bug 11313 - Add an account param/detail/map in the XXXAccount API calls
...
status 11313: resolved fixed
2011-11-07 14:24:36 -08:00
alena
b55211d4da
Removed unused methods
2011-11-07 11:27:28 -08:00
alena
104ed0a2a2
Direct network guru takes care of only sourceNatDisabled networks in Advance zone
2011-11-07 10:54:19 -08:00
alena
6dcc1691a1
Added missing guest type to the network response
2011-11-07 10:53:28 -08:00
alena
2ef551874a
Fixed Direct Account specific network creation
2011-11-07 10:53:28 -08:00
alena
17a7b7cda4
listNetworkOfferings: added an ability to filter based on the Services supported
2011-11-07 10:53:28 -08:00
alena
7aab227b37
Added one more default network offering - with guestType=Isolated and with DNS/DHCP/USERDATA services supported
2011-11-07 10:50:42 -08:00
Nitin
62e89dc132
bug 11778: Make sure that there exist no PF/LB rules before enabling static nat on an ip and vice versa. Reviewed by - Jana
...
status 11778: resolved fixed
2011-11-07 17:11:15 +05:30