Commit Graph

22597 Commits

Author SHA1 Message Date
Rohit Yadav 30ec59817d CLOUDSTACK-7085, CLOUDSTACK-7084: disallow empty passwords
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit e5cd75790a)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	api/src/org/apache/cloudstack/api/command/admin/account/CreateAccountCmd.java
	api/src/org/apache/cloudstack/api/command/admin/user/CreateUserCmd.java
2015-02-16 15:33:45 +05:30
Jayapal aa3b615037 CLOUDSTACK-5494: Fixed dns is open to public in VR
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 81994cf443)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-02-06 15:32:46 +05:30
Rohit Yadav 66027f43bb improve protocol enabling based on socket object type
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit d62d511f47)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/network-elements/opendaylight/src/main/java/org/apache/cloudstack/network/opendaylight/api/NeutronRestApi.java
	utils/src/com/cloud/utils/rest/RESTServiceConnector.java
2015-02-05 15:49:53 +05:30
Anthony Xu 6a07aed6db fixed NPE
(cherry picked from commit 98b416b7f0)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-02-05 12:15:28 +05:30
yichi.lu 12aef675ce Remove the comparison between GuestOSCategoryVO.CATEGORY_NONE and guestOSCategory.getName() to make OS category of None to be a valid option.
Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
(cherry picked from commit f194adb2de)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/resource/ResourceManagerImpl.java
2015-02-04 14:55:13 +05:30
Rohit Yadav ce5631553e CLOUDSTACK-8198: Use random local storage UUID
Earlier host addition of multiple hosts with local storage failed due to
same local storage UUID being used where the storage path is same.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit bf17f640c6)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
2015-02-03 22:38:39 +05:30
Rohit Yadav a10a9d522c appliance: hold on to openswan version, don't upgrade
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-28 23:21:47 +05:30
Rohit Yadav efad7b0051 appliance: upgrade systemvm to latest packages
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-28 23:18:56 +05:30
Rohit Yadav 3e61df4918 appliance: fix versions and let it have jre 1.7
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-28 18:19:45 +05:30
Rohit Yadav 5822132bc1 appliance: fix systemvm build
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-28 18:14:46 +05:30
Rohit Yadav 61563d71ed appliance: use latest debian 7.8
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-28 18:08:24 +05:30
Rohit Yadav f5f6c2d1a7 use a preferable protocol that works on jvm 1.6
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-28 13:41:00 +05:30
Rohit Yadav 1ef12f4145 awsapi: fix duplicate variable
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-27 12:00:56 +05:30
Marcus Sorensen bf397bfc88 LibvirtComputingResource: Expose KVMStoragePoolManager
KVMStoragePoolManager is a singleton in practice, any plugin
or extension of LibvirtComputingResource will need to act on
the specific instance of KVMStoragePoolManager that LibvirtComputingResource
has initialized. Therefore, expose this variable for those who
wish to call storage commands from plugins or extensions.
2015-01-23 00:09:55 -08:00
Rohit Yadav 43f3d6ae19 services, awsapi: use better string comparision
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit d08369ad06)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	awsapi/src/com/cloud/bridge/util/EC2RestAuth.java
	awsapi/src/com/cloud/bridge/util/RestAuth.java
2015-01-22 18:14:11 +05:30
Rohit Yadav 53c0ab856a CLOUDSTACK-8160: use preferable protocols
(cherry picked from commit debfcdef78)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	client/tomcatconf/server7-nonssl.xml.in
	client/tomcatconf/server7-ssl.xml.in
	engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
	plugins/event-bus/rabbitmq/src/org/apache/cloudstack/mom/rabbitmq/RabbitMQEventBus.java
	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java
	plugins/network-elements/opendaylight/src/main/java/org/apache/cloudstack/network/opendaylight/api/NeutronRestApi.java
	plugins/network-elements/palo-alto/src/com/cloud/network/utils/HttpClientWrapper.java
	plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
	plugins/storage/volume/nexenta/src/org/apache/cloudstack/storage/datastore/util/NexentaNmsClient.java
	plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datastore/util/SolidFireUtil.java
	pom.xml
	services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecureServerFactoryImpl.java
	services/console-proxy/server/src/com/cloud/consoleproxy/util/RawHTTP.java
	systemvm/scripts/config_ssl.sh
	utils/src/com/cloud/utils/nio/NioClient.java
	utils/src/com/cloud/utils/rest/RESTServiceConnector.java
	utils/src/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocketFactory.java
	vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
2015-01-21 18:24:54 +05:30
Rohit Yadav bd5fe46e53 CID 1264632: Rely on a known and widely available encoding UTF8
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 0763b5576d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-20 07:50:12 +05:30
Abhinandan Prateek 969bbb02a9 CLOUDSTACK-8164: Look for all host to avoid NPE
(cherry picked from commit d8def3dc0b)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	engine/storage/src/org/apache/cloudstack/storage/helper/VMSnapshotHelperImpl.java
2015-01-19 11:32:06 +05:30
Rohit Yadav 2c7cacd9df CLOUDSTACK-8167: publish volume uuid on event bus in create snapshot cmd
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit f6564b0b03)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	api/src/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotCmd.java
2015-01-18 17:43:02 +05:30
Rohit Yadav dc97372d6f engine/storage: add NPE check, break if parent snapshot is null
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit c06ca09b54)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-18 17:21:07 +05:30
Rohit Yadav fc5d8e95bf CLOUDSTACK-8166: add boundary checks in various usage parsers
- Add boundary condition to continue looping if creation data is after end date
- Add null pointer fix for create snapshot bug

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 065c556cf5)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-18 17:15:14 +05:30
Pierre-Yves Ritschard 87d444b05a move ConstantTimeComparator to utils
(cherry picked from commit b2393c31ed)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/api/ApiServer.java
2015-01-14 20:47:27 +05:30
Pierre-Yves Ritschard bee99e5992 Use constant-time comparison functions when checking signatures
This limits the likeliness of timing attacks against the API.
See http://codahale.com/a-lesson-in-timing-attacks/ for the
full rationale.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/user/AccountManagerImpl.java

(cherry picked from commit 9b4e39e837)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/user/AccountManagerImpl.java
2015-01-14 20:46:18 +05:30
Erik Weber 0f7ec982bf Add absolute schema references to support MySQL 5.6 better
(cherry picked from commit 396936ea5e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-14 20:33:29 +05:30
Edison Su ebf9897293 CLOUDSTACK-7301, CLOUDSTACK-7947: double check if parent snapshot is removed or not
when creating new snapshot, check if parent snapshot is removed or not

Reviewed-by: Min
(cherry picked from commit bd79965329)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java
2014-12-18 18:26:24 +05:30
Rohit Yadav a15acb8e74 api: Add licenses to getvmuserdata api and response
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-15 13:22:56 +05:30
Rohit Yadav 5b56c7fcb5 scripts: Fix UI issue when deploying instance through host view
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-12 23:41:33 +05:30
Rohit Yadav afe1323a54 CHANGES: update changes file
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-12 20:36:51 +05:30
Rohit Yadav 5519095a29 CLOUDSTACK-8070: during 4.3.1 to 4.3.2 upgrade encrypt config that are hidden
In case there is an encryption key/password is provided the value, specifically
for router.ram.size will be encrypted otherwise it will remain plain text.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-12 20:33:16 +05:30
Rohit Yadav 485c76a2f8 debian: add version entry for 4.3.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-12 05:30:52 +05:30
Rohit Yadav f47e32ec5f
cloudstack: change version to 4.3.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-11 19:08:36 +05:30
Rohit Yadav 436d6f6db4 CHANGES: update latest fixed list of issues on 4.3
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-10 19:38:28 +05:30
Rohit Yadav f189c105d8 CLOUDSTACK-8014: Fix NPE searching including removed templates
Steps to reproduce if you have this issue:
- Create a VM's volume snapshot
- Remove VM's template and mark the template as removed with timestamp in DB
- Restart mgmt server and create a volume out of snapshot you should get NPE

Fix: In `storagePoolHasEnoughSpace`, we're only searching for a VM's volume's
snapshot's template by Id and not including removed templates. This is a corner
case and NPE hits when template has been marked removed for a VM's volume's
template so we should search including removed templates.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-10 19:13:30 +05:30
Rohit Yadav 63298d9b74 CLOUDSTACK-7974: remove old hostname entry for a VM when adding a VM
When adding a VM, it adds an entry to /etc/hosts file on the VR but does not
clear up any older entries for the VM with a same name. The fix uncomments the
command that removes any old entries in the VM.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-10 18:21:34 +05:30
Rohit Yadav 32adae40e2 CLOUDSTACK-7572: Fix regression from 156bd9b
In case the configured consoleproxy url domain does not start with *
use the work mode 3 as recommended in the doc:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Realhost+IP+changes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-09 17:57:12 +05:30
Rohit Yadav 40743e9339 CHANGES: update list of fixed issues for 4.3.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-09 17:27:29 +05:30
Rohit Yadav c8ffea1fb6 Revert "CLOUDSTACK-7915: Remove hard-coded values for Load Balancer algorithms in UI"
LB edit method breaks, reverting commit.

This reverts commit 1f21c29855.
2014-12-09 16:08:18 +05:30
Rohit Yadav 2f7f2793a5 Revert "CLOUDSTACK-7766: Field Validations Missing for Ingress and Egress Rules"
This breaks validations such as ingress/egress rules on Security Group on the
UI so reverting this.

This reverts commit ca8ecc0470.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-09 15:19:53 +05:30
Wei Zhou 1e09494a4e CLOUDSTACK-2823: pass cmdline info to system vms for 30 times
(cherry picked from commit 4eedfe53fc)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
	systemvm/patches/debian/config/etc/init.d/cloud-early-config
2014-12-08 22:06:16 +05:30
Rohit Yadav 314e2dacee developer: increase disable thresholds global settings for developers
- Increases the disable thresholds for developers
- Removes the use local storage for systemvms

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-08 21:55:39 +05:30
Sudhansu 7d17e95991 CLOUDSTACK-7986 [F5 LB] Failed to execute IPAssocCommand due to com.cloud.utils.exception.ExecutionException: Exception caught in Networking::urn:iControl:Networking/VLAN::create()
added 3 new method to strip partition information from VirtualServer, LBPool, VLAN api response.

With BigIP V11.x VirtualServer, LBPool, VLAN api response has been modified.
Now BigIP returns resource  name with user partition information
ex: if vlanname is vlan-100 then the get_list() will return /Common/vlan-100 (/Common -> Suer portition)
This method will strip the partition information and only returns a list with vlan name (vlan-100)

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2014-12-08 16:41:19 +05:30
Rohit Yadav 14287f7d36 CHANGES: update changes file
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-05 17:35:39 +05:30
Rohit Yadav 16f50c2862 Revert "CLOUDSTACK-7959: fixed 'qemu-img convert' compat issue"
This reverts commit f412e07d71.

Until we decide, we should keep the same 4.3 systemvm build scripts to avoid
changes in the qemu image conversion logic.
2014-12-05 17:33:54 +05:30
Rohit Yadav 48377a3f12 Fix build regression from 08e5993a45
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-05 17:33:31 +05:30
Rohit Yadav f412e07d71 CLOUDSTACK-7959: fixed 'qemu-img convert' compat issue
Backported using fix 03daae571b by
Will Stevens <wstevens@cloudops.com>

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-04 19:28:43 +05:30
Saksham Srivastava 82efb047c8 CLOUDSTACK-7950: AttachIsoCmd shoud give correct messge when trying to attach vmwaretools installer iso on non supported guestvm deployed by ISO
(cherry picked from commit 4ff3130bec)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-04 19:23:11 +05:30
Anshul Gangwar 08e5993a45 CLOUDSTACK-7688, CLOUDSTACK-7747: restricted various operations for VM with VM snapshots which breaks VM snapshots.
Now they are informed that they cannot perform the operation.
 To perform operation they have to remove VM snapshots of VM.

(cherry picked from commit f43ffb9a0f)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/storage/VolumeApiServiceImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
2014-12-04 19:18:55 +05:30
Rohit Yadav 6fa3d82554 CHANGES: update list of issues fixed for 4.3.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-04 03:07:28 +05:30
Anthony Xu 305d8aede6 CLOUDSTACK-5923: CS doesn't do master switch for XS any more, CS will depend on XS HA to do master switch, XS HA needs to be enabled.
(cherry picked from commit b79f949e1b)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java
2014-12-04 02:46:19 +05:30
Rohit Yadav 6cd31d3a9f CHANGES: update list of changes since 4.3.1
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-02 18:38:31 +05:30