Skip to content

Pull request of changes in the "cloud-server" module #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 264 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
264 commits
Select commit Hold shift + click to select a range
6e35db3
package rename
DaanHoogland Jul 15, 2014
8aae26d
Temporary put state info in a state object
Jul 15, 2014
d790f2d
fixing the classes relationship; adding beans properly in the spring …
wilderrodrigues Jul 15, 2014
239fbe6
adding password to router rules; moving the advance code to the advan…
wilderrodrigues Jul 15, 2014
8f252ec
Unify and encapsulate deployment flow methods and params
Jul 15, 2014
7e34dc8
adding userdata to router and ssh pub key to router rules.
wilderrodrigues Jul 16, 2014
6b4cdab
making instance variables compliant with ACS convention
wilderrodrigues Jul 16, 2014
427e920
adding user data pwd rules
wilderrodrigues Jul 16, 2014
ff7fe0f
adding DHCP entry rules
wilderrodrigues Jul 16, 2014
f0778b3
fixing injection of beans with a relationship
wilderrodrigues Jul 16, 2014
04530ce
whitespace
DaanHoogland Jul 16, 2014
228c652
fixing the injection of the networkDao
wilderrodrigues Jul 16, 2014
470c05a
mv to better name
DaanHoogland Jul 16, 2014
e718488
Deployment more OO - Objects with data and behavior
Jul 16, 2014
b44253b
replacing my IP by localhost to avoid problems with my environment
wilderrodrigues Jul 17, 2014
b75d3f5
fixing import in virtual router element and checkstyle in dhcp entry …
wilderrodrigues Jul 17, 2014
a10a35f
commenting broken code in tests in order to run build adn tests other…
wilderrodrigues Jul 17, 2014
b5e606a
removing bean from the xml
wilderrodrigues Jul 17, 2014
075e6b5
adding new bean to spring context file; renaming package from "com" t…
wilderrodrigues Jul 17, 2014
b057622
Missing dependencies are added
Jul 17, 2014
38ab4ff
Fixing null pointers during vpc router deployment
Jul 17, 2014
c0493c7
apply network acls; acls items to pvt gw; vpc ip association
wilderrodrigues Jul 17, 2014
d19d740
fixing VPC IP Association and ACL rules. Have to rewrite in a better …
wilderrodrigues Jul 18, 2014
586d621
Splitting Vpc and NonVpc deployment into phases & testing it
Jul 17, 2014
151a74a
RouterDeployment and VPC. Improving code and Unit Testing
Jul 23, 2014
05663d0
rename networkMgr to networkMdl to prevent name clashes in mocks of
DaanHoogland Jul 23, 2014
ef98aee
More refactoring and testing in the same classes
Jul 27, 2014
322bd4b
License headers
Jul 28, 2014
45cb3c6
Replacing the old [Vpc}VirtualNetworkApplianceManager by the new ones;
wilderrodrigues Aug 18, 2014
76bad88
Complete tests for normal deployment and start vpc one
Jul 28, 2014
9b2e57d
Factor out prepareDeployment and update tests
Jul 29, 2014
1b7ef9f
Increasing test coverage for Vpc Deployment
Jul 29, 2014
76d23bc
Fix unnecessary changes Spring contexts
Aug 18, 2014
6fd637f
Adding VpcRouterDeploymentDefinition Unit Tests
Aug 18, 2014
33fbb25
moving sendCommand to the NetworkGeneralHelper;
wilderrodrigues Aug 19, 2014
9259b6c
fixing check styles
wilderrodrigues Aug 19, 2014
dd28a0e
Refactor to include network creation as actual deployment
Aug 19, 2014
2d7fa0d
adding applyStaticRoutes method to the network topology/visitor. it w…
wilderrodrigues Aug 19, 2014
151d6af
adding applyStaticRoutes to the new visitor pattern.
wilderrodrigues Aug 19, 2014
3e210b1
refactor VpnRules onto BasicVpnRules and AdvancedVpnRules;
wilderrodrigues Aug 19, 2014
e6e0606
DeployRouter includes nw creation following TellDontAsk principle
Aug 20, 2014
87f83d7
Whole router.deployment package got 97% coverage
Aug 20, 2014
f11c89a
adding setupPrivateGateway to new style;
wilderrodrigues Aug 20, 2014
7ac33ae
fixing the private gateway rules in order to comply with changes in t…
wilderrodrigues Aug 21, 2014
2c351fc
fixing check style issues
wilderrodrigues Aug 21, 2014
8112279
Refactor and test NetworkHelper#sendCommandsToRouterWithNoAnswers
Aug 21, 2014
d397e36
Missing license headers
Aug 21, 2014
da969ec
refactor all private methods in the virtual router appliance and VPC …
wilderrodrigues Aug 21, 2014
91f877a
Fix Spring collision of beans implementing NetworkHelper
Aug 21, 2014
9e455da
auto wire the network helper
wilderrodrigues Aug 21, 2014
8465439
Refactor hypervisor retrieval from VpcNwHelper and NwHelper
Aug 21, 2014
fcfc9bb
Fixing NPE due to use of dependencies before Spring injection
Aug 22, 2014
499b9e7
fix dhcp subnet rules. we can create VMs again.
wilderrodrigues Aug 23, 2014
2ef6d38
Merge master into our refactoring branch (cmd-visitor)
Aug 26, 2014
13c7936
Recover changes/fixes lost in the last merge
Aug 26, 2014
1fcf72b
making sure the instance variable _router in the Rules is being used …
wilderrodrigues Aug 26, 2014
e91d551
Fix: VpcRouter has always PublicIp setup as it did before refactoring
Aug 28, 2014
06c568e
Merge branch 'visitor-rebase' of github.com:schubergphilis/CloudStack…
Aug 28, 2014
51eff13
plugins: remove opensource kvm hypervisor plugin from noredist profile
rohityadavcloud Aug 25, 2014
ef924f0
ApiXmlDocWriter: add more search name spaces to find APIs
rohityadavcloud Aug 25, 2014
b3a7f14
apidoc: add new entries for APIs
rohityadavcloud Aug 25, 2014
a575362
iptreemap is not supported in new ipset, use iphash instead
Aug 25, 2014
ee54b89
Minor CSS cleanup
bfederle Aug 25, 2014
7f0a280
CSS: Fix body height
bfederle Aug 25, 2014
d26c2ee
CLOUDSTACK-7002 This test suite contains test cases relating to acces…
Jun 26, 2014
94cfd32
CLOUDSTACK-7266: Deleting account is not cleaning the snapshot entries
minchen07 Aug 22, 2014
2b88cf5
CLOUDSTACK-7106 : RPM build failing with RHEL7 Reviewed By : Rayees
Aug 26, 2014
aa93c84
CLOUDSTACK-7106 : RPM build failing with RHEL7 (Failing while passing…
Aug 26, 2014
a16b40d
CLOUDSTACK-7315: Set LXC volumes format as DIR. Use rm command to del…
kishankavala Aug 26, 2014
ce832ee
CLOUDSTACK-7218: Remvoing all static nat associated with vm in case o…
Aug 26, 2014
ee76743
CLOUDSTACK-300: Creation of compute offering allow combination of loc…
Sakshams Aug 26, 2014
c38ccdb
Fixed few coverity issues
Aug 20, 2014
c845887
CLOUDSTACK-7392: [Automation] NPE thrown during Migration of VM
koushik-das Aug 26, 2014
639b25f
Upgrade jQuery from version 1.6.1 to the latest 1.6 release 1.6.4
GaborApatiNagy Aug 25, 2014
e11bd87
Zone wizard UI: Increase height of text fields to prevent cutoff
bfederle Aug 26, 2014
612c93f
Add cluster: Fix blank row being added; remove useless notification poll
bfederle Aug 26, 2014
b8204ff
Update NOTICE to account for updated jQuery version
bfederle Aug 26, 2014
40721d1
Instance wizard: Add 'deployVirtualMachine' event hook
bfederle Aug 26, 2014
f225720
CLOUDSTACK-7339: Fix missing delete host action
bfederle Aug 26, 2014
030929b
CLOUDSTACK-7435: UI > instance page > assign instance to another acco…
Aug 26, 2014
01f1237
CLOUDSTACK-4046: Fix global settings CSS
bfederle Aug 26, 2014
e435f6b
CLOUDSTACK-5952: Add 'VM IP Address' field to IP detail view
bfederle Aug 26, 2014
18d9b07
CLOUDSTACK-7428: Allow LXC cluster in SG enabled zones. Use lxc drive…
kishankavala Aug 26, 2014
69dc718
CLOUDSTACK-7400: Allow migration of systemVms in LXC. USer Vms cannot…
kishankavala Aug 27, 2014
8cb343b
CLOUDSTACK-7445: Number whitespaces in "rbd showmapped" command varie…
kishankavala Aug 27, 2014
893f05e
CLOUDSTACK-7450: UI - dashboard - pass &pageSize=1&page=1 to listXXX …
Aug 27, 2014
12542cc
Changes/additions related to SolidFire automation tests
Aug 27, 2014
2799651
CLOUDSTACK-7451: UI > create network offering > when VpcVirtualRouter…
Aug 27, 2014
0ff0061
CLOUDSTACK-2251: Automation - dedicated guest VLAN ranges feature
Aug 22, 2014
bba3aa4
CLOUDSTACK-1466: Automation - Secondary Storage Test Cases
Jun 17, 2014
756c96e
CLOUDSTACK-7453: Network rate field specified with negative value in …
Sakshams Aug 28, 2014
45efa82
CLOUDSTACK-7453: Network rate field specified with negative value in …
Sakshams Aug 28, 2014
97e84e1
SAML2: add saml sso and slo apicmds skeleton, add classes to AuthManager
rohityadavcloud Aug 12, 2014
a2bc058
server: add opensaml as dependency
rohityadavcloud Aug 17, 2014
6f750f4
SAML: WIP redirections work now
rohityadavcloud Aug 17, 2014
cba6da8
ApiServer: change loginUser method signature to return ResponseObject
rohityadavcloud Aug 18, 2014
e61ae84
DefaultLoginAPIAuthenticatorCmd: move createLoginResponse to ApiServer
rohityadavcloud Aug 18, 2014
9bd9362
SAML2LoginAPIAuthenticatorCmd: Implement SAML SSO using HTTP Redirect…
rohityadavcloud Aug 18, 2014
81022e8
ApiServlet: Fix NPE while inserting to auditTrail
rohityadavcloud Aug 18, 2014
d3b7037
ui: Unbox extra quotes from sessionKey cookie value
rohityadavcloud Aug 18, 2014
9de668c
SAML2LoginAPIAuthenticatorCmd: Set all necessary cookies and redirect…
rohityadavcloud Aug 18, 2014
f57c805
Minor fixes
rohityadavcloud Aug 18, 2014
1c4ac27
ui: refactor and use a unified unboxing helping method in cloudStack.js
rohityadavcloud Aug 18, 2014
92b6faf
utils: refactor and aggregate methods in SAMLUtils
rohityadavcloud Aug 24, 2014
6d02c33
Maven: add opensaml 2.6.1 version id in pom.xml
rohityadavcloud Aug 24, 2014
54bfcf6
saml: move refactor files from server to api module
rohityadavcloud Aug 24, 2014
9eb4274
api: fix refactored ApiServerService interface to api
rohityadavcloud Aug 24, 2014
18ed247
api: Add PluggableAPIAuthenticator interface
rohityadavcloud Aug 24, 2014
8111b45
core: Add registry and beans in spring registry for PluggableAPIAuthe…
rohityadavcloud Aug 24, 2014
9453a89
saml2: Implement SAML2AuthServiceImpl which is a PluggableAPIAuthenti…
rohityadavcloud Aug 24, 2014
8d67782
server: fix server package after auth plugin refactor
rohityadavcloud Aug 24, 2014
bb376c1
saml2: Fix plugin after refactoring
rohityadavcloud Aug 24, 2014
d26bdf2
ApiServer: Fix imports order, use org.apache.cloudstack.api.ApiServer…
rohityadavcloud Aug 24, 2014
45ac449
saml: Implement SAML2AuthManager interface
rohityadavcloud Aug 24, 2014
767877d
server: Add SAML related config params in Config
rohityadavcloud Aug 24, 2014
8e88628
utils: Remove hard coded strings from SAMLUtils
rohityadavcloud Aug 24, 2014
5742e7a
saml: Have the plugin use IDP metadata from URL, get values from Config
rohityadavcloud Aug 24, 2014
3d2d1c4
server: Add IDP entity ID config param
rohityadavcloud Aug 24, 2014
d314b47
SAMLUtils: leave bootstrapping to upper layers
rohityadavcloud Aug 24, 2014
3d9dc62
api: add method to pass on api authenticators to cmd classes
rohityadavcloud Aug 24, 2014
5772179
saml: Implement logic to check response against X509 keys
rohityadavcloud Aug 24, 2014
2ccddcd
saml2: Add GetServiceProviderMetaDataCmd that returns SP metadata XML
rohityadavcloud Aug 24, 2014
2f0ef4e
client: add getSPMetadata API in commands.properties
rohityadavcloud Aug 24, 2014
5f7f285
utils: fix SAMLUtils's authnrequest maker
rohityadavcloud Aug 24, 2014
d57244a
apidocs: add entry for getSPMetaData
rohityadavcloud Aug 24, 2014
32bf894
Config: add config for saml user account, domain and redirected URL t…
rohityadavcloud Aug 24, 2014
f1a0e72
saml: use values from config for user account, domain and redirected url
rohityadavcloud Aug 24, 2014
b19ebbb
SAMLUtils: add logout request utility for saml slo
rohityadavcloud Aug 24, 2014
229ff1f
SAML2LoginAPIAuthenticatorCmd: store nameid and session index in user…
rohityadavcloud Aug 24, 2014
739d434
SAML2LogoutAPIAuthenticatorCmd: implement single log out
rohityadavcloud Aug 24, 2014
f97cd56
SAML2UserAuthenticator: check that request params has SAMLResponse
rohityadavcloud Aug 24, 2014
24a0808
saml: use SAML_RESPONSE from SAMLUtils
rohityadavcloud Aug 24, 2014
777d8f6
SAMLUtils: Create new NameID using passed nameId taking just id and s…
rohityadavcloud Aug 25, 2014
ceaf05e
SAML2LogoutAPIAuthenticatorCmd: check logout response and redirect to UI
rohityadavcloud Aug 25, 2014
383993b
SAMLUtils: add unit test for SAMLUtils and method to randomly generat…
rohityadavcloud Aug 25, 2014
8651e2d
saml: Add unit tests for saml plugin
rohityadavcloud Aug 25, 2014
b0bb801
SAML2LogoutAPIAuthenticatorCmd: if session is null, redirect to login…
rohityadavcloud Aug 26, 2014
4378271
utils: fix static certificate value string in SAMLUtils
rohityadavcloud Aug 28, 2014
6be6c76
server: add config to enable/disable SAML SSO/SLO plugin
rohityadavcloud Aug 28, 2014
aab19ec
saml: fix tests and update method signature that generates random certs
rohityadavcloud Aug 28, 2014
75c6a2e
saml: disable plugin by default and don't initiate if not enabled
rohityadavcloud Aug 28, 2014
a25863a
SAML2LoginAPIAuthenticatorCmdTest: Add missing license
rohityadavcloud Aug 28, 2014
0ff8a06
CLOUDSTACK-7454: UI > zone wizard > Hyper-V > primary storage/seconda…
Aug 28, 2014
4c2df87
Temp fix for compilation issue, need to check what caused it
amoghv Aug 29, 2014
1951be7
Minor changes to SolidFire automation-related code
Aug 29, 2014
9f723cf
Update to volume-resize logic
Aug 29, 2014
35ffbc6
Name the SolidFire Volume Access Group after the UUID of the CloudSta…
Aug 29, 2014
3ab309a
Removed an un-used import
Aug 29, 2014
f7b01bd
cisco-vnmc: Don't create Protocol using deprecated SecureProtocolSock…
rohityadavcloud Aug 29, 2014
2803658
SAML2AuthManagerImpl: let the component return true on start
rohityadavcloud Aug 30, 2014
d6bc992
SAMLUtilsTest: just test that random secure string has some length
rohityadavcloud Aug 30, 2014
c5cce27
SAMLUtils: fix signature, refactor generateRandomX509Certificate
rohityadavcloud Aug 30, 2014
ede9177
CLOUDSTACK-7455: Fix possible case for NPE
rohityadavcloud Aug 31, 2014
410d67f
CLOUDSTACK-7429: Allow LXC hypervisor for advance zone with SG hyperv…
kishankavala Sep 1, 2014
d3d1e0a
CLOUDSTACK-7447: Send modify storage pool command on host connect to …
kishankavala Sep 1, 2014
d669c69
CLOUDSTACK-7439: Fix 'Unable to find VM' issue in test_tags.py
Aug 28, 2014
92e5800
CLOUDSTACK-7425: Fixed 'Failed to create network offering due to inva…
Aug 28, 2014
70b671c
CLOUDSTACK-7407: Skip tests if physical network does not have OVS pro…
Aug 27, 2014
2a2a96d
CLOUDSTACK-7444: Allowing user account to submit async jobs in additi…
Aug 27, 2014
7c708b4
CLOUDSTACK-7437: Fixed snapshot cleanup issue in test_escalations_sna…
Aug 28, 2014
5c2d8e5
CLOUDSTACK-7452: Removing test_data.cfg file as it is no longer in use
Aug 28, 2014
192eeb5
vgpu lifecycle test cases with review comments
Aug 21, 2014
0d773fe
[CLOUDSTACK-6115] Investigate the use of TravisCI for CloudStack inte…
imduffy15 Sep 1, 2014
7e9d690
Fix RAT issue
imduffy15 Sep 1, 2014
2cc4458
Set 'last ping' time for host based on ping.timeout and ping.interval…
koushik-das Sep 1, 2014
87b5e10
Adding first cut(draft) for marvincli
sedukull Sep 1, 2014
46ec44e
vGPU add and list host test cases with review comments
Sep 1, 2014
cd45be1
vGPU automation changes removing the host password
Sep 1, 2014
20f1df2
server: Add event bus bean as commented xml in META-INF core
rohityadavcloud Sep 1, 2014
3361f88
removing router related methods from the NetworkHelperImpl. Those met…
wilderrodrigues Sep 2, 2014
f5f4cda
Changing host password to retrieve from testdata
Sep 2, 2014
75cd2bc
Revert "server: Add event bus bean as commented xml in META-INF core"
spark404 Sep 2, 2014
ae3e14d
Update gitignores for some new eclipse generated files
spark404 Sep 2, 2014
6b0bb39
CLOUDSTACK-7316: Usage Server is not getting started when we install …
Sep 1, 2014
0f1881d
CLOUDSTACK-7463: UI: Domain Admin UI shows 'Add LDAP Users' button (s…
GaborApatiNagy Sep 2, 2014
00a2ef1
Rules and visitors for Load Balance Rules
Jul 3, 2014
d0df45a
Adding new behaviour to the apply load balancing rules method. The wh…
wilderrodrigues Jul 4, 2014
716d331
Extract general behavior to Router and Vpc delegates
Jul 10, 2014
2b5d5ad
Fix dependency problem. Extract and unify router deployment stuff
Jul 11, 2014
680dd7e
Adding Firewall Rules to comply with the Visitor pattern implementati…
Jul 13, 2014
a5552e7
changing accessor modifier in instance variables
Jul 14, 2014
cdf5087
fixing checkstyles
wilderrodrigues Jul 14, 2014
5042193
finished firewall rules and load balancing rules; fixed all the injec…
wilderrodrigues Jul 14, 2014
e75c2c2
TODO
DaanHoogland Jul 14, 2014
8d5a5b5
adding static nat rules. Deploying new VMs is not working due to the …
wilderrodrigues Jul 14, 2014
f2ac635
we have to check if VPC is null bfore calling it. VPC is not used in …
wilderrodrigues Jul 15, 2014
51a26e9
adding apache license headers
wilderrodrigues Jul 15, 2014
82d400d
adding Ip Association and VPN Rules
wilderrodrigues Jul 15, 2014
70f6c98
Fix offering setup
Jul 15, 2014
1dcea55
package rename
DaanHoogland Jul 15, 2014
913d67c
Temporary put state info in a state object
Jul 15, 2014
bff8de2
fixing the classes relationship; adding beans properly in the spring …
wilderrodrigues Jul 15, 2014
259a530
adding password to router rules; moving the advance code to the advan…
wilderrodrigues Jul 15, 2014
53aab62
Unify and encapsulate deployment flow methods and params
Jul 15, 2014
6ac950a
adding userdata to router and ssh pub key to router rules.
wilderrodrigues Jul 16, 2014
f3c01fc
making instance variables compliant with ACS convention
wilderrodrigues Jul 16, 2014
ff91786
adding user data pwd rules
wilderrodrigues Jul 16, 2014
dc2c321
adding DHCP entry rules
wilderrodrigues Jul 16, 2014
9fb5cda
fixing injection of beans with a relationship
wilderrodrigues Jul 16, 2014
34eaf34
whitespace
DaanHoogland Jul 16, 2014
942f1f8
fixing the injection of the networkDao
wilderrodrigues Jul 16, 2014
1df2d9b
mv to better name
DaanHoogland Jul 16, 2014
0b58fe5
Deployment more OO - Objects with data and behavior
Jul 16, 2014
0da2dac
replacing my IP by localhost to avoid problems with my environment
wilderrodrigues Jul 17, 2014
b592a3b
fixing import in virtual router element and checkstyle in dhcp entry …
wilderrodrigues Jul 17, 2014
1495fcb
commenting broken code in tests in order to run build adn tests other…
wilderrodrigues Jul 17, 2014
8c5aa18
removing bean from the xml
wilderrodrigues Jul 17, 2014
917b27d
adding new bean to spring context file; renaming package from "com" t…
wilderrodrigues Jul 17, 2014
2783b90
Missing dependencies are added
Jul 17, 2014
ea9c8a5
Fixing null pointers during vpc router deployment
Jul 17, 2014
88e9769
apply network acls; acls items to pvt gw; vpc ip association
wilderrodrigues Jul 17, 2014
f477bf1
fixing VPC IP Association and ACL rules. Have to rewrite in a better …
wilderrodrigues Jul 18, 2014
7ee0832
Splitting Vpc and NonVpc deployment into phases & testing it
Jul 17, 2014
e91b7e0
RouterDeployment and VPC. Improving code and Unit Testing
Jul 23, 2014
0cf37ba
rename networkMgr to networkMdl to prevent name clashes in mocks of
DaanHoogland Jul 23, 2014
13b091f
More refactoring and testing in the same classes
Jul 27, 2014
9428db9
License headers
Jul 28, 2014
bfab625
Replacing the old [Vpc}VirtualNetworkApplianceManager by the new ones;
wilderrodrigues Aug 18, 2014
b7ef3e1
Complete tests for normal deployment and start vpc one
Jul 28, 2014
c89e046
Factor out prepareDeployment and update tests
Jul 29, 2014
b7eddb8
Increasing test coverage for Vpc Deployment
Jul 29, 2014
d5c9843
Fix unnecessary changes Spring contexts
Aug 18, 2014
052d896
Adding VpcRouterDeploymentDefinition Unit Tests
Aug 18, 2014
b8bbfa5
moving sendCommand to the NetworkGeneralHelper;
wilderrodrigues Aug 19, 2014
27dfc59
fixing check styles
wilderrodrigues Aug 19, 2014
fd6dd8f
Refactor to include network creation as actual deployment
Aug 19, 2014
dd81cd6
adding applyStaticRoutes method to the network topology/visitor. it w…
wilderrodrigues Aug 19, 2014
9b47893
adding applyStaticRoutes to the new visitor pattern.
wilderrodrigues Aug 19, 2014
b6e36f8
refactor VpnRules onto BasicVpnRules and AdvancedVpnRules;
wilderrodrigues Aug 19, 2014
0a84cde
DeployRouter includes nw creation following TellDontAsk principle
Aug 20, 2014
e054df8
Whole router.deployment package got 97% coverage
Aug 20, 2014
b00fb85
adding setupPrivateGateway to new style;
wilderrodrigues Aug 20, 2014
3f3f6ef
fixing the private gateway rules in order to comply with changes in t…
wilderrodrigues Aug 21, 2014
abf8d47
fixing check style issues
wilderrodrigues Aug 21, 2014
1abd1f2
Refactor and test NetworkHelper#sendCommandsToRouterWithNoAnswers
Aug 21, 2014
7e43e81
Missing license headers
Aug 21, 2014
448097d
refactor all private methods in the virtual router appliance and VPC …
wilderrodrigues Aug 21, 2014
9bde627
Fix Spring collision of beans implementing NetworkHelper
Aug 21, 2014
2cafe5d
auto wire the network helper
wilderrodrigues Aug 21, 2014
5248422
Refactor hypervisor retrieval from VpcNwHelper and NwHelper
Aug 21, 2014
57826e5
Fixing NPE due to use of dependencies before Spring injection
Aug 22, 2014
3777a28
fix dhcp subnet rules. we can create VMs again.
wilderrodrigues Aug 23, 2014
055ccbe
Merge master into our refactoring branch (cmd-visitor)
Aug 26, 2014
e79bb71
Recover changes/fixes lost in the last merge
Aug 26, 2014
e900c27
making sure the instance variable _router in the Rules is being used …
wilderrodrigues Aug 26, 2014
911ce26
Fix: VpcRouter has always PublicIp setup as it did before refactoring
Aug 28, 2014
67a70aa
removing router related methods from the NetworkHelperImpl. Those met…
wilderrodrigues Sep 2, 2014
fee68d7
Merge branch 'visitor-rebase' of https://github.com/schubergphilis/cl…
wilderrodrigues Sep 2, 2014
cbc07cf
removing the root password becuase it was breaking the simulator test…
wilderrodrigues Sep 2, 2014
b411165
emoving the VirtualNetworkStatus, it was not being used properly;
wilderrodrigues Sep 4, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,45 @@

<bean id="uploadMonitorImpl" class="com.cloud.storage.upload.UploadMonitorImpl" />
<bean id="usageServiceImpl" class="com.cloud.usage.UsageServiceImpl" />

<bean id="virtualNetworkApplianceManagerImpl"
class="com.cloud.network.router.VirtualNetworkApplianceManagerImpl" />

<bean id="vpcManagerImpl" class="com.cloud.network.vpc.VpcManagerImpl" >
<property name="vpcElements" value="#{vpcProvidersRegistry.registered}"></property>
</bean>

<bean id="vpcVirtualNetworkApplianceManagerImpl"
class="com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl" />

<bean id="virtualNetworkApplianceFactory"
class="com.cloud.network.rules.VirtualNetworkApplianceFactory" />

<bean id="topologyContext" class="org.apache.cloudstack.network.topology.NetworkTopologyContext" init-method="init" />

<bean id="basicNetworkTopology" class="org.apache.cloudstack.network.topology.BasicNetworkTopology" />
<bean id="advancedNetworkTopology" class="org.apache.cloudstack.network.topology.AdvancedNetworkTopology" />

<bean id="basicNetworkVisitor" class="org.apache.cloudstack.network.topology.BasicNetworkVisitor" />
<bean id="advancedNetworkVisitor" class="org.apache.cloudstack.network.topology.AdvancedNetworkVisitor" />

<bean id="commandSetupHelper"
class="com.cloud.network.router.CommandSetupHelper" />

<bean id="routerControlHelper"
class="com.cloud.network.router.RouterControlHelper" />

<bean id="networkHelper"
class="com.cloud.network.router.NetworkHelperImpl" />

<bean id="vpcNetworkHelper"
class="com.cloud.network.router.VpcNetworkHelperImpl" />

<bean id="nicProfileHelper"
class="com.cloud.network.router.NicProfileHelperImpl" />

<bean id="routerDeploymentDefinitionBuilder"
class="org.cloud.network.router.deployment.RouterDeploymentDefinitionBuilder" />

<bean id="ApiAsyncJobDispatcher" class="com.cloud.api.ApiAsyncJobDispatcher">
<property name="name" value="ApiAsyncJobDispatcher" />
Expand Down
285 changes: 189 additions & 96 deletions server/src/com/cloud/network/element/VirtualRouterElement.java

Large diffs are not rendered by default.

141 changes: 97 additions & 44 deletions server/src/com/cloud/network/element/VpcVirtualRouterElement.java

Large diffs are not rendered by default.

1,002 changes: 1,002 additions & 0 deletions server/src/com/cloud/network/router/CommandSetupHelper.java

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions server/src/com/cloud/network/router/NetworkHelper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package com.cloud.network.router;

import java.util.List;
import java.util.Map;

import org.cloud.network.router.deployment.RouterDeploymentDefinition;

import com.cloud.agent.api.to.NicTO;
import com.cloud.agent.manager.Commands;
import com.cloud.exception.AgentUnavailableException;
import com.cloud.exception.ConcurrentOperationException;
import com.cloud.exception.InsufficientAddressCapacityException;
import com.cloud.exception.InsufficientCapacityException;
import com.cloud.exception.InsufficientServerCapacityException;
import com.cloud.exception.ResourceUnavailableException;
import com.cloud.exception.StorageUnavailableException;
import com.cloud.user.Account;
import com.cloud.user.User;
import com.cloud.vm.DomainRouterVO;
import com.cloud.vm.VirtualMachineProfile.Param;

public interface NetworkHelper {

public abstract boolean sendCommandsToRouter(VirtualRouter router,
Commands cmds) throws AgentUnavailableException;

public abstract void handleSingleWorkingRedundantRouter(
List<? extends VirtualRouter> connectedRouters,
List<? extends VirtualRouter> disconnectedRouters, String reason)
throws ResourceUnavailableException;

public abstract int getRealPriority(DomainRouterVO router);

public abstract NicTO getNicTO(VirtualRouter router, Long networkId,
String broadcastUri);

public abstract VirtualRouter destroyRouter(long routerId, Account caller,
Long callerUserId) throws ResourceUnavailableException,
ConcurrentOperationException;

/**
* Checks if the router is at the required version. Compares MS version and router version.
*
* @param router
* @return
*/
public abstract boolean checkRouterVersion(VirtualRouter router);

public abstract List<DomainRouterVO> startRouters(
RouterDeploymentDefinition routerDeploymentDefinition)
throws StorageUnavailableException, InsufficientCapacityException,
ConcurrentOperationException, ResourceUnavailableException;

public abstract DomainRouterVO startVirtualRouter(DomainRouterVO router,
User user, Account caller, Map<Param, Object> params)
throws StorageUnavailableException, InsufficientCapacityException,
ConcurrentOperationException, ResourceUnavailableException;

public abstract DomainRouterVO deployRouter(
RouterDeploymentDefinition routerDeploymentDefinition,
boolean startRouter)
throws InsufficientAddressCapacityException,
InsufficientServerCapacityException, InsufficientCapacityException,
StorageUnavailableException, ResourceUnavailableException;
}
Loading