Jayapal
638885a9de
CLOUDSTACK-8324: Added migration changes for config drive
2015-07-08 15:12:43 +05:30
Daan Hoogland
31c6b14dd4
Merge branch 'improvement/CLOUDSTACK-8607' change the host password on the host itself via the updateHostPassword API
...
- Make sure the new password replaces the old one in the queue
- Updated the patch files for XenServer
- Updated the script path on LibvirtComputing class
- Adding update_host_passwd to VRScripts
- Add implementation to CitrixUpdateHostPasswordCommandWrapper
- Improve testUpdateHostPasswordCommand() unit test on CitrixRequestWrapperTest
- Adding update_host_passwd.sh script
- Adding the host IP address as an instance variable on UpdateHostPasswordCommand
- Improving the Unit Test (LibvirtComputingResourceTest) to get it covering the new code
- Make sure doUpdateHostPassword() doesn't get called if flag is set to false
- Do not update XenServer hosts if the cluster ID is not informed
This closes #559
2015-07-06 16:15:22 +02:00
wilderrodrigues
e348e76eee
CLOUDSTACK-8607 - Improving unit tests
...
- Adding more unit tests as suggested by Daan and Rajani.
- Mocking SshHelper and the Script classes, used by Citrix and Libvirt resources respectively.
2015-07-06 14:58:17 +02:00
wilderrodrigues
86297e70be
CLOUDSTACK-8607 - Make sure the new password replaces the old one in the queue
...
- Added log info to show details of the operation
- Renamed the addPwdToQueue to replaceOldPasswdInQueue
2015-07-04 11:33:52 +02:00
wilderrodrigues
efa34361df
CLOUDSTACK-8607 - Changed update script to return exit code based on the result
...
- Changed location of the update_host_passwd script
- Updated the patch files for XenServer
- Updated the script path on LibvirtComputing class
- Removed the hostIP from the LibvirtUpdateHostPasswordCommandWrapper execute() method
2015-07-03 14:29:57 +02:00
Kishan Kavala
3a19a8916e
BUG-ID:CLOUDSTACK-7472: kvmclock fix for LXC is not required after fixing CLOUDSTACK-8177
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #557
2015-07-03 15:21:18 +05:30
wilderrodrigues
0dd02ce043
CLOUDSTACK-8607 - Adding support to update host passwd on XenServer hypervisors
...
- Adding update_host_passwd to VRScripts
- Add accessor method to host password on CitrixResourceBase
- Add implementation to CitrixUpdateHostPasswordCommandWrapper
- Improve testUpdateHostPasswordCommand() unit test on CitrixRequestWrapperTest
- Add line to patch files on xenserver directory
Concerning the LibVirt change:
- I forgot to assing the return of the getDefaultHypervisorScriptsDir() method to the hypervisorScriptsDir variable
2015-07-03 10:24:44 +02:00
wilderrodrigues
47c7a1083f
CLOUDSTACK-8607 - Adding update_host_passwd.sh script
...
- Modifying the LibvirtUpdateHostPasswordCommandWrapper in order to execute the script on the host
- Adding the script path to LibvirtComputingResource
- Adding the host IP address as an instance variable on UpdateHostPasswordCommand
- Improving the Unit Test (LibvirtComputingResourceTest) to get it covering the new code
2015-07-02 14:54:51 +02:00
Likitha Shetty
9463356ca6
CLOUDSTACK-8600. Upon detaching a disk, delete VM folder if empty.
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #545
2015-07-01 14:53:23 +02:00
Likitha Shetty
299c07c3e1
CLOUDSTACK-8597. Failed to migrate volume from zone-wide to cluster-wide storage. While live migrating a volume, CS chooses the endpoint to perform the migration by selecting any host that has the storage containing the volume mounted on it. Instead, if the volume is attached to a running VM, the endpoint chosen by CS should be the host that contains the VM.
...
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
This closes #541
2015-07-01 12:33:26 +02:00
wilderrodrigues
527d6ee77b
Making possible to update KVM hosts password in the database via the API
...
- Make sure the doUpdateHostPassword() method returns the result from the answer, not always true
- Added the LibvirtUpdateHostPasswordCommandWrapper class, which will handle the changes in the KVM agent
That's will be further implemented in the future. The command will avoid the agent to complain about Unsupported command
- Added a test to make sure the current implementation of the comment works
- If changes in the future, it will also require changes. In that way, we make sure nobody will break it
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
This closes #527
2015-06-29 09:59:12 +02:00
Daan Hoogland
8a8849354c
findbugs: masking fields removed
2015-06-24 12:24:12 +02:00
Daan Hoogland
e8984d16ed
findbugs: move assert to a place where it still makes sense
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
2015-06-23 23:27:03 +02:00
Rafael da Fonseca
fe4f0b1a58
Specify all dependency versions in pom.xml
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #497
2015-06-22 13:01:19 +02:00
Rafael da Fonseca
83488e01af
Reduce about 1k String objects from being instantiated
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-22 13:01:19 +02:00
Rafael da Fonseca
9d19191bc6
Root cause of failure is memory abuse in XenTest.java class ;) This should fix it
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-22 13:01:19 +02:00
Rafael da Fonseca
301a7b9a7e
Specify all external dependencies in pom Upgrade to lang3 and change usage of deprecated xmlparse method
...
Add another missing dependency
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-22 13:01:19 +02:00
Rafael da Fonseca
1603f722c4
Cleanup some lint checker warning in base classes
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-22 13:01:18 +02:00
Rafael da Fonseca
540b163cfc
Resolve unsafe cast warnings reported by lint checker Add some debug config to compiler plugin
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-22 13:01:18 +02:00
Rafael da Fonseca
0d8c64ea56
Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in OvmResourceBase.java
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #502
2015-06-22 10:50:48 +02:00
Rafael da Fonseca
dc359c505e
Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in BareMetalResourceBase.java
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #501
2015-06-22 10:50:12 +02:00
Daan Hoogland
bbb165a037
findbugs: use preferred encoding explicitly
2015-06-20 10:36:15 +02:00
Daan Hoogland
9eff27a080
findbugs: static member should be final
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
This closes #495
2015-06-20 00:57:59 +02:00
Daan Hoogland
871ba9c521
findbugs: ignored return value should have been returned down stack
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
This closes #494
2015-06-20 00:57:01 +02:00
Daan Hoogland
e3407a3939
findbugs: encoding using preferred Charset
2015-06-19 23:03:05 +02:00
Sanjay Tripathi
9044a02d9a
VM Snapshot Usage for DATA disk is reported as the size of the DATA disk instead of the actual snapshot size.
...
This closes #485
2015-06-19 15:55:21 +05:30
Daan Hoogland
0952580096
findbugs: try-with-resource to circumvent not handling an exception on
...
close
2015-06-17 12:41:04 +02:00
Daan Hoogland
6da6c5f762
findbugs: log unhandled exception as warning
2015-06-17 12:35:39 +02:00
Sanjay Tripathi
d702b63bfb
CLOUDSTACK-8569: The latter snapshot export for the same volume will fail is 2 snapshot exports are queued
...
This closes #469
2015-06-17 15:27:03 +05:30
Sanjay Tripathi
47278556f5
CLOUDSTACK-8567 Migrating primary storage causes name_label field to blank.
...
This closes #468
2015-06-17 14:46:51 +05:30
Daan Hoogland
41c1fddaee
findbugs: better message and fallback to defaultCharset
2015-06-16 11:57:15 +02:00
Rafael da Fonseca
0851e4e54b
Catch encoding exception
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #464
2015-06-16 11:24:51 +02:00
Rafael da Fonseca
9f2ebdf443
Fix findbugs encoding issue in VmwareStorageProcessor.java Any encoding would do fine as it's just used to generate a UUID. Sticking with UTF-8 for consistency
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #460
2015-06-16 08:56:33 +02:00
Rafael da Fonseca
9bb920af65
Fix findbugs warning in VmwareStorageManagerImpl.java Any encoding would do fine as it's just used to generate a UUID. Sticking with UTF-8 for consistency
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #461
2015-06-16 08:53:56 +02:00
Rafael da Fonseca
3d48af41a8
Fix findbugs encoding issue in VmwareResource.java Key file should be UTF-8 encoded in VR
...
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
This closes #462
2015-06-16 08:51:54 +02:00
Wido den Hollander
4b4c52ea77
CLOUDSTACK-8560: Stat the resulting image after copying from template and return the size
...
This way we update the DB with the actual size of the disk after deployment from template
2015-06-15 17:55:56 +02:00
Rafael da Fonseca
be474f95a1
Fixed 4 findbugs warnings in CitrixResourceBase.java Unnecessary boxing/unboxing of primitive values
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #425
2015-06-15 12:09:39 +03:00
Rafael da Fonseca
16ddd498d5
Fix findbugs warning in UcsManagerImpl.java Integer was being created to assign value to int
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #424
2015-06-15 12:09:37 +03:00
Rafael da Fonseca
9ba4e9cb86
Fix findbugs warning in OvmResourceBase.java CreatePrivateTemplateAnswer constructor takes long as physicalSize parameter, Long was being created instead
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #423
2015-06-15 12:09:36 +03:00
Rafael da Fonseca
9d2fef0de8
Fix findbugs warning in HypervDirectConnectResource.java Two boxed Longs were being created instead of simple long
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #422
2015-06-15 12:09:34 +03:00
Rafael da Fonseca
30457556f9
Fix findbugs warning in BareMetalResourceBase.java Boxed Integer was being instantiated to assign to an int variable
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #421
2015-06-15 12:09:32 +03:00
Rafael da Fonseca
85ad1b7e0f
Fix 3 findbugs encoding warnings in VmwareStorageProcessor.java Ova templates and metadata should be written to file in UTF-8 Fix warning in UUID generation
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #411
2015-06-15 12:09:13 +03:00
Rafael da Fonseca
ccd7d41ee3
Resolve findbugs encoding warning
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #392
2015-06-15 12:07:55 +03:00
Rafael da Fonseca
967da97f51
Fix 2 findbugs warnings in VmwareStorageManagerImpl.java Template files and metadata should be written to file in UTF-8
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #410
2015-06-15 12:06:19 +03:00
Rafael da Fonseca
11fec86ba3
Fix 1 findbugs warning in VmwareResource.java
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #409
2015-06-15 12:06:11 +03:00
Rafael da Fonseca
474065e98b
Fix findbugs encoding warning in VmwareServerDiscoverer.java Input string should only contain safe characters, since it's derived from a Long object. This just gets rid of the findbugs warning
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #408
2015-06-15 12:06:01 +03:00
Rafael da Fonseca
f8b364b7c7
Was safe either way as this piece of code should only run in linux, this just gets rid of the findbugs warning
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #402
2015-06-15 12:04:47 +03:00
Rafael da Fonseca
3299f23ea2
Fix findbugs encoding warning in LibvirtCreatePrivateTemplateFromVolumeCommandWrapper Libvirt templates should be written in UTF-8, default was already doing that so this just gets rid of the findbugs warning
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #401
2015-06-15 12:04:24 +03:00
Rafael da Fonseca
b869a16332
Remove unused import to fix checkstyle warning
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #400
2015-06-15 12:04:19 +03:00
Rafael da Fonseca
949e97dec6
Fix findbugs warning in LibvirtConsoleProxyLoadCommandWrapper Encoding is now specified in both server and clients for the console proxy getstatus command For some reason, findbugs did not detect unsafe encoding issue in ConsoleProxyResource.java, is properly specified now though... CitrixConsoleProxyLoadCommandWrapper was specifying system default encoding for operation, should be ok because default for xenserver is UTF-8 since it's linux based, but it's best to specify exact encoding set on the server end to be consistent
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-06-15 12:04:18 +03:00