When you boot standard Ubuntu Cloud image in the Openstack, no password or user is generated in the image by default. You can configure your Ubuntu Cloud image to set a static password or generate a password in the first boot of the image. You need to configure metadata service in the Openstack in order to use this.
Firstly, download your Ubuntu cloud image from this link: https://cloud-images.ubuntu.com/
Install guestfish in your server. This server probably will be your Glance image server. :
apt–get install guestfish
In order to edit the image file open it with guestfish:
guestfish —rw –a precise–server–cloudimg–amd64–disk1.img
root@ppm-dc-c3sv3-ju:~/sandbox# guestfish –rw -a precise-server-cloudimg-amd64-disk1.img
Now you will be taken to tje guestfish shell.
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: ‘help’ for help on commands
‘man’ to read the manual
‘quit’ to quit the shell
><fs> mount /dev/sda1 /
><fs> vi /etc/shadow
Blank the password for ubuntu user as follows
Now add this image to openstack glance and launch the instance.
You can log into the instance from the openstack horizon vnc console.
Once you log in as the ubuntu user, you can change the password with
the passwd command to one of your choice.