aws / aws/amazon-ssm-agent

RPM fails to install with RedHat Image builder

Open
#523 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

The RPM works fine when manually installed. However, when building an image with RedHat Image Builder, the following error occurs:

`error: Failed dependencies:
/bin/sh is needed by amazon-ssm-agent-3.2.923.0-1.x86_64
Traceback (most recent call last):
File "/run/osbuild/bin/org.osbuild.rpm", line 400, in
r = main(args["tree"], args["inputs"], args["options"])
File "/run/osbuild/bin/org.osbuild.rpm", line 360, in main
], cwd=pkgpath, check=True)
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['rpm', '--verbose', '--root', '/run/osbuild/tree', '--nosignature', '--install', '/tmp/manifest.ebfnfx_2']' returned non-zero exit status 254.`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the amazon-ssm-agent RPM installation through Red Hat Image Builder and review the reported /run/osbuild/bin/org.osbuild.rpm traceback and package dependency error. Done means the RPM installs successfully during image building without the /bin/sh dependency failure.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.