Commit Graph

23918 Commits

Author SHA1 Message Date
Rafael da Fonseca 9ab52eff1f Fixes breadcrumbs problem described in CLOUDSTACK-7907
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2015-05-22 09:50:01 +05:30
Rohit Yadav 66e3f30002 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

(cherry picked from commit 5921c493c8)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-18 23:20:18 +01:00
Rohit Yadav 7a4e167692 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>
(cherry picked from commit a0cff4ca48)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-13 14:12:42 +02:00
Daan Hoogland 7703872bcf 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 #243
2015-05-13 09:31:46 +02:00
Wido den Hollander 1e88346e54 CLOUDSTACK-1302: Make sure the disk cache mode is passed to the KVM Agent
The StartCommand did not contain the proper cache mode due to VolumeJoinVO
not containing the cache_mode field.
2015-05-04 10:22:54 +02:00
Rohit Yadav 387a52e6b4 Revert "appliance: build timeout fails on bzip-ing vmdk file, comment it"
This reverts commit 0d8085e9b9.
2015-05-01 16:45:17 +02:00
Rohit Yadav 0d8085e9b9 appliance: build timeout fails on bzip-ing vmdk file, comment it
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-01 12:19:07 +02:00
Rohit Yadav 24e03cf0d1 systemvmtemplate: use archived Debian 7.8.0 iso links
This fixes Jenkins build

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-29 18:09:48 +02:00
Remi Bergsma 1215d99730 return a state instead of null
When a full cluster is down or unreachable,
CloudStack currently reports everything the
same as the last known state, which is usually
Up. When it cannot reach a host and cannot
reach another host in the same cluster either,
it returns null and says "I don't know". This
prevents it from reporting the problem. Now,
we return an Alert or Disconnected state so
proper action can be taken.

Also logging was added, so we know what part
of the code put it to Alert or Disconnected.
2015-04-29 15:02:56 +02:00
Remi Bergsma bec3ceb789 fix typo in rsyslog logrotate script on VR
This is fixed already in master and 4.5 and did not occur in 4.3 and before.
This fixes it in 4.4 as well.

This closes #182

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-20 18:32:15 +02:00
Daan Hoogland 5f601e4c5b 4.4.3 to 4.4.4-snapshot upgrade 2015-04-19 18:10:03 +02:00
Milamber b82ebb74eb Fix some typo
Thanks Atalanttore from Transifex way
2015-04-19 15:21:00 +01:00
Daan Hoogland 28bcd6aeb7 Updating pom.xml version numbers for release 4.4.4-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2015-04-19 15:52:25 +02:00
Daan Hoogland a22c334be5 Merge branch '4.4-RC20150415T1700' into 4.4 2015-04-19 15:48:06 +02:00
Milamber bd4ef5f4e1 Update L10N resource files on 4.4 branch with 4.4 translation strings from Transifex 2015-04-19 10:01:08 +01:00
NuxRo 377cbd9f4e use eu.ceph.com as ceph.com is down
Same change as in 05e4ba7350

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>

This closes #175
2015-04-17 09:46:09 +05:30
Daan Hoogland e9441d4786 Updating pom.xml version numbers for release 4.4.3
Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
2015-04-15 17:00:24 -05:00
Remi Bergsma befa28251d CLOUDSTACK-6543 Sort domain lists in UI
As recently discussed on the dev list:
This sorts the domain lists based on their path.
Especially handy when having a lot of domains,
like in a public cloud.
2015-04-15 16:29:15 -05:00
Remi Bergsma 024a2924b7 kvm: improve CentOS 7 support
CentOS 7 does not ship with ifconfig anymore. We should use ip commands instead.
This also works on older versions, like CentOS 6 and Ubuntu 12.x/14.x, that we
support.

This closes #165

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-14 13:56:30 -05:00
Daan Hoogland 5f448c1eb5 Revert "marvin in top level pom to suit jenkins build for it"
This reverts commit 9dc45d4d04.
2015-04-13 09:24:02 -05:00
Daan Hoogland 9dc45d4d04 marvin in top level pom to suit jenkins build for it 2015-04-13 08:36:01 -05:00
Remi Bergsma 14a3d2b625 make sure sync cannot block reboot
The recent discussed improvement has the risk that if 'sync' hangs, the reboot may be delayed in the same way as the 'reboot' command would do. To work around, we're adding a 5 second timeout. If it cannot sync in 5 seconds, it will not succeed anyway and we should proceed the reset.

@snuf: Could we use your OVM3 heartbeat script for other hypervisors as well? One way to do it seems like a nice idea :-)
2015-04-10 15:10:52 -05:00
Remi Bergsma 97623bb0df write logfile just before rebooting the host
As discussed with @wido @pyr and @nuxro added an extra log line.

Tested it and it logs fine (tested to local disk) when syncing first:
Apr  3 15:31:23 mcctest2 heartbeat: kvmheartbeat.sh system because it was unable to write the heartbeat to the storage

By the way, it did also log to the agent.log but this extra log has the benefit of ending up in the system log so you'll probably find it easier there. Existing logs:
2015-04-03 15:27:23,943 WARN  [kvm.resource.KVMHAMonitor] (Thread-24:null) write heartbeat failed: timeout, retry: 0
2015-04-03 15:28:23,944 WARN  [kvm.resource.KVMHAMonitor] (Thread-24:null) write heartbeat failed: timeout, retry: 1
2015-04-03 15:29:23,946 WARN  [kvm.resource.KVMHAMonitor] (Thread-24:null) write heartbeat failed: timeout, retry: 2
2015-04-03 15:30:23,948 WARN  [kvm.resource.KVMHAMonitor] (Thread-24:null) write heartbeat failed: timeout, retry: 3
2015-04-03 15:31:23,950 WARN  [kvm.resource.KVMHAMonitor] (Thread-24:null) write heartbeat failed: timeout, retry: 4
2015-04-03 15:31:23,950 WARN  [kvm.resource.KVMHAMonitor] (Thread-24:null) write heartbeat failed: timeout; reboot the host

This closes #145

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-10 14:50:58 -05:00
Remi Bergsma 6137b2681c reboot much faster in case of storage failure
When storage cannot be reached, it does not make sense to reboot as it will try to flush buffers, umount NFS mounts, etc. This will not work and thus cause a long delay. With this change, the box will reboot immediately (like pressing the reset button).
2015-04-10 14:50:15 -05:00
Sebastien Goasguen a79fd8816e Add CONTRIBUTING instructions 2015-04-03 10:20:59 +02:00
Rohit Yadav 9a730d469c CLOUDSTACK-6353: Fix list to have correct LB IP for each rule
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 0fe4acf525)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-26 18:24:43 +05:30
Rohit Yadav 244c361b50 appliance: remove any stale raw.img file
This fixes a common build issue

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 17:25:11 +05:30
Rohit Yadav 33744ed658 appliance: build systemvm template for KVM compatible with older qemu
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 17:23:26 +05:30
Star Guo 611f2475c7 Fix centos63 rpm packaging
This closes #129

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 14:47:34 +05:30
Rohit Yadav af3b1f5298 centos63: fix another build regression from last merge on 4.4
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 12:47:24 +05:30
Rohit Yadav dfba731381 centos63: Fix build regression in for loop
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 12:25:15 +05:30
Rohit Yadav b4728b239c centos: fix rpm build regression from c5c5e2367e
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 12:04:18 +05:30
Daan Hoogland 4eae316c94 Merge branch 'feature/4.4/centos7' of https://github.com/DaanHoogland/cloudstack into 4.4 2015-03-24 10:33:57 +01:00
Daan Hoogland e7abb416d9 downgrade jasypt version 2015-03-23 21:55:51 +01:00
Daan Hoogland 54906b97d5 backported generic package script 2015-03-23 18:54:51 +01:00
Rohit Yadav dd55207c52 systemvm: fix/improve irqbalance on multicore VR
Porting changes from PR: https://github.com/apache/cloudstack/pull/119
to new codebase used for systemvmtemplate generation.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit a80522acf2)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-23 21:44:31 +05:30
Daan Hoogland b527aabfc3 4.4 for centos7 2015-03-23 14:22:08 +01:00
Daan Hoogland f9dce0bf23 missed code in merge of Avoid distributing private key for realhostip.com 2015-03-19 08:34:36 +01:00
Nitin Mehta c2dc53c2a1 Avoid distributing private key for realhostip.com
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/consoleproxy/AgentHookBase.java
	server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
	services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecureServerFactoryImpl.java
2015-03-18 20:35:18 +01:00
Rohit Yadav e8f7215b26 ui: if session cookie exists, use it to set global session holder and invalidate it
The 19e3c0168e commit breaks SAML login and any
login where redirection is used.

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

Conflicts:
	plugins/user-authenticators/saml2/src/org/apache/cloudstack/api/command/SAML2LoginAPIAuthenticatorCmd.java
2015-03-17 13:20:46 +01:00
Rohit Yadav d3122a1b8c api: avoid sending sensitive data in api response
- UI: use post when updating user
- S3: don't send s3 key in the response
- VPN: don't send preshared key in remoteaccessvpn api response
- Snapshot response should set zone id not volume's device id

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

Conflicts:
	server/src/com/cloud/api/ApiResponseHelper.java
2015-03-17 13:16:22 +01:00
Jessica Wang 0b68bf2ead CS-18149: UI - no longer store sessionKey in cookie. After
... this change, opening the 2nd browser window (of the same
domain) will show login screen (i.e. user has to enter
credentials again) and will cause the 1st browser window
session timeout.

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

Conflicts:
	ui/scripts/cloudStack.js
2015-03-17 12:58:21 +01:00
Rohit Yadav 8e58bc0879 ElastistorUtil: remove unused imports
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-16 16:06:26 +05:30
Bharat Kumar 75c17a31e7 CLOUDSTACK-7348 InvalidParameter Exception while executing scale vm.
We do not throw the exceptions any more, so added info in the logs to say
what happend to this command.

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
(cherry picked from commit 659edb4d9b)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-16 15:52:40 +05:30
Rohit Yadav b1f54db18f utils: use a better extended implementation of SSLSocketFactory
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit b4a5a32a74)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
2015-03-16 15:52:38 +05:30
Jayapal 0f10d3690b Avoid logging password when adding srx device
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 32fe64ce1b)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-16 15:51:28 +05:30
Harikrishna Patnala f68b407283 CS-17504: Weak SSL ciphers supported by the management server
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit f947fad197)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	packaging/centos63/cloud.spec
2015-03-16 15:50:26 +05:30
Min Chen 84c6cc361b CS-19734:Session cookie is exposed to scripts.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 0b5b9c91e4)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-16 15:49:33 +05:30
Prachi Damle 6da3d1bd6b CS-20680: The user's secret key is not encrypted in the UserCredentialsVO class
Changes:
-Added annotation to encrypt the secret key while persisting to the DB

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit c5754e693f)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-16 15:49:27 +05:30
Min Chen c698af221b Error message exposes domain Id when deployVirtualMachine() is attempted on a shared network to which the user doesnot have access to.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 0d36f2e4b5)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-16 15:49:21 +05:30