Closed tkrishtop closed 2 years ago
@tkrishtop this is a duplicate https://github.com/redhat-openshift-ecosystem/openshift-preflight/issues/169
@vikasmulaje thank you. There is already a discussion in #169, so I close this one.
Hello team, I'm testing the latest preflight tag b00d46ad3531b3059a2e1ffda3fa3531a669f0ec
.
Here is the job that tests two operators: simple-demo-operator and testpmd-operator, here are all the log files.
Here is the exact version of the operator and its index image:
image: "quay.io/opdev/simple-demo-operator-bundle@sha256:eff7f86a54ef2a340dbf739ef955ab50397bef70f26147ed999e989cfc116b79"
index_image: "quay.io/opdev/simple-demo-operator-catalog:v0.0.3"
Here is the exact version of the operator and its index image:
image: "quay.io/rh-nfv-int/testpmd-operator-bundle@sha256:5e28f883faacefa847104ebba1a1a22ee897b7576f0af6b8253c68b5c8f42815"
index_image: "quay.io/tkrishtop/index-testpmd-operator-bundle:v0.2.9"
Tested it with preflight 1.0.5, the issue is fixed:
https://www.distributed-ci.io/jobs/cbfc5b94-654e-4a27-9494-a78051fa891b/files
"failed": [
{
"name": "ValidateOperatorBundle",
"elapsed_time": 114,
"description": "Validating Bundle image that checks if it can validate the content and format of the operator bundle",
"help": "Check ValidateOperatorBundle encountered an error. Please review the preflight.log file for more information.",
"suggestion": "Valid bundles are defined by bundle spec, so make sure that this bundle conforms to that spec. More Information: https://github.com/operator-framework/operator-registry/blob/master/docs/design/operator-bundle.md",
"knowledgebase_url": "https://connect.redhat.com/zones/containers/container-certification-policy-guide",
"check_url": "https://connect.redhat.com/zones/containers/container-certification-policy-guide"
},
{
"name": "ScorecardOlmSuiteCheck",
"elapsed_time": 5309,
"description": "Operator-sdk scorecard OLM Test Suite Check",
"help": "Check ScorecardOlmSuiteCheck encountered an error. Please review the /artifacts/operator_bundle_scorecard_OlmSuiteCheck.json file for more information.",
"suggestion": "See scorecard output for details, artifacts/operator_bundle_scorecard_OlmSuiteCheck.json",
"knowledgebase_url": "https://sdk.operatorframework.io/docs/advanced-topics/scorecard/scorecard/#overview",
"check_url": "https://sdk.operatorframework.io/docs/advanced-topics/scorecard/scorecard/#olm-test-suite"
}
],
artifacts/operator_bundle_scorecard_OlmSuiteCheck.json is present and not empty:
{
"kind": "TestList",
"apiVersion": "scorecard.operatorframework.io/v1alpha3",
"items": [
{
"kind": "Test",
"apiVersion": "scorecard.operatorframework.io/v1alpha3",
"spec": {
"image": "quay.io/operator-framework/scorecard-test@sha256:3d80797ee809f09334e8af51a6aad94877de6ad790dffcab9122a853fe420050",
"entrypoint": [
"scorecard-test",
"olm-bundle-validation"
],
"labels": {
"suite": "olm",
"test": "olm-bundle-validation-test"
},
"storage": {
"spec": {
"mountPath": {}
}
}
},
"status": {
"results": [
{
"name": "olm-bundle-validation",
"log": "time=\"2021-11-23T10:08:01Z\" level=debug msg=\"Found manifests directory\" name=bundle-test\ntime=\"2021-11-23T10:08:01Z\" level=debug msg=\"Found metadata directory\" name=bundle-test\ntime=\"2021-11-23T10:08:01Z\" level=debug msg=\"Getting mediaType info from manifests directory\" name=bundle-test\ntime=\"2021-11-23T10:08:01Z\" level=debug msg=\"Found annotations file\" name=bundle-test\ntime=\"2021-11-23T10:08:01Z\" level=debug msg=\"Could not find optional dependencies file\" name=bundle-test\n",
"state": "fail",
"errors": [
"Error: Value testpmd-operator-controller-manager: invalid service account found in bundle. sa name cannot match service account defined for deployment spec in CSV"
],
"creationTimestamp": null
}
]
}
}
]
}
Bug Description
File operator_bundle_scorecard_OlmSuiteCheck.json mentioned in results.json is absent in /artifacts
Version and Command Invocation
The latest preflight master + operator-sdk latest master inside:
docker.io/sbarouti/preflight:operator-sdk
Steps to Reproduce:
1) The command to run:
2) results.json mentions that there is more info in artifacts/operator_bundle_scorecard_OlmSuiteCheck.json.
3) This file is absent in /artifacts
Expected Result
To have file operator_bundle_scorecard_OlmSuiteCheck.json in /artifacts.
Actual Result
There is no file operator_bundle_scorecard_OlmSuiteCheck.json in /artifacts.
Additional Context
Here are errors in preflight.log
Here is a corresponding part of results.json
Here are the errors I have when running
operator-sdk scorecard
directly