cloudstack/ui/scripts
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
..
ui CLOUDSTACK-10126: Separate Subnet for SSVM and CPVM (#2368) 2018-01-05 13:19:03 +05:30
ui-custom CLOUDSTACK-4757: Support OVA files with multiple disks for templates (#2146) 2018-01-10 22:10:41 +05:30
accounts.js CLOUDSTACK-10129: Allow navigation from VRs to account, network, instances (#2306) 2017-11-09 02:09:14 +05:30
accountsWizard.js CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
affinity.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
autoscaler.js CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zoneid missing in createAutoScaleVmProfile 2016-01-13 15:47:06 +05:30
cloud.core.callbacks.js CLOUDSTACK-9408 for the move away from download.cloud.com 2017-04-20 11:35:36 +05:30
cloudStack.js CLOUDSTACK-9768: Time displayed for events in UI is incorrect 2017-02-02 12:59:25 +05:30
configuration.js CLOUDSTACK-9813: Extending Config Drive support (#2097) 2018-01-12 15:14:40 +05:30
dashboard.js CLOUDSTACK-10059: Dashboard ignores resource value that is less than 1% 2017-08-31 16:11:58 +02:00
docs.js CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
domains.js CLOUDSTACK-10117: Account ldap binding (#2381) 2018-01-06 22:58:28 +05:30
events.js CLOUDSTACK-10129: UX improvements and event timeline 2017-12-23 09:22:44 +05:30
globalSettings.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
installWizard.js api: avoid sending sensitive data in api response 2015-03-11 16:34:56 +05:30
instanceWizard.js CLOUDSTACK-4757: Support OVA files with multiple disks for templates (#2146) 2018-01-10 22:10:41 +05:30
instances.js make Broadcast- and IsolationURI visible to admin (#2520) 2018-04-02 21:55:18 +00:00
lbCertificatePolicy.js CLOUDSTACK-8672 : NCC Integration with CloudStack. 2017-07-20 12:42:43 +05:30
lbStickyPolicy.js CLOUDSTACK-8744 Add missing localization (l10n) for several parts in the UI 2015-08-18 11:16:14 +01:00
metrics.js CLOUDSTACK-10129: UX improvements and event timeline 2017-12-23 09:22:44 +05:30
network.js cleanup commented out code 2018-02-26 11:57:44 +01:00
plugins.js Plugin API: Support multiple JS includes per plugin 2014-01-27 12:39:36 -08:00
projects.js Add to project detail page: cpu,memory,template,storage and VMs count 2016-08-08 20:04:55 -04:00
regions.js CLOUDSTACK-8672 : NCC Integration with CloudStack. 2017-07-20 12:42:43 +05:30
roles.js CLOUDSTACK-10044: Update role permission (#2236) 2017-08-11 12:24:50 +02:00
sharedFunctions.js CLOUDSTACK-10129: UX improvements and event timeline 2017-12-23 09:22:44 +05:30
storage.js CLOUDSTACK-10129: UX improvements and event timeline 2017-12-23 09:22:44 +05:30
system.js CLOUDSTACK-10333: Secure Live VM Migration for KVM (#2505) 2018-04-20 00:36:18 +05:30
templates.js CLOUDSTACK-10227: Stabilization fixes for 4.11.0.0 (#2403) 2018-01-15 00:08:36 +05:30
vpc.js CLOUDSTACK-10189: Adding nuage VSD managed network support to CloudStack (#2360) 2017-12-28 14:55:15 +05:30
zoneWizard.js CLOUDSTACK-9044: Add RBD Primary Storage to the Zone Wizard. 2015-11-08 18:22:39 +01:00