make sure hostname resolves
diff --git a/tools/build_uec.sh b/tools/build_uec.sh
index ada6596..ee78192 100755
--- a/tools/build_uec.sh
+++ b/tools/build_uec.sh
@@ -170,6 +170,8 @@
 # set metadata
 cat > $vm_dir/uec/user-data<<EOF
 #!/bin/bash
+# hostname needs to resolve for rabbit
+sed -i "s/127.0.0.1/127.0.0.1 `hostname`/" /etc/hosts
 apt-get update
 apt-get install git sudo -y
 git clone https://github.com/cloudbuilders/devstack.git