Commit Graph

68 Commits

Author SHA1 Message Date
Rajesh Battala 96118e485f CLOUDSTACK-6159 Fixed creating volumes(Root, DataDisk) with uuid in primary store
(cherry picked from commit b44901c059)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-03-04 23:38:46 -08:00
Devdeep Singh 9536569e1f CLOUDSTACK-6030: Encrypt the primary and secondary smb storage password when it is stored in the db.
(cherry picked from commit 96d8e3c945)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-02-07 13:21:18 -08:00
Rajesh Battala 3c891fcf66 Fixed agent code to handle untagged public vlan while parsing the vlan id
(cherry picked from commit 7df148c762)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-02-07 13:17:16 -08:00
Devdeep Singh ce1b393f73 CLOUDSTACK-5942: The agent at places logs the password of the user. It should mask the
password from the message string before writing to the log. Made a change to do so.
(cherry picked from commit 6d997bd689)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-01-27 19:54:01 -08:00
Animesh Chaturvedi 70ba92fc14 Updating pom.xml version numbers for release 4.3.0
Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-01-21 17:29:51 -08:00
Devdeep Singh eb6bed8037 CLOUDSTACK-5894: A template created from a volume on hyper-v became unusable after
the management server was restarted. The template.properties file created for the
template has the format field in upper-case. This caused the template service to
not to recognise the format and it removed the entry from the template_store_ref
table in db. Fixed the format field in the templatee.properties.
2014-01-17 19:12:59 +05:30
Saksham Srivastava 330571cea6 CLOUDSTACK-5692: obscure passwords when using cifs as storage 2014-01-17 13:49:46 +05:30
Anshul Gangwar ab0a068d9f CLOUDSTACK-5880: Communication between management server and hyper-v agent should be secure. 2014-01-16 14:42:24 +05:30
Devdeep Singh 5bf5d3669d CLOUDSTACK-5689: System vm creation on local storage fails for hyper-v. A
null pointer exception was getting generated when a VolumeTO object was
serialized to create an answer object. If a local storage is used the uri
field will be null. Added null checks for the same.
2014-01-14 19:53:26 +05:30
Devdeep Singh 06a7795552 CLOUDSTACK-5657: Run the service as an account (hyper-v admin on host) so
that migration can work across hosts.
2014-01-10 17:09:26 +05:30
Devdeep Singh f417297bbb CLOUDSTACK-5639: If path field in the TO already has the complete path, do
not try to generate the path.
2014-01-10 16:34:06 +05:30
Devdeep Singh 2ace4fe241 CLOUDSTACK-5795: Template.properties file wasn't created when a template
was created from a volume. Added a post creation change to create the file
with the necessary information.
2014-01-09 10:50:59 +05:30
Devdeep Singh 7fc3c4fd15 CLOUDSTACK-5788, CLOUDSTACK-5789: Attaching upload volume and download
volume was failing for hyper-v. Copy command answer was failing while
creating the answer object. Fixing the issue.
2014-01-06 16:34:46 +05:30
Devdeep Singh 741634b87e CLOUDSTACK-5691: Fix for attaching an uploaded volume to instance running
on hyperv. There were multiple issues here. Upload volume was actually
failing because the post download check for vhd on the cifs share was
unsuccessful. Also the agent code wasn't parsing the volume path correctly.
Fixed it too.
2014-01-03 16:43:21 +05:30
Rajesh Battala 9313a35f41 CLOUDSTACK-5658 CLOUDSTACK-5563 deploying VM from template created from volumes fails 2014-01-03 16:14:38 +05:30
Anshul Gangwar e74889ac91 CLOUDSTACK-5703: putting rdp server port value in host details 2014-01-01 15:05:09 +05:30
Devdeep Singh 4d05056252 CLOUDSTACK-5605: Fixing GetStorage stats command for hyper-v. The agent
wasn't looking up the share path correctly for reading the stats of a smb
share.
2014-01-01 14:29:43 +05:30
Anshul Gangwar b55d9ecf53 CLOUDSTACK-5344 commit for console proxy rdp for hyperv 2013-12-31 18:14:53 +05:30
Rajesh Battala 68c4acce7d CLOUDSTACK-5687 [Hyper-V] Remote Access VPN fails with Unsupported command while trying to configure VPN users 2013-12-31 12:31:23 +05:30
Devdeep Singh 5a2e4fd0a2 CLOUDSTACK-5560: Reattach of data disk fails for hyperv. When a data disk
is attached a hard disk drive is created on the scsi controller. On detach
the data disk is removed from the drive but the disk drive is left behind.
On reattach the agent was again trying to create a disk drive while it was
already present. Fixed the agent code to look up for disk drive while
attaching and if one is not found then only to create the drive for
attaching a data disk.
2013-12-30 16:52:04 +05:30
Devdeep Singh 5551724a2e CLOUDSTACK-5659: Creation of vm from iso failing with wrong file format.
The agent was always creating a disk with image format vhdx, but the
cloudstack management server defaults to image format vhd for hyperv.
Updated the agent code to be consistent with what cs expects. All disks
are now created with image format vhd.
2013-12-30 11:58:45 +05:30
Devdeep Singh 46f0b25c3a CLOUDSTACK-5610: Host doesn't go to Down/Alert state even though it is powered off. VM
deployment fails because of that as cloudstack tries to deploy it on a host which is
ctually down. An investigator wasn't present for hyper-v; so cloudstack wasn't able to
determine the status of the host. Wrote an investigator for hyper-v which checks with
other hosts in the cluster for the status of the host being investigated.
2013-12-27 16:28:45 +05:30
Devdeep Singh f908a15758 CLOUDSTACK-5649: Vms are stopped and not migrated from a host when the
host is put in maintenance mode. The migrate flag wasn't set to true in
the maintain answer. This caused cloudstack to not to schedule a migration
work item for vms on the host. Made a change to set the migrate flag to
true in migrate answer.
2013-12-27 15:17:41 +05:30
Rajesh Battala fd831ff2ca CLOUDSTACK-5193 [Hyper-V] VHDs not deleted post VM destroy and expunge 2013-12-26 16:10:49 +05:30
Devdeep Singh 93ea31c6e4 CLOUDSTACK-5308, CLOUDSTACK-5542: Copy command didn't handle the scenario
when a volume is copied to secondary storage for template creation.
Updated the command to handle it.
2013-12-26 15:31:18 +05:30
Devdeep Singh f1260e8606 CLOUDSTACK-5639: Cold storage migration doesn't work for hyper-v. Made
changes to make sure CopyCommand honours requests for volume copy from
primary to secondary storage and vice versa.
2013-12-25 15:02:16 +05:30
Rajesh Battala a9ca480354 CLOUDSTACK-5595 add vlan to storage nic to vnic for ssvm 2013-12-24 17:00:24 +05:30
Devdeep Singh 105e27b73d CLOUDSTACK-5210: Fix the sockets reported by the hyperv agent. 2013-12-23 13:23:55 +05:30
Rajesh Battala 58aaf67806 CLOUDSTACK-5584 fix the issue to configure the systemvm's in hyperv consistently 2013-12-22 22:15:29 +05:30
Rajesh Battala 0ef953f993 CLOUDSTACK-5603 support Monitoring VR services when VR running on Hyper-V 2013-12-22 20:24:15 +05:30
Devdeep Singh c5e95be7ef CLOUDSTACK-5555: Fixing booting a vm on hyperv with data disk. Made
changes to attach a data disk on scsi controller when a vm is being
created.
2013-12-20 17:11:50 +05:30
Devdeep Singh 340e29d7ba CLOUDSTACK-5217: Attach volume fails with NPE. Made changes to make sure
the hypervisor product version is reported on startup. Also made changes
to fix attach and detach volume on scsi controller.
2013-12-17 15:54:37 +05:30
Devdeep Singh 079baafcea CLOUDSTACK-5489: Query the user name and add it to the command while mounting a cifs share. 2013-12-17 14:04:05 +05:30
Devdeep Singh f69100e2e8 CLOUDSTACK-5489: Cloud user doesn't have permissions to copy systemvm.iso to secondary.
Make sure when a cifs (secondary) is mounted, uid is set for the user who owns the files
and directories on the filesystem.
2013-12-13 17:28:30 +05:30
Devdeep Singh 7151ec63fa CLOUDSTACK-5311: Fix the host version reported by the hyper-v agent. Also updated the hypervisor
capabilities for hyper-v.
2013-12-12 16:48:46 +05:30
Donal Lafferty 23bc02d12a CLOUDSTACK-5462: Hyperv agent confused by existing volume of different
image type. Works by avoiding volume image format inference errors and
removing existing files with same name, but different format.
2013-12-12 14:53:33 +05:30
Devdeep Singh 388510ff39 CLOUDSTACK-5473: Fixed the name with which the hyper-v agent gets
installed as a service.
2013-12-12 14:53:14 +05:30
Devdeep Singh 3cd004c924 CLOUDSTACK-5455: Fix detach iso on hyperv. Made sure normalized path is
used while attaching and detaching iso. Also made normalization of path
across the agent code.
2013-12-11 19:29:19 +05:30
Devdeep Singh 5dea7728a3 CLOUDSTACK-5248: Fixed creation of mount point when running as non root (cloud) user.
The systemvm iso file is copied only when a systemvm or router vm is to be started on
a host. The file gets copied to the secondary storage. The mount point used is the one
that has permissions for regular user to mount a share.
CLOUDSTACK-5275: The failure was because a secondary storage wasn't available when the
host was added. When a setup is done through wizard the hosts get added before the
secondary storage. CS was tying to copy yhe systemvm iso to secondary and it used to
fail if it wasn't available. Made a change to copy the iso only when a systemvm is
being started on a host.
CLOUDSTACK-5202: Made changes to clean up mount points on stop and start.

All the three are related fixes; so putting a fix in one commit.
2013-12-11 17:22:45 +05:30
Anshul Gangwar 1742e7627c Fix nuget package path error. 2013-12-09 13:06:47 +05:30
Anshul Gangwar a7e10fcfaf Fix the directory path of where the nuget packages get downloaded. 2013-12-09 11:06:56 +05:30
Rajesh Battala 26020fc078 added support to run hyperv agent on 0.0.0.0 and startuprouting command will discover the ip details and send in response 2013-12-05 14:46:44 +05:30
Rajesh Battala 5d9ed55d99 Modified savepassword.sh path in Hyperv Resource according to the new template 2013-12-05 11:10:57 +05:30
Devdeep Singh 3744deab14 CLOUDSTACK-5178: DeployVm from ISO fails. Fixed the creation of root
volume and made sure the iso is attached when a vm is deployed.
2013-12-04 19:59:40 +05:30
Donal Lafferty 9e04e33d17 Changes for fixing the hyperv agent build on windows using mono. 2013-12-04 12:19:50 +05:30
Alena Prokharchyk b315ca1895 CLOUDSTACK-5261: support for alert publishing via Root admin web api
listAlerts: introduced new parameter "name" to the alertResponse

Added new Admin API - generateAlert. Available to ROOT admin only

listAlerts: implemented search by alert name
2013-12-03 17:08:23 -08:00
Devdeep Singh 2d90ee469a Fix for live migration of vm. Use the host name as the migration
destination. Also mapped the vm state corrected in check vm on host
answer.
2013-12-03 19:31:22 +05:30
Devdeep Singh 80a5dd75cd Changes for allowing migration of a vm on hyperv. Migration was blocked in cloudstack for hyperv.
Enabled it. Also updated the agent code to allow hyperv migration.
2013-12-03 17:27:24 +05:30
Anshul Gangwar a0bfc99261 adding missing license headers for cs files 2013-12-03 15:51:00 +05:30
Anshul Gangwar b1c8efb0ea code to install and uninstall agent as windows service 2013-12-03 12:01:23 +05:30