diff --git a/test/services/jmeter/install.sh b/test/services/jmeter/install.sh old mode 100755 new mode 100644 diff --git a/test/services/vlc/install.sh b/test/services/vlc/install.sh old mode 100755 new mode 100644 diff --git a/test/streaming/dashboard.json b/test/streaming/dashboard.json new file mode 100644 index 0000000000000000000000000000000000000000..d1a3a191b94501e97e8432804fbceb7bd2d1db77 --- /dev/null +++ b/test/streaming/dashboard.json @@ -0,0 +1 @@ +{"id":1,"cells":[{"i":"657dc6a9-1359-4f28-87c1-8174cab033e2","x":4,"y":2,"w":4,"h":3,"name":"Apache Endpoint 2 Request rate \u0026 Response time","queries":[{"query":"SELECT mean(\"ReqPerSec\") AS \"mean_ReqPerSec\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache2' GROUP BY time(10s)","label":"apache.ReqPerSec","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"ReqPerSec","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache2"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}},{"query":"SELECT mean(\"response_time\") AS \"mean_response_time\" FROM \"CLMCMetrics\".\"autogen\".\"net_response\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache2' GROUP BY time(10s)","label":"net_response.response_time","queryConfig":{"database":"CLMCMetrics","measurement":"net_response","retentionPolicy":"autogen","fields":[{"field":"response_time","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache2"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}}],"type":"line","links":{"self":"/chronograf/v1/dashboards/5/cells/657dc6a9-1359-4f28-87c1-8174cab033e2"}},{"i":"998dac9c-fdfb-43cb-905c-650082acf0fe","x":0,"y":2,"w":4,"h":3,"name":"Apache Endpoint 1 Request rate \u0026 Response time","queries":[{"query":"SELECT mean(\"ReqPerSec\") AS \"mean_ReqPerSec\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache1' GROUP BY time(10s)","label":"apache.ReqPerSec","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"ReqPerSec","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache1"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}},{"query":"SELECT mean(\"response_time\") AS \"mean_response_time\" FROM \"CLMCMetrics\".\"autogen\".\"net_response\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache1' GROUP BY time(10s)","label":"net_response.response_time","queryConfig":{"database":"CLMCMetrics","measurement":"net_response","retentionPolicy":"autogen","fields":[{"field":"response_time","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache1"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}}],"type":"line","links":{"self":"/chronograf/v1/dashboards/5/cells/998dac9c-fdfb-43cb-905c-650082acf0fe"}},{"i":"31c0e989-99a8-4340-bbd9-6e5a83826324","x":4,"y":5,"w":4,"h":4,"name":"Apache Endpoint 2 CPU Load \u0026 connection count","queries":[{"query":"SELECT mean(\"CPULoad\") AS \"mean_CPULoad\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache2' GROUP BY time(10s)","label":"apache.CPULoad","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"CPULoad","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache2"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}},{"query":"SELECT mean(\"ConnsTotal\") AS \"mean_ConnsTotal\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h AND \"host\"='apache2' GROUP BY time(10s)","label":"apache.ConnsTotal","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"ConnsTotal","funcs":["mean"]}],"tags":{"host":["apache2"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}}],"type":"line","links":{"self":"/chronograf/v1/dashboards/5/cells/31c0e989-99a8-4340-bbd9-6e5a83826324"}},{"i":"5836bf44-5af2-4dcd-8882-a4b658c58c9e","x":0,"y":5,"w":4,"h":4,"name":"Apache Endpoint 1 CPU Load \u0026 connection count","queries":[{"query":"SELECT mean(\"CPULoad\") AS \"mean_CPULoad\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache1' GROUP BY time(10s)","label":"apache.CPULoad","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"CPULoad","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache1"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}},{"query":"SELECT mean(\"ConnsTotal\") AS \"mean_ConnsTotal\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h AND \"ipendpoint\"='adaptive_streaming_I1_apache1' GROUP BY time(10s)","label":"apache.ConnsTotal","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"ConnsTotal","funcs":["mean"]}],"tags":{"ipendpoint":["adaptive_streaming_I1_apache1"]},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":true,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}}],"type":"line","links":{"self":"/chronograf/v1/dashboards/5/cells/5836bf44-5af2-4dcd-8882-a4b658c58c9e"}},{"i":"d3730e16-9c22-43d8-9f37-a98f76b04133","x":0,"y":0,"w":8,"h":2,"name":"Total Apache connections","queries":[{"query":"SELECT mean(\"ConnsTotal\") AS \"mean_ConnsTotal\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE time \u003e now() - 1h GROUP BY time(10s)","label":"apache.ConnsTotal","queryConfig":{"database":"CLMCMetrics","measurement":"apache","retentionPolicy":"autogen","fields":[{"field":"ConnsTotal","funcs":["mean"]}],"tags":{},"groupBy":{"time":"10s","tags":[]},"areTagsAccepted":false,"rawText":null,"range":{"upper":"","lower":"now() - 1h"}}}],"type":"line","links":{"self":"/chronograf/v1/dashboards/5/cells/d3730e16-9c22-43d8-9f37-a98f76b04133"}}],"templates":[],"name":"CLMC demo dashboard","links":{"self":"/chronograf/v1/dashboards/5","cells":"/chronograf/v1/dashboards/5/cells","templates":"/chronograf/v1/dashboards/5/templates"}} \ No newline at end of file diff --git a/test/streaming/influx.json b/test/streaming/influx.json new file mode 100644 index 0000000000000000000000000000000000000000..34bb14a56b2cad467d93d5b8451804a85ebbc707 --- /dev/null +++ b/test/streaming/influx.json @@ -0,0 +1,7 @@ +{ + "id": "1", + "name": "Influx 1", + "url": "http://localhost:8086", + "default": true, + "telegraf": "CLMCMetrics" +} \ No newline at end of file diff --git a/test/streaming/kapacitor.conf b/test/streaming/kapacitor.conf new file mode 100644 index 0000000000000000000000000000000000000000..e8332d6297a5ba109fff0a191ff5a50d9ade15fd --- /dev/null +++ b/test/streaming/kapacitor.conf @@ -0,0 +1,699 @@ +# The hostname of this node. +# Must be resolvable by any configured InfluxDB hosts. +hostname = "localhost" +# Directory for storing a small amount of metadata about the server. +data_dir = "/var/lib/kapacitor" + +# Do not apply configuration overrides during startup. +# Useful if the configuration overrides cause Kapacitor to fail startup. +# This option is intended as a safe guard and should not be needed in practice. +skip-config-overrides = false + +# Default retention-policy, if a write is made to Kapacitor and +# it does not have a retention policy associated with it, +# then the retention policy will be set to this value +default-retention-policy = "" + +[http] + # HTTP API Server for Kapacitor + # This server is always on, + # it serves both as a write endpoint + # and as the API endpoint for all other + # Kapacitor calls. + bind-address = ":9092" + log-enabled = true + write-tracing = false + pprof-enabled = false + https-enabled = false + https-certificate = "/etc/ssl/kapacitor.pem" + +[config-override] + # Enable/Disable the service for overridding configuration via the HTTP API. + enabled = true + +[logging] + # Destination for logs + # Can be a path to a file or 'STDOUT', 'STDERR'. + file = "/var/log/kapacitor/kapacitor.log" + # Logging level can be one of: + # DEBUG, INFO, ERROR + # HTTP logging can be disabled in the [http] config section. + level = "INFO" + +[load] + # Enable/Disable the service for loading tasks/templates/handlers + # from a directory + enabled = true + # Directory where task/template/handler files are set + dir = "/etc/kapacitor/load" + + +[replay] + # Where to store replay files, aka recordings. + dir = "/var/lib/kapacitor/replay" + +[task] + # Where to store the tasks database + # DEPRECATED: This option is not needed for new installations. + # It is only used to determine the location of the task.db file + # for migrating to the new `storage` service. + dir = "/var/lib/kapacitor/tasks" + # How often to snapshot running task state. + snapshot-interval = "60s" + +[storage] + # Where to store the Kapacitor boltdb database + boltdb = "/var/lib/kapacitor/kapacitor.db" + +[deadman] + # Configure a deadman's switch + # Globally configure deadman's switches on all tasks. + # NOTE: for this to be of use you must also globally configure at least one alerting method. + global = false + # Threshold, if globally configured the alert will be triggered if the throughput in points/interval is <= threshold. + threshold = 0.0 + # Interval, if globally configured the frequency at which to check the throughput. + interval = "10s" + # Id -- the alert Id, NODE_NAME will be replaced with the name of the node being monitored. + id = "node 'NODE_NAME' in task '{{ .TaskName }}'" + # The message of the alert. INTERVAL will be replaced by the interval. + message = "{{ .ID }} is {{ if eq .Level \"OK\" }}alive{{ else }}dead{{ end }}: {{ index .Fields \"collected\" | printf \"%0.3f\" }} points/INTERVAL." + + +# Multiple InfluxDB configurations can be defined. +# Exactly one must be marked as the default. +# Each one will be given a name and can be referenced in batch queries and InfluxDBOut nodes. +[[influxdb]] + # Connect to an InfluxDB cluster + # Kapacitor can subscribe, query and write to this cluster. + # Using InfluxDB is not required and can be disabled. + enabled = true + default = true + name = "localhost" + urls = ["http://localhost:8086"] + username = "" + password = "" + timeout = 0 + # Absolute path to pem encoded CA file. + # A CA can be provided without a key/cert pair + # ssl-ca = "/etc/kapacitor/ca.pem" + # Absolutes paths to pem encoded key and cert files. + # ssl-cert = "/etc/kapacitor/cert.pem" + # ssl-key = "/etc/kapacitor/key.pem" + + # Do not verify the TLS/SSL certificate. + # This is insecure. + insecure-skip-verify = false + + # Maximum time to try and connect to InfluxDB during startup + startup-timeout = "5m" + + # Turn off all subscriptions + disable-subscriptions = false + + # Subscription mode is either "cluster" or "server" + subscription-mode = "cluster" + + # Which protocol to use for subscriptions + # one of 'udp', 'http', or 'https'. + subscription-protocol = "http" + + # Subscriptions resync time interval + # Useful if you want to subscribe to new created databases + # without restart Kapacitord + subscriptions-sync-interval = "1m0s" + + # Override the global hostname option for this InfluxDB cluster. + # Useful if the InfluxDB cluster is in a separate network and + # needs special config to connect back to this Kapacitor instance. + # Defaults to `hostname` if empty. + kapacitor-hostname = "" + + # Override the global http port option for this InfluxDB cluster. + # Useful if the InfluxDB cluster is in a separate network and + # needs special config to connect back to this Kapacitor instance. + # Defaults to the port from `[http] bind-address` if 0. + http-port = 0 + + # Host part of a bind address for UDP listeners. + # For example if a UDP listener is using port 1234 + # and `udp-bind = "hostname_or_ip"`, + # then the UDP port will be bound to `hostname_or_ip:1234` + # The default empty value will bind to all addresses. + udp-bind = "" + # Subscriptions use the UDP network protocl. + # The following options of for the created UDP listeners for each subscription. + # Number of packets to buffer when reading packets off the socket. + udp-buffer = 1000 + # The size in bytes of the OS read buffer for the UDP socket. + # A value of 0 indicates use the OS default. + udp-read-buffer = 0 + + [influxdb.subscriptions] + # Set of databases and retention policies to subscribe to. + # If empty will subscribe to all, minus the list in + # influxdb.excluded-subscriptions + # + # Format + # db_name = <list of retention policies> + # + # Example: + # my_database = [ "default", "longterm" ] + [influxdb.excluded-subscriptions] + # Set of databases and retention policies to exclude from the subscriptions. + # If influxdb.subscriptions is empty it will subscribe to all + # except databases listed here. + # + # Format + # db_name = <list of retention policies> + # + # Example: + # my_database = [ "default", "longterm" ] + +[kubernetes] + # Enable/Disable the kubernetes service. + # Needed by the k8sAutoscale TICKscript node. + enabled = false + # There are several ways to connect to the kubernetes API servers: + # + # Via the proxy, start the proxy via the `kubectl proxy` command: + # api-servers = ["http://localhost:8001"] + # + # From within the cluster itself, in which case + # kubernetes secrets and DNS services are used + # to determine the needed configuration. + # in-cluster = true + # + # Direct connection, in which case you need to know + # the URL of the API servers, the authentication token and + # the path to the ca cert bundle. + # These value can be found using the `kubectl config view` command. + # api-servers = ["http://192.168.99.100:8443"] + # token = "..." + # ca-path = "/path/to/kubernetes/ca.crt" + # + # Kubernetes can also serve as a discoverer for scrape targets. + # In that case the type of resources to discoverer must be specified. + # Valid values are: "node", "pod", "service", and "endpoint". + # resource = "pod" + + + +[smtp] + # Configure an SMTP email server + # Will use TLS and authentication if possible + # Only necessary for sending emails from alerts. + enabled = false + host = "localhost" + port = 25 + username = "" + password = "" + # From address for outgoing mail + from = "" + # List of default To addresses. + # to = ["oncall@example.com"] + + # Skip TLS certificate verify when connecting to SMTP server + no-verify = false + # Close idle connections after timeout + idle-timeout = "30s" + + # If true the all alerts will be sent via Email + # without explicitly marking them in the TICKscript. + global = false + # Only applies if global is true. + # Sets all alerts in state-changes-only mode, + # meaning alerts will only be sent if the alert state changes. + state-changes-only = false + +[snmptrap] + # Configure an SNMP trap server + enabled = false + # The host:port address of the SNMP trap server + addr = "localhost:162" + # The community to use for traps + community = "kapacitor" + # Number of retries when sending traps + retries = 1 + + +[opsgenie] + # Configure OpsGenie with your API key and default routing key. + enabled = false + # Your OpsGenie API Key. + api-key = "" + # Default OpsGenie teams, can be overridden per alert. + # teams = ["team1", "team2"] + # Default OpsGenie recipients, can be overridden per alert. + # recipients = ["recipient1", "recipient2"] + # The OpsGenie API URL should not need to be changed. + url = "https://api.opsgenie.com/v1/json/alert" + # The OpsGenie Recovery URL, you can change this + # based on which behavior you want a recovery to + # trigger (Add Notes, Close Alert, etc.) + recovery_url = "https://api.opsgenie.com/v1/json/alert/note" + # If true then all alerts will be sent to OpsGenie + # without explicitly marking them in the TICKscript. + # The team and recipients can still be overridden. + global = false + +[victorops] + # Configure VictorOps with your API key and default routing key. + enabled = false + # Your VictorOps API Key. + api-key = "" + # Default VictorOps routing key, can be overridden per alert. + routing-key = "" + # The VictorOps API URL should not need to be changed. + url = "https://alert.victorops.com/integrations/generic/20131114/alert" + # If true the all alerts will be sent to VictorOps + # without explicitly marking them in the TICKscript. + # The routing key can still be overridden. + global = false + # Use JSON for the "data" field + # New installations will want to set this to true as it makes + # the data that triggered the alert available within VictorOps. + # The default is "false" for backwards compatibility reasons. + # json-data = false + +[pagerduty] + # Configure PagerDuty. + enabled = false + # Your PagerDuty Service Key. + service-key = "" + # The PagerDuty API URL should not need to be changed. + url = "https://events.pagerduty.com/generic/2010-04-15/create_event.json" + # If true the all alerts will be sent to PagerDuty + # without explicitly marking them in the TICKscript. + global = false + +[pushover] + # Configure Pushover. + enabled = false + # Your Pushover API token. + token = "" + # Your Pushover USER_TOKEN. + user-key = "" + # The URL for the Pushover API. + url = "https://api.pushover.net/1/messages.json" + +########################################## +# Configure Alert POST request Endpoints + +# As ENV variables: +# KAPACITOR_HTTPPOST_0_ENDPOINT = "example" +# KAPACITOR_HTTPPOST_0_URL = "http://example.com" +# KAPACITOR_HTTPPOST_0_HEADERS_Example = "header" + +# [[httppost]] +# endpoint = "example" +# url = "http://example.com" +# headers = { Example = "your-key" } +# basic-auth = { username = "my-user", password = "my-pass" } +# +# # Provide an alert template for constructing a custom HTTP body. +# # Alert templates are only used with post alert handlers as they consume alert data. +# # The template uses https://golang.org/pkg/text/template/ and has access to the following fields: +# # * .ID - The unique ID for this alert +# # * .Message - The message of the alert +# # * .Details - The details of the alert +# # * .Time - The time the alert event occurred +# # * .Duration - The duration of the alert event. +# # * .Level - The level of the alert, i.e INFO, WARN, or CRITICAL. +# # * .Data - The data that triggered the alert. +# # +# # Specify the template inline. +# alert-template = "{{.Message}}:{{range .Data.Series}}{{.Tags}},{{range .Values}}{{.}}{{end}}{{end}}" +# # Specify an absolute path to a template file. +# alert-template-file = "/path/to/template/file" +# +# # Provide a row template for constructing a custom HTTP body. +# # Row templates are only used with httpPost pipeline nodes as they consume a row at a time. +# # The template uses https://golang.org/pkg/text/template/ and has access to the following fields: +# # * .Name - The measurement name of the data stream +# # * .Tags - A map of tags on the data. +# # * .Values - A list of values, each entry is a map containing a "time" key for the time of the point +# # and keys for all other fields on the point. +# # +# # Specify the template inline. +# row-template = "{{.Name}} host={{index .Tags \"host\"}}{{range .Values}} {{index . "time"}} {{index . "value"}}{{end}}" +# # Specify an absolute path to a template file. +# row-template-file = "/path/to/template/file" + +[slack] + # Configure Slack. + enabled = true + # The Slack webhook URL, can be obtained by adding + # an Incoming Webhook integration. + # Visit https://slack.com/services/new/incoming-webhook + # to add new webhook for Kapacitor. + url = "https://hooks.slack.com/services/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" + # Default channel for messages + channel = "#clmc" + # If true all the alerts will be sent to Slack + # without explicitly marking them in the TICKscript. + global = false + # Only applies if global is true. + # Sets all alerts in state-changes-only mode, + # meaning alerts will only be sent if the alert state changes. + state-changes-only = false + +[telegram] + # Configure Telegram. + enabled = false + # The Telegram Bot URL should not need to be changed. + url = "https://api.telegram.org/bot" + # Telegram Bot Token, can be obtained From @BotFather. + token = "" + # Default recipient for messages, Contact @myidbot on Telegram to get an ID. + chat-id = "" + # Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your alert message. + #parse-mode = "Markdown" + # Disable link previews for links in this message + disable-web-page-preview = false + # Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound. + disable-notification = false + # If true the all alerts will be sent to Telegram + # without explicitly marking them in the TICKscript. + global = false + # Only applies if global is true. + # Sets all alerts in state-changes-only mode, + # meaning alerts will only be sent if the alert state changes. + state-changes-only = false + +[hipchat] + # Configure HipChat. + enabled = false + # The HipChat API URL. Replace subdomain with your + # HipChat subdomain. + # url = "https://subdomain.hipchat.com/v2/room" + # Visit https://www.hipchat.com/docs/apiv2 + # for information on obtaining your room id and + # authentication token. + # Default room for messages + room = "" + # Default authentication token + token = "" + # If true then all alerts will be sent to HipChat + # without explicitly marking them in the TICKscript. + global = false + # Only applies if global is true. + # Sets all alerts in state-changes-only mode, + # meaning alerts will only be sent if the alert state changes. + state-changes-only = false + +[alerta] + # Configure Alerta. + enabled = false + # The Alerta URL. + url = "" + # Default authentication token. + token = "" + # Default token prefix + # If you are on older versions of alerta you may need to change this to "Key" + token-prefix = "Bearer" + # Default environment. + environment = "" + # Default origin. + origin = "kapacitor" + +[sensu] + # Configure Sensu. + enabled = false + # The Sensu Client host:port address. + addr = "sensu-client:3030" + # Default JIT source. + source = "Kapacitor" + +[reporting] + # Send usage statistics + # every 12 hours to Enterprise. + enabled = true + url = "https://usage.influxdata.com" + +[stats] + # Emit internal statistics about Kapacitor. + # To consume these stats create a stream task + # that selects data from the configured database + # and retention policy. + # + # Example: + # stream|from().database('_kapacitor').retentionPolicy('autogen')... + # + enabled = true + stats-interval = "10s" + database = "_kapacitor" + retention-policy= "autogen" + +[udf] +# Configuration for UDFs (User Defined Functions) +[udf.functions] + # Example go UDF. + # First compile example: + # go build -o avg_udf ./udf/agent/examples/moving_avg.go + # + # Use in TICKscript like: + # stream.goavg() + # .field('value') + # .size(10) + # .as('m_average') + # + # uncomment to enable + #[udf.functions.goavg] + # prog = "./avg_udf" + # args = [] + # timeout = "10s" + + # Example python UDF. + # Use in TICKscript like: + # stream.pyavg() + # .field('value') + # .size(10) + # .as('m_average') + # + # uncomment to enable + #[udf.functions.pyavg] + # prog = "/usr/bin/python2" + # args = ["-u", "./udf/agent/examples/moving_avg.py"] + # timeout = "10s" + # [udf.functions.pyavg.env] + # PYTHONPATH = "./udf/agent/py" + + # Example UDF over a socket + #[udf.functions.myCustomUDF] + # socket = "/path/to/socket" + # timeout = "10s" + +[talk] + # Configure Talk. + enabled = false + # The Talk webhook URL. + url = "https://jianliao.com/v2/services/webhook/uuid" + # The default authorName. + author_name = "Kapacitor" + +# MQTT client configuration. +# Mutliple different clients may be configured by +# repeating [[mqtt]] sections. +[[mqtt]] + enabled = false + # Unique name for this broker configuration + name = "localhost" + # Whether this broker configuration is the default + default = true + # URL of the MQTT broker. + # Possible protocols include: + # tcp - Raw TCP network connection + # ssl - TLS protected TCP network connection + # ws - Websocket network connection + url = "tcp://localhost:1883" + + # TLS/SSL configuration + # A CA can be provided without a key/cert pair + # ssl-ca = "/etc/kapacitor/ca.pem" + # Absolutes paths to pem encoded key and cert files. + # ssl-cert = "/etc/kapacitor/cert.pem" + # ssl-key = "/etc/kapacitor/key.pem" + + # Unique ID for this MQTT client. + # If empty used the value of "name" + client-id = "" + + # Username + username = "" + # Password + password = "" + +[[swarm]] + # Enable/Disable the Docker Swarm service. + # Needed by the swarmAutoscale TICKscript node. + enabled = false + # Unique ID for this Swarm cluster + # NOTE: This is not the ID generated by Swarm rather a user defined + # ID for this cluster since Kapacitor can communicate with multiple clusters. + id = "" + # List of URLs for Docker Swarm servers. + servers = ["http://localhost:2376"] + # TLS/SSL Configuration for connecting to secured Docker daemons + ssl-ca = "" + ssl-cert = "" + ssl-key = "" + insecure-skip-verify = false + +################################## +# Input Methods, same as InfluxDB +# + +[collectd] + enabled = false + bind-address = ":25826" + database = "collectd" + retention-policy = "" + batch-size = 1000 + batch-pending = 5 + batch-timeout = "10s" + typesdb = "/usr/share/collectd/types.db" + +[opentsdb] + enabled = false + bind-address = ":4242" + database = "opentsdb" + retention-policy = "" + consistency-level = "one" + tls-enabled = false + certificate = "/etc/ssl/influxdb.pem" + batch-size = 1000 + batch-pending = 5 + batch-timeout = "1s" + +# Service Discovery and metric scraping + +[[scraper]] + enabled = false + name = "myscraper" + # Specify the id of a discoverer service specified below + discoverer-id = "" + # Specify the type of discoverer service being used. + discoverer-service = "" + db = "prometheus_raw" + rp = "autogen" + type = "prometheus" + scheme = "http" + metrics-path = "/metrics" + scrape-interval = "1m0s" + scrape-timeout = "10s" + username = "" + password = "" + bearer-token = "" + ssl-ca = "" + ssl-cert = "" + ssl-key = "" + ssl-server-name = "" + insecure-skip-verify = false + +# Supported discovery services + +[[azure]] + enabled = false + id = "myazure" + port = 80 + subscription-id = "" + tenant-id = "" + client-id = "" + client-secret = "" + refresh-interval = "5m0s" + +[[consul]] + enabled = false + id = "myconsul" + address = "127.0.0.1:8500" + token = "" + datacenter = "" + tag-separator = "," + scheme = "http" + username = "" + password = "" + ssl-ca = "" + ssl-cert = "" + ssl-key = "" + ssl-server-name = "" + insecure-skip-verify = false + +[[dns]] + enabled = false + id = "mydns" + refresh-interval = "30s" + ## Type can be SRV, A, or AAAA + type = "SRV" + ## Port is the port to scrape for records returned by A or AAAA types + port = 80 + +[[ec2]] + enabled = false + id = "myec2" + region = "us-east-1" + access-key = "" + secret-key = "" + profile = "" + refresh-interval = "1m0s" + port = 80 + +[[file-discovery]] + enabled = false + id = "myfile" + refresh-interval = "5m0s" + files = [] + +[[gce]] + enabled = false + id = "mygce" + project = "" + zone = "" + filter = "" + refresh-interval = "1m0s" + port = 80 + tag-separator = "," + +[[marathon]] + enabled = false + id = "mymarathon" + timeout = "30s" + refresh-interval = "30s" + bearer-token = "" + ssl-ca = "" + ssl-cert = "" + ssl-key = "" + ssl-server-name = "" + insecure-skip-verify = false + +[[nerve]] + enabled = false + id = "mynerve" + timeout = "10s" + +[[serverset]] + enabled = false + id = "myserverset" + timeout = "10s" + +[[static-discovery]] + enabled = false + id = "mystatic" + targets = ["localhost:9100"] + [static.labels] + region = "us-east-1" + +[[triton]] + enabled = false + id = "mytriton" + account = "" + dns-suffix = "" + endpoint = "" + port = 9163 + refresh-interval = "1m0s" + version = 1 + ssl-ca = "" + ssl-cert = "" + ssl-key = "" + ssl-server-name = "" + insecure-skip-verify = false diff --git a/test/streaming/kapacitor.json b/test/streaming/kapacitor.json new file mode 100644 index 0000000000000000000000000000000000000000..60118860fc3351e456f1cccfe6145a169f50734f --- /dev/null +++ b/test/streaming/kapacitor.json @@ -0,0 +1,6 @@ +{ + "id": "1", + "name": "CLMCKapacitor", + "url": "http://localhost:9092", + "active": false +} \ No newline at end of file diff --git a/test/streaming/manual.md b/test/streaming/manual.md index 5b5b25cf7318d57ea97a54cd5811a90b87ab4782..5e26bd9aadd332b21017dc272dfc99010d875cdf 100644 --- a/test/streaming/manual.md +++ b/test/streaming/manual.md @@ -17,7 +17,9 @@ // the software. // // Created By : Michael Boniface +// Updated By : Simon Crowle // Created Date : 18-12-2017 +// Update Date : 14-02-2018 // Created for Project : FLAME --> @@ -30,7 +32,45 @@ The following command brings up the services `vagrant --infra=streaming up` * clmc-service: configured with influx, kapacitor, chornograf -* apache1@DC1, apache2@DC2: configured with apache and a test video located at http://192.168.50.11:80/test_video/stream.mpd on the internal vbox network adn at http://localhost:8890/test-video/stream.mpd if accessing from the host machine +* apache1@DC1, apache2@DC2: configured with apache and a test video located at http://192.168.50.11:80/test_video/stream.mpd on the internal vbox network and at http://localhost:8081/test_video/stream.mpd if accessing from the host machine + +## Automatic set-up of the CLMC dashboard demonstrator +To automatically set up a demonstrator CLMC dashboard and Kapacitor, run the following: + +### TO-DO: RE-FACTOR AUTOMATION FOR CONFIGURING KAPACITOR (kapacitor.conf) +Once Vagrant is finished, you will need to copy the kapacitor.conf file into clmc-service, then SSH in, configure Kapacitor and restart it: + +``` +# Copy the kapacitor.conf file in +vagrant plugin install vagrant-scp +vagrant scp ./test/streaming/kapacitor.conf clmc-service:/tmp/kapacitor.conf + +# Configure and re-start kapacitor +vagrant --infra=streaming ssh clmc-service +sudo systemctl stop kapacitor +sudo mv /tmp/kapacitor.conf /etc/kapacitor/ +sudo systemctl start kapacitor +exit +``` + +### Run the test set-up +``` +cd ./test/streaming/ +./setup.sh +``` + +And then point your browser to: + +`http://localhost:8888` + +## Manual set-up of Chronograf's CLMC data source + +If you __do not__ want to run the automatic set-up, basic entry to the Chronograf dashboard is as follows: + +1. Point your browser to: [http://localhost:8888](http://localhost:8888) +2. Enter your connection string: `http://localhost:8086` +3. Enter the Name: `Influx 1` +4. Enter the Telegraf database: `CLMCMetrics` ## Manual test on Windows @@ -51,29 +91,61 @@ The video should play. ### Query the data -Open Chronograph by entering the following URL into a browser on the host http://localhost:8888 +Open Chronograph by entering the following URL into a browser on the host http://localhost:8888. Your CLMC data source, Kapacitor and demonstration dashboard should be ready for you to explore. -Connect with +Press the Data Explorer in the menu and select the apache measurement and create a query such as -* Connection String: http://localhost:8086 -* Name: Influx 1 -* Telegraf database: CLMCMetrics +`SELECT mean("BytesPerSec") AS "mean_BytesPerSec" FROM "CLMCMetrics"."autogen"."apache" WHERE time > now() - 5m GROUP BY time(10s)` -Press the Data Explorer in the menu +## KPI triggers -Select the apache measurement and create a query such as +In this demonstrator an example KPI rule has been set up in Kapacitor which fires when the average requests per second on the Apache 1 or Apache2 server goes above certain thresholds ( a 'warning' at 0.2 requests/second and a 'critical' message at 0.5 requests/second ). The TICKscript specification for this rule is as follows: -`SELECT mean("BytesPerSec") AS "mean_BytesPerSec" FROM "CLMCMetrics"."autogen"."apache" WHERE time > now() - 5m GROUP BY time(10s)` +``` +dbrp "CLMCMetrics"."autogen" + +// Apache 1 rule +// ------------- +var a1Data = batch + |query(''' SELECT mean("ReqPerSec") AS "mean_RPS" FROM "CLMCMetrics"."autogen"."apache" WHERE "ipendpoint"='adaptive_streaming_I1_apache1' ''') + .period(5s) + .every(5s) + +var a1Alert = a1Data + |alert() + .id('{{ .Name }}/adaptive_streaming_I1_apache1') + .message('{{ .ID }} is {{ .Level }} Mean Requests Per Second: {{ index .Fields "mean_RPS" }}') + .warn(lambda: "mean_RPS" > 0.2) + .crit(lambda: "mean_RPS" > 0.5) + .slack() + .log( '/tmp/RPSLoad.log' ) + +// Apache 2 rule +// ------------- +var a2Data = batch + |query(''' SELECT mean("ReqPerSec") AS "mean_RPS" FROM "CLMCMetrics"."autogen"."apache" WHERE "ipendpoint"='adaptive_streaming_I1_apache2' ''') + .period(5s) + .every(5s) + +var a2Alert = a2Data + |alert() + .id('{{ .Name }}/adaptive_streaming_I1_apache2') + .message('{{ .ID }} is {{ .Level }} Mean Requests Per Second: {{ index .Fields "mean_RPS" }}') + .warn(lambda: "mean_RPS" > 0.2) + .crit(lambda: "mean_RPS" > 0.5) + .slack() + .log( '/tmp/RPSLoad.log' ) +``` -## Set a KPI trigger +Alerts are sent both an internal logging within the CLMC service file system and also to a FLAME demo Slack service: -Press Alerting in the menu +https://flamedemo-itinnov.slack.com -Connect to Kapacitor on http://locahost:9092 +Alerts can be found under the '#clmc' channel. -Create a rule CLMCMetrics.apache.cpu_load > 0.02 +### Kapacitor rules in Chronograf's GUI -There's all sorts of notification possibilities +Additional rules can be added to this demonstrator either via the Chronograf GUI (see [here](https://docs.influxdata.com/chronograf/v1.4/introduction/getting-started/#4-connect-chronograf-to-kapacitor) for more information) or by using the Kapacitor HTTP API and TICKscript (for an introduction, [look here](https://docs.influxdata.com/kapacitor/v1.4/tick/)). ## Automatic test using JMeter and VLC command line diff --git a/test/streaming/rules.json b/test/streaming/rules.json new file mode 100644 index 0000000000000000000000000000000000000000..f2406fae085d072b80f513a5fab5dc9a53a19c5c --- /dev/null +++ b/test/streaming/rules.json @@ -0,0 +1,9 @@ +{ + "id" : "Request_Rate_Alert_ApacheServers", + "type" : "batch", + "dbrps" : [{"db": "CLMCMetrics", "rp" : "autogen"}], + + "script" : "\/\/ Apache 1 rule\r\n\/\/ -------------\r\nvar a1Data = batch\r\n |query(''' SELECT mean(\"ReqPerSec\") AS \"mean_RPS\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE \"ipendpoint\"='adaptive_streaming_I1_apache1' ''')\r\n .period(5s)\r\n .every(5s)\r\n\r\nvar a1Alert = a1Data\r\n |alert()\r\n .id('{{ .Name }}\/adaptive_streaming_I1_apache1')\r\n .message('{{ .ID }} is {{ .Level }} Mean Requests Per Second: {{ index .Fields \"mean_RPS\" }}')\r\n .warn(lambda: \"mean_RPS\" > 0.2)\r\n .crit(lambda: \"mean_RPS\" > 0.5)\r\n .slack()\r\n .log( '\/tmp\/RPSLoad.log' )\r\n\r\n\/\/ Apache 2 rule\r\n\/\/ -------------\r\nvar a2Data = batch\r\n |query(''' SELECT mean(\"ReqPerSec\") AS \"mean_RPS\" FROM \"CLMCMetrics\".\"autogen\".\"apache\" WHERE \"ipendpoint\"='adaptive_streaming_I1_apache2' ''')\r\n .period(5s)\r\n .every(5s)\r\n\r\nvar a2Alert = a2Data\r\n |alert()\r\n .id('{{ .Name }}\/adaptive_streaming_I1_apache2')\r\n .message('{{ .ID }} is {{ .Level }} Mean Requests Per Second: {{ index .Fields \"mean_RPS\" }}')\r\n .warn(lambda: \"mean_RPS\" > 0.2)\r\n .crit(lambda: \"mean_RPS\" > 0.5)\r\n .slack()\r\n .log( '\/tmp\/RPSLoad.log' )", + + "status" : "enabled" +} \ No newline at end of file diff --git a/test/streaming/setup.sh b/test/streaming/setup.sh new file mode 100644 index 0000000000000000000000000000000000000000..35017f75de6d1b59a3d731a57b168e54e0dccc46 --- /dev/null +++ b/test/streaming/setup.sh @@ -0,0 +1,37 @@ +#!/bin/bash +#///////////////////////////////////////////////////////////////////////// +#// +#// (c) University of Southampton IT Innovation Centre, 2018 +#// +#// Copyright in this software belongs to University of Southampton +#// IT Innovation Centre of Gamma House, Enterprise Road, +#// Chilworth Science Park, Southampton, SO16 7NS, UK. +#// +#// This software may not be used, sold, licensed, transferred, copied +#// or reproduced in whole or in part in any manner or form or in or +#// on any media by any person other than in accordance with the terms +#// of the Licence Agreement supplied with the software, or otherwise +#// without the prior written consent of the copyright owners. +#// +#// This software is distributed WITHOUT ANY WARRANTY, without even the +#// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +#// PURPOSE, except where stated in the Licence Agreement supplied with +#// the software. +#// +#// Created By : Simon Crowle +#// Created Date : 14/02/2018 +#// Created for Project : FLAME +#// +#///////////////////////////////////////////////////////////////////////// + +# Set up Influx data source +curl -i -X POST -H "Content-Type: application/json" http://localhost:8888/chronograf/v1/sources -d @./influx.json + +# Set up Kapacitor +curl -i -X POST -H "Content-Type: application/json" http://localhost:8888/chronograf/v1/sources/1/kapacitors -d @./kapacitor.json + +# Set up rules +curl -i -X POST -H "Content-Type: application/json" http://localhost:9092/kapacitor/v1/tasks -d @./rules.json + +# Set up dashboard +curl -i -X POST -H "Content-Type: application/json" http://localhost:8888/chronograf/v1/dashboards -d @./dashboard.json \ No newline at end of file diff --git a/ubuntu-xenial-16.04-cloudimg-console.log b/ubuntu-xenial-16.04-cloudimg-console.log new file mode 100644 index 0000000000000000000000000000000000000000..57e7be7b6700e61cdb7d0439bee032f254ca6faa --- /dev/null +++ b/ubuntu-xenial-16.04-cloudimg-console.log @@ -0,0 +1,701 @@ +[ 0.000000] Initializing cgroup subsys cpuset +[ 0.000000] Initializing cgroup subsys cpu +[ 0.000000] Initializing cgroup subsys cpuacct +[ 0.000000] Linux version 4.4.0-103-generic (buildd@lcy01-amd64-001) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) ) #126-Ubuntu SMP Mon Dec 4 16:23:28 UTC 2017 (Ubuntu 4.4.0-103.126-generic 4.4.98) +[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-103-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 +[ 0.000000] KERNEL supported cpus: +[ 0.000000] Intel GenuineIntel +[ 0.000000] AMD AuthenticAMD +[ 0.000000] Centaur CentaurHauls +[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 +[ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers' +[ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers' +[ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers' +[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. +[ 0.000000] x86/fpu: Using 'lazy' FPU context switches. +[ 0.000000] e820: BIOS-provided physical RAM map: +[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable +[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved +[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007ffeffff] usable +[ 0.000000] BIOS-e820: [mem 0x000000007fff0000-0x000000007fffffff] ACPI data +[ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved +[ 0.000000] NX (Execute Disable) protection: active +[ 0.000000] SMBIOS 2.5 present. +[ 0.000000] Hypervisor detected: KVM +[ 0.000000] e820: last_pfn = 0x7fff0 max_arch_pfn = 0x400000000 +[ 0.000000] MTRR: Disabled +[ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too. +[ 0.000000] CPU MTRRs all blank - virtualized system. +[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC +[ 0.000000] found SMP MP-table at [mem 0x0009fff0-0x0009ffff] mapped at [ffff88000009fff0] +[ 0.000000] Scanning 1 areas for low memory corruption +[ 0.000000] RAMDISK: [mem 0x36ade000-0x37566fff] +[ 0.000000] ACPI: Early table checksum verification disabled +[ 0.000000] ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX ) +[ 0.000000] ACPI: XSDT 0x000000007FFF0030 00003C (v01 VBOX VBOXXSDT 00000001 ASL 00000061) +[ 0.000000] ACPI: FACP 0x000000007FFF00F0 0000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061) +[ 0.000000] ACPI: DSDT 0x000000007FFF0470 0021C8 (v02 VBOX VBOXBIOS 00000002 INTL 20100528) +[ 0.000000] ACPI: FACS 0x000000007FFF0200 000040 +[ 0.000000] ACPI: FACS 0x000000007FFF0200 000040 +[ 0.000000] ACPI: APIC 0x000000007FFF0240 000054 (v02 VBOX VBOXAPIC 00000001 ASL 00000061) +[ 0.000000] ACPI: SSDT 0x000000007FFF02A0 0001CC (v01 VBOX VBOXCPUT 00000002 INTL 20100528) +[ 0.000000] No NUMA configuration found +[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000007ffeffff] +[ 0.000000] NODE_DATA(0) allocated [mem 0x7ffeb000-0x7ffeffff] +[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 +[ 0.000000] kvm-clock: cpu 0, msr 0:7ffe3001, primary cpu clock +[ 0.000000] kvm-clock: using sched offset of 4856831536 cycles +[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns +[ 0.000000] Zone ranges: +[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] +[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000007ffeffff] +[ 0.000000] Normal empty +[ 0.000000] Device empty +[ 0.000000] Movable zone start for each node +[ 0.000000] Early memory node ranges +[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff] +[ 0.000000] node 0: [mem 0x0000000000100000-0x000000007ffeffff] +[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000007ffeffff] +[ 0.000000] ACPI: PM-Timer IO Port: 0x4008 +[ 0.000000] IOAPIC[0]: apic_id 1, version 32, address 0xfec00000, GSI 0-23 +[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) +[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) +[ 0.000000] Using ACPI (MADT) for SMP configuration information +[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs +[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] +[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff] +[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff] +[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff] +[ 0.000000] e820: [mem 0x80000000-0xfebfffff] available for PCI devices +[ 0.000000] Booting paravirtualized kernel on KVM +[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns +[ 0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:1 nr_node_ids:1 +[ 0.000000] PERCPU: Embedded 33 pages/cpu @ffff88007fc00000 s98200 r8192 d28776 u2097152 +[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes) +[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 515961 +[ 0.000000] Policy zone: DMA32 +[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-103-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 +[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) +[ 0.000000] Memory: 2034108K/2096696K available (8485K kernel code, 1295K rwdata, 3988K rodata, 1492K init, 1316K bss, 62588K reserved, 0K cma-reserved) +[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 +[ 0.000000] Hierarchical RCU implementation. +[ 0.000000] Build-time adjustment of leaf fanout to 64. +[ 0.000000] RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=1. +[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1 +[ 0.000000] NR_IRQS:33024 nr_irqs:256 16 +[ 0.000000] Console: colour VGA+ 80x25 +[ 0.000000] console [tty1] enabled +[ 0.000000] console [ttyS0] enabled +[ 0.000000] tsc: Detected 2790.942 MHz processor +[ 6.820923] Calibrating delay loop (skipped) preset value.. 5581.88 BogoMIPS (lpj=11163768) +[ 6.872814] pid_max: default: 32768 minimum: 301 +[ 6.905738] ACPI: Core revision 20150930 +[ 6.942521] ACPI: 2 ACPI AML tables successfully acquired and loaded +[ 6.979061] Security Framework initialized +[ 7.011675] Yama: becoming mindful. +[ 7.071177] AppArmor: AppArmor initialized +[ 7.166410] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) +[ 7.178841] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) +[ 7.313151] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes) +[ 7.422169] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes) +[ 7.492988] Initializing cgroup subsys io +[ 7.569156] Initializing cgroup subsys memory +[ 7.622255] Initializing cgroup subsys devices +[ 7.645187] Initializing cgroup subsys freezer +[ 7.648735] Initializing cgroup subsys net_cls +[ 7.677176] Initializing cgroup subsys perf_event +[ 7.808694] Initializing cgroup subsys net_prio +[ 7.892510] Initializing cgroup subsys hugetlb +[ 7.958966] Initializing cgroup subsys pids +[ 8.007048] CPU: Physical Processor ID: 0 +[ 8.077604] mce: CPU supports 0 MCE banks +[ 8.155008] process: using mwait in idle threads +[ 8.262262] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8 +[ 8.296702] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32, 1GB 0 +[ 8.337647] Freeing SMP alternatives memory: 32K +[ 8.443205] ftrace: allocating 32158 entries in 126 pages +[ 8.603519] smpboot: APIC(0) Converting physical 0 to logical package 0 +[ 8.709627] smpboot: Max logical packages: 1 +[ 8.720957] x2apic enabled +[ 8.783084] Switched APIC routing to physical x2apic. +[ 8.845314] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 +[ 8.974345] smpboot: CPU0: Intel(R) Core(TM) i7-3840QM CPU @ 2.80GHz (family: 0x6, model: 0x3a, stepping: 0x9) +[ 9.134046] Performance Events: unsupported p6 CPU model 58 no PMU driver, software events only. +[ 9.317671] KVM setup paravirtual spinlock +[ 9.381670] x86: Booted up 1 node, 1 CPUs +[ 9.425324] smpboot: Total of 1 processors activated (5581.88 BogoMIPS) +[ 9.496381] devtmpfs: initialized +[ 9.545276] evm: security.selinux +[ 9.626205] evm: security.SMACK64 +[ 9.662878] evm: security.SMACK64EXEC +[ 9.714906] evm: security.SMACK64TRANSMUTE +[ 9.763600] evm: security.SMACK64MMAP +[ 9.782243] evm: security.ima +[ 9.826657] evm: security.capability +[ 9.886394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns +[ 9.960672] futex hash table entries: 256 (order: 2, 16384 bytes) +[ 10.016477] pinctrl core: initialized pinctrl subsystem +[ 10.020131] RTC time: 16:47:28, date: 02/14/18 +[ 10.025015] NET: Registered protocol family 16 +[ 10.027243] cpuidle: using governor ladder +[ 10.058945] cpuidle: using governor menu +[ 10.092388] PCCT header not found. +[ 10.096519] ACPI: bus type PCI registered +[ 10.123141] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 +[ 10.168720] PCI: Using configuration type 1 for base access +[ 10.192204] ACPI: Added _OSI(Module Device) +[ 10.233786] ACPI: Added _OSI(Processor Device) +[ 10.237901] ACPI: Added _OSI(3.0 _SCP Extensions) +[ 10.266768] ACPI: Added _OSI(Processor Aggregator Device) +[ 10.329350] ACPI: Executed 1 blocks of module-level executable AML code +[ 10.340972] ACPI: Interpreter enabled +[ 10.391606] ACPI: (supports S0 S5) +[ 10.401763] ACPI: Using IOAPIC for interrupt routing +[ 10.486294] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug +[ 10.604478] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) +[ 10.670931] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI] +[ 10.734634] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM +[ 10.780341] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. +[ 10.878769] PCI host bridge to bus 0000:00 +[ 10.892031] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] +[ 10.912973] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] +[ 10.952857] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] +[ 10.987067] pci_bus 0000:00: root bus resource [mem 0x80000000-0xffdfffff window] +[ 11.005092] pci_bus 0000:00: root bus resource [bus 00-ff] +[ 11.034235] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] +[ 11.118375] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] +[ 11.240833] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] +[ 11.311527] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] +[ 11.398490] pci 0000:00:07.0: quirk: [io 0x4000-0x403f] claimed by PIIX4 ACPI +[ 11.469500] pci 0000:00:07.0: quirk: [io 0x4100-0x410f] claimed by PIIX4 SMB +[ 11.582089] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 9 10 *11) +[ 11.657824] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 10 *11) +[ 11.751746] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 *10 11) +[ 11.821558] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 *9 10 11) +[ 11.890007] ACPI: Enabled 2 GPEs in block 00 to 07 +[ 11.966411] vgaarb: setting as boot device: PCI:0000:00:02.0 +[ 11.968793] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none +[ 12.022919] vgaarb: loaded +[ 12.088775] vgaarb: bridge control possible 0000:00:02.0 +[ 12.135644] SCSI subsystem initialized +[ 12.196064] ACPI: bus type USB registered +[ 12.291597] usbcore: registered new interface driver usbfs +[ 12.368677] usbcore: registered new interface driver hub +[ 12.456256] usbcore: registered new device driver usb +[ 12.475525] PCI: Using ACPI for IRQ routing +[ 12.492120] NetLabel: Initializing +[ 12.525285] NetLabel: domain hash size = 128 +[ 12.560259] NetLabel: protocols = UNLABELED CIPSOv4 +[ 12.562459] NetLabel: unlabeled traffic allowed by default +[ 12.620310] amd_nb: Cannot enumerate AMD northbridges +[ 12.667920] clocksource: Switched to clocksource kvm-clock +[ 12.747554] AppArmor: AppArmor Filesystem Enabled +[ 12.800079] pnp: PnP ACPI init +[ 12.867567] pnp: PnP ACPI: found 3 devices +[ 12.951790] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns +[ 13.098812] NET: Registered protocol family 2 +[ 13.233490] TCP established hash table entries: 16384 (order: 5, 131072 bytes) +[ 13.425468] TCP bind hash table entries: 16384 (order: 6, 262144 bytes) +[ 13.559724] TCP: Hash tables configured (established 16384 bind 16384) +[ 13.588052] UDP hash table entries: 1024 (order: 3, 32768 bytes) +[ 13.612081] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) +[ 13.724809] NET: Registered protocol family 1 +[ 13.790533] pci 0000:00:00.0: Limiting direct PCI/PCI transfers +[ 13.881607] pci 0000:00:01.0: Activating ISA DMA hang workarounds +[ 13.955048] Unpacking initramfs... +[ 18.175690] Freeing initrd memory: 10788K +[ 18.189370] RAPL PMU detected, API unit is 2^-32 Joules, 3 fixed counters 10737418240 ms ovfl timer +[ 18.341494] hw unit of domain pp0-core 2^-0 Joules +[ 18.455523] hw unit of domain package 2^-0 Joules +[ 18.527660] hw unit of domain pp1-gpu 2^-0 Joules +[ 18.594271] platform rtc_cmos: registered platform RTC device (no PNP device found) +[ 18.758489] Scanning for low memory corruption every 60 seconds +[ 18.827068] audit: initializing netlink subsys (disabled) +[ 18.929141] audit: type=2000 audit(1518626852.691:1): initialized +[ 18.997975] Initialise system trusted keyring +[ 19.065443] HugeTLB registered 2 MB page size, pre-allocated 0 pages +[ 19.136576] zbud: loaded +[ 19.175213] VFS: Disk quotas dquot_6.6.0 +[ 19.225365] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) +[ 19.334480] squashfs: version 4.0 (2009/01/31) Phillip Lougher +[ 19.376939] fuse init (API version 7.23) +[ 19.405286] Key type big_key registered +[ 19.480909] Allocating IMA MOK and blacklist keyrings. +[ 19.581231] Key type asymmetric registered +[ 19.615052] tsc: Refined TSC clocksource calibration: 2792.605 MHz +[ 19.665781] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2840f6c7c4e, max_idle_ns: 440795246688 ns +[ 19.713334] Asymmetric key parser 'x509' registered +[ 19.719780] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) +[ 19.855219] io scheduler noop registered +[ 19.898163] io scheduler deadline registered (default) +[ 20.003150] io scheduler cfq registered +[ 20.077061] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 +[ 20.144781] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 +[ 20.194184] ACPI: AC Adapter [AC] (on-line) +[ 20.250490] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 +[ 20.357192] ACPI: Power Button [PWRF] +[ 20.414762] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1 +[ 20.499799] ACPI: Sleep Button [SLPF] +[ 20.556531] ACPI: Battery Slot [BAT0] (battery present) +[ 20.658847] GHES: HEST is not enabled! +[ 20.697605] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled +я[ 20.863985] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A +[ 20.876229] Linux agpgart interface v0.103 +[ 20.903210] loop: module loaded +[ 20.985839] scsi host0: ata_piix +[ 21.040592] scsi host1: ata_piix +[ 21.100628] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xd000 irq 14 +[ 21.218598] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xd008 irq 15 +[ 21.316581] libphy: Fixed MDIO Bus: probed +[ 21.379771] tun: Universal TUN/TAP device driver, 1.6 +[ 21.458132] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> +[ 21.576223] PPP generic driver version 2.4.2 +[ 21.613913] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver +[ 21.686323] ehci-pci: EHCI PCI platform driver +[ 21.735989] ehci-platform: EHCI generic platform driver +[ 21.837970] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver +[ 21.894511] ohci-pci: OHCI PCI platform driver +[ 21.955453] ohci-platform: OHCI generic platform driver +[ 22.004288] uhci_hcd: USB Universal Host Controller Interface driver +[ 22.011463] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12 +[ 22.066774] serio: i8042 KBD port at 0x60,0x64 irq 1 +[ 22.130073] serio: i8042 AUX port at 0x60,0x64 irq 12 +[ 22.158400] mousedev: PS/2 mouse device common for all mice +[ 22.173761] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 +[ 22.180946] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 +[ 22.198353] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram +[ 22.314572] i2c /dev entries driver +[ 22.373520] device-mapper: uevent: version 1.0.3 +[ 22.452968] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com +[ 22.605883] ledtrig-cpu: registered to indicate activity on CPUs +[ 22.706306] NET: Registered protocol family 10 +[ 22.753940] NET: Registered protocol family 17 +[ 22.763341] Key type dns_resolver registered +[ 22.797980] microcode: CPU0 sig=0x306a9, pf=0x2, revision=0x19 +[ 22.857518] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba +[ 23.013750] registered taskstats version 1 +[ 23.060112] Loading compiled-in X.509 certificates +[ 23.122766] Loaded X.509 cert 'Build time autogenerated kernel key: 6495e09daeacef0cade9c1ea2246b74b6c79cd53' +[ 23.248918] zswap: loaded using pool lzo/zbud +[ 23.328157] Key type trusted registered +[ 23.394482] Key type encrypted registered +[ 23.445789] AppArmor: AppArmor sha1 policy hashing enabled +[ 23.529522] ima: No TPM chip found, activating TPM-bypass! +[ 23.534838] evm: HMAC attrs: 0x1 +[ 23.541419] Magic number: 6:958:792 +[ 23.577273] rtc_cmos rtc_cmos: setting system clock to 2018-02-14 16:47:42 UTC (1518626862) +[ 23.702417] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found +[ 23.771315] EDD information not available. +[ 23.841700] Freeing unused kernel memory: 1492K +[ 23.888423] Write protecting the kernel read-only data: 14336k +[ 23.903011] Freeing unused kernel memory: 1744K +[ 23.934694] Freeing unused kernel memory: 108K +Loading, please wait... +[ 23.981846] random: udevadm: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +starting version 229 +[ 24.028143] random: systemd-udevd: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.045133] random: systemd-udevd: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.049322] random: systemd-udevd: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.130890] random: udevadm: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.220569] random: systemd-udevd: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.377740] random: udevadm: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.443671] random: udevadm: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.454562] random: udevadm: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.463868] random: udevadm: uninitialized urandom read (16 bytes read, 4 bits of entropy available) +[ 24.665421] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI +[ 24.715688] e1000: Copyright (c) 1999-2006 Intel Corporation. +[ 24.762082] Fusion MPT base driver 3.04.20 +[ 24.817727] Copyright (c) 1999-2008 LSI Corporation +[ 25.002691] AVX version of gcm_enc/dec engaged. +[ 25.037142] AES CTR mode by8 optimization enabled +[ 25.099683] Fusion MPT SPI Host driver 3.04.20 +[ 25.162256] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 +[ 25.733783] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 02:63:8e:2c:ef:cd +[ 25.866327] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection +[ 25.912567] mptbase: ioc0: Initiating bringup +[ 26.052518] ioc0: LSI53C1030 A0: Capabilities={Initiator} +[ 26.318287] scsi host2: ioc0: LSI53C1030 A0, FwRev=00000000h, Ports=1, MaxQ=256, IRQ=20 +[ 26.582890] scsi 2:0:0:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 +[ 26.720675] scsi target2:0:0: Beginning Domain Validation +[ 26.829153] scsi target2:0:0: Domain Validation skipping write tests +[ 26.981708] scsi target2:0:0: Ending Domain Validation +[ 27.372850] scsi target2:0:0: asynchronous +[ 27.482788] scsi 2:0:1:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 +[ 27.574199] scsi target2:0:1: Beginning Domain Validation +[ 27.673212] e1000 0000:00:08.0 eth1: (PCI:33MHz:32-bit) 08:00:27:36:31:ca +[ 27.739434] e1000 0000:00:08.0 eth1: Intel(R) PRO/1000 Network Connection +[ 27.916498] scsi target2:0:1: Domain Validation skipping write tests +[ 27.997927] scsi target2:0:1: Ending Domain Validation +[ 28.003253] floppy0: no floppy controllers found +[ 28.011283] e1000 0000:00:08.0 enp0s8: renamed from eth1 +[ 28.047073] e1000 0000:00:03.0 enp0s3: renamed from eth0 +[ 28.085073] scsi target2:0:1: asynchronous +[ 28.117404] sd 2:0:0:0: Attached scsi generic sg0 type 0 +[ 28.179662] sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB) +[ 28.194571] sd 2:0:0:0: [sda] Write Protect is off +[ 28.197557] sd 2:0:0:0: [sda] Incomplete mode parameter data +[ 28.299030] sd 2:0:0:0: [sda] Assuming drive cache: write through +[ 28.431599] sd 2:0:1:0: [sdb] 20480 512-byte logical blocks: (10.5 MB/10.0 MiB) +[ 28.514991] sd 2:0:1:0: Attached scsi generic sg1 type 0 +[ 28.611293] sd 2:0:1:0: [sdb] Write Protect is off +[ 28.656021] sd 2:0:1:0: [sdb] Incomplete mode parameter data +[ 28.773130] sd 2:0:1:0: [sdb] Assuming drive cache: write through +[ 28.894910] sda: sda1 +[ 28.934387] sd 2:0:0:0: [sda] Attached SCSI disk +[ 28.998377] sd 2:0:1:0: [sdb] Attached SCSI disk +Begin: Loading e[ 30.736619] md: linear personality registered for level -1 +ssential drivers ... [ 30.776191] md: multipath personality registered for level -4 +[ 30.824005] md: raid0 personality registered for level 0 +[ 30.881385] md: raid1 personality registered for level 1 +[ 31.032162] raid6: sse2x1 gen() 3558 MB/s +[ 31.144338] raid6: sse2x1 xor() 2513 MB/s +[ 31.316340] raid6: sse2x2 gen() 4556 MB/s +[ 31.480120] raid6: sse2x2 xor() 3148 MB/s +[ 31.608064] raid6: sse2x4 gen() 4679 MB/s +[ 31.728014] raid6: sse2x4 xor() 2562 MB/s +[ 31.758971] raid6: using algorithm sse2x4 gen() 4679 MB/s +[ 31.762394] raid6: .... xor() 2562 MB/s, rmw enabled +[ 31.785371] raid6: using ssse3x2 recovery algorithm +[ 31.813271] xor: automatically using best checksumming function: +[ 31.876116] avx : 7291.000 MB/sec +[ 31.890854] async_tx: api initialized (async) +[ 31.941169] md: raid6 personality registered for level 6 +[ 31.955470] md: raid5 personality registered for level 5 +[ 31.977972] md: raid4 personality registered for level 4 +[ 32.009698] md: raid10 personality registered for level 10 +done. +Begin: Running /scripts/init-premount ... done. +Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. +Begin: Running /scripts/local-premount ... [ 32.110527] Btrfs loaded +Scanning for Btrfs filesystems +done. +Warning: fsck not present, so skipping root file system +[ 32.225570] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) +done. +Begin: Running /scripts/local-bottom ... done. +Begin: Running /scripts/init-bottom ... done. +[ 32.765628] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) +[ 32.938596] systemd[1]: Detected virtualization oracle. +[ 32.983662] systemd[1]: Detected architecture x86-64. + +Welcome to [1mUbuntu 16.04.3 LTS[0m! + +[ 33.065321] systemd[1]: Set hostname to <ubuntu>. +[ 33.120709] systemd[1]: Initializing machine ID from random generator. +[ 33.159868] systemd[1]: Installed transient /etc/machine-id file. +[ 33.439066] random: nonblocking pool is initialized +[ 33.998844] systemd[1]: Listening on Journal Audit Socket. +[[0;32m OK [0m] Listening on Journal Audit Socket. +[ 34.108554] systemd[1]: Started Forward Password Requests to Wall Directory Watch. +[[0;32m OK [0m] Started Forward Password Requests to Wall Directory Watch. +[ 34.265679] systemd[1]: Created slice System Slice. +[[0;32m OK [0m] Created slice System Slice. +[ 34.340541] systemd[1]: Reached target Swap. +[[0;32m OK [0m] Reached target Swap. +[ 34.432845] systemd[1]: Listening on Syslog Socket. +[[0;32m OK [0m] Listening on Syslog Socket. +[ 34.509512] systemd[1]: Created slice User and Session Slice. +[[0;32m OK [0m] Created slice User and Session Slice. +[ 34.600793] systemd[1]: Reached target Slices. +[[0;32m OK [0m] Reached target Slices. +[ 34.684404] systemd[1]: Listening on Journal Socket. +[[0;32m OK [0m] Listening on Journal Socket. +[ 34.719980] systemd[1]: Starting Set console keymap... + Starting Set console keymap... +[ 34.829813] systemd[1]: Listening on LVM2 metadata daemon socket. +[[0;32m OK [0m] Listening on LVM2 metadata daemon socket. +[ 34.968871] systemd[1]: Started Trigger resolvconf update for networkd DNS. +[[0;32m OK [0m] Started Trigger resolvconf update for networkd DNS. +[ 35.245379] systemd[1]: Listening on udev Kernel Socket. +[[0;32m OK [0m] Listening on udev Kernel Socket. +[ 35.310228] systemd[1]: Starting Uncomplicated firewall... + Starting Uncomplicated firewall... +[ 35.363841] systemd[1]: Starting Load Kernel Modules... + Starting Load Kernel Modules... +[ 35.450687] Loading iSCSI transport class v2.0-870. +[ 35.487350] systemd[1]: Mounting Huge Pages File System... + Mounting Huge Pages File System... +[ 35.547267] systemd[1]: Listening on Device-mapper event daemon FIFOs. +[[0;32m OK [0m] Listening on Device-mapper event daemon FIFOs. +[ 35.615299] systemd[1]: Listening on LVM2 poll daemon socket. +[[0;32m OK [0m] Listening on LVM2 poll daemon socket. +[ 35.646406] iscsi: registered transport (tcp) +[ 35.679240] systemd[1]: Listening on Journal Socket (/dev/log). +[[0;32m OK [0m] Listening on Journal Socket (/dev/log). +[ 35.735101] systemd[1]: Mounting Debug File System... + Mounting Debug File System... +[ 35.785934] systemd[1]: Listening on udev Control Socket. +[[0;32m OK [0m] Listening on udev Control Socket. +[ 35.817695] systemd[1]: Starting Journal Service... +[ 35.843369] iscsi: registered transport (iser) + Starting Journal Service... +[ 35.877719] systemd[1]: Starting Nameserver information manager... + Starting Nameserver information manager... +[ 35.985830] systemd[1]: Starting Remount Root and Kernel File Systems... + [ 36.156402] EXT4-fs (sda1): re-mounted. Opts: (null) +Starting Remount Root and Kernel File Systems... +[ 36.293620] systemd[1]: Mounting POSIX Message Queue File System... + Mounting POSIX Message Queue File System... +[ 36.434058] systemd[1]: Starting Create list of required static device nodes for the current kernel... + Starting Create list of required st... nodes for the current kernel... +[ 36.678617] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling... + Starting Monitoring of LVM2 mirrors... dmeventd or progress polling... +[ 36.804396] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. +[[0;32m OK [0m] Listening on /dev/initctl Compatibility Named Pipe. +[ 36.965039] systemd[1]: Created slice system-serial\x2dgetty.slice. +[[0;32m OK [0m] Created slice system-serial\x2dgetty.slice. +[ 37.008358] systemd[1]: Reached target Encrypted Volumes. +[[0;32m OK [0m] Reached target Encrypted Volumes. +[ 37.068964] systemd[1]: Reached target User and Group Name Lookups. +[[0;32m OK [0m] Reached target User and Group Name Lookups. +[ 37.205194] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. +[[0;32m OK [0m] Set up automount Arbitrary Executab...ats File System Automount Point. +[ 37.527385] systemd[1]: Mounted POSIX Message Queue File System. +[[0;32m OK [0m] Mounted POSIX Message Queue File System. +[ 37.724365] systemd[1]: Mounted Debug File System. +[[0;32m OK [0m] Mounted Debug File System. +[ 37.904999] systemd[1]: Mounted Huge Pages File System. +[[0;32m OK [0m] Mounted Huge Pages File System. +[ 37.992921] systemd[1]: Started Journal Service. +[[0;32m OK [0m] Started Journal Service. +[[0;32m OK [0m] Started Set console keymap. +[[0;32m OK [0m] Started Uncomplicated firewall. +[[0;32m OK [0m] Started Load Kernel Modules. +[[0;32m OK [0m] Started Remount Root and Kernel File Systems. +[[0;32m OK [0m] Started Create list of required sta...ce nodes for the current kernel. +[[0;32m OK [0m] Started Nameserver information manager. +[[0;32m OK [0m] Started LVM2 metadata daemon. + Starting Create Static Device Nodes in /dev... + Starting udev Coldplug all Devices... + Starting Load/Save Random Seed... + Starting Initial cloud-init job (pre-networking)... + Mounting FUSE Control File System... + Starting Apply Kernel Variables... + Starting Flush Journal to Persistent Storage... +[[0;32m OK [0m] Mounted FUSE Control File System. +[[0;32m OK [0m] Started Monitoring of LVM2 mirrors,...ng dmeventd or progress polling. +[[0;32m OK [0m] Started Create Static Device Nodes in /dev. +[[0;32m OK [0m] Started Load/Save Random Seed. +[[0;32m OK [0m] Started Apply Kernel Variables. +[[0;32m OK [0m] Started udev Coldplug all Devices. +[[0;32m OK [0m] Started Flush Journal to Persistent Storage. + Starting udev Kernel Device Manager... +[[0;32m OK [0m] Started udev Kernel Device Manager. +[[0;32m OK [0m] Reached target Local File Systems (Pre). +[[0;32m OK [0m] Reached target Local File Systems. + Starting Create Volatile Files and Directories... + Starting LSB: AppArmor initialization... + Starting Commit a transient machine-id on disk... + Starting Set console font and keymap... + Starting Tell Plymouth To Write Out Runtime Data... +[[0;32m OK [0m] Started Dispatch Password Requests to Console Directory Watch. +[[0;32m OK [0m] Started Create Volatile Files and Directories. +[[0;32m OK [0m] Started Commit a transient machine-id on disk. +[[0;32m OK [0m] Started Tell Plymouth To Write Out Runtime Data. +[[0;32m OK [0m] Reached target System Time Synchronized. + Starting Update UTMP about System Boot/Shutdown... +[[0;32m OK [0m] Started Update UTMP about System Boot/Shutdown. +[[0;32m OK [0m] Found device /dev/ttyS0. +[[0;32m OK [0m] Started Set console font and keymap. +[[0;32m OK [0m] Created slice system-getty.slice. +[[0;32m OK [0m] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. +[ 32.768512] cloud-init[467]: Cloud-init v. 17.1 running 'init-local' at Wed, 14 Feb 2018 16:48:02 +0000. Up 31.44 seconds. +[[0;32m OK [0m] Started Initial cloud-init job (pre-networking). +[[0;32m OK [0m] Reached target Network (Pre). +[[0;32m OK [0m] Started LSB: AppArmor initialization. + Starting Raise network interfaces... +[[0;32m OK [0m] Started Raise network interfaces. +[[0;32m OK [0m] Reached target Network. + Starting Initial cloud-init job (metadata service crawler)... +[ 37.770421] cloud-init[971]: Cloud-init v. 17.1 running 'init' at Wed, 14 Feb 2018 16:48:06 +0000. Up 35.72 seconds. +[ 37.808765] cloud-init[971]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++ +[ 37.836938] cloud-init[971]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ +[ 37.851616] cloud-init[971]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | +[ 37.879919] cloud-init[971]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ +[ 37.908801] cloud-init[971]: ci-info: | enp0s3 | True | 10.0.2.15 | 255.255.255.0 | . | 02:63:8e:2c:ef:cd | +[[0;32m OK [0m[ 37.932676] cloud-init[971]: ci-info: | enp0s3 | True | fe80::63:8eff:fe2c:efcd/64 | . | link | 02:63:8e:2c:ef:cd | +[ 37.932865] cloud-init[971]: ci-info: | enp0s8 | False | . | . | . | 08:00:27:36:31:ca | +[ 37.933043] cloud-init[971]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . | +[ 37.933203] cloud-init[971]: ci-info: | lo | True | ::1/128 | . | host | . | +[ 37.933359] cloud-init[971]: ci-info: +--------+-------+----------------------------+---------------+-------+-------------------+ +[ 37.933514] cloud-init[971]: ci-info: +++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++ +[ 37.934133] cloud-init[971]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ +[ 37.934297] cloud-init[971]: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | +[ 37.934453] cloud-init[971]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ +[ 37.934647] cloud-init[971]: ci-info: | 0 | 0.0.0.0 | 10.0.2.2 | 0.0.0.0 | enp0s3 | UG | +[ 37.934802] cloud-init[971]: ci-info: | 1 | 10.0.2.0 | 0.0.0.0 | 255.255.255.0 | enp0s3 | U | +[ 37.934953] cloud-init[971]: ci-info: +-------+-------------+----------+---------------+-----------+-------+ +[ 37.935136] cloud-init[971]: Generating public/private rsa key pair. +[ 37.935293] cloud-init[971]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key. +[ 37.935445] cloud-init[971]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub. +[ 37.936041] cloud-init[971]: The key fingerprint is: +[ 37.936196] cloud-init[971]: SHA256:KjfddkNVb2i5elWC21/M/Mb/0+WLuvTkCmv88n6PoUI root@ubuntu-xenial +[ 37.936350] cloud-init[971]: The key's randomart image is: +] Started Initial cloud-init job (metadata service crawler). +[ 37.936654] cloud-init[971]: +---[RSA 2048]----+ +[ 38.580505] [[0;32m OK [0m] Reached target Network is Online. + Starting iSCSI initiator daemon (iscsid)... +[[0;32m OK [0m] Reached target Cloud-config availability. +[[0;32m OK [0m] Reached target System Initialization. +[[0;32m OK [0m] Started Daily Cleanup of Temporary Directories. +[[0;32m OK [0m] Started Daily apt download activities. +[[0;32m OK [0m] Started Daily apt upgrade and clean activities. +cloud-init[971]: | .| +[[0;32m OK [0m] Started ACPI Events Check.[ 38.696387] cloud-init[971]: | . +.| +[ 38.700346] cloud-init[971]: | . * +| +[ 38.700440] cloud-init[971]: | = B.| +[ 38.700518] cloud-init[971]: | S o o *| +[ 38.700593] cloud-init[971]: | o E . . ++| +[ 38.700664] cloud-init[971]: | . + +.o.+o..B| +[ 38.700771] cloud-init[971]: | o . *+.=++o+| +[ 38.700858] cloud-init[971]: | ..*O==.o*| +[ 38.700937] cloud-init[971]: +----[SHA256]-----+ +[ 38.701009] cloud-init[971]: Generating public/private dsa key pair. +[ 38.701083] cloud-init[971]: Your identification has been saved in /etc/ssh/ssh_host_dsa_key. +[ 38.701156] cloud-init[971]: Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub. +[ 38.701280] cloud-init[971]: The key fingerprint is: +[ 38.701370] cloud-init[971]: SHA256:rq0G8/aWUv10dlzyvKE7tHT+a7oLCjIZZ7TjkzMICUQ root@ubuntu-xenial +[ 38.701444] cloud-init[971]: The key's randomart image is: +[ 38.701518] cloud-init[971]: +---[DSA 1024]----+ +[ 38.701587] cloud-init[971]: |.E | +[ 38.701658] cloud-init[971]: |. | +[ 38.701732] cloud-init[971]: | . . | +[ 38.701884] cloud-init[971]: | . . . . . .| +[ 38.701962] cloud-init[971]: | o . =S. =.| +[ 38.702036] cloud-init[971]: | + B.+ . .ooo=| +[ 38.702107] cloud-init[971]: | O O.. +oo=.o| +[ 38.702180] cloud-init[971]: | BoB . o+ + | +[ 38.702468] cloud-init[971]: | oo=o. =B.+| +[ 38.702604] cloud-init[971]: +----[SHA256]-----+ +[ 38.702723] cloud-init[971]: Generating public/private ecdsa key pair. +[ 38.702876] cloud-init[971]: Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key. +[ 38.703007] cloud-init[971]: Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub. +[ 38.703134] cloud-init[971]: The key fingerprint is: +[ 38.703333] cloud-init[971]: SHA256:XK20VMNkpev49SBn+sq66Hilf5znG6tJNczxukpWIjI root@ubuntu-xenial +[ 38.703487] cloud-init[971]: The key's randomart image is: +[ 38.703605] cloud-init[971]: +---[ECDSA 256]---+ +[ 38.703728] cloud-init[971]: | o=.. | +[ 38.703902] cloud-init[971]: | +.o | +[ 38.704029] cloud-init[971]: | + o . | +[ 38.704125] cloud-init[971]: | . + o + o | + +[ 38.704442] cloud-init[971]: | E + o * .| +[[0;32m OK [0m] Reached target Paths.[ 39.372393] cloud-init[971]: | o.+ + o | +[ 39.372486] cloud-init[971]: | o..*.B | +[ 39.372561] cloud-init[971]: | .o. *+B.* | +[ 39.372632] cloud-init[971]: | .oo.++OB*..| +[ 39.372705] cloud-init[971]: +----[SHA256]-----+ +[ 39.372788] cloud-init[971]: Generating public/private ed25519 key pair. +[ 39.372861] cloud-init[971]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key. +[ 39.372978] cloud-init[971]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub. +[ 39.373055] cloud-init[971]: The key fingerprint is: +[ 39.373126] cloud-init[971]: SHA256:nf/QSWFnTfBN+DZtyQs6uJNRnaGmNcQgmSfeFAq2Ab8 root@ubuntu-xenial +[ 39.373199] cloud-init[971]: The key's randomart image is: +[ 39.373272] cloud-init[971]: +--[ED25519 256]--+ +[ 39.373343] cloud-init[971]: | ..+ .oo+ .oo| +[ 39.373415] cloud-init[971]: | o ++oo o ..+o| +[ 39.373486] cloud-init[971]: | o..= . o *.O| +[ 39.373558] cloud-init[971]: | .. o B = B=| +[ 39.373629] cloud-init[971]: | E S O o ooo| +[ 39.373707] cloud-init[971]: | + + o o | +[ 39.373780] cloud-init[971]: | + + o | +[ 39.373852] cloud-init[971]: | + o | +[ 39.374317] cloud-init[971]: | . . | +[ 39.374400] cloud-init[971]: +----[SHA256]-----+ + +[[0;32m OK [0m] Listening on ACPID Listen Socket. +[[0;32m OK [0m] Listening on D-Bus System Message Bus Socket. + Starting LXD - unix socket. +[[0;32m OK [0m] Started Timer to automatically refresh installed snaps. +[[0;32m OK [0m] Reached target Timers. +[[0;32m OK [0m] Listening on UUID daemon activation socket. + Starting Socket activation for snappy daemon. +[[0;32m OK [0m] Listening on LXD - unix socket. +[[0;32m OK [0m] Listening on Socket activation for snappy daemon. +[[0;32m OK [0m] Started iSCSI initiator daemon (iscsid). + Starting Login to default iSCSI targets... +[[0;32m OK [0m] Reached target Sockets. +[[0;32m OK [0m] Reached target Basic System. + Starting Apply the settings specified in cloud-config... +[[0;32m OK [0m] Started Unattended Upgrades Shutdown. + Starting /etc/rc.local Compatibility... + Starting Accounts Service... + Starting LSB: Record successful boot for GRUB... + Starting Login Service... +[[0;32m OK [0m] Started D-Bus System Message Bus. + Starting System Logging Service... +[[0;32m OK [0m] Started FUSE filesystem for LXC. + Starting Pollinate to seed the pseudo random number generator... + Starting LSB: MD monitoring daemon... +[[0;32m OK [0m] Started Deferred execution scheduler. +[[0;32m OK [0m] Started Regular background program processing daemon. +[[0;32m OK [0m] Started ACPI event daemon. + Starting Snappy daemon... + Starting LXD - container startup/shutdown... +[[0;32m OK [0m] Started /etc/rc.local Compatibility. +[[0;32m OK [0m] Started System Logging Service. +[[0;32m OK [0m] Started Login to default iSCSI targets. +[[0;32m OK [0m] Started LSB: Record successful boot for GRUB. +[[0;32m OK [0m] Started Login Service. + Starting Authenticate and Authorize Users to Run Privileged Tasks... +[[0;32m OK [0m] Reached target Remote File Systems (Pre). +[[0;32m OK [0m] Reached target Remote File Systems. + Starting LSB: VirtualBox Linux Additions... + Starting LSB: automatic crash report generation... + Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"... + Starting LSB: daemon to balance interrupts for SMP systems... + Starting Permit User Sessions... +[[0;32m OK [0m] Started LSB: MD monitoring daemon. +[[0;32m OK [0m] Started Permit User Sessions. + Starting Hold until boot process finishes up... + Starting Terminate Plymouth Boot Screen... +[[0;32m OK [0m] Started LSB: automatic crash report generation. +[[0;32m OK [0m] Started LSB: Set the CPU Frequency Scaling governor to "ondemand". +[[0;32m OK [0m] Started Hold until boot process finishes up. +[[0;32m OK [0m] Started Terminate Plymouth Boot Screen. +[[0;32m OK [0m] Started LSB: daemon to balance interrupts for SMP systems. +[[0;32m OK [0m] Started Serial Getty on ttyS0. + Starting Set console scheme... +[[0;32m OK [0m] Started Getty on tty1. +[[0;32m OK [0m] Reached target Login Prompts. +[[0;32m OK [0m] Started Authenticate and Authorize Users to Run Privileged Tasks. +[[0;32m OK [0m] Started Set console scheme. +[[0;32m OK [0m] Started Accounts Service. +[[0;32m OK [0m] Started LSB: VirtualBox Linux Additions. +[ 43.416337] cloud-init[1077]: Generating locales (this might take a while)... +[[0;32m OK [0m] Started Snappy daemon. +[[0;32m OK [0m] Started Pollinate to seed the pseudo random number generator. +[[0;32m OK [0m] Started LXD - container startup/shutdown. + Starting OpenBSD Secure Shell server... +[[0;32m OK [0m] Started OpenBSD Secure Shell server. +[[0;32m OK [0m] Reached target Multi-User System. +[[0;32m OK [0m] Reached target Graphical Interface. + Starting Update UTMP about System Runlevel Changes... +[[0;32m OK [0m] Started Update UTMP about System Runlevel Changes. +[ 46.716207] cloud-init[1077]: en_US.UTF-8... done +[ 46.777313] cloud-init[1077]: Generation complete. + +Ubuntu 16.04.3 LTS ubuntu-xenial ttyS0 + +ubuntu-xenial login: [ 48.810107] cloud-init[1077]: Cloud-init v. 17.1 running 'modules:config' at Wed, 14 Feb 2018 16:48:13 +0000. Up 42.44 seconds. +ci-info: no authorized ssh keys fingerprints found for user ubuntu. +<14>Feb 14 16:48:21 ec2: +<14>Feb 14 16:48:21 ec2: ############################################################# +<14>Feb 14 16:48:21 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS----- +<14>Feb 14 16:48:21 ec2: 1024 SHA256:rq0G8/aWUv10dlzyvKE7tHT+a7oLCjIZZ7TjkzMICUQ root@ubuntu-xenial (DSA) +<14>Feb 14 16:48:21 ec2: 256 SHA256:XK20VMNkpev49SBn+sq66Hilf5znG6tJNczxukpWIjI root@ubuntu-xenial (ECDSA) +<14>Feb 14 16:48:21 ec2: 256 SHA256:nf/QSWFnTfBN+DZtyQs6uJNRnaGmNcQgmSfeFAq2Ab8 root@ubuntu-xenial (ED25519) +<14>Feb 14 16:48:21 ec2: 2048 SHA256:KjfddkNVb2i5elWC21/M/Mb/0+WLuvTkCmv88n6PoUI root@ubuntu-xenial (RSA) +<14>Feb 14 16:48:21 ec2: -----END SSH HOST KEY FINGERPRINTS----- +<14>Feb 14 16:48:21 ec2: ############################################################# +-----BEGIN SSH HOST KEY KEYS----- +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM6vDdoXYBj6YmVI59J18+f04kXClwQuDTEnIB+2IKWzPL+202YeM3QYJY6ParGga6vZTFvv+kUR2RwX666/2Dc= root@ubuntu-xenial +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJgEaK1vnUbXHHRPo0g+MqTWYUdVvoZjnSpUd1bLaAlT root@ubuntu-xenial +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMzq17pkJA8H69r0a7SdjmitoLL7H5n3qexWnDsi/Z1Vt440Bl4ISUfvI7eJZz/ctrU/PagaTWyIgLJK++MiHFVR1EQySvvCbOKgtrD7MjMyB2HmHyNmS+oJcLblUrrT2s392guNVSSLGoqjqXYM7SEVq2qrQW1fsNau6wu8CT+sBh09e0KIZn3/GcWxQJF/onatKYvKSDyS33b7MdOHpyUOPwvgJt1rHtAgqyd1Ih+TVSt34w++OAsUN5qHtteyoU42I/bHtvx/W4yhKUbBlfSjDUBlR+IBGqTt8huGUPN0mfJwwVEM6qUGLHY+tAS5oN4Mgar6FXLtSmZdmL1jZ1 root@ubuntu-xenial +-----END SSH HOST KEY KEYS----- +[ 50.993590] cloud-init[1453]: Cloud-init v. 17.1 running 'modules:final' at Wed, 14 Feb 2018 16:48:21 +0000. Up 50.17 seconds. +[ 50.993935] cloud-init[1453]: ci-info: no authorized ssh keys fingerprints found for user ubuntu. +[ 50.994223] cloud-init[1453]: Cloud-init v. 17.1 finished at Wed, 14 Feb 2018 16:48:21 +0000. Datasource DataSourceNoCloud [seed=/dev/sdb][dsmode=net]. Up 50.95 seconds