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
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/31c6b14d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/31c6b14d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/31c6b14d
Branch: refs/heads/reporter
Commit: 31c6b14dd474e1c82b7377f97e9c84fac4b028b6
Parents: f1a6490 e348e76
Author: Daan Hoogland <[email protected]>
Authored: Mon Jul 6 16:15:22 2015 +0200
Committer: Daan Hoogland <[email protected]>
Committed: Mon Jul 6 16:15:22 2015 +0200
----------------------------------------------------------------------
.../org/apache/cloudstack/api/ApiConstants.java | 3 +-
.../admin/host/UpdateHostPasswordCmd.java | 8 +
.../agent/api/UpdateHostPasswordCommand.java | 17 ++-
.../resource/virtualnetwork/VRScripts.java | 1 +
.../kvm/resource/LibvirtComputingResource.java | 20 +++
...LibvirtUpdateHostPasswordCommandWrapper.java | 15 +-
.../wrapper/LibvirtUtilitiesHelper.java | 10 +-
.../resource/LibvirtComputingResourceTest.java | 39 ++++-
.../xenserver/resource/CitrixResourceBase.java | 153 +++++++++++--------
.../CitrixUpdateHostPasswordCommandWrapper.java | 28 +++-
.../xenbase/XenServerUtilitiesHelper.java | 45 ++++++
.../xenbase/CitrixRequestWrapperTest.java | 130 +++++++++++++++-
scripts/vm/hypervisor/update_host_passwd.sh | 28 ++++
scripts/vm/hypervisor/xenserver/xcposs/patch | 1 +
scripts/vm/hypervisor/xenserver/xcpserver/patch | 1 +
.../vm/hypervisor/xenserver/xenserver56/patch | 1 +
.../hypervisor/xenserver/xenserver56fp1/patch | 1 +
.../vm/hypervisor/xenserver/xenserver60/patch | 1 +
.../vm/hypervisor/xenserver/xenserver62/patch | 1 +
.../vm/hypervisor/xenserver/xenserver65/patch | 1 +
.../com/cloud/resource/ResourceManagerImpl.java | 27 +++-
.../com/cloud/server/ManagementServerImpl.java | 4 +
22 files changed, 451 insertions(+), 84 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/31c6b14d/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------