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

[BUG] Plugin Build Fails Due to missing nebula Dependencies. #5121

Closed
cliu123 opened this issue Nov 8, 2022 · 28 comments · Fixed by #5127
Closed

[BUG] Plugin Build Fails Due to missing nebula Dependencies. #5121

cliu123 opened this issue Nov 8, 2022 · 28 comments · Fixed by #5127
Labels
bug Something isn't working untriaged v2.4.0 'Issues and PRs related to version v2.4.0'

Comments

@cliu123
Copy link
Member

cliu123 commented Nov 8, 2022

Describe the bug
https://github.com/opensearch-project/security/actions/runs/3415191485/jobs/5684117326

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'opensearch-security'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.netflix.nebula:nebula-core:3.0.0.
     Required by:
         project : > org.opensearch.gradle:build-tools:3.0.0-SNAPSHOT:20221103.083150-511 > com.netflix.nebula:nebula-publishing-plugin:4.4.4
      > Could not resolve com.netflix.nebula:nebula-core:3.0.0.
         > Could not get resource 'https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/com/netflix/nebula/nebula-core/3.0.0/nebula-core-3.0.0.pom'.
            > Could not GET 'https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/com/netflix/nebula/nebula-core/3.0.0/nebula-core-3.0.0.pom'. Received status code 403 from server: Forbidden
@cliu123 cliu123 added bug Something isn't working untriaged labels Nov 8, 2022
@cliu123
Copy link
Member Author

cliu123 commented Nov 8, 2022

I discussed this with @mch2 offline. Would you please provide more context on this?

@ylwu-amzn
Copy link
Contributor

We see same issue in ml-commons Github CI today which passed last Friday.

@cliu123 cliu123 added the v2.4.0 'Issues and PRs related to version v2.4.0' label Nov 8, 2022
@cliu123
Copy link
Member Author

cliu123 commented Nov 8, 2022

I'm tagging this for 2.4.0 since it's blocking the last PR of security plugin for 2.4.0.
@CEHENKLE @bbarani @peterzhuamazon

@peterzhuamazon
Copy link
Member

Break all the build repo manifest checks:
https://github.com/opensearch-project/security/actions/runs/3415205437/jobs/5684070899

@MaxKsyunz
Copy link

Just seeing this now with SQL plugin.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

The error in the original issue says org.opensearch.gradle:build-tools:3.0.0-SNAPSHOT which is 3.0, where are we seeing this for 2.4?

@cliu123
Copy link
Member Author

cliu123 commented Nov 8, 2022

@dblock PRs need to be merged to main(3.0.0) and then backported to 2.4.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

@cliu123 Just make the PR on 2.x and backport it the other direction.

@mch2
Copy link
Member

mch2 commented Nov 8, 2022

Looks like version 4.4.4 of the publish plugin depends on nebula-core 3.0.0 which is not in maven central. These are all very old versions of these plugins (latest is v19) but I think we can update to 4.6.0 or 4.10.0 and resolve the issue.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

@mch2 The above seems to imply that it worked before. Was it removed from maven? Weird. But yes upgrading to a newer 4.x should be harmless. Are you on it?

@mch2
Copy link
Member

mch2 commented Nov 8, 2022

@dblock Yeah it must have been removed but I'm not sure how to check that. Will PR to a 4.x version shortly.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

It just failed in 2.4 here

@peterzhuamazon
Copy link
Member

Issue was found as old as April this year:
#3097 (comment)

@peterzhuamazon
Copy link
Member

Related dependabot:
#4810

@mch2 mch2 closed this as completed in #5127 Nov 8, 2022
@MaxKsyunz
Copy link

What do you think about updating nebula-publishing-plugin to 4.9.1? It no longer depends on nebula-core and the last available version in 4.x branch.

4.6.0. works because it specifies latest.release as required nebula-core version. They moved on from that in 4.7.0 -- 20 days later.

nebula-core itself is archived on GitHub. The only version I can find on Maven Central is 5.0.0 which was not released from the GitHub project.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

@MaxKsyunz That's a good path. We'll work through this today. I tried this quickly and ran into more problems. If you want to attempt this in parallel, that would be greatly appreciated.

Do you have any idea why 4.4.0 stopped working?

@peternied
Copy link
Member

The change hasn't made it into 2.4.0 snapshot builds, reopening this issue until builds in all active branches are fully unblocked

@dblock
Copy link
Member

dblock commented Nov 8, 2022

#5132 includes the nebula fix for 2.4

@dblock dblock closed this as completed Nov 8, 2022
@peternied
Copy link
Member

The last build for 2.4.0 is more than 3 days ago [1] so #5127 was not included.

@opensearch-project/engineering-effectiveness does another build need to be triggered manually?

[1] https://build.ci.opensearch.org/job/distribution-build-opensearch/6425/

@dblock
Copy link
Member

dblock commented Nov 8, 2022

I see 2.4.0 auto build disabled in opensearch-project/opensearch-build#2852. Already raised a while ago that we shouldn't be disabling that, so this is another data point. Who knows how to kick it? cc: @bbarani @peterzhuamazon

@prudhvigodithi
Copy link
Member

Hey @dblock I see it was disabled because the Release candidate for 2.4.0 is locked.

@dblock
Copy link
Member

dblock commented Nov 8, 2022

@prudhvigodithi what bad thing would happen if we didn't?

@prudhvigodithi
Copy link
Member

I see the RC is fixed to specific build numbers opensearch:2.4.0.6425, opensearch-dashboards:2.4.0.4275, we can still continue to run the auto builds, but only the downloads with /latest URL could break
Example https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.4.0/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-job-scheduler-2.4.0.0.zip
@peterzhuamazon @bbarani

@dblock
Copy link
Member

dblock commented Nov 8, 2022

Latest does not imply "release candidate", and I don't think it should.

@peterzhuamazon
Copy link
Member

I see 2.4.0 auto build disabled in opensearch-project/opensearch-build#2852. Already raised a while ago that we shouldn't be disabling that, so this is another data point. Who knows how to kick it? cc: @bbarani @peterzhuamazon

We have to disable the build at this point for the release but we can introduce -rc input manifests later.

Thanks.

@MaxKsyunz
Copy link

@MaxKsyunz That's a good path. We'll work through this today. I tried this quickly and ran into more problems. If you want to attempt this in parallel, that would be greatly appreciated.

Yup. I'll take a look.

Do you have any idea why 4.4.0 stopped working?

No, I couldn't figure out why nebula-core 3.0.0 disappeared.

@gaiksaya
Copy link
Member

gaiksaya commented Nov 8, 2022

I see 2.4.0 auto build disabled in opensearch-project/opensearch-build#2852. Already raised a while ago that we shouldn't be disabling that, so this is another data point. Who knows how to kick it? cc: @bbarani @peterzhuamazon

We have to disable the build at this point for the release but we can introduce -rc input manifests later.

Thanks.

@peterzhuamazon if we have release candidate ready, docker has the specific tag and urls have the buildNumber in their path, it should be okay to keep building right? Basically, whatever we will be shipping to customer or final product is locked now so whatever else it overrides shouldn't be a concern.

@peterzhuamazon
Copy link
Member

We have published the latest snapshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged v2.4.0 'Issues and PRs related to version v2.4.0'
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants