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

Kas fails to run with latest update from release 4.7 #143

Open
johnvvang opened this issue Mar 3, 2025 · 3 comments
Open

Kas fails to run with latest update from release 4.7 #143

johnvvang opened this issue Mar 3, 2025 · 3 comments

Comments

@johnvvang
Copy link

Hi,
I have a codebuild project set up to build my image and it is currently just tracking the latest kas from master. It's set up to build on a daily basis and it's been working fine until 3 days ago my build failed at running kas build image.yaml. The specific error I got is:

[Container] 2025/03/03 16:01:28.607261 Running command kas build image.yaml
/codebuild/output/tmp/script.sh: 4: kas: Permission denied

I believe the issue started with 59e55e4...2694ad6
Please let me know there's anything I should note before using the latest kas commits.

Cheers,
John

@jan-kiszka
Copy link
Collaborator

Thanks for tracking regressions and reporting! Can you share more about what you are testing and how?

The referenced changes primarily bring dropping of Python < 3.9. Is your host affected by that? We have also dropped some workaround for older Python (8a2296b). Those changes come closest right to playing a role, but the key is understanding what is actually your test setup.

@johnvvang
Copy link
Author

We have a AWS codebuild project defined in our pipeline. The codebuild project spins up a Linux EC2 container that hosts the image build. The process contains the following steps:

  1. Set up the host environment - e.g. installing packages such as debootstrap, tree, git, python3, etc. We don't specify version on these packages so it would be whatever the latest when codebuild project is executed.
  2. Retrieve kas from https://github.com/siemens/kas.git
  3. Install kas via pip3
  4. Retrieve our own build package (we use ISAR - great job on that one!)
  5. Run kas build xxxx.yaml to start the build
    This process has been working for a while and only started to break till last Saturday. And I can confirm by using kas 4.6 solved the issue.

@jan-kiszka
Copy link
Collaborator

"And I can confirm by using kas 4.6 solved the issue." - did you mean 4.7?

Anyway, we still need more in order to help you. Options:

  • you share the code/scripts that you run inside EC2 so that we can reproduce the issue
  • if that is not possible, you try to reduce / rewrite your test case to something that is shareable
  • if that fails, you try to debug the issue in your environment, and we can only support with suggestions based on what you report along the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants