Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.7.0
Description
The generateSnapshot.sh script in the EC2 instances no longer works properly 'out of the box'.
# generateSnapshot.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 430 100 430 0 0 162k 0 --:--:-- --:--:-- --:--:-- 209k
mountLocation: /mnt/bamboo-ebs
attachedDeviceLocation: /dev/sdh
instanceId: i-325f32de
amiId: ami-b9ebf1d0
region: us-east-1
availabilityZone: us-east-1b
File not found: '/root/pk.pem'
No volume attached
The issue appears to be that the AWS_ACCESS_KEY and AWS_SECRET_KEY, or similar, aren't configured - so because it's still set up to use the ec2-api-tools-1.6.13 by default, it falls back on the now-deprecated use of the SOAP certificates (which I no longer upload, as those commands are turned off at the end of the month).
It's easily fixed by configuring the environment variables - but there's no reason the image shouldn't be set up like that to start with.
# export AWS_ACCESS_KEY=<secret> [root@ip-10-37-3-143 /]# export AWS_SECRET_KEY=<secret> [root@ip-10-37-3-143 /]# generateSnapshot.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 430 100 430 0 0 153k 0 --:--:-- --:--:-- --:--:-- 209k mountLocation: /mnt/bamboo-ebs attachedDeviceLocation: /dev/sdh instanceId: i-325f32de amiId: ami-b9ebf1d0 region: us-east-1 availabilityZone: us-east-1b Found volumeId attached to this instance vol-38ff917c... Unmounting /mnt/bamboo-ebs... umount: /mnt/bamboo-ebs (/dev/xvdh) unmounted Detaching vol-38ff917c... ATTACHMENT vol-38ff917c i-325f32de /dev/sdh detaching 2014-12-17T09:50:49+0000 Waiting while volume vol-38ff917c is in state detaching... ATTACHMENT vol-38ff917c i-325f32de /dev/sdh detaching 2014-12-17T09:50:49+0000 false Creating snapshots... Describe snapshots... SNAPSHOT snap-f0154544 vol-38ff917c pending 2014-12-17T10:23:47+0000 936840446570 10 Waiting while snapshotId snap-f0154544 is pending... SNAPSHOT snap-f0154544 vol-38ff917c pending 2014-12-17T10:23:47+0000 936840446570 10 Saving snapshotId snap-f0154544 to ~/snapshotId Removing vol-38ff917c... VOLUME vol-38ff917c
Attachments
Issue Links
- was cloned as
-
BDEV-7171 Loading...