bundling ec2 image

0 views
Skip to first unread message

pipiamin

unread,
Aug 14, 2008, 11:02:55 PM8/14/08
to scalr-discuss
when i try re bundle mysql image, with configured lvm partition, my
new image do not change state by
INFO i-17bb637e/instance-init.sh Host 10.254.47.63/mysql initialised.
Awaiting authentication data.
what do i wrong?

pipiamin

unread,
Aug 15, 2008, 2:38:46 AM8/15/08
to scalr-discuss
Also i do not see any error at rebundle process and i can login into
mashines(address i've resolve by ec2din)

Alex Kovalyov

unread,
Aug 15, 2008, 6:09:19 AM8/15/08
to scalr-discuss
Do you authorize us to SSH into your instances?

Alex Kovalyov

unread,
Aug 15, 2008, 6:15:14 AM8/15/08
to scalr-discuss
The problem is in your LVM setup.
Scalr scripts take the public key from /mnt/, where EC2 puts it upon
run.
Since /mnt is not even mounted, key not saved and Scalr hangs in
"Awaiting authorization data" for this instance.

I advise you to update your instances with latest apt packages from
scalr repository (http://code.google.com/p/scalr/wiki/
ScalrAPTPackages). The .deb version takes the public key from internal
AWS URL rather than /mnt

On 15 авг, 09:38, pipiamin <pinc...@exigenservices.com> wrote:
> Also i do not see any error at rebundle process and i can login into
> mashines(address i've resolve by ec2din)

pipiamin

unread,
Aug 15, 2008, 8:30:20 AM8/15/08
to scalr-discuss
how i can get you login information for more security?


Alex Kovalyov

unread,
Aug 15, 2008, 9:43:11 AM8/15/08
to scalr-discuss
We already used keys to access, just needed your approval.
I've posted above what we have found.
Also, the change in public key retrieval algo has been applied to all
running instances within scalr and a hook added for newly starting
instances.

pipiamin

unread,
Aug 18, 2008, 3:02:42 AM8/18/08
to scalr-discuss
somthing wrong, i try rebundle and get follow errors:
execution failed: "rsync -rlpgoDS --exclude '/sys/kernel/security' --
exclude '/sys' --exclude '/proc' --exclude '/dev/pts' --exclude '/dev'
--exclude '/media' --exclude '/mnt' --exclude '/proc' --exclude '/sys'
--exclude '/root/.ssh' --exclude '/mnt' --exclude '/etc/aws' --exclude
'/mnt/image' --exclude '/mnt/img-mnt' --exclude /etc/udev/rules.d/70-
persistent-net.rules /* /mnt/img-mnt"
ec2-bundle-vol failed.

Alex Kovalyov

unread,
Aug 18, 2008, 12:19:57 PM8/18/08
to scalr-discuss
1) ec2-bundle-vol is Amazon's tool.
2) your /mnt folder is currently on a root partition, which is of 8GB.
3) ec2-bundle-vol is called with /mnt/img-mnt as a last parameter -
it's where it stores the temporary file before uploading them to S3
bucket.

Since ec2-bundle-vol does include your big device (which you mounted
on /var/lib/mysql instead of default /mnt), it simply does not fit the
8GB.
Reply all
Reply to author
Forward
0 new messages