Commit Graph

334 Commits

Author SHA1 Message Date
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
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
alena abb2e2b2ff bug 8831: partial checkin for Domain specific Networks (includes DB changes) 2011-03-21 15:05:07 -07:00
alena 95faeb620e bug 8863: generate usage event when PF/LB/StaticNat rule is set with Revoke status, not when it's actually removed on the backend.
status 8863: resolved fixed
2011-03-16 09:41:50 -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 68219eba31 Fixed create vlan range for Account - pick source nat ip address from account specific vlan 2011-03-15 10:23:40 -07:00
alena 4423e4d174 bug 8867: cidr is required for Direct network creation; remove this limitation later after we allow Shared network to have multiple ip ranges having different Cidrs
status 8867: resolved fixed
2011-03-10 14:40:35 -08:00
alena 3448513465 bug 8666: perform RFC1918 check for cidr of Guest Virtual cidr when 1) Create/Update zone 2) Create guest virtual network
status 8666: resolved fixed
2011-03-10 14:06:43 -08:00
alena dee3aefecf bug 8508: assign source nat ip address only during network implementation.
status 8508: resolved fixed
2011-03-10 13:34:35 -08:00
alena e89fc252f2 bug 8851: Guest Virtual Network can't be shared
status 8851: resolved fixed
2011-03-10 10:35:52 -08:00
alena 37d9b5ab50 bug 8849: Don't allow create Guest Virtual and Direct shared networks in Security Group enabled zone
status 8849: resolved fixed
2011-03-09 18:17:01 -08:00
alena 4f4683ec93 bug 8937: throw an Exception when fail to reapply Firewall rules as a part of network Implement
status 8937: resolved fixed
2011-03-09 16:24:28 -08:00
alena 5842392ec1 bug 8146: Multiple network case (default network is Virtual) - for Direct networks dhcp servers set dns to the eth0 ip address of the domR belonging to virtualNetwork
bug 8146: resolved fixed
2011-03-07 19:56:25 -08:00
alena b20fafeaa4 bug 8874: rebootVm - don't try to implement already implemented network
status 8874: resolved fixed
2011-03-07 10:23:48 -08:00
alena 94fb0612f2 Fixed DB upgrade script - vm_type field can be NULL
Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-03-05 10:37:57 -08:00
Alex Huang 40db230095 more changes for db upgrade 2011-03-04 11:09:24 -08:00
alena 715a929e91 Separate createVm methods for 1) vm in Basic zone 2) Vm with SecurityGroup in Advanced zone 3) Vm without SecurityGroup in AdvancedZone 2011-03-03 16:13:00 -08:00
alena 1025f16940 bug 8819: Don't allow upgrade system network offerings
status 8819: resolved fixed
2011-03-02 15:55:36 -08:00
alena b3ff533244 bug 8795: start domR after corresponding network is shutdown - implement network before starting the domR
status 8795: resolved fixed

Conflicts:

	api/src/com/cloud/deploy/DeployDestination.java
2011-03-02 13:46:57 -08:00
alena d764bf245b Throw an error when fail to configure one of the nics for multiNic user Vm 2011-03-01 18:07:49 -08:00
alena a8e70cf9b4 bug 8763: Fixed account cleanup process - don't destroy networks when vm expunge failed
status 8763: resolved fixed

Conflicts:

	server/src/com/cloud/user/AccountManagerImpl.java
2011-03-01 14:25:09 -08:00
alena 24b57c5373 Regular user can create guest virtual network only 2011-03-01 10:46:25 -08:00
alena 858578993f Set specify_vlan=1 for Direct Network offering. 2011-03-01 10:01:58 -08:00
alena f395005e0a bug 8781: set dhcp/dns/userData providers to be DhcpServer in Basic zone; all other providers have to be null
status 8781: resolved fixed
2011-03-01 09:00:47 -08:00
alena 7c7710c204 Allow network restart only for the networks in Setup and Implemented states. 2011-02-28 16:28:54 -08:00
Edison Su 2705adb3b1 security group is per bridge 2011-02-28 12:16:40 -05:00
alena 08a535ec87 bug 8772: implementNetwork - reapply all the network rules for corresponding network elements every time network is re-implemented
status 8772: resolved fixed
2011-02-28 11:27:02 -08:00
alena 62b3d548d6 bug 8753: never release public Ip address without ensuring that all corresponding resources (PF/StaticNat/Lb rules) are cleaned up.
Fixed couple of other problems along:

* when expunge PF/Static nat rules as a part of vmExpunge/IpRelease process, first mark all rules as Revoke, and then send commands to the backend. Group commands by Ip address.
Before we used to do Revoke/Send per rule basis.
* When release source nat rule, make sure that corresponding vpn (if exists) is being expunged.
2011-02-28 09:21:05 -08:00
alena ec76406942 bug 8737: set entityOwnerId for all api commands including non-Async ones
status 8737: resolved fixed
2011-02-28 09:21:05 -08:00
Edison Su ac8524da51 creating zone wide vlan is disabled if zone is security group enabled 2011-02-25 15:30:02 -05:00
Edison Su 1ccec531b7 list systemonly direct network if zone is security group enabled 2011-02-25 14:23:01 -05:00
alena 9cf48bbfbd bug 8686: don't allow to create network from the network offering with Availability=Unavailable
status 8686: resolved fixed
2011-02-25 11:44:00 -08:00
alena fdbdba7a78 bug 8704: listNetworks with account/domainId parameter - return account specific and shared networks
status 8704: resolved fixed
2011-02-25 11:29:02 -08:00
alena 1dbd012fdc bug 8720: don't allow to create network with custom vlan when networkOffering's guest IP type is Virtual
status 8720: resolved fixed
2011-02-25 11:29:02 -08:00
kishan 0f47eac637 bug 7842: Add account_id to user_context during create network 2011-02-25 13:15:46 +05:30
Edison Su 8a40371288 refactor security group in advanced network mode: use direct tagged network instead of public network 2011-02-24 19:58:18 -05:00
alena f8993d9ec4 Fixed NPE in vm expunge process - when cleanup static nat rules after corresponding vm is expunged, make search for guest Nic including removed. 2011-02-24 18:27:55 -08:00
alena 039b11b9ba 1) Added guestIpType to the network offering; create/listNetworkOffering apis got changed accordingly.
2) Set traffic Type to be Guest for Direct/Virtual non-system default network offerings. Use this guestIpType during the network creation/implementation
2011-02-24 15:36:01 -08:00
alena 54b3fff123 When network is removed, remove it from network GC list 2011-02-23 18:56:54 -08:00
alena 1f1e393b03 Release vnet during network shutdown for guest networks only 2011-02-23 18:50:23 -08:00
alena 6424042cac bug 8659: deleteNetwork is async now
status 8659: resolved fixed
2011-02-23 18:01:33 -08:00
alena 63cff8de26 Regular user is allowed to create Guest networks only; throw an error when he tries to use networkOffering with trafficType Public 2011-02-23 18:01:33 -08:00