OSCON OpenStack Workshop Commands

Hello OSCON! Here are the workshop commands:

cat ~/credentials/user
source ~/credentials/user
keystone discover
keystone catalog
keystone endpoint-get –service volume
keystone token-get –wrap 50

nova list
nova flavor-list
nova boot –image cirros-qcow2 –flavor 1 MyFirstInstance
nova show MyFirstInstance
nova console-log MyFirstInstance

neutron net-create private
neutron subnet-create –name private-subnet private
neutron net-list
neutron subnet-list
neutron net-show private
neutron subnet-show private-subnet

nova boot –flavor –image –nic net-id=
nova boot –image cirros-qcow2 –flavor 1 –nic net-id=$NIC MySecondInstance

sudo ip netns exec qdhcp-$NIC ip a
sudo ip netns exec qdhcp-$NIC ping

nova secgroup-list-rules default
nova secgroup-add-rule

nova secgroup-add-rule default icmp -1 -1
nova secgroup-add-rule default tcp 22 22

nova secgroup-create my_group “allow ping and ssh”
nova secgroup-add-rule my_group icmp -1 -1
nova secgroup-add-rule my_group tcp 22 22
nova add-secgroup MySecondInstance my_group

glance image-list
glance image-create –name “my_cirros_qcow2” –disk-format qcow2 –container-format bare –is-public False –file ~/images/cirros-0.3.2-x86_64-disk.img
glance image-show my_cirros_qcow2

cinder list
cinder type-list
cinder create 1 –display-name MyFirstVolume –volume-type SATA
nova boot –image cirros-qcow2 –flavor m1.tiny –nic net-id=$NIC MyVolumeInstance
nova volume-attach MyVolumeInstance $VOLUME_ID auto
nova console-log MyVolumeInstance
sudo ip netns exec qdhcp-$NIC ssh cirros@

if there is time, on instance:
sudo fdisk -l
sudo mkfs.ext3 /dev/vdb
sudo mkdir /extraspace
sudo mount /dev/vdb /extraspace
sudo touch /extraspace/helloworld.txt
sudo ls /extraspace
sudo umount /extraspace

nova volume-detach MyVolumeInstance $VOLUME_ID

source credentials/admin

swift stat
swift list
swift post mycontainer
echo “Hello OSCON!” > test.txt
swift upload mycontainer test.txt
swift download mycontainer test.txt -o –
swift stat mycontainer
swift list mycontainer

OSCON 2014 OpenStack Workshop

We are very excited to be doing a workshop at OSCON this year! http://www.oscon.com/oscon2014/public/schedule/detail/34824
“Curious about OpenStack, but don’t know where to start? In this hands on tutorial we will walk you through the basics of OpenStack, the OpenSource cloud computing platform that is used to build private and public clouds.”

Since this is a hands-on lab, we have a virtual appliance with all-in-one OpenStack ready to go. This workshop is best for people that have no prior experience with OpenStack, but we won’t turn anyone away! Cody put all the materials online for download, so check them out! http://openstack.prov12n.com/oscon-lab-materials/

Bonus of doing a workshop at the beginning of the conference is that we will get to enjoy all the other workshops and talks, instead of worrying about ours!

Check out all the racker talks this year at OSCON: http://www.rackspace.com/blog/at-oscon-rackers-will-showcase-all-things-open-source/