Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

#vBrownBag OpenStack - Review & Kickoff for Phase 2

836 views

Published on

This week we'll be discussing the past C2OS effort as well as getting our lab environments set up to move forward with the C2OS program.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

#vBrownBag OpenStack - Review & Kickoff for Phase 2

  1. 1. #vBrownBag Couch to OpenStack Phase 2 Kick-off
  2. 2. Some Logistics • These episodes are all available on iTunes / RSS here: http://bit.ly/BrownbagiTunes • You can find all of our labs here: http://openstack.prov12n.com/about-couch-toopenstack/ • To join the conversation, raise your hand, or drop a line on the #vBrownBag hash tag • We also have a G+ support community here: https://plus.google.com/communities/1016630525 88382171429
  3. 3. The Book! • This book, here: http://amzn.to/1hVoiWo
  4. 4. What is Couch to OpenStack? • Designed to work like a Couch to 5k program • Builds you from no knowledge of OpenStack to a build / operational readiness • Phase 1: “What is OpenStack” and “Building an OpenStack” here: http://openstack.prov12n.com/openstack_ph ase_1/
  5. 5. Phase 2 • • • • • • • • • • • • • 12/3/2013 – What’s new in Havana 12/10/2013 – C2OS Havana Update / Kick-off << We’re here! 12/17/2013 – Upgrade Grizzly to Havana 1/14/2014 – A Second Compute Node 1/21/2014 – Image Management 1/28/2014 – Your First Instance(s) – Instance Management 2/4/2014 – Connecting with LDAP 2/11/2014 – Permissions Management 2/18/2014 – Tenant Management 2/25/2014 – Networking with Neutron 3/4/2014 – Application Deployments 3/11/2014 – HA Your OpenStack Services 3/18/2014 – PaaS Your OpenStack Cloud
  6. 6. The Environment From Phase 1 Controller: Dashboard Identity Nova API Glance Compute: - Qemu - Novacompute Cider: - Linux iSCSI - Extra Volume - Cinder API 172.16.80.x – Management 10.10.80.x – something 192.168.80.x – Public Network Network: - Neutron API - Open vSwitch - etc
  7. 7. Getting Started in Phase 2 • While not required, it will really help if you’ve been through Phase 1, or have some familiarity. • Download and Install VirtualBox, Vagrant, and Git: – https://www.virtualbox.org/ – http://vagrantup.com – http://github.com
  8. 8. Getting Started in Phase 2 • Once you have those tools, open a terminal and do the following: git clone https://github.com/bunchc/Couch_to_OpenStack.git cd Couch_to_OpenStack vagrant up vagrant ssh client Note: On average this takes 20 or so minutes
  9. 9. Some Review Let’s review some things from last time: • Source environment file • List services & images • Create a router & network • Create an instance • Find log files • c
  10. 10. Source the environment file vagrant ssh client source /vagrant/.stackrc keystone endpoint-list
  11. 11. List Services / Images • keystone service-list • glance image-list
  12. 12. Create Network / Router / Boot VM source /vagrant/.stackrc export OS_NO_CACHE=1 TENANT_ID=$(keystone tenant-list | awk '/ cookbook / {print $2}') quantum net-create --tenant-id ${TENANT_ID} cookbook_network_1 quantum subnet-create --tenant-id ${TENANT_ID} --name cookbook_subnet_1 cookbook_network_1 10.200.0.0/24 quantum router-create --tenant-id ${TENANT_ID} cookbook_router_1 ROUTER_ID=$(quantum router-list | awk '/ cookbook_router_1 / {print $2}') SUBNET_ID=$(quantum subnet-list | awk '/ cookbook_subnet_1 / {print $2}') quantum router-interface-add ${ROUTER_ID} ${SUBNET_ID} nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
  13. 13. Con’t… ssh-keygen -t rsa -f demokey -N "" nova keypair-add --pub-key demokey.pub demokey rm -f /vagrant/demokey cp demokey /vagrant UBUNTU=$(nova image-list | awk '/ Ubuntu / {print $2}') nova boot --flavor 1 --image ${UBUNTU} --key_name demokey test1 quantum net-create --tenant-id ${TENANT_ID} ext_net --router:external=True quantum subnet-create --tenant-id ${TENANT_ID} --name cookbook_float_subnet_1 --allocation-pool start=192.168.100.10,end=192.168.100.20 --gateway 192.168.100.1 ext_net 192.168.100.0/24 --enable_dhcp=False
  14. 14. Con’t… ROUTER_ID=$(quantum router-list | awk '/ cookbook_router_1 / {print $2}') EXT_NET_ID=$(quantum net-list | awk '/ ext_net / {print $2}') quantum router-gateway-set ${ROUTER_ID} ${EXT_NET_ID} quantum floatingip-create --tenant-id ${TENANT_ID} ext_net VM_PORT=$(quantum port-list | awk '/10.200.0.2/ {print $2}') FLOAT_ID=$(quantum floatingip-list | awk '/192.168.100.11/ {print $2}') quantum floatingip-associate ${FLOAT_ID} ${VM_PORT}

×