Image - Glance
Couch To OpenStack
- git clone https://github.com/bunchc/Couch_to_OpenStack.git
- cd Couch_to_OpenStack
- vagrant up
Build Time!
- Subscribe & Recordings: http://bit.ly/BrownbagPodcast
- Sign up for the rest of the series:
http://openstack.prov12n.com...
On Twitter: #vBrownBag
Also: @VMTrooper
Join the conversation
- New Edition: http://www.packtpub.com/openstack-cloud-
computing-cookbook-second-edition/book
- Old Edition: http://amzn....
7/2/2013 – Intro to OpenStack < Recording here: http://buff.ly/1cQZ3xC
7/9/2013 – Vagrant Primer < Recording here: http://...
Use the automated Keystone Install and manually install
Glance
Remember we have a G+ Support group here:
https://plus.goog...
- Sets variables required for Glance deployment
- Creates an Glance Service and Endpoint in Keystone
- Updates MySQL
- Cre...
- VM Image Management Service
- Provides centralized source of VM images for the
OpenStack Compute (Nova) nodes
- … Let’s ...
Keystone Intro
- http://docs.openstack.org/developer/glance/#concepts
- http://docs.openstack.org/developer/glance/configuring
.html
Conc...
- vagrant ssh controller
- sudo su -
- cat .stackrc
- export OS_TENANT_NAME=cookbook
- export OS_USERNAME=admin
- export O...
- keystone service-list
+----------------------------------+----------+----------+----------------------------+
| id | nam...
- glance image-list
+--------------------------------------+----------------------------+-------------+-----------+
| ID |...
# cd /home/vagrant
# glance image-create 
--name='Ubuntu 12.04 x86_64 Server' 
--disk-format=qcow2 
--container-format=bar...
Disk & Container Formats
Disk Type
raw
vmdk
qcow2
vdi
vhd
aki
ari
ami
Container Type
bare
ovf
aki
ari
ami
# glance image-delete <UUID or Name>
Delete an Image
# keystone endpoint-list
+---------------------------------------+--------------------------------+-----------------------...
For next week, our OpenStack deployment will increase from one to two servers when we
introduce the Compute (Nova) Service...
Upcoming SlideShare
Loading in …5
×

Couch to OpenStack: Glance - July, 23, 2013

5,679 views

Published on

Tuesday, July 23rd session of the vBrownBag OpenStack Sack Lunch Series: Couch to OpenStack

Published in: Technology, Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,679
On SlideShare
0
From Embeds
0
Number of Embeds
1,877
Actions
Shares
0
Downloads
63
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Couch to OpenStack: Glance - July, 23, 2013

  1. 1. Image - Glance Couch To OpenStack
  2. 2. - git clone https://github.com/bunchc/Couch_to_OpenStack.git - cd Couch_to_OpenStack - vagrant up Build Time!
  3. 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. 4. On Twitter: #vBrownBag Also: @VMTrooper Join the conversation
  5. 5. - New Edition: http://www.packtpub.com/openstack-cloud- computing-cookbook-second-edition/book - Old Edition: http://amzn.to/12eI6rX Buy the Book
  6. 6. 7/2/2013 – Intro to OpenStack < Recording here: http://buff.ly/1cQZ3xC 7/9/2013 – Vagrant Primer < Recording here: http://bit.ly/149FnWt 7/16/2013 – Identity services (Keystone) 7/23/2013 – Image services (Glance) << We Are Here 7/30/2013 – Compute Services (Nova) 8/6/2013 – Block Storage / Volume Services (Cinder) 8/13/2013 – Networking Services (Quantum) 8/20/2013 - Monitoring & Troubleshooting 8/27/2013 - HA OpenStack 9/3/2013 – DevOps Deployments Note: Dates are subject to change depending on how far we get in each lesson. The Rest of the Series
  7. 7. Use the automated Keystone Install and manually install Glance Remember we have a G+ Support group here: https://plus.google.com/communities/1016630525883821 71429 Homework Review
  8. 8. - Sets variables required for Glance deployment - Creates an Glance Service and Endpoint in Keystone - Updates MySQL - Creates a Glance DB - Assigns the Glance User to the DB - Installs Glance - Configures Glance settings - Verifies successful install - Uploads two image files Build – What’s it doing?
  9. 9. - VM Image Management Service - Provides centralized source of VM images for the OpenStack Compute (Nova) nodes - … Let’s take a look: Glance Intro
  10. 10. Keystone Intro
  11. 11. - http://docs.openstack.org/developer/glance/#concepts - http://docs.openstack.org/developer/glance/configuring .html Concepts – Reference
  12. 12. - vagrant ssh controller - sudo su - - cat .stackrc - export OS_TENANT_NAME=cookbook - export OS_USERNAME=admin - export OS_PASSWORD=openstack - export OS_AUTH_URL=http://${MY_IP}:5000/v2.0/ - source .stackrc Using Glance!
  13. 13. - keystone service-list +----------------------------------+----------+----------+----------------------------+ | id | name | type | description | +----------------------------------+----------+----------+----------------------------+ | 551dbd02eac14d379dd2190292138182 | glance | image | OpenStack Image Service | | 0d1db0981352466dacd4cd8fcdf0c3fa | keystone | identity | OpenStack Identity Service | +----------------------------------+----------+----------+---------------------------- - keystone service-get <UUID> +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Image Service | | id | 551dbd02eac14d379dd2190292138182 | | name | glance | | type | image | +-------------+----------------------------------+ Verify Glance Service
  14. 14. - glance image-list +--------------------------------------+----------------------------+-------------+-----------+ | ID | Name | Disk Format | Size | +--------------------------------------+----------------------------+-------------+-----------+ | bc670eb3-67dc-42f3-82b2-91e96f5eca52 | Cirros 0.3 | qcow2 | 9761280 | | 90c17ca9-6447-4d45-b862-86366881c13a | Ubuntu 12.04 x86_64 Server | qcow2 | 252641280 | +--------------------------------------+----------------------------+-------------+-----------+ List Images
  15. 15. # cd /home/vagrant # glance image-create --name='Ubuntu 12.04 x86_64 Server' --disk-format=qcow2 --container-format=bare --public < precise-server-cloudimg-amd64-disk1.img Create an Image
  16. 16. Disk & Container Formats Disk Type raw vmdk qcow2 vdi vhd aki ari ami Container Type bare ovf aki ari ami
  17. 17. # glance image-delete <UUID or Name> Delete an Image
  18. 18. # keystone endpoint-list +---------------------------------------+--------------------------------+----------------------------------+ | id | publicurl | internalurl | service_id | +---------------------------------------+--------------------------------+----------------------------------+ | ... | http://172.16.94.200:5000/v2.0 | http://172.16.94.200:5000/v2.0 | 0d1db0981352466dacd4cd8fcdf0c3fa | | ... | http://172.16.94.200:9292/v1 | http://172.16.94.200:9292/v1 | 551dbd02eac14d379dd2190292138182 | +---------------------------------------+--------------------------------+----------------------------------+ # keystone endpoint-get --service image +--------------------+------------------------------+ | Property | Value | +--------------------+------------------------------+ | identity.publicURL | http://172.16.94.200:9292/v1 | +--------------------+------------------------------+ List Endpoints
  19. 19. For next week, our OpenStack deployment will increase from one to two servers when we introduce the Compute (Nova) Service. A Production OpenStack deployment typically consists of multiple Compute nodes to run the Cloud workloads. We will need perform a few extra actions than we have done for the previous sessions: 1. Edit the Vagrantfile to generate two servers instead of just one, and call the second node “compute” (Hint: you may need to change the “nodes” Ruby Hash at the top of the file) 2. Any additional server that we create should have its own shell script file with its hostname as the filename (ex: compute.sh). At a minimum, automate the install of the following Ubuntu packages: a. nova-api-metadata, nova-compute, nova-compute-qemu, nova-doc, nova-network, libvirt- bin, pm-utils 3. The controller.sh will need to be extended to create a nova database, an endpoint, service, etc. Also, the following Ubuntu packages need to be installed on the Controller: a. rabbitmq-server, nova-api, nova-scheduler, nova-objectstore, dnsmasq, nova-conductor Additionally, like getting glance up and running, let’s try to get compute installed and running on our own for next week. Homework!

×