aws / amazon-ecs-ami

Packer recipes for building the official ECS-optimized Amazon Linux AMIs
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
Apache License 2.0
203 stars 47 forks source link

Error in POSTTRANS scriptlet in rpm package microcode_ctl #336

Closed cbittencourt closed 1 week ago

cbittencourt commented 2 weeks ago

Summary

Noticed the following error when building al2023. It may have been there before.

    amazon-ebs.al2023:   Running scriptlet: microcode_ctl-2:2.1-53.amzn2023.0.9.x86_64           23/23
    amazon-ebs.al2023: warning: %posttrans(microcode_ctl-2:2.1-53.amzn2023.0.9.x86_64) scriptlet failed, exit status 1
    amazon-ebs.al2023:
==> amazon-ebs.al2023: Error in POSTTRANS scriptlet in rpm package microcode_ctl

Description

The build continues and an AMI is generated. So I don't know what issues, if any, would occur due to this issue.

Expected Behavior

No scriptlet failure

Observed Behavior

Environment Details

$ docker info
Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.20.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version:
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-45-generic
 Operating System: Ubuntu Core 22
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 3.824GiB
 Name: buildbox
 ID: 385549a1-7b77-4fce-8f6b-b39f1dc48b8e
 Docker Root Dir: /var/snap/docker/common/var-lib-docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
$ packer --version
Packer v1.11.0

Supporting Log Snippets

cbittencourt commented 1 week ago

The issue is gone after rebasing and rerunning the build.