-
Notifications
You must be signed in to change notification settings - Fork 124
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
aws: launch and customize a new instance with remote Ignition file from a S3 bucket #657
base: main
Are you sure you want to change the base?
Conversation
Then you can launch the instance using the same command as xref:#_customized_example[], passing the minimal configuration you just created. | ||
Then you can launch the instance using the following command, passing the minimal configuration you just created. | ||
|
||
Note: You need to create an IAM profile with `s3:GetObject` permission, and attach the role to the instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add here the command to do that as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an URL here about how to create an IAM profile, WDYT?
70c05ed
to
c4a09de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t
c4a09de
to
507b480
Compare
507b480
to
b69eb56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HuijingHei I tried multiple times to go through this without success.
I am able to create roles & profiles I am just constantly getting stuck at Job ignition-fetch.service/start "running" forever.
I noticed that creating an ignition with --pretty results with:
Ignition has failed. Please ensure your config is valid.
the ignition file I used for this:
{"ignition":{"config":{"replace":{"source":"arn:aws:s3:::apiaseck-inf/bootstrap.ign"}},"version":"3.4.0"}}
I also tried:
{"ignition":{"config":{"replace":{"source":"s3://apiaseck-inf/bootstrap.ign"}},"version":"3.4.0"}}
The above was correct as per created bucket through commands provided.
adamsky@fedorapc Work/aws » NAME='apiaseck-inf'
adamsky@fedorapc Work/aws » aws s3 mb s3://$NAME --region us-east-2
At this stage I can only present the last result of my failed attempt:
[ 26.335382] NetworkManager[758]: <info> [1729886778.9297] manager: NetworkManager state is now CONNECTED_GLOBAL
[ 26.392925] NetworkManager[758]: <info> [1729886778.9304] manager: startup complete
[ 26.427019] systemd[1]: Starting ignition-fetch.service - Ignition (fetch)...
[ 26.461496] systemd[1]: Starting nm-wait-online-initrd.service...
[ 26.489977] (ignition)[773]: ignition-fetch.service: Referenced but unset environment variable evaluates to an empty string: IGNITION_ARGS
[ 26.550563] systemd[1]: Finished nm-wait-online-initrd.service.
[ 26.578781] systemd[1]: Starting dracut-initqueue.service - dracut initqueue hook...
[ 26.616773] systemd[1]: Finished dracut-initqueue.service - dracut initqueue hook.
[ 26.652396] systemd[1]: Reached target remote-fs-pre.target - Preparation for Remote File Systems.
[ 26.701118] systemd[1]: Reached target remote-cryptsetup.target - Remote Encrypted Volumes.
[ 26.737374] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[ 26.770933] systemd[1]: coreos-livepxe-rootfs.service - Acquire Live PXE rootfs Image was skipped because of an unmet condition check (ConditionPathExists=/run/ostree-live).
[ 26.845810] systemd[1]: coreos-livepxe-persist-osmet.service - Persist Osmet Files (PXE) was skipped because of an unmet condition check (ConditionPathExists=/run/ostree-live).
[ 26.922726] systemd[1]: Starting dracut-pre-mount.service - dracut pre-mount hook...
[ 26.957961] systemd[1]: Finished dracut-pre-mount.service - dracut pre-mount hook.
[*** ] Job ignition-fetch.service/start running (6min 42s / no limit)
I will come back to this next week (I might need a reminder ;) )
Thanks @c4rt0 for the testing. Let me clarify the two configs:
It might be failed if using the wrong configurations. |
b69eb56
to
f67f6b4
Compare
from a S3 bucket Xerf to coreos/fedora-coreos-tracker#1769
f67f6b4
to
0182448
Compare
Xerf to coreos/fedora-coreos-tracker#1769