fuel-docs/pages/installation-fuel-cli/0080-testing-openstack.rst

3.2 KiB

Testing OpenStack

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

  1. On the host machine, open your browser to

http://192.168.0.10/ (Adjust this value to your own public_virtual_ip.)

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

  1. Click the Project tab in the left-hand column.
  2. Under Manage Compute, choose Access & Security to set security settings:
  1. Click Create Keypair and enter a name for the new keypair. The private key should download automatically; make sure to keep it safe.
  2. Click Access & Security again and click Edit Rules for the default Security Group. Add a new rule allowing TCP connections from port 22 to port 22 for all IP addresses using a CIDR of 0.0.0.0/0. (You can also customize this setting as necessary.) Click Add Rule to save the new rule.
  3. Add a second new rule allowing ICMP connections with a type and code of -1 to the default Security Group and click Add Rule to save.
  1. Click Allocate IP To Project and add two new floating ips. Notice that they come from the pool specified in config.yaml and site.pp.
  2. Click Images & Snapshots, then Create Image. Enter a name and specify the Image Location as https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img, with a Format of QCOW2. Check the Public checkbox.
  3. 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:

cd ~ 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

  1. Go back to the browser and refresh the page. Launch a new instance of this image using the tiny flavor. Click the Networking tab and choose the default net04_ext network, then click the Launch button.
  2. On the instances page:
  1. Click the new instance 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. At the command line, enter ifconfig -a | more and see the assigned ip address.
  5. Enter sudo fdisk -l to see that no volume has yet been assigned to this VM.
#. On the Instances page, click Assign Floating IP and assign an IP address to your instance. You can either choose from one of the existing created IPs by using the pulldown menu or click the plus sign (+) to choose a network and allocate a new IP address.
  1. From your host machine, ping the floating ip assigned to this VM.
  2. If that works, try to ssh cirros@floating-ip from the host machine.
  1. Back in the browser, click Volumes and Create Volume. Create the new volume, and attach it to the instance.
  2. Go back to the VNC tab and repeat fdisk -l to see the new unpartitioned disk attached.

Now your new VM is ready to be used.