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] Gradle Check failed on RPM signature check #3689

Closed
peterzhuamazon opened this issue Jun 24, 2022 · 1 comment
Closed

[BUG] Gradle Check failed on RPM signature check #3689

peterzhuamazon opened this issue Jun 24, 2022 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Jun 24, 2022

2.0 branch, 2502198

./gradlew check -Dtests.coverage=true --no-daemon --no-scan

> Task :distribution:packages:no-jdk-rpm:checkLicenseMetadata FAILED
Output for rpm:
error: /var/jenkins/workspace/gradle_check/search/distribution/packages/rpm/build/distributions/opensearch-min-2.0.2-SNAPSHOT.x86_64.rpm: rpmReadSignature failed: sigh load: BAD
error: /var/jenkins/workspace/gradle_check/search/distribution/packages/rpm/build/distributions/opensearch-min-2.0.2-SNAPSHOT.x86_64.rpm: not an rpm package (or package manifest)



* What went wrong:
Execution failed for task ':distribution:packages:no-jdk-rpm:checkLicenseMetadata'.
> Process 'rpm [-qp, --queryformat, %{License}, /var/jenkins/workspace/gradle_check/search/distribution/packages/rpm/build/distributions/opensearch-min-2.0.2-SNAPSHOT.x86_64.rpm]' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

When checking the rpm file directly on the server:


# rpm -qip opensearch-min-2.0.2-SNAPSHOT.x86_64.rpm
Name        : opensearch
Epoch       : 0
Version     : 2.0.2~SNAPSHOT
Release     : 1
Architecture: x86_64
Install Date: (not installed)
Group       : Application/Internet
Size        : 401576620
License     : ASL-2.0
Signature   : (none)
Source RPM  : opensearch-2.0.2~SNAPSHOT-1-src.rpm
Build Date  : Fri 24 Jun 2022 12:25:38 AM UTC
Build Host  : ip-10-0-27-209.ec2.internal
Relocations : /usr
Packager    : OpenSearch
Vendor      : OpenSearch
URL         : https://github.com/opensearch-project/OpenSearch
Summary     : Distributed RESTful search engine built for the cloud
Description :
Reference documentation can be found at
  https://github.com/opensearch-project/OpenSearch



# file opensearch-min-2.0.2-SNAPSHOT.x86_64.rpm
opensearch-min-2.0.2-SNAPSHOT.x86_64.rpm: RPM v3.0 bin opensearch-2.0.2~SNAPSHOT-1

There should not be any license here as core doesnt sign rpms to start with.
I wonder why gradle check is trying to check the license.

Thanks.

@peterzhuamazon
Copy link
Member Author

Update: resolved if you dont use AL2/CentOS but only use Ubuntu.

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
Projects
None yet
Development

No branches or pull requests

1 participant