Open HuijingHei opened 3 months ago
We document S3 setup in https://docs.fedoraproject.org/en-US/fedora-coreos/provisioning-aws/#_remote_ignition_configuration. Can you give this a try?
If the "plain" S3 support works then it's something specific to the arn
logic: https://docs.aws.amazon.com/fr_fr/IAM/latest/UserGuide/reference-arns.html
We document S3 setup in https://docs.fedoraproject.org/en-US/fedora-coreos/provisioning-aws/#_remote_ignition_configuration. Can you give this a try?
Test with S3 url s3://hhei-test/ssh.ign
( using 40.20240728.2.1
), vm failed to boot with fetch config: AccessDenied: Access Denied
, same logs as above. And the presigned url works.
We document S3 setup in https://docs.fedoraproject.org/en-US/fedora-coreos/provisioning-aws/#_remote_ignition_configuration. Can you give this a try?
Test with S3 url
s3://hhei-test/ssh.ign
( using40.20240728.2.1
), vm failed to boot withfetch config: AccessDenied: Access Denied
, same logs as above. And the presigned url works.
The root cause is the VM missing IAM instance profile
with s3:GetObject
permission, after add related role, it works. Refer to the iam roles in bootstrap https://github.com/openshift/installer/blob/master/upi/aws/cloudformation/04_cluster_bootstrap.yaml#L107-L136
Thanks! Can you update the docs?
Describe the bug
Start vm on aws using
fedora-coreos-40.20240709.2.0-x86_64
, download ignition config from the bucket using arn{"ignition":{"config":{"replace":{"source":"arn:aws:s3:::hhei-test/ssh.ign"}},"version":"3.4.0"}}
or s3, failed with "AccessDenied: Access Denied"Reproduction steps
fedora-coreos-40.20240709.2.0-x86_64
{"ignition":{"config":{"replace":{"source":"arn:aws:s3:::hhei-test/ssh.ign"}},"version":"3.4.0"}}
Expected behavior
Failed to boot with
failed to fetch config: AccessDenied: Access Denied
Actual behavior
failed logs:
System details
FCOS version:
fedora-coreos-40.20240709.2.0-x86_64
Butane or Ignition config
No response
Additional information
Related issue https://issues.redhat.com/browse/OCPBUGS-31525