fuel-library/docs/pages/installation-instructions/0065-testing-openstack.rst
2013-03-05 16:48:15 -08:00

2.0 KiB

Testing OpenStack

Now that you've installed OpenStack, its time to take your new openstack cloud for a drive. Follow these steps:

  1. On the host machine, open your browser to

http://10.0.1.10/

and login as nova/nova (unless you changed this information in site.pp)

  1. In the network and security groups tab:

    1. Create a new key/pair for future use
    2. Add tcp 22 22 to default network setting
    3. Add icmp -1 -1 to default network settings
    4. Allocate 2 floating ips for future use
  2. The next step is to upload an image to use for creating VMs, but an OpenStack bug prevents you from doing this in the browser. Instead, log in to any of the controllers as root and execute the following commands:

    ~/source openrc
    glance image-create --name cirros --container-format bare --disk-format qcow2 --is-public yes --location https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
  3. Go back to the browser and launch a new instance of this image using the tiny flavor.

  4. On the instances page:

    1. Click the image and look at the settings.
    2. Click the logs tab to look at the logs.
    3. Click the VNC tab to log in. If you see just a big black rectangle, the machine is in screensaver mode; click the grey area and press the space bar to wake it up, then login as cirros/cubswin:).
    4. Do ifconfig -a | more and see the assigned ip address.
    5. Do sudo fdisk -l and see the disk. Notice that there arent any; no volume has yet been assigned to this VM.
  5. Assign a floating ip address to your instance.

  6. From your host machine, ping the floating ip assigned to this VM.

  7. If that works, you can try to ssh cirros@floating-ip from the host machine.

  8. Back in the browser, go to the volumes tab and create a new volume, then attach it to the instance.

  9. Go back to the VNC tab and repeat fdisk -l and see the new unpartitioned disk attached.

From here, your new VM is ready to be used.