Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dashboard] Make Dashboard Saved Objects multiple-isolated #115817

Merged
merged 11 commits into from
Oct 25, 2021

Conversation

crob611
Copy link
Contributor

@crob611 crob611 commented Oct 20, 2021

Changes Dashboard saved objects to be multiple-isolated

@crob611 crob611 added Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:critical This issue should be addressed immediately due to a critical level of impact on the product. backport:skip This commit does not require backporting labels Oct 20, 2021
@crob611 crob611 requested a review from a team as a code owner October 20, 2021 16:42
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@crob611 crob611 requested a review from jportner October 20, 2021 16:42
@jportner
Copy link
Contributor

Similar to #114408 (comment) and #114620 (comment), I expect this change will make Spaces API integration tests fail. If/when that happens I can push changes to this PR to fix them. I'll let it complete a full CI run before I do that, though.

@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 20, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / API Integration Tests.test/api_integration/apis/saved_objects_management/find·ts.apis saved objects management apis find meta attributes injected properly should inject meta attributes for dashboards

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]     │
[00:00:00]       └-: apis
[00:00:00]         └-> "before all" hook in "apis"
[00:02:43]         └-: saved objects management apis
[00:02:43]           └-> "before all" hook in "saved objects management apis"
[00:02:43]           └-: find
[00:02:43]             └-> "before all" hook in "find"
[00:02:43]             └-> "before all" hook in "find"
[00:02:47]             └-: meta attributes injected properly
[00:02:47]               └-> "before all" hook for "should inject meta attributes for searches"
[00:02:47]               └-> "before all" hook for "should inject meta attributes for searches"
[00:02:47]                 │ info [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Loading "mappings.json"
[00:02:47]                 │ info [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Loading "data.json"
[00:02:47]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/ULgUwBPvQeSDRMDnDW9LRg] deleting index
[00:02:47]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/s_itblyFSyifdBk7Tl2XTw] deleting index
[00:02:47]                 │ info [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Deleted existing index ".kibana_8.0.0_001"
[00:02:47]                 │ info [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:02:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [api], templates [], shards [1]/[0]
[00:02:47]                 │ info [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Created index ".kibana_8.0.0_001"
[00:02:47]                 │ debg [test/api_integration/fixtures/es_archiver/management/saved_objects/search] ".kibana_8.0.0_001" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1","priority":"10","refresh_interval":"1s","routing_partition_size":"1"}}
[00:02:47]                 │ info [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Indexed 6 docs into ".kibana"
[00:02:47]                 │ debg Migrating saved objects
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.331+00:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.334+00:00][INFO ][savedobjects-service] [.kibana] INIT -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 7ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.336+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:02:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:47]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.342+00:00][INFO ][savedobjects-service] [.kibana] Starting to process 5 documents.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.342+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_TRANSFORM. took: 6ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.345+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> TRANSFORMED_DOCUMENTS_BULK_INDEX. took: 3ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.352+00:00][INFO ][savedobjects-service] [.kibana] TRANSFORMED_DOCUMENTS_BULK_INDEX -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 7ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.359+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.362+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> OUTDATED_DOCUMENTS_REFRESH. took: 3ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.372+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_REFRESH -> UPDATE_TARGET_MAPPINGS. took: 10ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.380+00:00][INFO ][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 49ms.
[00:02:47]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/EgLE6Uj_SGi2ArfXRxy6OA] update_mapping [_doc]
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.435+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 63ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.452+00:00][INFO ][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 72ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.453+00:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 124ms
[00:02:47]                 │ info [o.e.t.LoggingTaskListener] [node-01] 9678 finished with response BulkByScrollResponse[took=17.7ms,timed_out=false,sliceId=null,updated=6,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.539+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 104ms.
[00:02:47]                 │ proc [kibana] [2021-10-20T17:00:47.540+00:00][INFO ][savedobjects-service] [.kibana] Migration completed after 213ms
[00:02:47]                 │ debg [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Migrated Kibana index after loading Kibana data
[00:02:48]                 │ debg [test/api_integration/fixtures/es_archiver/management/saved_objects/search] Ensured that default space exists in .kibana
[00:02:48]               └-> should inject meta attributes for searches
[00:02:48]                 └-> "before each" hook: global before each for "should inject meta attributes for searches"
[00:02:48]                 └- ✓ pass  (12ms)
[00:02:48]               └-> should inject meta attributes for dashboards
[00:02:48]                 └-> "before each" hook: global before each for "should inject meta attributes for dashboards"
[00:02:48]                 └- ✖ fail: apis saved objects management apis find meta attributes injected properly should inject meta attributes for dashboards
[00:02:48]                 │       Error: expected { icon: 'dashboardApp',
[00:02:48]                 │   title: 'Dashboard',
[00:02:48]                 │   inAppUrl: 
[00:02:48]                 │    { path: '/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357',
[00:02:48]                 │      uiCapabilitiesPath: 'dashboard.show' },
[00:02:48]                 │   namespaceType: 'multiple-isolated',
[00:02:48]                 │   hiddenType: false } to sort of equal { icon: 'dashboardApp',
[00:02:48]                 │   title: 'Dashboard',
[00:02:48]                 │   hiddenType: false,
[00:02:48]                 │   inAppUrl: 
[00:02:48]                 │    { path: '/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357',
[00:02:48]                 │      uiCapabilitiesPath: 'dashboard.show' },
[00:02:48]                 │   namespaceType: 'single' }
[00:02:48]                 │       + expected - actual
[00:02:48]                 │ 
[00:02:48]                 │          "inAppUrl": {
[00:02:48]                 │            "path": "/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357"
[00:02:48]                 │            "uiCapabilitiesPath": "dashboard.show"
[00:02:48]                 │          }
[00:02:48]                 │       -  "namespaceType": "multiple-isolated"
[00:02:48]                 │       +  "namespaceType": "single"
[00:02:48]                 │          "title": "Dashboard"
[00:02:48]                 │        }
[00:02:48]                 │       
[00:02:48]                 │       at Assertion.assert (node_modules/@kbn/expect/expect.js:100:11)
[00:02:48]                 │       at Assertion.eql (node_modules/@kbn/expect/expect.js:244:8)
[00:02:48]                 │       at /dev/shm/workspace/parallel/4/kibana/test/api_integration/apis/saved_objects_management/find.ts:197:56
[00:02:48]                 │       at runMicrotasks (<anonymous>)
[00:02:48]                 │       at processTicksAndRejections (node:internal/process/task_queues:96:5)
[00:02:48]                 │       at Context.<anonymous> (test/api_integration/apis/saved_objects_management/find.ts:192:9)
[00:02:48]                 │       at Object.apply (node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:02:48]                 │ 
[00:02:48]                 │ 

Stack Trace

Error: expected { icon: 'dashboardApp',
  title: 'Dashboard',
  inAppUrl: 
   { path: '/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357',
     uiCapabilitiesPath: 'dashboard.show' },
  namespaceType: 'multiple-isolated',
  hiddenType: false } to sort of equal { icon: 'dashboardApp',
  title: 'Dashboard',
  hiddenType: false,
  inAppUrl: 
   { path: '/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357',
     uiCapabilitiesPath: 'dashboard.show' },
  namespaceType: 'single' }
    at Assertion.assert (node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (node_modules/@kbn/expect/expect.js:244:8)
    at /dev/shm/workspace/parallel/4/kibana/test/api_integration/apis/saved_objects_management/find.ts:197:56
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Context.<anonymous> (test/api_integration/apis/saved_objects_management/find.ts:192:9)
    at Object.apply (node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  actual: '{\n' +
    '  "hiddenType": false\n' +
    '  "icon": "dashboardApp"\n' +
    '  "inAppUrl": {\n' +
    '    "path": "/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357"\n' +
    '    "uiCapabilitiesPath": "dashboard.show"\n' +
    '  }\n' +
    '  "namespaceType": "multiple-isolated"\n' +
    '  "title": "Dashboard"\n' +
    '}',
  expected: '{\n' +
    '  "hiddenType": false\n' +
    '  "icon": "dashboardApp"\n' +
    '  "inAppUrl": {\n' +
    '    "path": "/app/dashboards#/view/b70c7ae0-3224-11e8-a572-ffca06da1357"\n' +
    '    "uiCapabilitiesPath": "dashboard.show"\n' +
    '  }\n' +
    '  "namespaceType": "single"\n' +
    '  "title": "Dashboard"\n' +
    '}',
  showDiff: true
}

Kibana Pipeline / general / X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/update_actions·ts.detection engine api security and spaces enabled update_actions updating actions should be able to create a new webhook action and attach it to a rule without a meta field and run it correctly

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]     │
[00:00:00]       └-: detection engine api security and spaces enabled
[00:00:00]         └-> "before all" hook in "detection engine api security and spaces enabled"
[00:00:00]         └-: 
[00:00:00]           └-> "before all" hook in ""
[00:05:32]           └-: update_actions
[00:05:32]             └-> "before all" hook in "update_actions"
[00:05:32]             └-: updating actions
[00:05:32]               └-> "before all" hook for "should be able to create a new webhook action and update a rule with the webhook action"
[00:05:32]               └-> "before all" hook for "should be able to create a new webhook action and update a rule with the webhook action"
[00:05:32]                 │ info [x-pack/test/functional/es_archives/auditbeat/hosts] Loading "mappings.json"
[00:05:32]                 │ info [x-pack/test/functional/es_archives/auditbeat/hosts] Loading "data.json.gz"
[00:05:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [auditbeat-8.0.0-2019.02.19-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:05:32]                 │ info [x-pack/test/functional/es_archives/auditbeat/hosts] Created index "auditbeat-8.0.0-2019.02.19-000001"
[00:05:32]                 │ debg [x-pack/test/functional/es_archives/auditbeat/hosts] "auditbeat-8.0.0-2019.02.19-000001" settings {"index":{"lifecycle":{"name":"auditbeat-8.0.0","rollover_alias":"auditbeat-8.0.0"},"mapping":{"total_fields":{"limit":"10000"}},"number_of_replicas":"1","number_of_shards":"1","query":{"default_field":["tags","message","agent.version","agent.name","agent.type","agent.id","agent.ephemeral_id","client.address","client.mac","client.domain","client.geo.continent_name","client.geo.country_name","client.geo.region_name","client.geo.city_name","client.geo.country_iso_code","client.geo.region_iso_code","client.geo.name","cloud.provider","cloud.availability_zone","cloud.region","cloud.instance.id","cloud.instance.name","cloud.machine.type","cloud.account.id","container.runtime","container.id","container.image.name","container.image.tag","container.name","destination.address","destination.mac","destination.domain","destination.geo.continent_name","destination.geo.country_name","destination.geo.region_name","destination.geo.city_name","destination.geo.country_iso_code","destination.geo.region_iso_code","destination.geo.name","ecs.version","error.id","error.message","error.code","event.id","event.kind","event.category","event.action","event.outcome","event.type","event.module","event.dataset","event.hash","event.timezone","file.path","file.target_path","file.extension","file.type","file.device","file.inode","file.uid","file.owner","file.gid","file.group","file.mode","group.id","group.name","host.hostname","host.name","host.id","host.mac","host.type","host.architecture","host.os.platform","host.os.name","host.os.full","host.os.family","host.os.version","host.os.kernel","host.geo.continent_name","host.geo.country_name","host.geo.region_name","host.geo.city_name","host.geo.country_iso_code","host.geo.region_iso_code","host.geo.name","http.request.method","http.request.body.content","http.request.referrer","http.response.body.content","http.version","log.level","network.name","network.type","network.iana_number","network.transport","network.application","network.protocol","network.direction","network.community_id","observer.mac","observer.hostname","observer.vendor","observer.version","observer.serial_number","observer.type","observer.os.platform","observer.os.name","observer.os.full","observer.os.family","observer.os.version","observer.os.kernel","observer.geo.continent_name","observer.geo.country_name","observer.geo.region_name","observer.geo.city_name","observer.geo.country_iso_code","observer.geo.region_iso_code","observer.geo.name","organization.name","organization.id","os.platform","os.name","os.full","os.family","os.version","os.kernel","process.name","process.args","process.executable","process.title","process.working_directory","server.address","server.mac","server.domain","server.geo.continent_name","server.geo.country_name","server.geo.region_name","server.geo.city_name","server.geo.country_iso_code","server.geo.region_iso_code","server.geo.name","service.id","service.name","service.type","service.state","service.version","service.ephemeral_id","source.address","source.mac","source.domain","source.geo.continent_name","source.geo.country_name","source.geo.region_name","source.geo.city_name","source.geo.country_iso_code","source.geo.region_iso_code","source.geo.name","url.original","url.full","url.scheme","url.domain","url.path","url.query","url.fragment","url.username","url.password","user.id","user.name","user.full_name","user.email","user.hash","user.group.id","user.group.name","user_agent.original","user_agent.name","user_agent.version","user_agent.device.name","user_agent.os.platform","user_agent.os.name","user_agent.os.full","user_agent.os.family","user_agent.os.version","user_agent.os.kernel","agent.hostname","error.type","cloud.project.id","kubernetes.pod.name","kubernetes.pod.uid","kubernetes.namespace","kubernetes.node.name","kubernetes.container.name","kubernetes.container.image","file.origin","raw","file.selinux.user","file.selinux.role","file.selinux.domain","file.selinux.level","user.audit.id","user.audit.name","user.effective.id","user.effective.name","user.effective.group.id","user.effective.group.name","user.filesystem.id","user.filesystem.name","user.filesystem.group.id","user.filesystem.group.name","user.saved.id","user.saved.name","user.saved.group.id","user.saved.group.name","user.selinux.user","user.selinux.role","user.selinux.domain","user.selinux.level","user.selinux.category","source.path","destination.path","auditd.message_type","auditd.session","auditd.result","auditd.summary.actor.primary","auditd.summary.actor.secondary","auditd.summary.object.type","auditd.summary.object.primary","auditd.summary.object.secondary","auditd.summary.how","auditd.paths.inode","auditd.paths.dev","auditd.paths.obj_user","auditd.paths.obj_role","auditd.paths.obj_domain","auditd.paths.obj_level","auditd.paths.objtype","auditd.paths.ouid","auditd.paths.rdev","auditd.paths.nametype","auditd.paths.ogid","auditd.paths.item","auditd.paths.mode","auditd.paths.name","auditd.data.action","auditd.data.minor","auditd.data.acct","auditd.data.addr","auditd.data.cipher","auditd.data.id","auditd.data.entries","auditd.data.kind","auditd.data.ksize","auditd.data.spid","auditd.data.arch","auditd.data.argc","auditd.data.major","auditd.data.unit","auditd.data.table","auditd.data.terminal","auditd.data.grantors","auditd.data.direction","auditd.data.op","auditd.data.tty","auditd.data.syscall","auditd.data.data","auditd.data.family","auditd.data.mac","auditd.data.pfs","auditd.data.items","auditd.data.a0","auditd.data.a1","auditd.data.a2","auditd.data.a3","auditd.data.hostname","auditd.data.lport","auditd.data.rport","auditd.data.exit","auditd.data.fp","auditd.data.laddr","auditd.data.sport","auditd.data.capability","auditd.data.nargs","auditd.data.new-enabled","auditd.data.audit_backlog_limit","auditd.data.dir","auditd.data.cap_pe","auditd.data.model","auditd.data.new_pp","auditd.data.old-enabled","auditd.data.oauid","auditd.data.old","auditd.data.banners","auditd.data.feature","auditd.data.vm-ctx","auditd.data.opid","auditd.data.seperms","auditd.data.seresult","auditd.data.new-rng","auditd.data.old-net","auditd.data.sigev_signo","auditd.data.ino","auditd.data.old_enforcing","auditd.data.old-vcpu","auditd.data.range","auditd.data.res","auditd.data.added","auditd.data.fam","auditd.data.nlnk-pid","auditd.data.subj","auditd.data.a[0-3]","auditd.data.cgroup","auditd.data.kernel","auditd.data.ocomm","auditd.data.new-net","auditd.data.permissive","auditd.data.class","auditd.data.compat","auditd.data.fi","auditd.data.changed","auditd.data.msg","auditd.data.dport","auditd.data.new-seuser","auditd.data.invalid_context","auditd.data.dmac","auditd.data.ipx-net","auditd.data.iuid","auditd.data.macproto","auditd.data.obj","auditd.data.ipid","auditd.data.new-fs","auditd.data.vm-pid","auditd.data.cap_pi","auditd.data.old-auid","auditd.data.oses","auditd.data.fd","auditd.data.igid","auditd.data.new-disk","auditd.data.parent","auditd.data.len","auditd.data.oflag","auditd.data.uuid","auditd.data.code","auditd.data.nlnk-grp","auditd.data.cap_fp","auditd.data.new-mem","auditd.data.seperm","auditd.data.enforcing","auditd.data.new-chardev","auditd.data.old-rng","auditd.data.outif","auditd.data.cmd","auditd.data.hook","auditd.data.new-level","auditd.data.sauid","auditd.data.sig","auditd.data.audit_backlog_wait_time","auditd.data.printer","auditd.data.old-mem","auditd.data.perm","auditd.data.old_pi","auditd.data.state","auditd.data.format","auditd.data.new_gid","auditd.data.tcontext","auditd.data.maj","auditd.data.watch","auditd.data.device","auditd.data.grp","auditd.data.bool","auditd.data.icmp_type","auditd.data.new_lock","auditd.data.old_prom","auditd.data.acl","auditd.data.ip","auditd.data.new_pi","auditd.data.default-context","auditd.data.inode_gid","auditd.data.new-log_passwd","auditd.data.new_pe","auditd.data.selected-context","auditd.data.cap_fver","auditd.data.file","auditd.data.net","auditd.data.virt","auditd.data.cap_pp","auditd.data.old-range","auditd.data.resrc","auditd.data.new-range","auditd.data.obj_gid","auditd.data.proto","auditd.data.old-disk","auditd.data.audit_failure","auditd.data.inif","auditd.data.vm","auditd.data.flags","auditd.data.nlnk-fam","auditd.data.old-fs","auditd.data.old-ses","auditd.data.seqno","auditd.data.fver","auditd.data.qbytes","auditd.data.seuser","auditd.data.cap_fe","auditd.data.new-vcpu","auditd.data.old-level","auditd.data.old_pp","auditd.data.daddr","auditd.data.old-role","auditd.data.ioctlcmd","auditd.data.smac","auditd.data.apparmor","auditd.data.fe","auditd.data.perm_mask","auditd.data.ses","auditd.data.cap_fi","auditd.data.obj_uid","auditd.data.reason","auditd.data.list","auditd.data.old_lock","auditd.data.bus","auditd.data.old_pe","auditd.data.new-role","auditd.data.prom","auditd.data.uri","auditd.data.audit_enabled","auditd.data.old-log_passwd","auditd.data.old-seuser","auditd.data.per","auditd.data.scontext","auditd.data.tclass","auditd.data.ver","auditd.data.new","auditd.data.val","auditd.data.img-ctx","auditd.data.old-chardev","auditd.data.old_val","auditd.data.success","auditd.data.inode_uid","auditd.data.removed","auditd.data.socket.port","auditd.data.socket.saddr","auditd.data.socket.addr","auditd.data.socket.family","auditd.data.socket.path","geoip.continent_name","geoip.city_name","geoip.region_name","geoip.country_iso_code","hash.blake2b_256","hash.blake2b_384","hash.blake2b_512","hash.md5","hash.sha1","hash.sha224","hash.sha256","hash.sha384","hash.sha3_224","hash.sha3_256","hash.sha3_384","hash.sha3_512","hash.sha512","hash.sha512_224","hash.sha512_256","hash.xxh64","event.origin","user.entity_id","user.terminal","process.entity_id","socket.entity_id","system.audit.host.timezone.name","system.audit.host.hostname","system.audit.host.id","system.audit.host.architecture","system.audit.host.mac","system.audit.host.os.platform","system.audit.host.os.name","system.audit.host.os.family","system.audit.host.os.version","system.audit.host.os.kernel","system.audit.package.entity_id","system.audit.package.name","system.audit.package.version","system.audit.package.release","system.audit.package.arch","system.audit.package.license","system.audit.package.summary","system.audit.package.url","system.audit.user.name","system.audit.user.uid","system.audit.user.gid","system.audit.user.dir","system.audit.user.shell","system.audit.user.user_information","system.audit.user.password.type","fields.*"]},"refresh_interval":"5s"}}
[00:05:32]                 │ info [x-pack/test/functional/es_archives/auditbeat/hosts] Indexed 1751 docs into "auditbeat-8.0.0-2019.02.19-000001"
[00:05:32]                 │ info [x-pack/test/functional/es_archives/auditbeat/hosts] Indexed 1 docs into "winlogbeat-8.0.0-2019.02.19-000001"
[00:05:32]               └-> should be able to create a new webhook action and update a rule with the webhook action
[00:05:32]                 └-> "before each" hook: global before each for "should be able to create a new webhook action and update a rule with the webhook action"
[00:05:32]                 └-> "before each" hook for "should be able to create a new webhook action and update a rule with the webhook action"
[00:05:32]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [node-01] adding index lifecycle policy [.siem-signals-default]
[00:05:32]                   │ info [o.e.c.m.MetadataIndexTemplateService] [node-01] adding index template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:05:32]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:05:32]                   │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:05:33]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:05:33]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:05:36]                 └- ✓ pass  (3.0s)
[00:05:36]               └-> "after each" hook for "should be able to create a new webhook action and update a rule with the webhook action"
[00:05:36]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.siem-signals-default-000001/K56l2IYaSeiAGJkpTrn1qg] deleting index
[00:05:36]                 │ info [o.e.c.m.MetadataIndexTemplateService] [node-01] removing index template [.siem-signals-default]
[00:05:37]               └-> should be able to add a new webhook action and then remove the action from the rule again
[00:05:37]                 └-> "before each" hook: global before each for "should be able to add a new webhook action and then remove the action from the rule again"
[00:05:37]                 └-> "before each" hook for "should be able to add a new webhook action and then remove the action from the rule again"
[00:05:37]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [node-01] adding index lifecycle policy [.siem-signals-default]
[00:05:37]                   │ info [o.e.c.m.MetadataIndexTemplateService] [node-01] adding index template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:05:37]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:05:37]                   │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:05:37]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:05:37]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:05:41]                 └- ✓ pass  (3.8s)
[00:05:41]               └-> "after each" hook for "should be able to add a new webhook action and then remove the action from the rule again"
[00:05:41]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.siem-signals-default-000001/qRbtBOHMTSagsGDkLn4W0Q] deleting index
[00:05:41]                 │ info [o.e.c.m.MetadataIndexTemplateService] [node-01] removing index template [.siem-signals-default]
[00:05:42]               └-> should be able to create a new webhook action and attach it to a rule without a meta field and run it correctly
[00:05:42]                 └-> "before each" hook: global before each for "should be able to create a new webhook action and attach it to a rule without a meta field and run it correctly"
[00:05:42]                 └-> "before each" hook for "should be able to create a new webhook action and attach it to a rule without a meta field and run it correctly"
[00:05:42]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [node-01] adding index lifecycle policy [.siem-signals-default]
[00:05:42]                   │ info [o.e.c.m.MetadataIndexTemplateService] [node-01] adding index template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:05:42]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:05:42]                   │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:05:42]                   │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:05:42]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:05:46]                 │ proc [kibana] [2021-10-20T17:31:50.082+00:00][INFO ][plugins.eventLog] event logged: {"@timestamp":"2021-10-20T17:31:50.082Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["siem"],"start":"2021-10-20T17:31:50.082Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"99ba5390-31cb-11ec-bf0c-ede23536e1d9","type_id":"siem.signals"}],"task":{"scheduled":"2021-10-20T17:31:49.854Z","schedule_delay":228000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"99ba5390-31cb-11ec-bf0c-ede23536e1d9","license":"basic","category":"siem.signals","ruleset":"siem"},"message":"alert execution start: \"99ba5390-31cb-11ec-bf0c-ede23536e1d9\"","ecs":{"version":"1.8.0"}}
[00:05:47]                 └- ✖ fail: detection engine api security and spaces enabled  update_actions updating actions should be able to create a new webhook action and attach it to a rule without a meta field and run it correctly
[00:05:47]                 │      Error: expected 200 "OK", got 409 "Conflict"
[00:05:47]                 │       at Test._assertStatus (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:268:12)
[00:05:47]                 │       at Test._assertFunction (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:283:11)
[00:05:47]                 │       at Test.assert (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:173:18)
[00:05:47]                 │       at assert (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:131:12)
[00:05:47]                 │       at /dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:128:5
[00:05:47]                 │       at Test.Request.callback (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:05:47]                 │       at /dev/shm/workspace/parallel/9/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:05:47]                 │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:05:47]                 │       at IncomingMessage.emit (node:events:402:35)
[00:05:47]                 │       at endReadableNT (node:internal/streams/readable:1343:12)
[00:05:47]                 │       at processTicksAndRejections (node:internal/process/task_queues:83:21)
[00:05:47]                 │ 
[00:05:47]                 │ 

Stack Trace

Error: expected 200 "OK", got 409 "Conflict"
    at Test._assertStatus (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/parallel/9/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/parallel/9/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/9/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at IncomingMessage.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Kibana Pipeline / general / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/copy_to_space·ts.spaces api with security copy to spaces superuser from the default space single-namespace types should return 200 when copying to space without conflicts or references

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]     │
[00:00:00]       └-: spaces api with security
[00:00:00]         └-> "before all" hook in "spaces api with security"
[00:00:00]         └-> "before all" hook in "spaces api with security"
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_legacy_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_dual_privileges_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_dashboard_only_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_all_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_read_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_1_all_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_1_read_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_2_all_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_2_read_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_1_2_all_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_1_2_read_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:01]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [not_a_kibana_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_legacy_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_dual_privileges_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_dashboard_only_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_all_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_read_user]
[00:00:01]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_1_all_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_1_read_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_2_all_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_2_read_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:02]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:03]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_apm_user]
[00:00:03]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_machine_learning_admin]
[00:00:03]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_machine_learning_user]
[00:00:03]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [a_monitoring_user]
[00:00:03]         └-: copy to spaces
[00:00:03]           └-> "before all" hook in "copy to spaces"
[00:00:09]           └-: superuser from the default space
[00:00:09]             └-> "before all" hook in "superuser from the default space"
[00:00:09]             └-> "before all" hook in "superuser from the default space"
[00:00:09]             └-: single-namespace types
[00:00:09]               └-> "before all" hook for "should return 200 when copying to space without conflicts or references"
[00:00:09]               └-> should return 200 when copying to space without conflicts or references
[00:00:09]                 └-> "before each" hook: global before each for "should return 200 when copying to space without conflicts or references"
[00:00:09]                 └-> "before each" hook for "should return 200 when copying to space without conflicts or references"
[00:00:09]                   │ info [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Loading "mappings.json"
[00:00:09]                   │ info [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Loading "data.json"
[00:00:09]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/FS2zcG63Tpa0rqXw2mphwg] deleting index
[00:00:09]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/ghIfC5QsSWCRynzhGofQmw] deleting index
[00:00:09]                   │ info [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Deleted existing index ".kibana_8.0.0_001"
[00:00:09]                   │ info [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:00:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [api], templates [], shards [1]/[0]
[00:00:09]                   │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:00:09]                   │ info [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Created index ".kibana_8.0.0_001"
[00:00:09]                   │ debg [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] ".kibana_8.0.0_001" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:00:09]                   │ info [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Indexed 34 docs into ".kibana"
[00:00:09]                   │ debg Migrating saved objects
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.522+00:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.524+00:00][INFO ][savedobjects-service] [.kibana] INIT -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 6ms.
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.528+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:00:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:09]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.535+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.538+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:00:09]                   │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_task_manager_8.0.0_001][0]]"
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.585+00:00][INFO ][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 63ms.
[00:00:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/mFqgHBdhRByIu2bMybQRzg] update_mapping [_doc]
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.641+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 103ms.
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.658+00:00][INFO ][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 73ms.
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.658+00:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 139ms
[00:00:09]                   │ info [o.e.t.LoggingTaskListener] [node-01] 3091 finished with response BulkByScrollResponse[took=29.1ms,timed_out=false,sliceId=null,updated=34,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.746+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 105ms.
[00:00:09]                   │ proc [kibana] [2021-10-20T17:43:35.747+00:00][INFO ][savedobjects-service] [.kibana] Migration completed after 229ms
[00:00:09]                   │ debg [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Migrated Kibana index after loading Kibana data
[00:00:09]                   │ debg [x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces] Ensured that default space exists in .kibana
[00:00:09]                 │ proc [kibana] [2021-10-20T17:43:35.806+00:00][ERROR][http] Error: Error fetching objects to export
[00:00:09]                 │ proc [kibana]     at Function.objectFetchError (/dev/shm/workspace/kibana-build-6/src/core/server/saved_objects/export/errors.js:34:12)
[00:00:09]                 │ proc [kibana]     at SavedObjectsExporter.fetchByObjects (/dev/shm/workspace/kibana-build-6/src/core/server/saved_objects/export/saved_objects_exporter.js:167:45)
[00:00:09]                 │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:00:09]                 │ proc [kibana]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[00:00:09]                 │ proc [kibana]     at SavedObjectsExporter.exportByObjects (/dev/shm/workspace/kibana-build-6/src/core/server/saved_objects/export/saved_objects_exporter.js:107:21)
[00:00:09]                 │ proc [kibana]     at exportRequestedObjects (/dev/shm/workspace/kibana-build-6/x-pack/plugins/spaces/server/lib/copy_to_spaces/copy_to_spaces.js:41:26)
[00:00:09]                 │ proc [kibana]     at copySavedObjectsToSpaces (/dev/shm/workspace/kibana-build-6/x-pack/plugins/spaces/server/lib/copy_to_spaces/copy_to_spaces.js:74:34)
[00:00:09]                 │ proc [kibana]     at /dev/shm/workspace/kibana-build-6/x-pack/plugins/spaces/server/routes/api/external/copy_to_space.js:105:26
[00:00:09]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:163:30)
[00:00:09]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:00:09]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:00:09]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:00:09]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:00:09]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:371:32)
[00:00:09]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:281:9)
[00:00:09]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/mFqgHBdhRByIu2bMybQRzg] update_mapping [_doc]
[00:00:09]                 └- ✖ fail: spaces api with security copy to spaces superuser from the default space single-namespace types should return 200 when copying to space without conflicts or references
[00:00:09]                 │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:00:09]                 │       at Test._assertStatus (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:268:12)
[00:00:09]                 │       at Test._assertFunction (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:283:11)
[00:00:09]                 │       at Test.assert (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:173:18)
[00:00:09]                 │       at assert (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:131:12)
[00:00:09]                 │       at /dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:128:5
[00:00:09]                 │       at Test.Request.callback (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:00:09]                 │       at /dev/shm/workspace/parallel/6/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:00:09]                 │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:00:09]                 │       at IncomingMessage.emit (node:events:402:35)
[00:00:09]                 │       at endReadableNT (node:internal/streams/readable:1343:12)
[00:00:09]                 │       at processTicksAndRejections (node:internal/process/task_queues:83:21)
[00:00:09]                 │ 
[00:00:09]                 │ 

Stack Trace

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/parallel/6/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/parallel/6/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/6/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at IncomingMessage.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

and 2 more failures, only showing the first 3.

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jportner jportner linked an issue Oct 20, 2021 that may be closed by this pull request
@jportner
Copy link
Contributor

Will plan to fix these this afternoon. Shouldn't be too tough!

@crob611 crob611 requested a review from a team as a code owner October 22, 2021 03:08
@jportner
Copy link
Contributor

@elasticmachine merge upstream

@jportner
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security/Spaces test changes LGTM

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presentation team changes LGTM!

@jportner
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@crob611 crob611 merged commit edc43c0 into elastic:master Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Dashboard Dashboard related features impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Make Dashboard Saved Object share-capable
5 participants