Commit Graph

1572 Commits

Author SHA1 Message Date
Wido den Hollander aa9f29bd3f CLOUDSTACK-4665: Check if a snapshot is protected before trying to unprotect
Otherwise a RBDException will be thrown with the message that the snapshot
isn't protected.
	modified:   plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Conflicts:

	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
2014-04-10 15:58:19 +02:00
Anshul Gangwar 53724bcbf5 CLOUDSTACK-6326: Fixed password visible in plain text in some of commands
in Hyper-v Agent logs.

Signed-off-by: Devdeep Singh <devdeep@gmail.com>
2014-04-08 12:31:43 +05:30
Anshul Gangwar d042a81837 CLOUDSTACK-6325: [hyper-v] fixed cleaning of bin and obj directories when building with mono, they were not cleaning up and resulting in use of stale dlls in some cases 2014-04-08 12:01:56 +05:30
Devdeep Singh d417ce0d70 CLOUDSTACK-5743. The link generated for downlading a volume or a template was giving a
permission error on hyper-v. Fixed the path with which a softlink is created for a
downloaded volume or template. Also addressed the issue at other places where the path
field wasn't set correctly when a volume was migrated or a template was created from
a volume.
2014-03-18 11:49:14 +05:30
John Kinsella 2fe7aeea23 CLOUDSTACK-6204: Removing realhostip.com dependency
For more info, see https://cwiki.apache.org/confluence/display/CLOUDSTACK/Realhost+IP+changes

Author: Amogh Vasekar <amogh.vasekar@citrix.com>
Signed-off-by: John Kinsella <jlk@stratosec.co> 1394399081 -0700
2014-03-09 14:04:41 -07:00
Rajani Karuturi badff18021 added delete iso api to the simulator in the smoke tests, this will fix test_03_delete_iso when run against a simulator
Signed-off-by: Koushik Das <koushik@apache.org>
2014-03-07 01:08:01 +07:00
Rajani Karuturi dadc29920c added mock handlers for VpnUsersCfgCommand and RemoteAccessVpnCfgCommand in the simulator
Signed-off-by: Koushik Das <koushik@apache.org>
2014-03-07 01:08:00 +07:00
Alena Prokharchyk eb61f8146d CLOUDSTACK-5872: use List DS for storing NicProfiles as public network can have more than one nic 2014-03-07 01:07:59 +07:00
Jayapal 7700a1b716 CLOUDSTACK-6183: unplug the nic when all the ips of public vlan range is removed 2014-02-28 16:54:06 +05:30
frank 793a6a7177 CS-19377
[Baremetal] After deploy VM on Baremetal host, BM host fail to be PXE booted
2014-02-27 15:18:01 -08:00
Min Chen 94257c0fc8 CLOUDSTACK-6175:s3.singleupload.max.size option not applicable for
backup snapshot on KVM.
2014-02-26 14:57:32 -08:00
Min Chen 4c83f80c80 CLOUDSTACK-6174: Provide separate option for Windows Server 2012 R2 as
an OS type when registering template.
2014-02-26 11:24:01 -08:00
Likitha Shetty 8cb03ddb23 CLOUDSTACK-6146. [VMware] [ESXi 5.5] Live VM migration of an already migrated VM (with storage) across clusters fails
In vCenter 5.5, once a volume is migrated the VMDKs are renamed to match the name of the VM.
Update volume path for every volume belonging to the VM to the corresponding new disk filename.
2014-02-26 11:58:49 +05:30
Likitha Shetty c652ff45df CLOUDSTACK-6146. [VMware] [ESXi 5.5] Live storage migration of an already migrated volume fails
In vCenter 5.5, once a volume is migrated the VMDKs are renamed to match the name of the VM.
If a volume has been renamed upon migration update its volumePath to that of the new disk filename.
2014-02-26 11:58:20 +05:30
Rajesh Battala b44901c059 CLOUDSTACK-6159 Fixed creating volumes(Root, DataDisk) with uuid in primary store 2014-02-23 09:25:55 +05:30
Frank.Zhang 3787579d29 BUG-ID: CS-19152
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, destroy baremetal instance fail

BUG-ID: CS-19150
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, unable to start baremetal instance

BUG-ID: CS-19149
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, baremetal host remain in Disconnected state. But instance associated with baremetal host is running.

BUG-ID: CS-19151
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, unable to reboot baremetal instance

BUG-ID: CS-19156
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, unable to stop baremetal instance

reviewed-by: edison
2014-02-20 14:23:41 -08:00
Rajesh Battala ccc168c704 Revert "CLOUDSTACK-6054: Changes for making vmsync work for hyper-v. Made changes to PingCommand and"
This reverts commit eef65ac776.
This commit should not be in 4.3-forward and its already present in master
2014-02-14 18:23:13 +05:30
Marcus Sorensen 76e019f717 CLOUDSTACK-6103: Pass VM iso information along with
PrepareForMigrationCommand, so that destination hypervisor can
mount pool. This further exposed an issue for KVM where iso
was not getting cleaned up upon successful migration, fixed as well.
2014-02-14 00:43:58 -07:00
Anshul Gangwar eef65ac776 CLOUDSTACK-6054: Changes for making vmsync work for hyper-v. Made changes to PingCommand and
StartupCommand to return the state of all vms on the host.
2014-02-11 11:54:50 +05:30
Harikrishna Patnala 95e41fdf0d CLOUDSTACK-6023: Non windows instances are created on XenServer with a vcpu-max above supported xenserver limits
Changed the VCPU max limit to 16 and provided a cluster level configuration parameter for this max limit named xen.vm.vcpu.max
2014-02-07 12:50:55 -08:00
Devdeep Singh 96d8e3c945 CLOUDSTACK-6030: Encrypt the primary and secondary smb storage password when it is stored in the db. 2014-02-06 11:17:51 +05:30
Rajesh Battala 7df148c762 Fixed agent code to handle untagged public vlan while parsing the vlan id 2014-02-06 00:10:59 +05:30
Murali Reddy 2e004878b1 CLOUDSTACK-5967: GRE tunnel creation is failing
after network orchestrator refactor, only network elements providingg
services as defined by network offering, are invloved network design and
imlement phase. So OVS network element need to be enables as
'Connectivity' service provider to make GRE tunnels work. This fix
introduced 'Ovs' provider as Connectivity service provider.
2014-02-05 17:15:34 +05:30
Hiroaki KAWAI 09e27fd7bf stratosphere-ssp plugin: Fix HttpClient4 connection leak
Replaced HttpClient#execute(HttpUriRequest) with
HttpClient#execute(HttpUriRequest,ResponseHandler<T>).
The former requires extra EntityUtils#consume(HttpEntity).
2014-02-05 16:37:10 +09:00
Min Chen d7ec9ca815 CLOUDSTACK-6027:CreateVolume from snapshot is failing with S3 on Vmware. 2014-02-04 15:06:14 -08:00
Min Chen a3caea7e0a CLOUDSTACK-6025:CreateTemplate from snapshot in NFS is failing , after
migarting to S3 datastore.
2014-02-04 10:46:30 -08:00
Min Chen b11c13d4a1 CLOUDSTACK-6019:CreateVolume from snapshot in NFS is throwing Warning
"sync snapshot from cache to region wide store failed for image store
test".
2014-02-03 16:27:31 -08:00
Daan Hoogland 2513d6b91e findbugs replaced byte[].toString() with new String(byte[]) 2014-02-03 10:48:10 +01:00
Daan Hoogland 8e96111c55 Revert "findbugs replaced byte[].toString() with Arrays.toString(byte[])(cherry picked from commit ce7c6d2357)"
This reverts commit 55ec8f3a2d.
2014-02-03 10:47:19 +01:00
Likitha Shetty ba5b302ae6 CLOUDSTACK-6002. [vCenter 5.5] restoreVM fails with ROOT-x-000001.vmdk not found. 2014-01-31 13:22:37 +05:30
Daan Hoogland ce7c6d2357 findbugs replaced byte[].toString() with Arrays.toString(byte[]) 2014-01-30 15:25:19 +01:00
Daan Hoogland 5651081ac0 Revert "Fix findbug issues within LDAP authenticator"
This reverts commit 92b4f66d73.
2014-01-30 14:55:02 +01:00
Likitha Shetty 16c3f53793 CLOUDSTACK-5994. Hitting IndexOutOfBoundsException in GetVmStatsCommand after upgrade.
To obtain network read/write statistics, multiply sample duration with the
average of the particular performance metric obtained over the sample period.
2014-01-30 18:20:44 +05:30
Hiroaki KAWAI db3dc2ee17 Some rework stratosphere ssp plugin
* add missing command entry in commands.properties
* migrate httpclient 3.x to 4.x
* fix the broken SspClient
* add webapp session checking in mock ssp server
2014-01-30 20:28:31 +09:00
Daan Hoogland d38a503431 check for BroadcastDomainTypes on sourceNatIp(cherry picked from commit
6d0dbf5968)

Conflicts:
	plugins/network-elements/nicira-nvp/src/com/cloud/network/element/NiciraNvpElement.java
2014-01-29 18:20:16 +01:00
Daan Hoogland b1ec82cdec Revert "CLOUDSTACK-5979 vlan parsing fixed"
This reverts commit caf17c2f46.
2014-01-29 17:55:01 +01:00
Daan Hoogland caf17c2f46 CLOUDSTACK-5979 vlan parsing fixed 2014-01-29 17:30:19 +01:00
Marcus Sorensen e624632dfd CLOUDSTACK-5968 create vm.memballoon.disable agent parameter 2014-01-28 15:32:37 -07:00
Jayapal 782265e713 CLOUDSTACK-5966 Added enable/disable monitoring service in global config 2014-01-28 20:08:54 +05:30
Likitha Shetty e8ba2d0850 CLOUDSTACK-5796. [VMware] Size column is not getting updated in snapshot_store_ref table when a snapshot is backed up in secondary storage.
Calculate and update the size of a backed up snapshot. This snapshot size is in turn used to update the secondary_storage count for an account.
2014-01-28 09:17:01 +05:30
Ian Duffy 92b4f66d73 Fix findbug issues within LDAP authenticator 2014-01-26 00:34:25 +00:00
Hugo Trippaers 60ac12780b Backport fixed for issues found by Findbugs 2014-01-25 10:52:09 +01:00
Hugo Trippaers f18c5a1910 Findbugs finding : Incorrect use of equality
(cherry picked from commit 10cc5645e8b9713bc7c86d543413d396ce203cc6)
2014-01-25 10:52:09 +01:00
Devdeep Singh 6d997bd689 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.
2014-01-24 15:01:23 +05:30
Santhosh Edukulla d31fa09c7e Added Fix for CLOUDSTACK-5875
Added fix for exception and listing. Mentioned details under bug.
Post the fix, simulator works fine.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: Koushik Das <koushik@apache.org>
2014-01-23 16:53:15 +05:30
Devdeep Singh 8ef47e8ff3 CLOUDSTACK-5936: Hyper-V agent should log to the windows event log. Changed the default
log appender for the agent.
2014-01-23 15:20:21 +05:30
Alena Prokharchyk f160b31f51 CLOUDSTACK-5930: Changed "authenticate" method to return both - result of authentication, and action to perform when authentication failed - to the accountManagerImpl. Only if authenicators request INCREMENT_INCORRECT_LOGIN_ATTEMPT_COUNT, the incorrect_login_attempts parameter will be increased
Signed-off-by: Alena Prokharchyk <alena.prokharchyk@citrix.com>

Conflicts:
	plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapAuthenticator.java
	plugins/user-authenticators/md5/src/com/cloud/server/auth/MD5UserAuthenticator.java
	plugins/user-authenticators/plain-text/src/com/cloud/server/auth/PlainTextUserAuthenticator.java
	plugins/user-authenticators/sha256salted/src/com/cloud/server/auth/SHA256SaltedUserAuthenticator.java
	server/src/com/cloud/server/auth/UserAuthenticator.java
	server/src/com/cloud/user/AccountManagerImpl.java
2014-01-22 12:53:27 -08:00
Kelven Yang 50f311ed94 CLOUDSTACK-5928: disable host delta sync when new VM sync is enabled 2014-01-22 11:17:25 -08:00
Likitha Shetty 94ea2736f4 CLOUDSTACK-5927. Storage garbage collector is trying to destroy the SSVM/CPVM root disk that is in use.
In case of VMware VM during root volume preparation if we are switching to a new volume, force expunge root disk that was created from the old template.
Because otherwise storage garbage collector will later try to expunge the old disk marked for expunge and fail with 'Cannot delete file' exception
since in VMware the new root vmdk has the same name and is now in use.
2014-01-22 17:32:13 +05:30
Alena Prokharchyk d5e0dcd2a7 Revert "Changed "authenticate" method to return both - result of authentication, and action to perform when authentication failed - to the accountManagerImpl. Only if authenicators request INCREMENT_INCORRECT_LOGIN_ATTEMPT_COUNT, the incorrect_login_attempts parameter will be increased"
This reverts commit 7884bb8aaf.
2014-01-21 19:50:46 -08:00