RDO commands ============ Install RDO Havana :: $ sudo yum install -y \ http://rdo.fedorapeople.org/rdo-release.rpm $ sudo yum install -y openstack-packstack # Single machine install; install successful $ packstack --allinone Initial ------- Check for OpenStack services status :: $ openstack-status Source keystone credentials :: $ . ~/keystone_admin Fetch a Cirros Image (or Fedora) :: $ wget -c \ http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img $ wget -c \ http://cloud.fedoraproject.org/fedora-latest.x86_64.qcow2 Import an image into glance :: $ glance image-create --name fedora18 --is-public true \ --disk-format qcow2 --container-format bare \ < Fedora-x86_64-19-20130627-sda.qcow2 Add keypairs :: $ nova keypair-add oskey1 > oskey1.priv $ chmod 600 oskey1.priv Instance creation ----------------- Some nova operations :: $ nova flavor-list $ glance image-list $ nova boot --flavor 2 --key_name oskey1 --image \ bfaa3c67-87b4-495c-90dc-d248a0bde3d5 fedora18 $ nova list # SSH into the just booted instance. $ ssh -i oskey1.priv root@192.168.32.2 # grep the file to list the Nova config w/o commented sections $ cat /etc/nova/nova.conf | grep -v ^$ | grep -v ^# Instantiate multiple nova instances ----------------------------------- To boot 20 instances, of flavor 1 -- 20 of them:: $ for i in {1..20}; do nova boot \ test-f18-$i --flavor 1 --image \ bfaa3c67-87b4-495c-90dc-d248a0bde3d5; done Services operations ------------------- Restart all currently 'running' nova services :: $ openstack-service restart nova Neutron commands ---------------- == Neutron network creation procedure == 0. Source the admin tenant credentials, and pull the SERVICES tenant:: $ source ~/keystonerc_admin $ SERVICES=$(keystone tenant-list | grep services | awk '{print $2;}') 1. Create an external network (with "services" tenant as admin):: $ neutron net-create --tenant-id $SERVICES_ID ext \ --router:external=True 2. Create a subnet for this external network (also with "services" tenant):: $ neutron subnet-create --tenant-id $SERVICES_ID ext 192.169.122.0/24 \ --enable_dhcp=False --gateway-ip 192.169.122.2 --allocation-pool \ start=192.169.122.200,end=192.169.122.230 3. Create a test tenant (called testten1):: $ keystone tenant-create --name testten1 4. Create a keystone user (testuser1):: $ keystone user-create --name testuser1 --pass redhat 5. Associate a role (Member) to the user (testuser1):: $ keystone user-role-add --user testuser1 --role Member --tenant testten1 6. Create a keystonerc file for this testuser1:: $ cat >> ~/keystonerc_testuser1 <