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

Image Builder fails to create Ubuntu Image on Bare Metal #8211

Closed
vitas13 opened this issue May 24, 2024 · 5 comments
Closed

Image Builder fails to create Ubuntu Image on Bare Metal #8211

vitas13 opened this issue May 24, 2024 · 5 comments

Comments

@vitas13
Copy link

vitas13 commented May 24, 2024

What happened:
The image builder failed to create an Ubuntu image. After checking what happened with VNC we can see following error:

SourcePackage: subiquity
Title: install failed crashed with CalledProcessError
Traceback:
(most recent call last):
File "/snap/subiquity/4380/1ib/python3.8/site-packages/subiquity/server/controllers/install-py", line 290, in install await self.postinstall(context=context)
File "/snap/subiquity/4380/1ib/python3.8/site-packages/subiquitycore/context.py", Line 148, in decorated _async return await meth(self, *ku)
File "/snap/subiquity/4380/1ib/python3.8/site-packages/subiquity/server/controllers/install.py", Line 325, in postinstall await self.run_unattended_upgrades(context=context, policy=policy)
File "/snap/subiquity/4380/1ib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async return await meth (self, **ku)
File "/snap/subiquity/4380/1ib/python3.8/site-packages/subiquity/server/controllers/install.py", Line 371, in run_unattended_ upgrades await self.unattended_upgrades_cd.wait()
File */snap/subiquity/4380/1ib/python3.8/site-packages/subiquity/server/curtin.py", line 116, in wait
result = await self-runner.wait (self.proc)
File "/snap/subiquity/4380/1ib/python3.site-packages/subiquity/server/runner.py", line 84, in wait raise subprocess.calledProcesserror (proc-returncode, proc.args!
subprocess.CalledProcessError:
-v'I' returned non-zero exit status 1.

After that cluster creation process failed. We can reproduce it whenever we start starting cluster creation process.
What you expected to happen:
Ubuntu image is created.

How to reproduce it (as minimally and precisely as possible):
Start cluster creation process with Bare Metal provider.

Anything else we need to know?:
``
Environment:

  • EKS Anywhere Release: 0.19.6
@vitas13
Copy link
Author

vitas13 commented May 27, 2024

It’s the same problem as described here:
aws/eks-anywhere-build-tooling#3058

@jiayiwang7
Copy link
Member

It’s the same problem as described here: aws/eks-anywhere-build-tooling#3058

This problem can be resolved following the steps here: #7982 (comment)

We might add this workaround to the Artifacts doc page.

@abhay-krishna
Copy link
Member

Hello @vitas13, The permanent fix for this issue has been included in the image-builder CLI that ships with EKS-A v0.19.4 and above. May I know the image-builder CLI version you're using for the build? Was it downloaded recently or is it an older image-builder CLI?

In general, we recommend upgrading the image-builder CLI as well whenever you upgrade the EKS-A CLI. If the image-builder CLI you have on your machine is not the latest one, kindly refer to the installation docs to download the latest CLI. Once you have installed the latest image-builder, you can retry the build and it should produce the desired bare metal image.

@vitas13
Copy link
Author

vitas13 commented May 29, 2024

Thanks @abhay-krishna . Fix mentioned here aws/eks-anywhere-build-tooling#3058 works.
We are using the newest version of the image-builder available.

@abhay-krishna
Copy link
Member

Thanks @abhay-krishna . Fix mentioned here aws/eks-anywhere-build-tooling#3058 works. We are using the newest version of the image-builder available.

Great! If your issue has been resolved, feel free to close it. Thanks!

@vitas13 vitas13 closed this as completed May 29, 2024
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

3 participants