Boris Schrijver
80cb3adad0
Added isEmpty() check to prevent nullPointerException.
2015-09-23 15:07:16 +02:00
wilderrodrigues
6e426fa46d
Revert "Merge pull request #825 from borisroman/charset"
...
This reverts commit a44e2bff7e , reversing
changes made to 06cefaf493 .
We are reverting the PR #825 because it breaks Master.
2015-09-15 14:58:18 +02:00
Boris Schrijver
71929fdedd
Replaced all occurences of Charset.forName(UTF-8) with StringUtils.getPreferredCharset().
2015-09-15 12:00:33 +02:00
Rajani Karuturi
8bc0294014
Revert "Merge pull request #714 from rafaelweingartner/master-lrg-cs-hackday-003"
...
This reverts commit cd7218e241 , reversing
changes made to f5a7395cc2 .
Reason for Revert:
noredist build failed with the below error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project cloud-plugin-hypervisor-vmware: Compilation failure
[ERROR] /home/jenkins/acs/workspace/build-master-noredist/plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java:[484,12] error: non-static variable logger cannot be referenced from a static context
[ERROR] -> [Help 1]
even the normal build is broken as reported by @koushik-das on dev list
http://markmail.org/message/nngimssuzkj5gpbz
2015-08-31 11:27:57 +05:30
Rafael Weingartner
3818257a68
Solved jira ticket: CLOUDSTACK-8750
2015-08-28 22:35:08 -03:00
Miguel Ferreira
09f7153378
Use NSX specific RestClient in API implementation (NiciraNvpApi)
...
- Simplify public API to return Lists instead of NiciraNvpLists
2015-08-25 17:36:17 +02:00
Miguel Ferreira
c6602ee151
Refactor NSX api implementation (NiciraNvpApi)
...
- Make internal method private
- Remove unused methods
- Refactor type deserialization adapter classes out
2015-08-25 17:36:16 +02:00
Miguel Ferreira
18e6b9ba78
Add NSX specific RestClient implementation
...
- Add -noverify JVM arg to surefire plugin, to allow Powermockito to
de-encapsulate private methods
- Add dependency on cloud-utils test-jar to use custom HttpRequest
matchers
2015-08-25 17:36:15 +02:00
Miguel Ferreira
6e74ef8e40
Code clean up in cloud-plugin-network-nvp project
...
- Code formatting
- Declare final where possible
- Remove unused methods
- Remove throws declarations where not needed
- Remove generated comments (e.g. "TODO Auto-generated method stub")
2015-08-25 17:36:12 +02:00
Miguel Ferreira
93b0989dea
Refactor cloud-plugin-network-nvp project into Maven default structure
2015-08-25 17:36:10 +02:00
Boris Schrijver
4b88eabef1
Fix for the NicVO.java regression.
...
Renamed set*() methods to correct naming.
2015-08-21 14:03:00 +02:00
Boris Schrijver
c30ba1df0b
Refactored Nic.java for readability.
...
Changed methodnames according to Nic.java refactor.
Fixed NicVO.java due to regression from Nic.java refactor.
Fixed VmWareGuru.java after Nic.java refactor.
See issue CLOUDSTACK-8736 for ongoing effort to clean up network code.
2015-08-18 14:04:48 +02:00
Boris Schrijver
5db3371840
Refactored NicProfile.java for readability.
...
See issue CLOUDSTACK-8736 for ongoing effort to clean up network code.
2015-08-17 14:12:10 +02:00
Daan Hoogland
87fb09997d
CLOUDSTACK-8656: return false from equals if not the same class
...
why ignore the exception and then return false anyway?
2015-08-04 14:38:48 +02:00
Daan Hoogland
21fd2b9b8e
CLOUDSTACK-8656: config file closing should not throw an exception
...
but log it if it does anyway
2015-08-04 14:37:07 +02:00
Daan Hoogland
e2b6237464
CLOUDSTACK-8656: debug messages on interupted exceptions
2015-07-30 16:03:10 +02:00
Daan Hoogland
85e002b230
CLOUDSTACK-8656: filling empty catch block with info messages
...
using regexp "catch\s*\(\s*(Exception|Throwable)\s*\w*\)\s*\{\s*\}"
2015-07-30 15:51:52 +02:00
Sten Spans
e63a56d650
Update NiciraNvpGuestNetworkGuruTest.java
...
add partial vxlan tests
2015-07-30 12:47:49 +02:00
Sten Spans
d03505acc2
Update NiciraNvpGuestNetworkGuru.java
...
Add support for VXLAN as isolation method
2015-07-29 15:45:41 +02:00
wilderrodrigues
96ad6f6ccd
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Change the retry() method to return Answer.createUnsupportedCommandAnswer(command) instead of throwing an exception
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
This closes #546
2015-07-01 15:04:58 +02:00
wilderrodrigues
c6013303e9
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Increasing test coverage
- resource package: 86.7%
- utils package: 95.1%
- wrapper package: 97.5%
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:58 +02:00
wilderrodrigues
644458f5ac
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Adding remaining command wrappers
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:58 +02:00
wilderrodrigues
b54126918b
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Adding NiciraNvpCreateLogicalRouterCommandWrapper
- Adding NiciraNvpDeleteLogicalSwitchPortCommandWrapper
- Adding NiciraNvpFindLogicalSwitchPortCommandWrapper
- Adding NiciraNvpUpdateLogicalSwitchPortCommandWrapper
- Decoupling private methods from NiciraNvpResource
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:57 +02:00
wilderrodrigues
b4ce81ab6c
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Adding NiciraNvpDeleteLogicalSwitchPortCommandWrapper
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:57 +02:00
wilderrodrigues
361ab5ddbd
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Adding NiciraNvpCreateLogicalSwitchPortCommandWrapper
- Removing unsued field from NiciraNvpResourceTest
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:57 +02:00
wilderrodrigues
28c1da969d
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Adding command wrappers NiciraNvpCreateLogicalSwitchCommandWrapper and NiciraNvpDeleteLogicalSwitchCommandWrapper
- Refactoring the retry mechanism
- Applying the new retry mechanism to current wrappers and old methods in NiciraNvpResource
- Adding 2 tests
- Fixing the testRetries() in NiciraNvpResourceTest class
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:57 +02:00
wilderrodrigues
27c9651b32
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Refactoring NiciraNvpResource
- Added NiciraNvpUtilities and NiciraNvpCreateLogicalSwitchCommandWrapper
- Removing 1 execute methods form NiciraNvpResource
- Added 1 unit test
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:56 +02:00
wilderrodrigues
6a51294d19
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Refactoring NiciraNvpResource
- Added NiciraNvpMaintainCommandWrapper
- Removing 1 execute methods form NiciraNvpResource
- Added 1 unit test
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:56 +02:00
wilderrodrigues
0d943d5426
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Refactoring NiciraNvpResource
- Added NiciraNvpRequestWrapper
- Removing 1 execute methods form NiciraNvpResource
- Added 1 unit test
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:56 +02:00
wilderrodrigues
fc478604e8
CLOUDSTACK-8590 - Refactoring NiciraNVP resource
...
- Adding the NiciraNvpWrapper
- This class will keep track of all Wrappers of the Nicira NVP Plugin
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-01 15:04:56 +02:00
Rafael da Fonseca
34d097f349
Fix 4 findbugs warnings in JuniperSrxResource Data should be read and written in UTF-8 to the SRX Buffers were being used for reading but not for writing, PrintWriter was auto-flushing and code was explicitly flushing again, causing unnecessary operation to be performed.
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #399
2015-06-15 21:49:43 +03:00
Rafael da Fonseca
6f330f7ab6
Fix findbugs warning in PaloAltoResource.java Unnecessary boxing/unboxing of primitive value
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #427
2015-06-15 12:09:43 +03:00
Rafael da Fonseca
1494487f72
Fix findbugs warning in NetscalerResource.java Unnecessary boxing/unboxing of primitive value
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #426
2015-06-15 12:09:41 +03:00
Rafael da Fonseca
980d858c34
Add import statements, remove unused FileReader import
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #393
2015-06-15 12:07:49 +03:00
Rafael da Fonseca
9ad8c70baa
Fix findbugs encoding warning, all .xml files contain only utf-8/us-ascii compatible characters
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-06-15 12:07:49 +03:00
Rafael da Fonseca
509c83bc74
Fix findbugs encoding warning in JuniperSrxResource All .xml files contain only utf-8/us-ascii compatible characters. If special characters are added to these files in the future, UTF-8 should be used for cross platform compatibility
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #398
2015-06-15 12:03:56 +03:00
Rafael da Fonseca
aeccd8afdf
Fix findbugs encoding issue This is done by calling HttpMethodBase's getResponseBodyAsString() which properly lookup the specified encoding in the request's Content-Type header This also avoids instantiation of two extra strings on the println() and return statements
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #394
2015-06-15 11:59:09 +03:00
Rafael da Fonseca
c5437d216f
Fix malformed closing tag on comments in cisco .xml files
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #369
2015-06-08 09:41:13 +02:00
Rafael da Fonseca
b9b13d764d
Fix another case of unnecessary boxing JuniperSrxResource.java:1280, DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High Boxing/unboxing to parse a primitive com.cloud.network.resource.JuniperSrxResource.removeDestinationNatRules(Long, Map, List)
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #367
2015-06-08 09:41:07 +02:00
Rafael da Fonseca
039d632ad3
Fix 3 more findbugs performance alerts, creating Long and Integer unnecessarily F5BigIpResource.java:297, DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High F5BigIpResource.java:703, DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High F5BigIpResource.java:889, DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High Boxing/unboxing to parse a primitive com.cloud.network.resource.F5BigIpResource
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #366
2015-06-08 09:40:59 +02:00
Rafael da Fonseca
9bac84a3f7
Fix last ocurrence of unnecessary boxing detected by findbugs CiscoVnmcResource.java:266, DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High Boxing/unboxing to parse a primitive com.cloud.network.resource.CiscoVnmcResource.getIpRangeFromCidr(String)
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #368
2015-06-08 09:39:02 +02:00
Rafael da Fonseca
65383fb8fa
Fix another findbugs high priority warning JuniperSrxResource.java:2617, ES_COMPARING_STRINGS_WITH_EQ, Priority: High Comparison of String objects using == or != in com.cloud.network.resource.JuniperSrxResource.manageApplication(JuniperSrxResource$SecurityPolicyType, JuniperSrxResource$SrxCommand, JuniperSrxResource$Protocol, int, int)
...
This now correctly compares strings
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #364
2015-06-08 09:30:38 +02:00
Koushik Das
d423df66cc
CLOUDSTACK-8301: Enable configuring local storage use for system VMs at zone level
...
Code cleanup, added helper method to get default system offering based on "system.vm.use.local.storage".
2015-05-19 21:32:14 +05:30
Koushik Das
3f7e31ed05
CLOUDSTACK-8301: Enable configuring local storage use for system VMs at zone level
...
Made system.vm.use.local.storage a zone level configuration.
2015-05-19 21:32:14 +05:30
Rohit Yadav
069aa4e5f3
CLOUDSTACK-8433: remove awsapi db usage and add upgrade cleanup path
...
- Removes awsapi db properties usage across codebase
- Removes references from spring xmls, test cases and TransactionLegacy
- Adds sql command to drop database cloudbridge in schema-451to460-cleanup.sql
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-06 15:22:04 +02:00
Rohit Yadav
df3dea58a2
CLOUDSTACK-6139: Fix regression, allow zone level systemvm localstorage config
...
From b3f18e7d74 , the zone level systemvm local
storage setting never worked as it needed to be moved to config depot.
(cherry picked from commit 279efb0432 )
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
plugins/network-elements/internal-loadbalancer/src/org/apache/cloudstack/network/lb/InternalLoadBalancerVMManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2015-05-01 15:27:40 +02:00
KC Wang
581f3b79a3
findbugs and PMD fixes
...
This closes #168
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2015-04-15 11:30:04 +05:30
Daan Hoogland
e459ccfa6b
rat: new license copy from sibling test class
2015-04-12 19:56:00 -05:00
Daan Hoogland
951ffb1f03
empty comments needed for license?
2015-04-13 02:07:56 +02:00
Daan Hoogland
21e18b1e60
rats are rodents
2015-04-12 21:04:08 +02:00