Commit Graph

774 Commits

Author SHA1 Message Date
Alena Prokharchyk d31449f1c0 Name change for vpc/Dao package (dao is lowercased now)
Conflicts:

	api/src/com/cloud/vm/PluggableNics.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/network/dao/RouterNetworkDaoImpl.java
	server/src/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java
	server/src/com/cloud/network/vpc/dao/PrivateIpDao.java
	server/src/com/cloud/network/vpc/dao/PrivateIpDaoImpl.java
	server/src/com/cloud/network/vpc/dao/StaticRouteDao.java
	server/src/com/cloud/network/vpc/dao/StaticRouteDaoImpl.java
	server/src/com/cloud/network/vpc/dao/VpcDao.java
	server/src/com/cloud/network/vpc/dao/VpcDaoImpl.java
	server/src/com/cloud/network/vpc/dao/VpcGatewayDao.java
	server/src/com/cloud/network/vpc/dao/VpcGatewayDaoImpl.java
	server/src/com/cloud/network/vpc/dao/VpcOfferingDao.java
	server/src/com/cloud/network/vpc/dao/VpcOfferingDaoImpl.java
	server/src/com/cloud/network/vpc/dao/VpcOfferingServiceMapDao.java
	server/src/com/cloud/network/vpc/dao/VpcOfferingServiceMapDaoImpl.java
2012-08-08 15:02:46 -07:00
Prachi Damle e59a2f2ef6 CS-14817 Intergrating External network service provider using pluggable interface - issue with CreateNetwork and UpdateNetwork
Changes:
- While checking if network has any external provider, we should consider all providers in the network. Not just F5, Juniper, Netscalar
2012-08-07 18:01:39 -07:00
Sheng Yang 20f4b6a386 CS-15243: Add service combination check at create network offering 2012-08-07 12:52:59 -07:00
Murali Reddy f837a0431d bug CS-15817 system VM's fail to create in basic zone with EIP/ELB network offering
removing the ActionEvent annotation on associate IP, acuquire IP methods
on internal methods, so that static NAT for system VM succeeds
2012-08-03 08:54:35 +05:30
Alena Prokharchyk a3b00a7535 VPC: CS-15821 - corrected mac address format for vpc private network 2012-08-02 14:52:04 -07:00
Alena Prokharchyk f47d3f7b59 VPC: CS-15805 - verify vpc guest network cidr only against networks in the same vpc 2012-08-01 17:59:36 -07:00
Alena Prokharchyk 9630cf574f Fixed numerous bugs in listNetworks call related to filtering by projectId/listAll/domainId/etc. All the rules below are followed now:
1) When account/domainId or projectId are passed in:

* list all account specific networks of the account/project
* list all domain level networks from the domainId + subdomains if the targeted network has allowSubdomainAccess = true

In other words, we use all the networks that can be used for vm deployment by account/domainId.

If listAll is not specified in the request, account/domainId are being defaulted to the account/domainId of the caller
listAll is ignored if the call is being done by the regular user.

2) listAll is passed in by the Root admin, we list:

* all Account specific networks in the system
* all domain specific networks in the system

3) listAll is passed by the Domain admin, we list:

* All Account specific networks belonging to domain/subdomains of the domain admin.
* All domain specific networks belonging to domain/subdomains of the domain admin
* All domain specific networks allowing subdomain access belonging to the parent domain.

4) domainId - can be passed either with or without listAll. We list:

* all account specific networks belonging to the domain
* all domain specific networks of the domain
* all domain specific networks of the subdomains if isRecursive = true is passed in
2012-08-01 14:47:50 -07:00
Alena Prokharchyk 21f2d1b779 VPC: moved vpc related code from NetworkManager to VpcManager 2012-07-31 16:58:14 -07:00
Alena Prokharchyk da8c8e9922 VPC: CS-15774 - VPC and guest networks of VPC should belong to the same zone 2012-07-31 10:37:47 -07:00
Alena Prokharchyk e4eb0c3a1b Fixed listNetworks to return domain level networks when listAll is passed to the request 2012-07-31 10:21:07 -07:00
Alena Prokharchyk ba2c05cc55 Allow EIP/ELB network creation only in Basic zone 2012-07-30 14:26:19 -07:00
Alena Prokharchyk d467ff8a49 CS-15743: disable static nat as a part of network resources cleanup 2012-07-30 10:53:01 -07:00
Vijayendra Bhamidipati 774e73dae3 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-27 15:38:56 -07:00
Alena Prokharchyk 984f9290ae CS-15717: fail to delete the network when corresponding network elements fail to be destroyed 2012-07-27 15:33:28 -07:00
Vijayendra Bhamidipati b6e70f2281 CS-15217: Security: Malicious user is able to get the size of the cloud by enumerating IDs
Description:

	New 3.0.x merge included a new instance of InvalidParameterValue exception
	being raised. Fixing it.
2012-07-27 15:15:32 -07:00
Alena Prokharchyk c0b58130d3 VPC: CS-15725 - don't allow regular offering upgrade to the offering that can be used inside vpc only 2012-07-27 13:32:00 -07:00
Alena Prokharchyk 78a00c03e1 VPC: replaced vmTo object with vmName parameter in plug/unplugNic commands 2012-07-27 13:32:00 -07:00
Vijayendra Bhamidipati 3b13c47e38 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-25 18:43:21 -04:00
Vijayendra Bhamidipati a0fa53ecd8 CS-15217: Security: Malicious user is able to get the size of the cloud by enumerating IDs
Description:

	Removing more DB IDs from exception messages.
2012-07-25 18:39:48 -04:00
Alena Prokharchyk 8cfc3c4775 Bug 14875: fixed listNetworks by domainId/aclType=Domain 2012-07-25 14:48:08 -07:00
Alena Prokharchyk f6041de179 VPC: added vif info to ipassoc command 2012-07-25 13:03:40 -07:00
Alena Prokharchyk 22826032b4 VPC: CS-15668 - IpAssoc: unplug the nics before pluggning new ones 2012-07-23 16:18:49 -07:00
Alena Prokharchyk 49199d0022 VPC: when VPC router gets destroyed and recreated, plug public nic for each Vlan where VPC public ips belong to 2012-07-20 16:28:43 -07:00
prachi 2a97fdae64 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x 2012-07-20 15:39:43 -07:00
prachi c581d8b820 CS-15586: Public Vlan for an account fails in case of multiple Physical networks
Changes:
- Since Now a zone can have multiple physical networks, we need to find the physical network Id from the networkOffering's tag and zoneId and trafficType when we create a guest network
2012-07-20 15:39:26 -07:00
Alena Prokharchyk aa6ee7c506 VPC: one more fix for multiple public nic case for the VPC VR 2012-07-20 14:08:00 -07:00
Alena Prokharchyk c0fb2fece9 VPC: CS-15638: Plug nic for the public ip address if the ip address from the diff vlan range than sourceNat ip 2012-07-20 13:25:09 -07:00
prachi ff8acfa50a CS-15404 [2.2.14 to 3.0.4 upgrade] After upgrade cloud.physical_network.id starts from 200 which is not the case with fresh installation
Reviewed-By: Alena

Changes:
- We need to set the id while creating physical network entry.
2012-07-18 16:49:05 -07:00
prachi a8fd70fe0a Bug 14773 - VM's are unable to start after upgrade from 2.2.14 to 3.0.3
Reviewed-By: Alena P.

Changes:
- Added upgrade path to 304. This would check the missing portions of the previous upgrades and try to correct.
- This will check if the setup has multiple physical networks with Guest traffic type. If yes then:
- Check if the previous upgrade has left behind any guest networks that were untagged in 2.2.14. For such networks, add a new physical network
- Check if the multiple physical network has tags. If no add tag and clone the network offerings for the networks on this physical network and add this tag to them
- Also clone the network offering service map.
- Thus this creates copies of offerings for each physical network.
2012-07-18 16:32:23 -07:00
Alena Prokharchyk 14c3ef17ad VPC: added one more default network offering for VPC - the one not having LB service 2012-07-17 17:47:02 -07:00
Sheng Yang c36de737db S2S VPN: Use source NAT ip address for VPN gateway 2012-07-17 17:22:00 -07:00
Alena Prokharchyk 0575b83ec0 VPC: CS-15598 - update ipVO object after getting system ip as a part of elastic LB 2012-07-16 11:26:16 -07:00
Alena Prokharchyk b145029718 VPC: CS-15580 - don't allow gateway for VPC guest network to be equal to the cidr subnet 2012-07-13 17:06:10 -07:00
Vijayendra Bhamidipati 7ef5f314ee CS-15526: Failed to create a guest network for basic zone.
Description:

	vlanId isn't a db ID, so removing its inclusion
	in an IdentityProxy object when throwing an
	exception. It's a string, so it was causing
	problems since it was being converted to a Long.
2012-07-12 17:36:12 -07:00
Alena Prokharchyk 7e73ae8e74 VPC: CS-15553 and CS-15549 - more checks during automatic ip assoc to VPC network 2012-07-12 10:04:39 -07:00
Alena Prokharchyk 988831327a VPC: added forVpc parameter to listNetworks api call. If true, list networks not belonging to any vpc 2012-07-12 09:09:09 -07:00
Alena Prokharchyk a0a0113b51 VPC: fixed listStaticRoutes when search by gatewayId 2012-07-11 14:51:19 -07:00
Koushik Das d4d1b1c5a9 Revert "Fix for CS-15345". This issue was caused due some bug in VPC related cleanup code. The bug got fixed as part of 3caffc7855, so this is no longer needed.
This reverts commit a8c1568b37.
2012-07-11 14:19:29 +05:30
Alena Prokharchyk a3424cf8a0 VPC: add vm to network - no need to prepare nic when add vm in Stopped state to the network; the nic will be prepared once the vm starts up 2012-07-10 18:02:44 -07:00
Alena Prokharchyk 954b937a42 VPC: unplugNic - release the nic in the DB only after the command is executed succesfully on the backend 2012-07-10 18:02:44 -07:00
Alena Prokharchyk 4e5355b192 VPC: CS-15519 - fixed ipAssoc when only zoneId parameter is passed in to the API call 2012-07-10 15:15:30 -07:00
Alena Prokharchyk 3caffc7855 VPC: CS-15345 - fixed regression in ipRelease happening as a part of cleanupNetworkResources method 2012-07-10 14:33:24 -07:00
Alena Prokharchyk 1657486f41 VPC: added vpc_id to private_ip_address table to indicate which vpc the ip belongs to 2012-07-09 13:00:03 -07:00
Alena Prokharchyk c49cc27b1c VPC: CS-15485 - dont' create a record for VPC VR private gateway nic in router_network_ref; do it for regular guest networks only 2012-07-06 14:54:25 -07:00
Vijayendra Bhamidipati 3a557c2998 Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x
Conflicts:
	server/src/com/cloud/network/NetworkManagerImpl.java
2012-07-05 17:06:02 -07:00
Vijayendra Bhamidipati f1ec4fddd3 CS-15217: Security: Malicious user is able to get the size of the cloud by enumerating IDs
Description:

	As part of the fix for Bug CS-13127, a new overloaded function,
	addProxyObject() was added to facilitate transparent db id to
	uuid conversions when db IDs were added to exceptions that were
	thrown in the Cloudstack mgmt server code. However, it turns out
	that there are quite many db IDs still in the code that are
	being directly embedded in the String message that is passed
	during exception creation.

	In this commit, we modify the default constructor of
	InvalidParameterValueException so that it takes a second
	argument of type List<IdentityProxy>. This will help developers
	see that there is a second parameter required, and make them
	look into what that parameter is about. Hopefully, this will
	stop db IDs from being embedded into the exception message.

	The parameter can be set to null though, since there are many
	places in the code that don't embed any DB IDs in the exception.

	This is still a WIP, so the older default constructor for
	InvalidParameterValueException has not been removed yet. When
	all instances of throw new InvalidParameterValueException()
	have been moved over to the new default constructor, the old
	one will be removed, else compilation will break. The reason
	for having to do this in batches is that there are way too
	many places in the code that throw exceptions, and they all
	cannot be covered in a single commit without it taking much
	time.

	In following commits, all other exceptions will be changed
	in the same way as InvalidParameterValueException.
2012-07-05 16:48:36 -07:00
Alena Prokharchyk 2699e2c508 VPC: CS-15447 - fail vpc creation when vpc provider is not enabled at least in one physical network in the target zone 2012-07-05 13:34:34 -07:00
Alena Prokharchyk 3a56e3c55c VPC: CS-15426 - In Basic zone always pass control nic when prepare nics for the VR 2012-07-03 17:10:12 -07:00
Alena Prokharchyk 9f6d03b87b VPC: added "forVpc" parameter to listNetworkOfferings command. If true, the offeirng can be used for vpc networks only 2012-07-03 15:37:07 -07:00
Alena Prokharchyk 1011dfd31c Resource tags: 1) Remove tag records when correspdonding cloudStack object gets removed
2) added "tags" request parameter to the banch of list* Api commands (listVirtualMachines, listSnapshots - all commands are listed in the resource tags functional spec)
2012-07-03 14:47:07 -07:00