Skip to content

[7.x](backport #26907) Use MustAddMetricSet in all metricsets#26959

Merged
jsoriano merged 1 commit into7.xfrom
mergify/bp/7.x/pr-26907
Jul 20, 2021
Merged

[7.x](backport #26907) Use MustAddMetricSet in all metricsets#26959
jsoriano merged 1 commit into7.xfrom
mergify/bp/7.x/pr-26907

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Jul 19, 2021

This is an automatic backport of pull request #26907 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

@mergify mergify bot added the backport label Jul 19, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 19, 2021
@jsoriano jsoriano added the Team:Integrations Label for the Integrations team label Jul 19, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 19, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jul 19, 2021

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-07-19T17:32:42.636+0000

  • Duration: 92 min 15 sec

  • Commit: e38c12b

Test stats 🧪

Test Results
Failed 1
Passed 230
Skipped 16
Total 247

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

Expand to view the tests failures

test_dashboards – metricbeat.tests.system.test_base.Test
    Expand to view the error details

     AssertionError: Error output: 2021-07-19T18:43:15.697Z	INFO	instance/beat.go:665	Home path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards] Config path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards] Data path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data] Logs path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/logs]
      2021-07-19T18:43:15.697Z	DEBUG	[beat]	instance/beat.go:723	Beat metadata path: /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data/meta.json
      2021-07-19T18:43:15.702Z	INFO	instance/beat.go:673	Beat ID: e31d7ba4-d92c-40b2-8954-c428deba0456
      2021-07-19T18:43:15.702Z	INFO	[beat]	instance/beat.go:1014	Beat info	{"system_info": {"beat": {"path": {"config": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards", "data": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data", "home": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards", "logs": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/logs"}, "type": "metricbeat", "uuid": "e31d7ba4-d92c-40b2-8954-c428deba0456"}}}
      2021-07-19T18:43:15.702Z	INFO	[beat]	instance/beat.go:1023	Build info	{"system_info": {"build": {"commit": "unknown", "libbeat": "7.15.0", "time": "1754-08-30T22:43:41.128Z", "version": "7.15.0"}}}
      2021-07-19T18:43:15.702Z	INFO	[beat]	instance/beat.go:1026	Go runtime info	{"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":8,"version":"go1.16.6"}}}
      2021-07-19T18:43:15.704Z	INFO	[beat]	instance/beat.go:1030	Host info	{"system_info": {"host": {"architecture":"x86_64","boot_time":"2021-07-19T17:48:29Z","containerized":true,"name":"beats-ci-immutable-ubuntu-1804-1626716881190657240","ip":["127.0.0.1/8","::1/128","10.224.2.197/32","fe80::4001:aff:fee0:2c5/64","172.17.0.1/16","fe80::42:daff:feb8:48b3/64","172.18.0.1/16","172.19.0.1/16","fe80::42:38ff:fe79:ce4/64","fe80::64e6:32ff:fe8f:9579/64","fe80::f8:23ff:fe52:65fe/64"],"kernel_version":"5.4.0-1046-gcp","mac":["42:01:0a:e0:02:c5","02:42:da:b8:48:b3","02:42:25:3d:97:3a","02:42:38:79:0c:e4","66:e6:32:8f:95:79","02:f8:23:52:65:fe"],"os":{"type":"linux","family":"debian","platform":"debian","name":"Debian GNU/Linux","version":"10 (buster)","major":10,"minor":0,"patch":0,"codename":"buster"},"timezone":"UTC","timezone_offset_sec":0,"id":"88ca5e7b2819c56ffc2ab2fc4af49881"}}}
      2021-07-19T18:43:15.704Z	INFO	[beat]	instance/beat.go:1059	Process info	{"system_info": {"process": {"capabilities": {"inheritable":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"permitted":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"effective":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"bounding":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"ambient":null}, "cwd": "/go/src/github.com/elastic/beats/metricbeat", "exe": "/go/src/github.com/elastic/beats/metricbeat/metricbeat.test", "name": "metricbeat.test", "pid": 241, "ppid": 172, "seccomp": {"mode":"filter","no_new_privs":false}, "start_time": "2021-07-19T18:43:15.030Z"}}}
      2021-07-19T18:43:15.704Z	INFO	instance/beat.go:309	Setup Beat: metricbeat; Version: 7.15.0
      2021-07-19T18:43:15.704Z	DEBUG	[beat]	instance/beat.go:335	Initializing output plugins
      2021-07-19T18:43:15.705Z	INFO	[index-management]	idxmgmt/std.go:184	Set output.elasticsearch.index to 'metricbeat-7.15.0' as ILM is enabled.
      2021-07-19T18:43:15.705Z	INFO	[esclientleg]	eslegclient/connection.go:100	elasticsearch url: http://172.19.0.2:9200
      2021-07-19T18:43:15.705Z	DEBUG	[publisher]	pipeline/consumer.go:148	start pipeline event consumer
      2021-07-19T18:43:15.705Z	INFO	[publisher]	pipeline/module.go:113	Beat name: beats-ci-immutable-ubuntu-1804-1626716881190657240
      2021-07-19T18:43:15.706Z	DEBUG	[registry.lightmodules]	mb/lightmodules.go:262	Light modules directory '%!d(string=/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/module)' doesn't exist
      2021-07-19T18:43:15.706Z	DEBUG	[modules]	beater/metricbeat.go:151	Available modules and metricsets: Register [ModuleFactory:[beat, docker, elasticsearch, kibana, kubernetes, linux, logstash, mongodb, mysql, postgresql, system, uwsgi], MetricSetFactory:[aerospike/namespace, apache/status, beat/state, beat/stats, ceph/cluster_disk, ceph/cluster_health, ceph/cluster_status, ceph/mgr_cluster_disk, ceph/mgr_cluster_health, ceph/mgr_osd_perf, ceph/mgr_osd_pool_stats, ceph/mgr_osd_tree, ceph/mgr_pool_disk, ceph/monitor_health, ceph/osd_df, ceph/osd_tree, ceph/pool_disk, consul/agent, couchbase/bucket, couchbase/cluster, couchbase/node, couchdb/server, docker/container, docker/cpu, docker/diskio, docker/event, docker/healthcheck, docker/image, docker/info, docker/memory, docker/network, docker/network_summary, dropwizard/collector, elasticsearch/ccr, elasticsearch/cluster_stats, elasticsearch/enrich, elasticsearch/index, elasticsearch/index_recovery, elasticsearch/index_summary, elasticsearch/ml_job, elasticsearch/node, elasticsearch/node_stats, elasticsearch/pending_tasks, elasticsearch/shard, envoyproxy/server, etcd/leader, etcd/metrics, etcd/self, etcd/store, golang/expvar, golang/heap, graphite/server, haproxy/info, haproxy/stat, http/json, http/server, jolokia/jmx, kafka/consumergroup, kafka/partition, kibana/stats, kibana/status, kubernetes/apiserver, kubernetes/container, kubernetes/controllermanager, kubernetes/event, kubernetes/node, kubernetes/pod, kubernetes/proxy, kubernetes/scheduler, kubernetes/state_container, kubernetes/state_cronjob, kubernetes/state_daemonset, kubernetes/state_deployment, kubernetes/state_job, kubernetes/state_node, kubernetes/state_persistentvolume, kubernetes/state_persistentvolumeclaim, kubernetes/state_pod, kubernetes/state_replicaset, kubernetes/state_resourcequota, kubernetes/state_service, kubernetes/state_statefulset, kubernetes/state_storageclass, kubernetes/system, kubernetes/volume, kvm/dommemstat, kvm/status, linux/conntrack, linux/iostat, linux/ksm, linux/memory, linux/pageinfo, logstash/node, logstash/node_stats, memcached/stats, mongodb/collstats, mongodb/dbstats, mongodb/metrics, mongodb/replstatus, mongodb/status, munin/node, mysql/galera_status, mysql/query, mysql/status, nats/connection, nats/connections, nats/route, nats/routes, nats/stats, nats/subscriptions, nginx/stubstatus, openmetrics/collector, php_fpm/pool, php_fpm/process, postgresql/activity, postgresql/bgwriter, postgresql/database, postgresql/statement, prometheus/collector, prometheus/query, prometheus/remote_write, rabbitmq/connection, rabbitmq/exchange, rabbitmq/node, rabbitmq/queue, redis/info, redis/key, redis/keyspace, system/core, system/cpu, system/diskio, system/entropy, system/filesystem, system/fsstat, system/load, system/memory, system/network, system/network_summary, system/process, system/process_summary, system/raid, system/service, system/socket, system/socket_summary, system/uptime, system/users, traefik/health, uwsgi/status, vsphere/datastore, vsphere/host, vsphere/virtualmachine, zookeeper/connection, zookeeper/mntr, zookeeper/server], LightModules:[LightModules:[]]]
      Loading dashboards (Kibana must be running and reachable)
      2021-07-19T18:43:15.706Z	INFO	kibana/client.go:122	Kibana url: http://172.19.0.3:5601
      2021-07-19T18:43:16.067Z	INFO	kibana/client.go:122	Kibana url: http://172.19.0.3:5601
      2021-07-19T18:43:16.076Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Initialize the Kibana 7.12.0 loader
      2021-07-19T18:43:16.076Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Kibana URL http://172.19.0.3:5601
      2021-07-19T18:43:16.311Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Importing directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7
      2021-07-19T18:43:16.311Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7
      2021-07-19T18:43:16.312Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-Host-Services-overview.json
      2021-07-19T18:43:17.340Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-aerospike-overview.json
      2021-07-19T18:43:18.406Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-apache-overview.json
      2021-07-19T18:43:19.391Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-ceph-overview.json
      2021-07-19T18:43:20.401Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-consul-overview.json
      2021-07-19T18:43:21.474Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-containers-overview.json
      2021-07-19T18:43:22.462Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-couchbase-overview.json
      2021-07-19T18:43:23.488Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-couchdb-overview.json
      2021-07-19T18:43:24.501Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-docker-overview.json
      2021-07-19T18:43:25.566Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-golang-overview.json
      2021-07-19T18:43:26.539Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-backend.json
      2021-07-19T18:43:27.565Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-frontend.json
      2021-07-19T18:43:28.614Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-http-backend.json
      2021-07-19T18:43:29.594Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-http-frontend.json
      2021-07-19T18:43:30.600Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-http-server.json
      2021-07-19T18:43:31.674Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-overview.json
      2021-07-19T18:43:32.640Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-visualizations.json
      2021-07-19T18:43:33.665Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-host-overview.json
      2021-07-19T18:43:34.715Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kafka-overview.json
      2021-07-19T18:43:35.697Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-apiserver.json
      2021-07-19T18:43:36.710Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-controller-manager.json
      2021-07-19T18:43:37.774Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-overview.json
      2021-07-19T18:43:37.836Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-proxy.json
      2021-07-19T18:43:38.743Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-scheduler.json
      2021-07-19T18:43:39.770Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-mongodb-overview.json
      2021-07-19T18:43:40.822Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-mysql-overview.json
      2021-07-19T18:43:41.807Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-nats-overview.json
      2021-07-19T18:43:42.814Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-postgresql-overview.json
      2021-07-19T18:43:43.840Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-prometheus-overview.json
      2021-07-19T18:43:44.890Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-rabbitmq-overview.json
      2021-07-19T18:43:45.871Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-redis-keys.json
      2021-07-19T18:43:46.875Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-redis-overview.json
      2021-07-19T18:43:47.942Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-system-overview.json
      2021-07-19T18:43:48.911Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-uwsgi-overview.json
      2021-07-19T18:43:49.931Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-zookeeper-overview.json
      2021-07-19T18:43:50.978Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-nginx-overview.json
      2021-07-19T18:43:51.956Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-vsphere-host.json
      2021-07-19T18:43:52.966Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-vsphere-vm.json
      2021-07-19T18:43:54.034Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-windows-service.json
      2021-07-19T18:43:55.002Z	ERROR	instance/beat.go:989	Exiting: Failed to import dashboard: Failed to load directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard:
        error loading /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-overview.json: returned 500 to import file: <nil>. Response: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred."}
      Exiting: Failed to import dashboard: Failed to load directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard:
        error loading /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-overview.json: returned 500 to import file: <nil>. Response: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred."}
      
    assert 1 == 0 
    

    Expand to view the stacktrace

     self = <test_base.Test testMethod=test_dashboards>
    
        @unittest.skipUnless(INTEGRATION_TESTS, "integration test")
        @pytest.mark.timeout(180, func_only=True)
        def test_dashboards(self):
            """
            Test that the dashboards can be loaded with `setup --dashboards`
            """
            shutil.copytree(self.kibana_dir(), os.path.join(self.working_dir, "kibana"))
        
            es = Elasticsearch([self.get_elasticsearch_url()])
            self.render_config_template(
                modules=[{
                    "name": "apache",
                    "metricsets": ["status"],
                    "hosts": ["localhost"],
                }],
                elasticsearch={"host": self.get_elasticsearch_url()},
                kibana={"host": self.get_kibana_url()},
            )
            exit_code = self.run_beat(extra_args=["setup", "--dashboards"])
        
    >       assert exit_code == 0, 'Error output: ' + self.get_log()
    E       AssertionError: Error output: 2021-07-19T18:43:15.697Z	INFO	instance/beat.go:665	Home path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards] Config path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards] Data path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data] Logs path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/logs]
    E         2021-07-19T18:43:15.697Z	DEBUG	[beat]	instance/beat.go:723	Beat metadata path: /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data/meta.json
    E         2021-07-19T18:43:15.702Z	INFO	instance/beat.go:673	Beat ID: e31d7ba4-d92c-40b2-8954-c428deba0456
    E         2021-07-19T18:43:15.702Z	INFO	[beat]	instance/beat.go:1014	Beat info	{"system_info": {"beat": {"path": {"config": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards", "data": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data", "home": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards", "logs": "/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/logs"}, "type": "metricbeat", "uuid": "e31d7ba4-d92c-40b2-8954-c428deba0456"}}}
    E         2021-07-19T18:43:15.702Z	INFO	[beat]	instance/beat.go:1023	Build info	{"system_info": {"build": {"commit": "unknown", "libbeat": "7.15.0", "time": "1754-08-30T22:43:41.128Z", "version": "7.15.0"}}}
    E         2021-07-19T18:43:15.702Z	INFO	[beat]	instance/beat.go:1026	Go runtime info	{"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":8,"version":"go1.16.6"}}}
    E         2021-07-19T18:43:15.704Z	INFO	[beat]	instance/beat.go:1030	Host info	{"system_info": {"host": {"architecture":"x86_64","boot_time":"2021-07-19T17:48:29Z","containerized":true,"name":"beats-ci-immutable-ubuntu-1804-1626716881190657240","ip":["127.0.0.1/8","::1/128","10.224.2.197/32","fe80::4001:aff:fee0:2c5/64","172.17.0.1/16","fe80::42:daff:feb8:48b3/64","172.18.0.1/16","172.19.0.1/16","fe80::42:38ff:fe79:ce4/64","fe80::64e6:32ff:fe8f:9579/64","fe80::f8:23ff:fe52:65fe/64"],"kernel_version":"5.4.0-1046-gcp","mac":["42:01:0a:e0:02:c5","02:42:da:b8:48:b3","02:42:25:3d:97:3a","02:42:38:79:0c:e4","66:e6:32:8f:95:79","02:f8:23:52:65:fe"],"os":{"type":"linux","family":"debian","platform":"debian","name":"Debian GNU/Linux","version":"10 (buster)","major":10,"minor":0,"patch":0,"codename":"buster"},"timezone":"UTC","timezone_offset_sec":0,"id":"88ca5e7b2819c56ffc2ab2fc4af49881"}}}
    E         2021-07-19T18:43:15.704Z	INFO	[beat]	instance/beat.go:1059	Process info	{"system_info": {"process": {"capabilities": {"inheritable":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"permitted":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"effective":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"bounding":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"ambient":null}, "cwd": "/go/src/github.com/elastic/beats/metricbeat", "exe": "/go/src/github.com/elastic/beats/metricbeat/metricbeat.test", "name": "metricbeat.test", "pid": 241, "ppid": 172, "seccomp": {"mode":"filter","no_new_privs":false}, "start_time": "2021-07-19T18:43:15.030Z"}}}
    E         2021-07-19T18:43:15.704Z	INFO	instance/beat.go:309	Setup Beat: metricbeat; Version: 7.15.0
    E         2021-07-19T18:43:15.704Z	DEBUG	[beat]	instance/beat.go:335	Initializing output plugins
    E         2021-07-19T18:43:15.705Z	INFO	[index-management]	idxmgmt/std.go:184	Set output.elasticsearch.index to 'metricbeat-7.15.0' as ILM is enabled.
    E         2021-07-19T18:43:15.705Z	INFO	[esclientleg]	eslegclient/connection.go:100	elasticsearch url: http://172.19.0.2:9200
    E         2021-07-19T18:43:15.705Z	DEBUG	[publisher]	pipeline/consumer.go:148	start pipeline event consumer
    E         2021-07-19T18:43:15.705Z	INFO	[publisher]	pipeline/module.go:113	Beat name: beats-ci-immutable-ubuntu-1804-1626716881190657240
    E         2021-07-19T18:43:15.706Z	DEBUG	[registry.lightmodules]	mb/lightmodules.go:262	Light modules directory '%!d(string=/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/module)' doesn't exist
    E         2021-07-19T18:43:15.706Z	DEBUG	[modules]	beater/metricbeat.go:151	Available modules and metricsets: Register [ModuleFactory:[beat, docker, elasticsearch, kibana, kubernetes, linux, logstash, mongodb, mysql, postgresql, system, uwsgi], MetricSetFactory:[aerospike/namespace, apache/status, beat/state, beat/stats, ceph/cluster_disk, ceph/cluster_health, ceph/cluster_status, ceph/mgr_cluster_disk, ceph/mgr_cluster_health, ceph/mgr_osd_perf, ceph/mgr_osd_pool_stats, ceph/mgr_osd_tree, ceph/mgr_pool_disk, ceph/monitor_health, ceph/osd_df, ceph/osd_tree, ceph/pool_disk, consul/agent, couchbase/bucket, couchbase/cluster, couchbase/node, couchdb/server, docker/container, docker/cpu, docker/diskio, docker/event, docker/healthcheck, docker/image, docker/info, docker/memory, docker/network, docker/network_summary, dropwizard/collector, elasticsearch/ccr, elasticsearch/cluster_stats, elasticsearch/enrich, elasticsearch/index, elasticsearch/index_recovery, elasticsearch/index_summary, elasticsearch/ml_job, elasticsearch/node, elasticsearch/node_stats, elasticsearch/pending_tasks, elasticsearch/shard, envoyproxy/server, etcd/leader, etcd/metrics, etcd/self, etcd/store, golang/expvar, golang/heap, graphite/server, haproxy/info, haproxy/stat, http/json, http/server, jolokia/jmx, kafka/consumergroup, kafka/partition, kibana/stats, kibana/status, kubernetes/apiserver, kubernetes/container, kubernetes/controllermanager, kubernetes/event, kubernetes/node, kubernetes/pod, kubernetes/proxy, kubernetes/scheduler, kubernetes/state_container, kubernetes/state_cronjob, kubernetes/state_daemonset, kubernetes/state_deployment, kubernetes/state_job, kubernetes/state_node, kubernetes/state_persistentvolume, kubernetes/state_persistentvolumeclaim, kubernetes/state_pod, kubernetes/state_replicaset, kubernetes/state_resourcequota, kubernetes/state_service, kubernetes/state_statefulset, kubernetes/state_storageclass, kubernetes/system, kubernetes/volume, kvm/dommemstat, kvm/status, linux/conntrack, linux/iostat, linux/ksm, linux/memory, linux/pageinfo, logstash/node, logstash/node_stats, memcached/stats, mongodb/collstats, mongodb/dbstats, mongodb/metrics, mongodb/replstatus, mongodb/status, munin/node, mysql/galera_status, mysql/query, mysql/status, nats/connection, nats/connections, nats/route, nats/routes, nats/stats, nats/subscriptions, nginx/stubstatus, openmetrics/collector, php_fpm/pool, php_fpm/process, postgresql/activity, postgresql/bgwriter, postgresql/database, postgresql/statement, prometheus/collector, prometheus/query, prometheus/remote_write, rabbitmq/connection, rabbitmq/exchange, rabbitmq/node, rabbitmq/queue, redis/info, redis/key, redis/keyspace, system/core, system/cpu, system/diskio, system/entropy, system/filesystem, system/fsstat, system/load, system/memory, system/network, system/network_summary, system/process, system/process_summary, system/raid, system/service, system/socket, system/socket_summary, system/uptime, system/users, traefik/health, uwsgi/status, vsphere/datastore, vsphere/host, vsphere/virtualmachine, zookeeper/connection, zookeeper/mntr, zookeeper/server], LightModules:[LightModules:[]]]
    E         Loading dashboards (Kibana must be running and reachable)
    E         2021-07-19T18:43:15.706Z	INFO	kibana/client.go:122	Kibana url: http://172.19.0.3:5601
    E         2021-07-19T18:43:16.067Z	INFO	kibana/client.go:122	Kibana url: http://172.19.0.3:5601
    E         2021-07-19T18:43:16.076Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Initialize the Kibana 7.12.0 loader
    E         2021-07-19T18:43:16.076Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Kibana URL http://172.19.0.3:5601
    E         2021-07-19T18:43:16.311Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Importing directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7
    E         2021-07-19T18:43:16.311Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7
    E         2021-07-19T18:43:16.312Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-Host-Services-overview.json
    E         2021-07-19T18:43:17.340Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-aerospike-overview.json
    E         2021-07-19T18:43:18.406Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-apache-overview.json
    E         2021-07-19T18:43:19.391Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-ceph-overview.json
    E         2021-07-19T18:43:20.401Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-consul-overview.json
    E         2021-07-19T18:43:21.474Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-containers-overview.json
    E         2021-07-19T18:43:22.462Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-couchbase-overview.json
    E         2021-07-19T18:43:23.488Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-couchdb-overview.json
    E         2021-07-19T18:43:24.501Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-docker-overview.json
    E         2021-07-19T18:43:25.566Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-golang-overview.json
    E         2021-07-19T18:43:26.539Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-backend.json
    E         2021-07-19T18:43:27.565Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-frontend.json
    E         2021-07-19T18:43:28.614Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-http-backend.json
    E         2021-07-19T18:43:29.594Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-http-frontend.json
    E         2021-07-19T18:43:30.600Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-http-server.json
    E         2021-07-19T18:43:31.674Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-overview.json
    E         2021-07-19T18:43:32.640Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-haproxy-visualizations.json
    E         2021-07-19T18:43:33.665Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-host-overview.json
    E         2021-07-19T18:43:34.715Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kafka-overview.json
    E         2021-07-19T18:43:35.697Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-apiserver.json
    E         2021-07-19T18:43:36.710Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-controller-manager.json
    E         2021-07-19T18:43:37.774Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-overview.json
    E         2021-07-19T18:43:37.836Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-proxy.json
    E         2021-07-19T18:43:38.743Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-scheduler.json
    E         2021-07-19T18:43:39.770Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-mongodb-overview.json
    E         2021-07-19T18:43:40.822Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-mysql-overview.json
    E         2021-07-19T18:43:41.807Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-nats-overview.json
    E         2021-07-19T18:43:42.814Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-postgresql-overview.json
    E         2021-07-19T18:43:43.840Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-prometheus-overview.json
    E         2021-07-19T18:43:44.890Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-rabbitmq-overview.json
    E         2021-07-19T18:43:45.871Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-redis-keys.json
    E         2021-07-19T18:43:46.875Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-redis-overview.json
    E         2021-07-19T18:43:47.942Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-system-overview.json
    E         2021-07-19T18:43:48.911Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-uwsgi-overview.json
    E         2021-07-19T18:43:49.931Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-zookeeper-overview.json
    E         2021-07-19T18:43:50.978Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-nginx-overview.json
    E         2021-07-19T18:43:51.956Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-vsphere-host.json
    E         2021-07-19T18:43:52.966Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-vsphere-vm.json
    E         2021-07-19T18:43:54.034Z	DEBUG	[dashboards]	dashboards/kibana_loader.go:156	Import dashboard from /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/metricbeat-windows-service.json
    E         2021-07-19T18:43:55.002Z	ERROR	instance/beat.go:989	Exiting: Failed to import dashboard: Failed to load directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard:
    E           error loading /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-overview.json: returned 500 to import file: <nil>. Response: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred."}
    E         Exiting: Failed to import dashboard: Failed to load directory /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard:
    E           error loading /go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/kibana/7/dashboard/Metricbeat-kubernetes-overview.json: returned 500 to import file: <nil>. Response: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred."}
    E         
    E       assert 1 == 0
    
    tests/system/test_base.py:79: AssertionError 
    

Steps errors 4

Expand to view the steps failures

metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 30 min 17 sec . View more details on here
  • Description: mage pythonIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 22 min 36 sec . View more details on here
  • Description: mage pythonIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 22 min 31 sec . View more details on here
  • Description: mage pythonIntegTest
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

Log output

Expand to view the last 100 lines of log output

[2021-07-19T19:03:29.610Z] 
[2021-07-19T19:03:29.610Z] metricbeat/module/elasticsearch/test_elasticsearch.py::Test::test_metricsets_0_ccr
[2021-07-19T19:03:29.610Z] metricbeat/module/elasticsearch/test_elasticsearch.py::Test::test_xpack
[2021-07-19T19:03:29.610Z]   /go/src/github.com/elastic/beats/build/ve/docker/lib/python3.7/site-packages/elasticsearch/connection/base.py:177: ElasticsearchDeprecationWarning: the default value for the ?wait_for_active_shards parameter will change from '0' to 'index-setting' in version 8; specify '?wait_for_active_shards=index-setting' to adopt the future default behaviour, or '?wait_for_active_shards=0' to preserve today's behaviour
[2021-07-19T19:03:29.610Z]     warnings.warn(message, category=ElasticsearchDeprecationWarning)
[2021-07-19T19:03:29.610Z] 
[2021-07-19T19:03:29.610Z] -- Docs: https://docs.pytest.org/en/stable/warnings.html
[2021-07-19T19:03:29.610Z] - generated xml file: /go/src/github.com/elastic/beats/metricbeat/build/TEST-python-integration.xml -
[2021-07-19T19:03:29.610Z] ============================= slowest 20 durations =============================
[2021-07-19T19:03:29.610Z] 62.66s setup    metricbeat/module/ceph/test_ceph.py::Test_0::test_ceph_0_cluster_disk
[2021-07-19T19:03:29.610Z] 54.57s setup    metricbeat/module/kafka/test_kafka.py::KafkaTest_0::test_kafka_jmx_0_consumer
[2021-07-19T19:03:29.610Z] 53.61s setup    metricbeat/module/kafka/test_kafka.py::KafkaTest_1::test_kafka_jmx_0_consumer
[2021-07-19T19:03:29.610Z] 53.58s setup    metricbeat/module/kafka/test_kafka.py::KafkaTest_2::test_kafka_jmx_0_consumer
[2021-07-19T19:03:29.610Z] 49.74s setup    metricbeat/module/kafka/test_kafka.py::KafkaTest_3::test_kafka_jmx_0_consumer
[2021-07-19T19:03:29.610Z] 49.51s setup    metricbeat/module/kafka/test_kafka.py::KafkaTest_4::test_kafka_jmx_0_consumer
[2021-07-19T19:03:29.610Z] 39.55s call     metricbeat/tests/system/test_base.py::Test::test_dashboards
[2021-07-19T19:03:29.610Z] 31.91s setup    metricbeat/module/logstash/test_logstash.py::Test::test_node
[2021-07-19T19:03:29.610Z] 31.54s setup    metricbeat/module/ceph/test_ceph.py::Test_1::test_ceph_0_cluster_disk
[2021-07-19T19:03:29.610Z] 26.65s setup    metricbeat/tests/system/test_base.py::Test::test_dashboards
[2021-07-19T19:03:29.610Z] 26.09s setup    metricbeat/module/kibana/test_kibana.py::Test::test_status
[2021-07-19T19:03:29.611Z] 22.83s setup    metricbeat/module/elasticsearch/test_elasticsearch.py::Test::test_metricsets_0_ccr
[2021-07-19T19:03:29.611Z] 22.00s setup    metricbeat/tests/system/test_beat.py::Test::test_metricsets_0_stats
[2021-07-19T19:03:29.611Z] 18.08s setup    metricbeat/module/mysql/test_mysql.py::Test_6::test_status
[2021-07-19T19:03:29.611Z] 14.21s setup    metricbeat/module/mysql/test_mysql.py::Test_3::test_status
[2021-07-19T19:03:29.611Z] 13.01s setup    metricbeat/module/mysql/test_mysql.py::Test_1::test_status
[2021-07-19T19:03:29.611Z] 12.03s setup    metricbeat/module/postgresql/test_postgresql.py::Test_1::test_activity
[2021-07-19T19:03:29.611Z] 12.01s setup    metricbeat/module/postgresql/test_postgresql.py::Test_4::test_activity
[2021-07-19T19:03:29.611Z] 12.00s setup    metricbeat/module/postgresql/test_postgresql.py::Test_0::test_activity
[2021-07-19T19:03:29.611Z] 11.98s setup    metricbeat/module/postgresql/test_postgresql.py::Test_3::test_activity
[2021-07-19T19:03:29.611Z] =========================== short test summary info ============================
[2021-07-19T19:03:29.611Z] FAILED tests/system/test_base.py::Test::test_dashboards - AssertionError: Error output: 2021-07-19T18:43:15.697Z	INFO	instance/beat.go:665	Home path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards] Config path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards] Data path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/data] Logs path: [/go/src/github.com/elastic/beats/metricbeat/build/system-tests/run/test_base.Test.test_dashboards/logs]
[2021-07-19T19:03:29.611Z] ====== 1 failed, 230 passed, 16 skipped, 3 warnings in 1257.88s (0:20:57) ======
[2021-07-19T19:03:29.611Z] >> python test: Integration Testing Complete
[2021-07-19T19:03:29.876Z] Error: running "/go/src/github.com/elastic/beats/build/ve/docker/bin/pytest --timeout=90 --durations=20 --junit-xml=build/TEST-python-integration.xml tests/system/test_autodiscover.py tests/system/test_autodiscover_jolokia.py tests/system/test_base.py tests/system/test_beat.py tests/system/test_cmd.py tests/system/test_config.py tests/system/test_lightmodules.py tests/system/test_processors.py tests/system/test_reload.py tests/system/test_template.py tests/system/test_timeseries.py module/aerospike/test_aerospike.py module/apache/test_apache.py module/ceph/test_ceph.py module/consul/test_consul.py module/couchbase/test_couchbase.py module/couchdb/test_couchdb.py module/docker/test_docker.py module/dropwizard/test_dropwizard.py module/elasticsearch/test_elasticsearch.py module/envoyproxy/test_envoyproxy.py module/etcd/test_etcd.py module/golang/test_golang.py module/haproxy/test_haproxy.py module/http/test_http.py module/jolokia/test_jolokia.py module/kafka/test_kafka.py module/kibana/test_kibana.py module/logstash/test_logstash.py module/memcached/test_memcached.py module/mongodb/test_mongodb.py module/munin/test_munin.py module/mysql/test_mysql.py module/nats/test_nats.py module/openmetrics/test_openmetrics.py module/php_fpm/test_phpfpm.py module/postgresql/test_postgresql.py module/prometheus/test_prometheus.py module/redis/test_redis.py module/system/test_system.py module/traefik/test_traefik.py module/uwsgi/test_uwsgi.py module/vsphere/test_vsphere.py module/zookeeper/test_zookeeper.py" failed with exit code 1
[2021-07-19T19:03:31.258Z] Error: running "docker-compose -p metricbeat_7_15_0_5e2f8882df-snapshot run -e DOCKER_COMPOSE_PROJECT_NAME=metricbeat_7_15_0_5e2f8882df-snapshot -e BEAT_STRICT_PERMS=false -e STACK_ENVIRONMENT=snapshot -e TESTING_ENVIRONMENT=snapshot -e GOCACHE=/go/src/github.com/elastic/beats/build/docker-gocache -v /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656/pkg/mod/cache/download:/gocache:ro -e GOPROXY=file:///gocache,direct -e EXEC_UID=1166 -e EXEC_GID=1167 -e TEST_TAGS=null,oracle -e BEATS_INSIDE_INTEGRATION_TEST_ENV=true -e GOFLAGS=-mod=readonly -e TEST_COVERAGE=true -e RACE_DETECTOR=true beat /go/src/github.com/elastic/beats/metricbeat/build/mage-linux-amd64 pythonIntegTest" failed with exit code 1
[2021-07-19T19:03:31.374Z] Timeout set to expire in 5 min 0 sec
[2021-07-19T19:03:31.678Z] Cleaning up /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656
[2021-07-19T19:03:31.678Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-07-19T19:03:31.678Z] ++ id -u
[2021-07-19T19:03:31.678Z] ++ id -g
[2021-07-19T19:03:31.678Z] + docker run -v /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656:/beat alpine:3.4 sh -c 'find /beat -user 0 -exec chown -h 1166:1167 {} \;'
[2021-07-19T19:03:31.678Z] Unable to find image 'alpine:3.4' locally
[2021-07-19T19:03:32.618Z] 3.4: Pulling from library/alpine
[2021-07-19T19:03:32.618Z] c1e54eec4b57: Pulling fs layer
[2021-07-19T19:03:32.879Z] c1e54eec4b57: Verifying Checksum
[2021-07-19T19:03:32.879Z] c1e54eec4b57: Download complete
[2021-07-19T19:03:33.139Z] c1e54eec4b57: Pull complete
[2021-07-19T19:03:43.133Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2021-07-19T19:03:43.133Z] Status: Downloaded newer image for alpine:3.4
[2021-07-19T19:03:44.517Z] + set -e
[2021-07-19T19:03:44.517Z] + echo 'Change permissions with write access of all files inside the specific folder'
[2021-07-19T19:03:44.517Z] Change permissions with write access of all files inside the specific folder
[2021-07-19T19:03:44.517Z] + chmod -R +w /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656
[2021-07-19T19:03:45.514Z] Running in /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656/src/github.com/elastic/beats/build
[2021-07-19T19:03:45.807Z] + rm -rf ve
[2021-07-19T19:03:45.807Z] + find . -type d -name vendor -exec rm -r {} ;
[2021-07-19T19:03:46.130Z] + python .ci/scripts/pre_archive_test.py
[2021-07-19T19:03:47.069Z] Copy ./metricbeat/build into build/metricbeat/build
[2021-07-19T19:03:47.082Z] Running in /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656/src/github.com/elastic/beats/build
[2021-07-19T19:03:47.097Z] Recording test results
[2021-07-19T19:03:47.850Z] [Checks API] No suitable checks publisher found.
[2021-07-19T19:03:48.169Z] + tar --version
[2021-07-19T19:03:48.482Z] + tar --exclude=test-build-artifacts-metricbeat-pythonIntegTest-tgz -czf test-build-artifacts-metricbeat-pythonIntegTest-tgz .
[2021-07-19T19:04:21.137Z] + gsutil --version
[2021-07-19T19:04:25.425Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-07-19T19:04:25.827Z] + gcloud auth activate-service-account --key-file ****
[2021-07-19T19:04:27.255Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-07-19T19:04:27.690Z] + gsutil -m -q cp -a public-read test-build-artifacts-metricbeat-pythonIntegTest-tgz gs://beats-ci-temp/Beats/beats/PR-26959-2
[2021-07-19T19:04:32.250Z] + python .ci/scripts/search_system_tests.py
[2021-07-19T19:04:32.278Z] [INFO] system-tests='build/metricbeat/build/system-tests'. If no empty then let's create a tarball
[2021-07-19T19:04:32.613Z] + tar --version
[2021-07-19T19:04:32.927Z] + tar --exclude=metricbeat--system-tests-linux-tgz -czf metricbeat--system-tests-linux-tgz build/metricbeat/build/system-tests
[2021-07-19T19:04:41.414Z] + gsutil --version
[2021-07-19T19:04:42.834Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-07-19T19:04:43.145Z] + gcloud auth activate-service-account --key-file ****
[2021-07-19T19:04:43.716Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-07-19T19:04:44.293Z] + gsutil -m -q cp -a public-read metricbeat--system-tests-linux-tgz gs://beats-ci-temp/Beats/beats/PR-26959-2
[2021-07-19T19:04:47.196Z] + go clean -modcache
[2021-07-19T19:04:50.532Z] Timeout set to expire in 5 min 0 sec
[2021-07-19T19:04:50.831Z] Cleaning up /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656
[2021-07-19T19:04:50.831Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-07-19T19:04:50.831Z] ++ id -u
[2021-07-19T19:04:50.831Z] ++ id -g
[2021-07-19T19:04:50.831Z] + docker run -v /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656:/beat alpine:3.4 sh -c 'find /beat -user 0 -exec chown -h 1166:1167 {} \;'
[2021-07-19T19:04:52.218Z] + set -e
[2021-07-19T19:04:52.218Z] + echo 'Change permissions with write access of all files inside the specific folder'
[2021-07-19T19:04:52.218Z] Change permissions with write access of all files inside the specific folder
[2021-07-19T19:04:52.218Z] + chmod -R +w /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656
[2021-07-19T19:04:52.273Z] Running in /var/lib/jenkins/workspace/PR-26959-2-463b4e87-ac3d-4f65-927c-55602444d656
[2021-07-19T19:04:55.509Z] Failed in branch metricbeat-pythonIntegTest
[2021-07-19T19:04:55.574Z] Stage "Extended" skipped due to earlier failure(s)
[2021-07-19T19:04:55.604Z] Stage "Packaging" skipped due to earlier failure(s)
[2021-07-19T19:04:55.634Z] Stage "Packaging-Pipeline" skipped due to earlier failure(s)
[2021-07-19T19:04:55.685Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-26959/src/github.com/elastic/beats
[2021-07-19T19:04:56.931Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-26959
[2021-07-19T19:04:56.976Z] [INFO] getVaultSecret: Getting secrets
[2021-07-19T19:04:57.015Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-07-19T19:04:57.777Z] + chmod 755 generate-build-data.sh
[2021-07-19T19:04:57.778Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26959/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26959/runs/2 FAILURE 5534878
[2021-07-19T19:04:57.778Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26959/runs/2/steps/?limit=10000 -o steps-info.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 1
Passed 230
Skipped 16
Total 247

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: test_dashboards – metricbeat.tests.system.test_base.Test

@jsoriano
Copy link
Copy Markdown
Member

/test

@jsoriano
Copy link
Copy Markdown
Member

Failing test doesn't seem to be related (see #26919 (comment)).

@jsoriano jsoriano merged commit a1ab825 into 7.x Jul 20, 2021
@jsoriano jsoriano deleted the mergify/bp/7.x/pr-26907 branch July 20, 2021 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants