Commit Graph

25459 Commits

Author SHA1 Message Date
Daan Hoogland fb50283fbe CID 1302974: Scanner in try-with-resource
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #353

(cherry picked from commit 109b6e94d3)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-06-04 00:10:05 +02:00
Rohit Yadav d55d45348c CLOUDSTACK-8530: KVM hosts without active agents should be in Disconnected state
KVM hosts which are actuall up, but if their agents are shutdown should be put
in disconnected state. This would avoid getting the VMs HA'd and other commands
such as deploying a VM will exclude that host and save us from errors.

The improvement is that, we first try to contact the KVM host itself. If it fails
we assume that it's disconnected, and then ask its KVM neighbours if they can
check its status. If all of the KVM neighbours tell us that it's Down and we're
unable to reach the KVM host, then the host is possibly down. In case any of the
KVM neighbours tell us that it's Up but we're unable to reach the KVM host then
we can be sure that the agent is offline but the host is running.

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

This closes #340
2015-06-02 14:53:55 +02:00
Rohit Yadav 19cc5eb9e6 schema: Encode URL safe random vnc password string
/+= may break on some environments, url safe encoded passwords will have -_,
characters which are more acceptable

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-06-01 14:10:54 +02:00
Vadim Kimlaychuk f8e1ff12ab CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules
This closes #302

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 94f1ebb60a)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-29 21:19:26 +02:00
René Moser 00fffbe081 template, api: fix format desc, add OVA format
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #331

(cherry picked from commit 666263e84d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-29 21:02:30 +02:00
Rohit Yadav fb88a11f82 framework: don't use raw SQL statements to save certificate in KeystoreDaoImpl
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-29 18:32:40 +02:00
Rohit Yadav 7ae9f87d59 utils: add findCookie value by key helping method in HttpUtils
finds cookie value from an array of cookie by key name

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 78ea36d099371b9a59cbf1e3efd48b853ecc37ca)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-29 15:41:59 +02:00
David Bierce 0c8c089177 Always enter chap-secrets as a quoted field. In the event of special characters it creates and deletes the entry properly, in the event there are not special characters there is no change behavior.
Signed-off-by: Remi Bergsma <apache@remi.nl>

This closes #307
2015-05-28 15:06:56 +02:00
Rohit Yadav 8625744142 CLOUDSTACK-8247: Pull average Cpu util report between polling
Pull average Cpu util report between polling intervals instead of since boot
instead of using values since uptime

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

This closes #289
2015-05-25 14:48:16 +02:00
Rohit Yadav d2b0c1a32b CLOUDSTACK-8339: Allow non-root users to add KVM host
This allows non-root users to add KVM hosts, the user should be an admin or
added to sudoers to execute sudo cloudstack-setup-agent.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Remi Bergsma <apache@remi.nl>

This closes #288
2015-05-25 14:11:14 +02:00
Rohit Yadav aafa0c80b3 kvm: for disabling pxe, pass empty file
Passing the file argument to the xml break for EL 7.1, the fix removes
the argument as just passing rombar='off' with its file arg to be empty string.

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

This closes #290
2015-05-25 00:31:06 +02:00
Milamber 8eafdbd224 CLOUDSTACK-6181 Specify GB for the value of rootdisksize parameter. Add some Bytes/GB for log or exception messages. Fix Gb->GB. 2015-05-23 18:53:18 +01:00
Rohit Yadav 803b946c2f CLOUDSTACK-8243: KVM agent should not use hardcoded string tails
For KVM agent, guid is configurable in agent.properties, this fix allows the
configuration to work by removing string tail (the -LibvirtComputingResource suffix).

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

This closes #286
2015-05-22 18:11:52 +01:00
Rohit Yadav 90ac1aba13 kvm: Strip trailing comma for qemu-img convert options
Fix trailing comma for qemu-img convert options, Qemu 2.0+ not tolerant to it

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-22 13:32:56 +01:00
Rohit Yadav aee35c96a8 CLOUDSTACK-8252: Ignore VLAN 4095 which is n/a on linux
VLAN id 4095 is commonly used as a 'tag passthrough' in virtualization environments
(VMware, specifically). This vlan id is incompatible with Linux, but we can
allow the admin to manually configure the bridge if the same passthrough is
desired.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-22 13:22:40 +01:00
Rohit Yadav 0120e906e5 kvm: fix test for non-osx platforms
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-22 12:10:53 +01:00
Rohit Yadav 9e9b231672 CLOUDSTACK-8505: Don't allow non-POST requests for default login API
We add a new contract to pass Http request to authentication plugin system. In
the default login API, we disallow non-POST requests.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-22 10:11:15 +01:00
Rohit Yadav 212a05a345 CLOUDSTACK-8338: Fix hypervisor stats reporting for KVM on EL7
EL7 has a different output to 'free', use /proc/meminfo instead of a tool to be
more consistent across distros

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-22 09:25:03 +01:00
Milamber 1d8382ab49 Update L10N resource files on 4.5 branch with 4.5 translation strings from Transifex (20150522) 2015-05-22 07:48:55 +01:00
Rafael da Fonseca ddd0328c8c Fixes breadcrumbs problem described in CLOUDSTACK-7907
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>

This closes #282
2015-05-22 10:36:09 +05:30
Abhinandan Prateek c21aa89a47 CLOUDSTACK-8491: Host maintenance fails if a vm on it is running a custom service offering VM 2015-05-21 10:40:59 +05:30
Abhinandan Prateek 258d9b19dd CLOUDSTACK-8250: host cpu memory used reported incorrectly in host stat 2015-05-21 09:24:03 +05:30
Vadim Kimlaychuk 79ddd74340 CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #271

(cherry picked from commit bede3a87ad)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-20 21:30:02 +01:00
Abhinandan Prateek 96297eeb10 CLOUDSTACK-8467: set version to unknown instead of null 2015-05-20 21:00:50 +05:30
Abhinandan Prateek 4215e91824 adding simple logging for java version dependency 2015-05-20 21:00:31 +05:30
Abhinandan Prateek 4eb0586d82 adding mysql dependency for usage 2015-05-20 20:59:37 +05:30
Rohit Yadav 9c995f1cab rat: add license header to error.jsp
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 23:21:52 +01:00
Rohit Yadav 5921c493c8 systemvmtemplate: Disable services that slow down boot
The console-setup service brings a nice font to the console, but why would we
want to use it. In most cases it takes a <10 seconds to set it up. When using
nested hypervising, I found this takes much longer time that causes tests to
time-out. I'd suggest turning off these services. They are not required for the
services the systemvm provides.

Manually picked from commit 95e7673
PR #254

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 23:17:09 +01:00
Rohit Yadav 112cecc2d4 ui: add custom error handling page
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #256
2015-05-18 23:11:11 +01:00
Rohit Yadav bc636de122 engine: add upgrade path from 4.5.1 to 4.5.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 22:09:36 +01:00
Rohit Yadav 8daa665fca systemvm64template: install libc6:i386
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 19:57:01 +02:00
Rene Moser fd97705f83 listPortForwardingRules: fix typo in doc
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #248

(cherry picked from commit e8f8e0e3f2)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-13 15:44:13 +02:00
Rene Moser b90e8f96b4 debian: allow tomcat7 as optional dependency
This closes #247

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

Conflicts:
	debian/control
2015-05-13 15:42:46 +02:00
Rohit Yadav a0cff4ca48 schema: fix foreign key checks for 3.0.7 to 4.1.0 upgrade path
Without this upgrades from 3.0.7 version fails.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-13 14:11:11 +02:00
Daan Hoogland 06de2d6292 backport of CLOUDSTACK-8197 create MinVRVersion config item
Conflicts:
  api/src/com/cloud/network/VirtualNetworkApplianceService.java
  engine/orchestration/src/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

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

This closes #244
2015-05-13 09:33:16 +02:00
Rohit Yadav 9e3c7d309a systemvmtemplate: update version and fix chmod issue
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-12 16:47:59 +02:00
Rohit Yadav 034b986595 systemvmtemplate: use ovftool for building vmware template if available
This commit fixes a chmod issue where extracted vmdk file is not readable by all
users/groups. The other improvement is to use ovftool to build systemvm template
for vmware if it's available. This is based on a dev ML discussion and a suggested
approach by Ilya: http://markmail.org/message/kntsetgxdbppfh22

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-12 16:34:01 +02:00
Erik Weber 877c07e126 CLOUDSTACK-1667: Make a better description of the extractable flag
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #245

(cherry picked from commit ab1df169f2)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-12 12:52:27 +02:00
Abhinandan Prateek 94b5e27a23 Adding upgrade path to go with current 4.5.2 version for this branch 2015-05-11 09:57:37 +05:30
Milamber 815f4d087a Update L10N resource files on 4.5 branch (with 4.5 translation strings from Transifex) Add new HU resource file for Hungarian translation 2015-05-09 07:58:11 +02:00
Laszlo Hornyak ed7704620e Added hu to the language list
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #237
2015-05-08 17:26:36 +02:00
Laszlo Hornyak 4ec24ad468 CSS for the hungarian localization
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 17:26:36 +02:00
Laszlo Hornyak 7d8151e5c4 added hungarian to the list of localized languages
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 17:26:36 +02:00
Rohit Yadav 8b18ab3ff2 Fix version to 4.5.2-SNAPSHOT throughout the source
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 11:35:59 +02:00
Rohit Yadav 0963432268 apidoc: get version information from $project.version
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 11:35:34 +02:00
Rohit Yadav d0d08e68e9 tools: fix build
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-08 11:11:10 +02:00
Rohit Yadav 4ba72a877c Updating pom.xml version numbers for release 4.5.2-SNAPSHOT
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-07 15:33:01 +02:00
Rohit Yadav 11b7b0a3c3 Merge branch 'GA-4.5.1' into 4.5 2015-05-07 15:27:45 +02:00
Abhinandan Prateek e1a212842a CLOUDSTACK-8429: optimizing travis to run configurable set of tests only after configurable runs 2015-05-06 08:49:16 +05:30
Rohit Yadav 54f3e7733f debian: allow openjdk1.8 as optional dependency
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-06 02:09:41 +02:00