2080 Commits

Author SHA1 Message Date
wilderrodrigues
a1e8778211 First piece of the refactor of the CitrisResourceBase
- The same pattern will be used by the other subclasses of the ServerResource interface.
2015-03-31 10:38:24 +02:00
Rajani Karuturi
018023c1ef volume upload: added validation for file formats
merged TemplateUtils and ImageStoreUtil to a singe ImageStoreUtil
also added a unittest for ImageStoreUtil
2015-03-20 16:25:13 +05:30
wilderrodrigues
159088cb90 Fix array index problems on the ACL command. 2015-03-16 11:39:55 +01:00
wilderrodrigues
edd839ab10 Fix: allow multiple VIFs per Mac Address
Fix: RTNETLINK errors
     - Management Server health check trying to create already existing interface
     - Changes on update_config.py, cs_guestnetwork.py, merger.py
Fix: replace RRouTER_LOG in the CsRedundant.py per log file location
Fix: Guest Net address association during Router restart
     - Changes on NicProfileHelper, NicProfileHelperImpl
Fix: aggregationExecution() method on VirtualNetworkApplianceManagerImpl
     - Do not send an AggregationControlCommand to a non-configured router

Some classes have been formatted.
2015-03-16 11:39:48 +01:00
Ian Southam
7d0df32560 Lots of fixes from the testing
firewallrules implemented sperately from networkacl (ugly but best that can be done ATM)
Some refactoring in CsDHCP as it made no sense to do it that way anymore
processmonitoring implemented
Domain not correctly sourced in VR
2015-03-16 11:38:15 +01:00
Hugo Trippaers
39035f4782 Fix test cases now ConfigHelper is gone 2015-03-16 11:35:38 +01:00
Hugo Trippaers
0a95c44c51 ConfigHelper is replace by a facade pattern 2015-03-16 11:35:36 +01:00
wilderrodrigues
0a1677242a Adding tests for IpAssocVpc; DeleteIpAlias; DnsMasqConfig
Adding IpAssocVpcCommand to the AbstractConfigItemFacade map
2015-03-16 11:35:34 +01:00
wilderrodrigues
6d7f75e18b Adding LoadBalancer command to JSON style
Adding a couple of tests (ConfigHelperTest) to validate the following:

* Command is generated;
* JSON String is generated based on the Java Object
* JSON Object is generated based on the String content

Also fixed the SetPortForwardingRulesVpcConfigItem: implementation was missing.
2015-03-16 11:35:33 +01:00
wilderrodrigues
6898acd349 BumpUpPriotity doesn't need the generateConfigItems() method.
Its approach is different, it uses a non-parameterized script.
2015-03-16 11:35:33 +01:00
wilderrodrigues
8caafe2859 Adding all other (13) rules to the new code design
Removed the code from ConfigHelper, which is now really clean
Added Flyweight to AbstractConfigItemFacada
Renamed 3 *ConfigItem classes that had typos in their names
2015-03-16 11:35:33 +01:00
wilderrodrigues
7ccd174471 Add 8 Commands/ConfigItems to new style
Make subclasses extend the abstract class; change accessor of few methods
2015-03-16 11:35:32 +01:00
wrodrigues
36a95e7577 TK-2925 Add support for loadbalancer config in ConfigHelper
Adding new ConfigItem classes, that will be used to decouple the configureation from the ConfigHelper class.

The idea is to use mix of Flyweight and Facade implementation in order to the correct classes without having so many ifs and private static methods.
2015-03-16 11:35:31 +01:00
Ian Southam
8a92a0a460 Corrected a couple of small typos 2015-03-16 11:35:23 +01:00
Sander Botman
9b40f3d379 fixing the nullpointer on type which is null 2015-03-16 11:35:18 +01:00
Sander Botman
4c5113b9e5 Creating new model for the firewall rules 2015-03-16 11:35:18 +01:00
Hugo Trippaers
d2e3b238ed New style dnsmasq configuration 2015-03-16 11:35:17 +01:00
Sander Botman
daf6c33507 Creating new model for the MonitorService 2015-03-16 11:35:17 +01:00
Sander Botman
b4acd77abf New model for RemoteAccessVpn and moving into the new structure 2015-03-16 11:35:16 +01:00
Hugo Trippaers
caef7ee9a9 Staticroutes to new json style 2015-03-16 11:35:16 +01:00
Hugo Trippaers
58919dcf50 Change the location for the temporary json files to /var/cache/cloud 2015-03-16 11:35:16 +01:00
Sander Botman
92aca76c3b Adding new model for the Site2SiteVpn configuration. 2015-03-16 11:35:15 +01:00
Hugo Trippaers
2e968d85fe Migrate ip alias commands 2015-03-16 11:35:15 +01:00
Hugo Trippaers
660fdbe238 modified StaticNatRule to use the new style 2015-03-16 11:35:14 +01:00
Sander Botman
f423f3ea4e New style manage VPN user command <Still need some testing with the VR image> 2015-03-16 11:35:13 +01:00
Hugo Trippaers
6ae56b7275 Add forwarding rules to the new config format and do a little rewrite on
the models
2015-03-16 11:35:13 +01:00
Hugo Trippaers
3ab83fdba7 New style save password command 2015-03-16 11:35:11 +01:00
Hugo Trippaers
bda4c0d2c9 Move some static strings to constants and remove some duplicate code 2015-03-16 11:35:11 +01:00
Hugo Trippaers
9b2a73370b Put a netmask in the netmask field 2015-03-16 11:35:09 +01:00
Hugo Trippaers
25b8510c43 Change vmdata to the new config system 2015-03-16 11:35:06 +01:00
Hugo Trippaers
43fd212298 Add some debug logging to keep track of timing 2015-03-16 11:35:05 +01:00
Hugo Trippaers
7b8050c056 Rewrite networkacl model to have separate entries for each rule 2015-03-16 11:35:05 +01:00
Hugo Trippaers
0027db6cd1 Switch ip associations to new model and update the recipes 2015-03-16 11:35:04 +01:00
Hugo Trippaers
183b248c4e Include a type field in all json configuration objects 2015-03-16 11:35:04 +01:00
Hugo Trippaers
1f1a9ba8b0 Create a json file for SetNetworkACL 2015-03-16 11:35:03 +01:00
Hugo Trippaers
639b24a575 Replace CreateGuestNetwork config script with a json file. 2015-03-16 11:35:01 +01:00
Hugo Trippaers
9514f259f6 Removed useless array from SetStaticRoutesCmd. 2015-03-16 11:34:59 +01:00
Hugo Trippaers
0f5af91668 Switch ip associations to the new config file system 2015-03-16 11:34:58 +01:00
Rajani Karuturi
3de5d9db5f volume upload: Restart of MS leads to loss of browser uploaded templates
on restart of management server, template sync runs. It checks for
templates in ssvm using the uniquename. If it doesnt find any, cleans
the directory. In case of uploaded templates, these are getting saved
using name instead on uniquename and hence template sync cant find them
and does cleanup. Using uniquename in template.properties now.
2015-03-16 12:45:24 +05:30
Likitha Shetty
bdd28a45ed CLOUDSTACK-8319. For both 'MigrateVolume' and 'MigrateVMWithVolumes, ensure VM's vconfiguration files are migrated along with VM's root volume. 2015-03-12 11:57:02 +05:30
Funs
c27c69438b hypervisors: add OVM3 plugin that supports OVM 3.2.1/3.3.x
This is a plugin that puts in ovm3 support ranging from 3.3.1 to 3.3.2. Basic
functionality is in here, advanced networking etc..

Snapshots only work when a VM is stopped now due to the semantics of OVM's raw
image implementation (so snapshots should work on a storage level underneath the
hypervisor shrug)

This closes #113

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-12 11:33:42 +05:30
Rajani Karuturi
b16520bcec volume upload: added max size check for temaplte/volume post upload
used the existing configuration variables max.template.iso.size and
storage.max.volume.upload.size for templates and volumes respectively.
2015-03-03 17:27:40 +05:30
Laszlo Hornyak
df11bb2811 CLOUDSTACK-8279: Fix unit test for java 1.8
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2015-02-27 20:06:27 +01:00
Laszlo Hornyak
f8c003d13a CLOUDSTACK-8279: test fix for java 1.8
The test build on an assumption on the order of items in a Set, while this changed in java 1.8

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2015-02-27 19:38:12 +01:00
Laszlo Hornyak
e6e3a20bd6 removed redundant autoboxing
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2015-02-27 19:38:12 +01:00
Laszlo Hornyak
5626a340dd Logical expression simplification, == true is redundant
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2015-02-27 19:38:12 +01:00
Rohit Yadav
6f4db0ce4b CLOUDSTACK-5237: Add a default PBKDF2-SHA-256 based authenticator
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 9533c54db669b22b268fcc21766e21c231e48d84)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-02-27 15:53:58 +05:30
Koushik Das
d19ea5226a volume upload: Use volume/template UUID instead of ID in UploadStatusCommand 2015-02-17 12:31:40 +05:30
Koushik Das
121ff19cba volume-upload: Attaching uploaded volume to an instance failing while copying from secondary to primary storage
The volume/template size and install path was not getting updated properly.
The upload status response should return these properties on completion of upload.
2015-01-31 17:27:46 +05:30
Koushik Das
c9908d2678 volume-upload: management server polling and upload status from agent
Some more fixes to the polling logic
2015-01-31 17:10:46 +05:30