377 Commits

Author SHA1 Message Date
Chiradeep Vittal
56d7be35f1 WIP 2011-07-29 11:04:54 -07:00
Chiradeep Vittal
cd8e069f80 Acquire an ip and launch an ELB vm 2011-07-27 12:00:07 -07:00
alena
0d84cde633 bug 10409: added domainSuffix parameters to account/domain objects 2011-07-15 14:40:39 -07:00
alena
0d2787e2db bug 4706: allow to specify which ip address from the network to take when do vm deployment. The model is supported for multiple network case as well.
status 4706: resolved fixed

Merge from master to 2.2.8 branch

Conflicts:

	api/src/com/cloud/api/ApiConstants.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/guru/GuestNetworkGuru.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-07-15 14:20:52 -07:00
alena
864a04ea6d bug 10671: list domain level networks for children domains when domainId is not specified
status 10671: resolved fixed
2011-07-08 21:17:32 -07:00
alena
9db9d3f36f When release public ip address, make a search by ip+networkId instead of ip+accountId as ipAddress is unique in network only. 2011-07-08 15:55:15 -07:00
alena
a8a9b37824 bug 10553: allow networkDomain update for Guest system network in Basic zone
status 10553: resolved fixed
2011-07-06 14:16:04 -07:00
anthony
7cafe9eae4 fixed compile warning 2011-06-28 10:56:35 -07:00
alena
74f34a0e0c bug 10435: removed vpn feature
status 10435: resolved fixed
2011-06-24 09:18:46 -07:00
alena
38ffe66b66 bug 10424: send userData information only when vm is in one of the following states: Running, Starting, Stopping, Migrating
status 10424: resolved fixed
2011-06-23 11:06:52 -07:00
Murali Reddy
34a36b7009 Bug 10012: Vague error event created when user attempted to exceed limit set for a given resource
status 10012: resolved fixed
2011-06-22 13:00:59 +05:30
alena
336235e5e3 bug 10359: don't allow system network deletion
status 10359: resolved fixed
2011-06-20 09:23:07 -07:00
alena
9fa2e68be6 Validate network domain in upateNetwork command 2011-06-17 16:59:15 -07:00
alena
3127acde93 bug 10233: listNetworks - don't default isSystem=false when id parameter is specified
status 10233: resolved fixed
2011-06-13 09:51:30 -07:00
alena
b9325a28dd bug 9579: allow domain name suffix update for existing networks.
Block update only in these cases:

* when DNS capability AllowDnsSuffixModification is false for the network
* when target network has running network elements (dhcps or domRs)
2011-06-09 16:10:24 -07:00
Alex Huang
575ac62926 bug 9651: propagating 3fd50fd8634958727f4c64c9d1fb7fa27e07e4c8 2011-06-08 15:58:01 -07:00
alena
8948c3dd84 1) listNetworks for domain level network case: fixed search to do multiple joins between the tables instead of querying all the data and making search for each entry.
2) Added new config parameter 'allow.subdomain.network.access' - default value is true. If it's set to false, the child domain can't use the network of the parent domain

Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-06-08 12:00:19 -07:00
Alex Huang
bc67b2a973 bug 9651: update now also shows tags 2011-06-01 17:50:04 -07:00
Alex Huang
2ceadec326 bug 9651: tags parameter added to createnetwork 2011-06-01 17:36:14 -07:00
alena
df403c953d bug 10080: update nic profile with DNS info for the nics with reservation_strategy=Create
status 10080: resolved fixed
2011-06-01 17:05:32 -07:00
Alex Huang
0dfc44582b bug 9651: Adding network tags
Also changes in Request logging.
2011-05-23 15:51:50 -07:00
alena
c2afcdec52 bug 9873: always add default security group to the SG list when deploy vm in 1) Basic zone 2) Advance zone using SG enabled network
status 9873: resolved fixed

Following fixes were made as a part of the checkin:

* When deploy user vm and SG doesn't exist in the DB, create it automatically.
* SecurityGroup enabled use vm start: if map to default group is not present in security_group_vm_map table, create one.
* Added "name" (securityGroupName) parameter back to deleteSecurityGroup/authorizeSecurityGroupIngress/deployVm. Mutually exclusive with security group id parameter.

Conflicts:

	api/src/com/cloud/api/commands/AuthorizeSecurityGroupIngressCmd.java
	api/src/com/cloud/api/commands/DeleteSecurityGroupCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-05-17 15:08:13 -07:00
keshav
d66227d0fb Fixed method to refer to the right provider. 2011-05-16 15:14:55 -07:00
alena
308cbf91fc bug 9879: throw insufficient address capacity exception with pod information in it when fail to allocate public ip address in specific pod
status 9879: resolved fixed
2011-05-16 15:05:00 -07:00
kishan
b738408f7d bug 8866,4942: Added support for Direct Network Usage collection
status 8866,4942: resolved fixed
2011-05-16 18:31:41 +05:30
keshav
435e178eef Added a new service to enabled zone-wide, shared source NAT rules. 2011-05-11 15:35:26 -07:00
Alex Huang
154c6d9021 Propagating 1345af2a0e84684a804bde5b281c30df72f148a0 2011-05-10 05:52:39 -07:00
alena
33b3cb2c1a bug 9693: generate usage event when release Direct ip address.
status 9693: resolved fixed

2 more fixes with this commit:

* bug 9692 is fixed - we don't increment resource count when Direct ip address is allocated.
* as a part of 2.2.2->2.2.4 upgrade resource_count for public_ip records is recalculated - count only Virtual Ip addresses

Conflicts:

	server/src/com/cloud/network/NetworkManager.java
2011-05-03 18:56:52 -07:00
alena
485f7a10cc bug 9621: dbUpgrade - set reservation strategy to be Create for Guest Nics in Basic zone
status 9621: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade218to22.java
	setup/db/db/schema-222to224.sql
2011-04-27 22:51:56 -07:00
alena
2aa5f8996b listNetworks: allow seeing Guest system network in Basic zone 2011-04-27 13:57:24 -07:00
alena
81e7b25217 Fixed ipAssoc in Basic zone (elastic IP) 2011-04-27 11:15:30 -07:00
alena
508fef2269 Apply nic profile to nic: don't set reservationStrategy for DB object when it's value is NULL 2011-04-26 17:51:49 -07:00
alena
4290abb57c bug 9578: when deploy dhcp in Basic zone, put pod information to deploymentPlan
status 9578: resolved fixed
2011-04-26 14:57:40 -07:00
alena
3d33fd7f92 deleteNetwork: return false when fail to cleanup network resources (LB/PF/StaticNat rules) 2011-04-21 13:59:06 -07:00
alena
63cd66beb0 Fixed the bug in listNetworks when isSystem parameter was ignored if it was specified along with account/domainId parameter 2011-04-19 18:30:55 -07:00
anthony
e0ba2a2fa6 clean up transation code 2011-04-12 18:56:49 -07:00
alena
acaab55c3e bug 9391: removed source_id, source_type from "volumes" table as we don't use them any more
status 9391: resolved fixed

Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-04-11 18:19:10 -07:00
Frank
105db3b15a Merge branch 'baremetal' to master
modifies:
	api/src/com/cloud/api/ApiConstants.java
	api/src/com/cloud/api/commands/AddHostCmd.java
	api/src/com/cloud/api/commands/CreatePodCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	api/src/com/cloud/dc/Pod.java
	api/src/com/cloud/network/NetworkService.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/dc/HostPodVO.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	setup/db/create-schema.sql
	utils/src/com/cloud/utils/SerialVersionUID.java
2011-04-11 14:21:41 -07:00
alena
9b4b0abcce bug 8959: fixed mac address generation for public ip addresses 2011-04-04 18:26:11 -07:00
alena
c6b8c0ecfa bug 9305: set Mode field for domR/CPVM/SSVM nics
status 9305: resolved fixed
2011-04-04 17:51:53 -07:00
alena
bf588166ed bug 7704: network limits cleanup.
status 7704: resolved fixed

For user vm:
* for default network, take limit from the corresponding service offering
* for all additional networks, take limit from the network offerings

For domainRouter/SSVM/CPVM:
* get info from the network offering

Added new config parameter: "vm.network.throttling.rate". If nw_rate is NULL for serviceOffering, this parameter would be used for default vm's network
2011-04-01 15:48:32 -07:00
alena
bb31bc779f For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks. 2011-03-30 14:49:15 -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
237c57e74f bug 9146: createNetwork via 8096 - assume that network is domain specific when domainId is not null and isShared = true.
status 9146: resolved fixed
2011-03-24 16:04:12 -07:00
alena
a2619b902f AssociateIPAddress - first IP associated with the network should always be a source nat 2011-03-24 14:25:20 -07:00
alena
cced97c5fb ipAssoc - verify that ip owner is the same as the owner of the network we are assigning ip to 2011-03-24 13:32:31 -07:00
prachi
50244b79ab Zone check in createNetwork for Bug 6873 - disable/enable mode for clusters (and pods and zones and hosts) 2011-03-23 22:20:53 -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
alena
404b288af4 Throw an exception when can't find network offering during zone creation 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