-
Notifications
You must be signed in to change notification settings - Fork 5
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
ods-buildah build completes successfully without Aqua being installed correctly #638
Comments
Interesting, this happened some time ago as well, I think there is something wrong with how the Aqua scanner is provided. There is an Finally, just for context: the download of the Aqua scanner will likely be moved to happen in the task instead of being downloaded in the wrapper image, see #621. |
Sorry for not clarifying, yes, 0.7.0 was used. good to know wrt. #621. Then I will remove Aqua in this project for now. |
@henninggross Simply rebuilding the image should fix your issue and you can use Aqua. #621 is not removing Aqua, it is just changing how it is installed. |
I tried rebuilding three times but that did not fix the issue. Actually today I tried a fourth time and Aqua was installed successfully. |
I am going to reopen this because the issue that the tasks succeeds without the scanner being involved is still there. |
Closing now that #621 is merged. |
It seems that Aqua is serving an empty binary sometimes. Because the status code is 200, and the resulting file is executable, there is no error until the scanner is invoked. The code change prevents this by testing if the output of the version command is empty. It's a very basic check but should catch the weird behaviour we have now observed a few times. See #638.
In a new ods-pipeline installation I did for a project the pipeline runs were failing in the
package-image
step with the following error:As there was an issue with aqua somehow I checked the logs of the successful
ods-buildah
build an noticed the following:compared to a successful installation of aqua in a different project:
It is obvious that something is incorrectly setup leading to the aqua scanner not being downloaded, but no matter the reason why the aqua installation failed, the build should not complete successfully if the aqua scanner wasn't download and installed correctly.
The text was updated successfully, but these errors were encountered: