cloudstack/packaging/centos63
Rohit Yadav 0a0ea4c642 APPLE-FR29: Secure KVM Live VM Migration (FRO-93)
This extends securing of KVM hosts to securing of libvirt on KVM
host as well for TLS enabled live VM migration.

Based on whether keystore and certificates files are available at
/etc/cloudstack/agent, the KVM agent determines whether to use TLS or
TCP based uris for live VM migration. It is also enforced that a secured
host will allow live VM migration to/from other secured host, and an
unsecured hosts will allow live VM migration to/from other unsecured
host only.

Post upgrade the KVM agent on startup will expose its security state
(secured detail is sent as true or false) to the managements server that
gets saved in host_details for the host. This host detail can be accesed
via the listHosts response, and in the UI unsecured KVM hosts will show
up with the host state of ‘unsecured’. Further, a button has been added
that allows admins to provision/renew certificates to KVM hosts and can
be used to secure any unsecured KVM host.

The `cloudstack-setup-agent` was modified to accept a new flag ‘-s’
which reconfigured libvirtd with following settings that enables only
TLS:
    listen_tcp=0
    listen_tls=1
    tcp_port="16509"
    auth_tcp="none"
    tls_port=”16514”
    auth_tls=”none”
    key_file = "/etc/pki/libvirt/private/serverkey.pem"
    cert_file = "/etc/pki/libvirt/servercert.pem"
    ca_file = "/etc/pki/CA/cacert.pem"

For a connected KVM host agent, when the certificate are
renewed/provisioned a background task is scheduled that waits until all
of the agent tasks finish after which libvirt process is restarted and
finally the agent is restarted via AgentShell.

There are no API or DB changes.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2018-03-21 14:13:57 +05:30
..
default CLOUDSTACK-8402: Depend on openjdk 1.7 for both CentOS 6 and 7 2015-04-29 16:50:40 +02:00
rhel7 packaging: rpm related fixes 2015-05-06 01:46:21 +02:00
cloud-agent.rc APPLE-313: Ulimit fixes for cloudstack-{agent, management} 2016-11-08 16:20:04 +05:30
cloud-ipallocator.rc CLOUDSTACK-6220: Take 2, Fix cloudstack init scripts so that they 2014-03-10 16:11:52 -06:00
cloud-management.rc APPLE-313: Ulimit fixes for cloudstack-{agent, management} 2016-11-08 16:20:04 +05:30
cloud-management.sysconfig Summary: update packaging 2013-02-05 10:47:42 +01:00
cloud-usage.rc CLOUDSTACK-7633: fix "Provides" in most LSB headers 2014-10-12 23:58:50 -04:00
cloud.spec APPLE-FR29: Secure KVM Live VM Migration (FRO-93) 2018-03-21 14:13:57 +05:30
cloudstack-agent.te CLOUDSTACK-337 - first iteration of an agent SELinux policy 2013-03-16 13:26:24 -04:00
cloudstack-sccs follow up fix for CLOUDSTACK-1049 2013-10-22 15:53:55 -07:00
package.sh CLOUDSTACK-7469 Complete simulator build support 2015-01-20 15:01:41 +05:30
replace.properties CLOUDSTACK-2033 Fix usage server startup and logging 2013-04-16 10:52:49 +02:00