-
Notifications
You must be signed in to change notification settings - Fork 884
functional tests: re-purpose aws.sh for generating AMIs #2736
Conversation
679f0f9
to
593a28f
Compare
Not sure about the status of this, but not ready for 1.8.0. Assigned to @alban as part of the bigger Jenkins task. |
@alban PTAL |
|
sleep 30 | ||
done | ||
|
||
AMI_ID=$(aws --region $REGION ec2 create-image --instance-id $INSTANCE_ID --name $DISTRO-rkt-test --output text) |
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.
Don't you need to stop the instance before taking the snapshot?
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.
Creating the image will stop the instance.
ping |
@@ -125,50 +87,49 @@ INSTANCE_ID=$(aws ec2 run-instances \ | |||
) | |||
echo INSTANCE_ID=$INSTANCE_ID | |||
|
|||
aws ec2 create-tags --resources $INSTANCE_ID \ |
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.
could we still add some tags? So if the script is interrupted, we know what were the EC2 instances created for.
Moving to milestone v1.11.0, when @iaguis will have some time to continue this. |
593a28f
to
545dba6
Compare
545dba6
to
c81c72c
Compare
Updated. Wrote some documentation. |
chmod +x /var/tmp/rkt-test.sh | ||
|
||
systemd-run --unit=rkt-test /var/tmp/rkt-test.sh | ||
sudo sed -i 's/ requiretty$/ !requiretty/g' /etc/sudoers |
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.
Does this "sudo" work?
Is it still executed by --user-data file://$CLOUDINIT
? Then doesn't it already run as root?
Otherwise, the patch on /etc/sudoers is to fix sudo, so not sure you can use sudo for this command if it does not work...
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.
TBH I haven't tried centos...
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.
You're right. I can remove the sudo
from everywhere. Thanks!
c81c72c
to
8f1d272
Compare
This changes the aws.sh script to generate AMIs with the rkt dependencies installed so they can be used in Jenkins.
8f1d272
to
2ecf315
Compare
Updated with a debian-testing cloudinit (as per #2951). |
LGTM |
Fixes #2951 |
Functional tests don't make sense here. Merging. |
This changes the aws.sh script to generate AMIs with the rkt
dependencies installed so they can be used in Jenkins.
cc @albanc