Hi Team,
I am using packer 1.9.1 and using inspec provisioner to create AWS AMI.
All the inspec rules that i have locally get executed without any issues.
However i see additional rules below are getting executed and it fails at this point.
I do not have any tests that check for “/etc/machine-id” etc.
linux.amazon-ebs.amz2023arm64: D, [2023-07-05T15:46:54.439496 #1951] DEBUG – : [SSH] ec2-user@127.0.0.1 cmd = test -e /etc/chef/chef_guid
linux.amazon-ebs.amz2023arm64: D, [2023-07-05T15:46:55.273032 #1951] DEBUG – : [SSH] ec2-user@127.0.0.1 cmd = test -e /root/.chef/chef_guid
linux.amazon-ebs.amz2023arm64: D, [2023-07-05T15:46:56.276123 #1951] DEBUG – : [SSH] ec2-user@127.0.0.1 cmd = test -e /etc/machine-id
linux.amazon-ebs.amz2023arm64: D, [2023-07-05T15:46:57.091045 #1951] DEBUG – : [SSH] ec2-user@127.0.0.1 cmd = stat -L /etc/machine-id 2>/dev/null --printf ‘%s
linux.amazon-ebs.amz2023arm64: %f
linux.amazon-ebs.amz2023arm64: %U
linux.amazon-ebs.amz2023arm64: %u
linux.amazon-ebs.amz2023arm64: %G
linux.amazon-ebs.amz2023arm64: %g
linux.amazon-ebs.amz2023arm64: %X
linux.amazon-ebs.amz2023arm64: %Y
linux.amazon-ebs.amz2023arm64: %C’
linux.amazon-ebs.amz2023arm64: D, [2023-07-05T15:46:58.029651 #1951] DEBUG – : [SSH] ec2-user@127.0.0.1 cmd = cat /etc/machine-id || echo -n
==> linux.amazon-ebs.amz2023arm64: Provisioner failed with “Error executing Inspec: Inspec exited with unexpected exit status: 100. Expected exit codes are: [0 101]”, retrying with 18 trie(s) left