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

Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup. #116399

Closed
ghost opened this issue Oct 27, 2021 · 15 comments
Labels
bug Fixes for quality problems that affect the customer experience critical Feature:Cross Cluster Search fixed triage_needed

Comments

@ghost
Copy link

ghost commented Oct 27, 2021

Describe the bug:
Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup.
Kibana/Elasticsearch Stack version:

Version: 7.16.0
Build: 45504
Commit: 9231d806c9384df4026977ba7435a9302dc2d4ab

Pre-Conditions

  1. Kibana should be up and running
  2. Elastic search should be up and running
  3. 7.16 build should be present as parent build and 7.15 as child build

Steps to reproduce:

  1. Get the Proxy and server address of the 7.15 build from the Deployment>Security
  2. Navigate to Stack management > Remote clusters under Data on 7.16 build
  3. Create the remote cluster with Proxy and Server address of 7.15 build.
  4. Navigate to Index pattern under Kibana and click on create Index pattern

Current behavior:
Index pattern is not getting created.

Expected behavior:
Index Pattern Should be created.

Screen Records what's not working:

Recording.12.mp4

Screen Record what's working:

  1. Working when 7.15 is parent build and 7.16 is child build
Recording.13.mp4
  1. Working when 7.15 is a parent build and 7.14 is a child build
remote_cluster_7.15.0.and.7.14.0.mp4
@ghost ghost added bug Fixes for quality problems that affect the customer experience Feature:Cross Cluster Search triage_needed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Oct 27, 2021
@ghost ghost self-assigned this Oct 27, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@ghost ghost added critical and removed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Oct 27, 2021
@ghost ghost assigned MadameSheema and unassigned ghost Oct 27, 2021
@MadameSheema MadameSheema changed the title [Security Solution] Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup. Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup. Oct 27, 2021
@MadameSheema MadameSheema removed the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 27, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 27, 2021
@MadameSheema MadameSheema added Team:AppServicesSv and removed needs-team Issues missing a team label labels Oct 27, 2021
@MadameSheema MadameSheema removed their assignment Oct 27, 2021
@bhavyarm
Copy link
Contributor

Hey team - can you please check this bug - #115904? We have this in works - #115942 . TLDR - is your user missing "view_index_metadata" permissions?

Thanks!

@Dosant
Copy link
Contributor

Dosant commented Oct 27, 2021

Some additional observations:

  • 7.16 parent and 7.16 child - works

  • When calling GET /_resolve/index/7_15:* from dev tools app I get the correct result, but there are no results when going through the index pattern UI, which under the hood calls client.asCurrentUser.indices.resolveIndex

const { body } = await context.core.elasticsearch.client.asCurrentUser.indices.resolveIndex({
name: req.params.query,
expand_wildcards: req.query.expand_wildcards || 'open',
});
return res.ok({ body });

For now, I don't understand what's the difference and where is the problem

@Dosant
Copy link
Contributor

Dosant commented Oct 27, 2021

When calling GET /_resolve/index/7_15:* from dev tools app I get the correct result, but there are no results when going through the index pattern UI, which under the hood calls client.asCurrentUser.indices.resolveIndex

I found the difference between raw requests to elasticsearch that is causing this difference. Looks like it is x-opaque-id header. It is present when calling via elasticsearch client and is missing when calling via dev tools. When calling with with this header - then GET /_resolve/index/7_15:* doesn't return results from remote cluster.

Sample request to 7.16 cluster with remote 7.15 that works:

GET /_resolve/index/7_15:*?expand_wildcards=open HTTP/1.1
Host: localhost:9200
Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==

Sample request to 7.16 cluster with remote 7.15 that returns empty result:

GET /_resolve/index/7_15:*?expand_wildcards=open HTTP/1.1
Host: localhost:9200
x-opaque-id: test
Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==

This seems surreal to me...

@elastic/kibana-core, do we know of any change with x-opaque-id in 7.16.0? otherwise this might be a es bug

@Dosant
Copy link
Contributor

Dosant commented Oct 27, 2021

do we know of any change with x-opaque-id in 7.16.0? otherwise this might be a es bug

Checked that 7.15 Kibana does the same request and has x-opaque-id so the issue is likely not in Kibana

I also observed the same issue when using 7.15 snapshot -> 7.14 cluster, so we will probably have the same bug in 7.15.2 release.

7.15.1 -> 7.14 works as expected.

@Dosant
Copy link
Contributor

Dosant commented Oct 28, 2021

es issue is fixed elastic/elasticsearch#79948, so we should be good with the next build candidate

@Dosant Dosant closed this as completed Oct 28, 2021
@ghost
Copy link
Author

ghost commented Oct 29, 2021

Hi Team,

We have validated this issue on 7.16.0 BC2 build and issue is still occurring, we will regress this issue again once 7.16.0 BC3 build will be available.

Build Details:

Version: 7.16.0 BC2
Build:  45662
Commit: ae8c5d7765636dd177c72ab19408a0791eba491f

Screen record:

Recording.18.mp4

Hence, we are reopening this issue.

Thanks!!

@ghost ghost reopened this Oct 29, 2021
@Dosant
Copy link
Contributor

Dosant commented Oct 29, 2021

@karanverma-qasource, thank you for reopening,
indeed the es commit that was supposed to fix this didn't make it to BC2

@MikePaquette
Copy link

MikePaquette commented Nov 3, 2021

Team, should this issue be raised as a blocker in 7.16.0 in https://github.com/elastic/dev/issues/1809 ? It's a show-stopper for users upgrading the CCS cluster with remotes at 7.15. cc: @kobelb

@kobelb
Copy link
Contributor

kobelb commented Nov 3, 2021

@MikePaquette, in my opinion, this should be a blocker for 7.16, I'll add it as such.

@Dosant
Copy link
Contributor

Dosant commented Nov 8, 2021

@karanbirsingh-qasource,

we will regress this issue again once 7.16.0 BC3 build will be available.

I just tested with the recent BC3 in cloud, the issue seems to be fixed, I'll leave the issue open for you to confirm and close

@ghost
Copy link
Author

ghost commented Nov 8, 2021

Hi Team,

We have validated the issue on 7.16.0 BC3 build and issue is fixed.

Build Details:

Version: 7.16.0 BC3
Build: 45816
Commit: acaa761f4ce46680fd7cfbeba03a652c72dc786b

Screen Records:

Recording.21.mp4

Please let us know if anything else is required from our end.

Thanks!!

@ghost ghost closed this as completed Nov 8, 2021
@ghost ghost added the fixed label Nov 8, 2021
@ghost
Copy link

ghost commented Nov 8, 2021

Hi Team,

Validated the issue on other old version too and there too success in remote cluster and index pattern creation ✅

  • 7.16.0 BC3 Parent and 7.14.2 Child

image

  • 7.16.0 BC3 Child and 7.14.2 Parent

image

  • 7.16.0 BC3 Parent and 7.13.0 Child

image

  • 7.16.0 BC3 Child and 7.13.0 Parent
    image

c.c @MadameSheema

@bhavyarm
Copy link
Contributor

bhavyarm commented Nov 8, 2021

Thanks @karanbirsingh-qasource

@ghost
Copy link

ghost commented Nov 22, 2021

Hi @MadameSheema,

We have validated this issue on 7.16.0 BC5 with other old versions and there too success in remote cluster and index pattern creation 🟢

Build Details:

Version:7.16.0 BC5
Build: 46061
COMMIT: f13296db8798dd0cd39ab6cc4a61a35a2a2b05cc
  • 7.16.0 BC5 Parent and 7.15.0 Child
ccs.mp4

image

  • 7.16.0 BC5 Parent and 7.14.0 Child
    image

  • 7.16.0 BC5 Child and 7.15.0 Parent
    image

Thanks!!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience critical Feature:Cross Cluster Search fixed triage_needed
Projects
None yet
Development

No branches or pull requests

6 participants