313 Commits

Author SHA1 Message Date
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
alena
6cecbdbee9 bug 8663: limit cidr size if network is being created by non Root admin
status 8663: resolved fixed
2011-02-23 18:01:33 -08:00
Edison Su
adbd20ca5a bug 8655: add security group for direct tagged network 2011-02-23 15:53:14 -05:00
alena
cd90bc7166 bug 8412: allow to delete network when it has dhcp/domRs
status 8412: resolved fixed

1) Don't count domR/Dhcp nic in active nics.
2) Removed domR cleanup thread; Network shutdown thread would shutdown domR/dhcp when network has no active vms
2011-02-18 10:31:59 -08:00
alena
96ef94eb37 ShutdownNetwork - added reservationContext parameter (contains account/callerUserId) 2011-02-17 16:13:28 -08:00
alena
8978839d96 bug 8617: Disable firewall/lb/vpn service for Direct network offering, so when user tries to create PF/LB rule for direct IP address, it fails.
status 8617: resolved fixed
2011-02-17 14:31:05 -08:00
alena
6913ed21c5 bug 8572: added more restrictions for network's domain name (see below)
status 8572: resolved fixed

1) As full domain name may not exceed a total length of 253 characters, and host name can be 63 chars long, so don't allow network domain length to exceed 190 chars.
2) Each label can have up to 63 chars
3) The characters allowed in a label are a subset of the ASCII character set, and includes the characters a through z, A through Z, digits 0 through 9, and the hyphen.Labels may not start or end with a hyphen.
2011-02-16 15:53:47 -08:00
alena
1d031e64b8 bug 8334: throw an error when try to create a network with the settings belonging to existing network
status 8334: resolved fixed
2011-02-16 15:53:47 -08:00
alena
c11a9c18e2 bug 8381: disassociateIpAddress is async now 2011-02-15 12:24:18 -08:00
alena
d9dfd37bd4 Reapply static nat rules when domR starts/reboots 2011-02-15 10:45:28 -08:00
alena
d80caf24fd bug 8564: Changed implementation for static nat rules. Now we use separate interfaces instead of PortForwardingRules interfaces.
status 8564: resolved fixed
2011-02-15 10:45:28 -08:00
alena
cb73c1e1fa Fixed NPE in deleteAccount code - when shutdown the network, always set reservation context with account/userCaller information 2011-02-11 12:06:04 -08:00
alena
4054d7e2b5 Store ip address as String instead of Long in user_ip_address and port_forwarding_rules tables 2011-02-09 19:35:03 -08:00
kishan
77719be46a bug 8465: track network usage per router in user_statistics table
status 8465: resolved fixed
2011-02-09 18:38:41 +05:30
alena
83209e53bc bug 8479: remove direct account specific network as a part of account cleanup. Before public direct ip addresses weren't released as a part of nic cleanup - deallocate() method was missing in DirectNetworkGuru
status 8479: resolved fixed
2011-02-08 10:47:05 -08:00
alena
e299402243 Perform security check for deleteNetwork inside the management server method instead of api command itself 2011-02-07 10:02:10 -08:00
alena
e58e085928 Added missing @DB annotation to createNetwork (was lost during git merge) 2011-02-05 18:11:21 -08:00
alena
4fbcbda4d2 bug 8409: listLoadBalancers - for domain admins list only lbs belonging to their domains and subdomains
status 8409: resolved fixed
2011-02-04 18:12:04 -08:00
Alex Huang
86e51eb536 Made changes to the exceptions thrown by NetworkManagerImpl 2011-02-04 11:56:20 -08:00
alena
84fef40ce2 Refactored "allocate vlan to account" code 2011-02-04 09:54:16 -08:00
kishan
56f3343911 Added action events for VM, volume, Ip and snapshot actions 2011-02-04 19:59:41 +05:30
keshav
66cb75ded3 Changed external network provider names to be model specific. 2011-02-03 11:55:39 -08:00