Couch to OpenStack: Cinder - August 6, 2013

download Couch to OpenStack: Cinder - August 6, 2013

of 20

  • date post

    10-May-2015
  • Category

    Technology

  • view

    3.329
  • download

    0

Embed Size (px)

description

Tuesday, August 6th session of the vBrownBag OpenStack Sack Lunch Series: Couch to OpenStack. We cover Cinder, the Block Storage Service that presents volumes to OpenStack instances. Credit to Ken Pepple for the OpenStack Project Diagram

Transcript of Couch to OpenStack: Cinder - August 6, 2013

  • 1.Cinder Block Storage Couch To OpenStack

2. - git clone https://github.com/bunchc/Couch_to_OpenStack.git - cd Couch_to_OpenStack - vagrant up Build Time! 3. - Subscribe & Recordings: http://bit.ly/BrownbagPodcast - Sign up for the rest of the series: http://openstack.prov12n.com/about-couch-to-openstack/ Some Logistics 4. On Twitter: #vBrownBag Also: @VMTrooper, @JFrappier Join the conversation 5. - New Edition: http://www.packtpub.com/openstack-cloud- computing-cookbook-second-edition/book - Old Edition: http://amzn.to/12eI6rX Buy the Book 6. 7/2/2013 Intro to OpenStack 7/9/2013 Vagrant Primer 7/16/2013 Identity services (Keystone) 7/23/2013 Image services (Glance) 7/30/2013 Compute Services (Nova) 8/6/2013 Block Storage / Volume Services (Cinder) /vagrant/demo.pem chmod 0600 /vagrant/*.pem - Nova Security Rules to enable ping and ssh to our Instances: 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 - Fix nova-network on the Compute Node killall dnsmasq sudo stop nova-network sudo start nova-network - Deploy an Ubuntu Image nova boot myInstance --image --flavor 2 --key_name demo Configure a Nova Instance 17. - Verify the source LVM Volume (cinder-volumes) was created pvscan PV /dev/sda5 VG precise64 lvm2 [79.76 GiB / 0 free] PV /dev/loop2 VG cinder-volumes lvm2 [5.00 GiB / 5.00 GiB free] Total: 2 [84.75 GiB] / in use: 2 [84.75 GiB] / in no VG: 0 [0 ] - Create the Cinder volume that we will present to the VM cinder create --display-name c2OS 1 - Verify the volume was created cinder list lvdisplay cinder-volumes nova volume-list (command only works on the Nova or Controller Nodes) Create the Cinder Volume 18. Use the Cinder Volume - Attach the Volume to the Instance nova volume-attach /dev/vdc - Login to the Instance ssh -i /vagrant/demo.pem ubuntu@ - Format and mount the volume fdisk -l sudo mkfs.ext4 /dev/vd sudo mkdir /mnt1 sudo mount /dev/vdb /mnt1 df -h 19. Monitor /var/log/nova/nova-compute.log 2013-08-01 04:56:56.324 9369 TRACE nova.openstack.common.rpc.amqp Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-bd31eb87-5eda- 4171-946c-326c0318d837 -p 10.0.2.15:3260 --rescan 2013-08-01 04:56:56.324 9369 TRACE nova.openstack.common.rpc.amqp Exit code: 255 2013-08-01 04:56:56.324 9369 TRACE nova.openstack.common.rpc.amqp Stdout: '' 2013-08-01 04:56:56.324 9369 TRACE nova.openstack.common.rpc.amqp Stderr: 'iscsiadm: No portal found.n' Volume Attach Troubleshoot 20. For next weeks session, we will add another node to the deployment: Quantum (Neutron) Networking. We will need perform a few extra actions than we have done for the previous sessions: 1. Edit the Vagrantfile to generate an additional server give it the name quantum 2. The additional server that we create should have its own shell script file with its hostname as the filename (ex: quantum.sh). 3. The controller.sh will need to be extended to create a quantum database, an endpoint, service, etc. Also, the nova.conf file will need to be extended to use Quantum for Network Services 4. Post ideas, questions, comments on the Google Plus Community: http://bit.ly/C2OSGooglePlus Homework!