Corrupted mysql binary. A first but it's also the first cloud-init powered ( hence resize2fs on / live at boot time ) image. Repaired and keep track of the incident waiting for other clues of corruption in similar situations.
reboot
root@drupal7:~# mysql -h
-bash: /usr/bin/mysql: cannot execute binary file
root@drupal7:~# file /usr/bin/mysql
/usr/bin/mysql: data
# apt-get install --reinstall mysql-client-5.5
root@drupal7:~# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.5.31-0+wheezy1 (Debian)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> \h
For information about MySQL products and services, visit:
http://www.mysql.com/
...
Halt the vm ( which kills the kvm ) and fsck from outside to make sure.
root@bm0002:~# qemu-nbd --port 20000 /var/lib/nova/instances/instance-00000530/disk
root@bm0002:~# nbd-client localhost 20000 /dev/nbd0
Negotiation: ..size = 10240MB
bs=1024, sz=10737418240 bytes
root@bm0002:~# kpartx -av /dev/nbd0
add map nbd0p1 (253:3): 0 20965600 linear /dev/nbd0 2048
root@bm0002:~# fsck /dev/mapper/nbd0p1
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
/dev/mapper/nbd0p1: clean, 50235/654080 files, 358297/2620700 blocks
root@bm0002:~# fsck -f /dev/mapper/nbd0p1
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/nbd0p1: 50235/654080 files (0.2% non-contiguous), 358297/2620700 blocks
root@bm0002:~# kpartx -dv /dev/nbd0
del devmap : nbd0p1
root@bm0002:~# nbd-client -d /dev/nbd0
and reboot from the controller
nova reboot drupal7