Commit Graph

23948 Commits

Author SHA1 Message Date
Wilder Rodrigues b0a4593152 Merge pull request #761 from remibergsma/fix-hyperv-returns
Have HyperV behave in 4.4 and return null instead of falseCommit 6a4927f660 made the HyperV investigator return false instead of null.

Returning false means the VM is NOT running, returning null means "I don't know". In 4.4 I experienced corruption because of HyperV returning false, instead of null.

Tonight I experienced corruption when one of our management servers went down (out-of-memory, not root caused yet). While all hypervisors that were connected to this management server were connecting the other, HA work started as well with investigators. HyperV happily reported everything as down (while it was still running), causing a mess.

In 4.5 and master this was already fixed. If you know a better way to fix this, please let me know!
This may cause another FindBugs alert, not sure how to resolve that. I just want this out ASAP. Maybe @DaanHoogland @wilderrodrigues or @miguelaferreira can advise on how to fix this properly.

* pr/761:
  Have HyperV behave in 4.4 and return null instead of false

Signed-off-by: Wilder Rodrigues <wilder.rodrigues@ekholabs.nl>
2015-09-01 11:25:20 +00:00
Remi Bergsma 03929d24f7 Have HyperV behave in 4.4 and return null instead of false
Commit 6a4927f660 made the HyperV investigator return false insteads of null.

Returning false means the VM is NOT running, returning null means "I don't know". In 4.4 I experienced corruption because of HyperV returning false, instead of null.
2015-08-31 11:29:48 +02:00
Remi Bergsma 3b3d2fc9d4 CLOUDSTACK-8709 No out of band migrate alert for non-routers
(cherry picked from commit daa30c4722)
Signed-off-by: Remi Bergsma <github@remi.nl>
2015-08-18 11:17:06 +02:00
Rohit Yadav cf558be0f6 CLOUDSTACK-8613, CLOUDSTACK-6301: Dump KVM domain XML with secure flag
When dumping XML use appropriate flags:

1, VIR_DOMAIN_XML_SECURE (dump security sensitive information too)
8, VIR_DOMAIN_XML_MIGRATABLE (dump XML suitable for migration)

Source:
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainXMLFlags

This fixes CVE 2015-3252: VNC password lost during VM migration across KVM
hosts. The issue is also seen when a VM is rebooted.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit cb2aca7516)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-14 10:51:52 +05:30
Milamber 9b3a553efd Update L10N resource files on 4.4 branch with 4.4 translation strings from Transifex (20150730) 2015-07-30 11:20:09 +01:00
Daan Hoogland 412016567f Updating pom.xml version numbers for release 4.4.5-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2015-06-24 21:44:59 +02:00
Daan Hoogland eccd94dda1 Merge branch '4.4-RC20150618T1117' into 4.4 2015-06-24 21:35:37 +02:00
Daan Hoogland 6f41061e14 Updating pom.xml version numbers for release 4.4.4
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-18 11:17:09 +02:00
Milamber 824c101aba Update L10N resource files on 4.4 branch with 4.4 translation strings from Transifex (20150618)
Signed-off-by: Milamber <milamber@apache.org>
2015-06-18 07:39:15 +00:00
Daan Hoogland ef35ae727d CLOUDSTACK-8545 alert when out of band migration is detected and not
acted upon
2015-06-18 08:06:44 +02:00
Daan Hoogland f0cc5c510c CLOUDSTACK-8537 test for the sake of testing the fix seems so trivial but no testing is available for it at all. when bugs arise test extension should be the start point here.
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #357
2015-06-17 21:14:27 +02:00
Daan Hoogland c8211312ab CLOUDSTACK-8537 refactor registerSSHKeyPair() for legibility and testability reasons
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-17 21:14:27 +02:00
Daan Hoogland f294d319c6 CLOUDSTACK-8537 add check for unique public key and account on ssh keypair registration
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-17 21:14:27 +02:00
Daan Hoogland 9ced57551d CLOUDSTACK-8545 make reboot on out of band migration configurable 2015-06-17 09:46:46 +02:00
Rafael da Fonseca e6f81dbbbc Update debian packaging
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #339
2015-06-01 14:58:11 +02:00
Daan Hoogland 1ae390d571 default system vm template version
Signed-off-by: Remi Bergsma <apache@remi.nl>

This closes #338
2015-06-01 13:20:48 +02:00
René Moser 8f2c56013b 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:41 +02:00
Rafael da Fonseca 57d2959bbe Fix agent/management conflict
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #329
2015-05-29 20:58:23 +02:00
David Bierce 6d469a3935 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:05:34 +02:00
Rohit Yadav fc2c53963f RemoteAccessVpn: fix regression preshared key is not sent to UI/clients
(cherry picked from commit d81e831214)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-05-27 00:03:37 +02:00
Daan Hoogland 4e03bdccb5 Merge branch '4.4_cepth_resize_backport' of https://github.com/remibergsma/cloudstack into 4.4 2015-05-26 23:12:39 +02:00
Rohit Yadav 3b5e5a3431 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-26 17:42:26 +02:00
Laszlo Hornyak 312d531a7c kvm: Check the return value of the cloudstack-setup-agent command
Bug-Url: https://issues.apache.org/jira/browse/CLOUDSTACK-8016
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>

This closes #93
2015-05-26 17:42:20 +02:00
Daan Hoogland fdf47a221e CLOUDSTACK-8506 slash 31 bit backport 2015-05-26 17:24:43 +02:00
Daan Hoogland 8b5b5deea8 CLOUDSTACK-7631: Log rotate on VR may fail as /etc/init.d/rsyslog does not anymore support reload option on debian wheezy
Conflicts:
	systemvm/patches/debian/config/etc/logrotate.d/rsyslog
2015-05-26 17:22:53 +02:00
Rafael da Fonseca 5fe68990dc Fixed problem with static files reload: - Tomcat was not caching most static files in index.jsp due to changing timestamp - Page reload performance was very poor - Issue affects all versions since 4.0
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #277

 Conflicts:
	ui/index.jsp
2015-05-26 09:32:41 +02:00
Milamber e93d356b2c 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:54:23 +01:00
Abhinandan Prateek e63f2bdf70 CLOUDSTACK-8250: host cpu memory used reported incorrectly in host stat 2015-05-22 08:03:10 +01:00
Milamber 11d99b0ca8 Update L10N resource files on 4.4 branch with 4.4 translation strings from Transifex (20150522) 2015-05-22 07:49:11 +01:00
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
Remi Bergsma a26bbc2ce2 CLOUDSTACK-6181: Allow RBD volumes to be resized
We don't need an external script to investigate the format of the RBD volume,
we only have to ask Libvirt to resize the volume and that will ask librbd to
do so.

Backport for 4.4, original commit: 173909e99d
2015-05-21 22:57:12 +02:00
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