cloudstack/debian
Rohit Yadav 8da2462469
CLOUDSTACK-10333: Secure Live VM Migration for KVM (#2505)
This extends securing of KVM hosts to securing of libvirt on KVM
host as well for TLS enabled live VM migration. To simplify implementation
securing of host implies that both host and libvirtd processes are
secured with management server's CA plugin issued certificates.

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 will reconfigure libvirtd with following settings:

    listen_tcp=0
    listen_tls=1
    tcp_port="16509"
    tls_port="16514"
    auth_tcp="none"
    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-04-20 00:36:18 +05:30
..
source Fixes problem with having to change the "-SNAPSHOT" string in debian/rules for releases, deb packaging was broken in master due to this in a merge with release version. Fixes some warnings generated by dpkg-buildpackage regarding upstream tarball an source versioning Reduces source tarball from 669MB to 183MB (it was including .git), now build is faster and takes up less space 2015-05-25 16:45:50 +02:00
changelog Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
cloudstack-agent.dirs CLOUDSTACK-9462: Systemd support for Ubuntu 16.04 2016-08-25 14:18:51 +05:30
cloudstack-agent.install CLOUDSTACK-9462: Systemd support for Ubuntu 16.04 2016-08-25 14:18:51 +05:30
cloudstack-agent.postinst CLOUDSTACK-10333: Secure Live VM Migration for KVM (#2505) 2018-04-20 00:36:18 +05:30
cloudstack-cli.install CLOUDSTACK-1415: Debian & Ubuntu packaging work 2013-02-27 15:44:46 +00:00
cloudstack-common.install CLOUDSTACK-8638: install update_host_passwd.sh in cloudstack-common installation 2015-08-07 15:06:17 +02:00
cloudstack-docs.install CLOUDSTACK-1415: Debian & Ubuntu packaging work 2013-02-27 15:44:46 +00:00
cloudstack-integration-tests.install packaging: Marvin and integration-tests packages 2016-07-20 16:31:23 +05:30
cloudstack-management.install CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
cloudstack-management.postinst CLOUDSTACK-10137: Only link log4j if not already present (#2316) 2017-11-10 19:59:59 +05:30
cloudstack-management.preinst CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
cloudstack-marvin.install packaging: Marvin and integration-tests packages 2016-07-20 16:31:23 +05:30
cloudstack-marvin.postinst CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
cloudstack-usage.dirs CLOUDSTACK-9462: Systemd support for Ubuntu 16.04 2016-08-25 14:18:51 +05:30
cloudstack-usage.install CLOUDSTACK-9462: Systemd support for Ubuntu 16.04 2016-08-25 14:18:51 +05:30
cloudstack-usage.postinst CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
cloudstack-usage.preinst debian: remove old usage jars during upgrade (#2552) 2018-04-09 17:21:06 +05:30
compat packging: Raise compat mode to 9 (#2307) 2017-11-06 18:18:53 +05:30
control CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
copyright fixing license statement in debian 2012-07-20 14:09:16 -04:00
dirs Source code committed 2010-08-11 09:13:29 -07:00
rules CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30