8 devstack beyond_hello-world

1,775
-1

Published on

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

No Downloads
Views
Total Views
1,775
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
48
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

8 devstack beyond_hello-world

  1. 1. Devstack beyond ‘hello-world’
  2. 2. Agenda What is Devstack? Single and multi node architecture Cell architecture Quick demo of cell setup
  3. 3. Run it Test it Mimic a deploy Why Devstack?
  4. 4. Structure nova-db glance- db img store volume storage
  5. 5. Compute Other componentsNova API API request Compute Compute` Compute Compute Single node setup Multi-node setup
  6. 6. A peek into stack.sh ADMIN_PASSWORD=password MYSQL_PASSWORD=stackdb RABBIT_PASSWORD=stackqueue SERVICE_PASSWORD=$ADMIN_PASSWORD HOST_IP=w.x.y.z ... localrc – set overrides Database type Enabled services=g-api,n-api,... (Service repos) NOVA_REPO=<nova git repo> NOVA_BRANCH=<nova branch> … stackrc – primary config file
  7. 7. HOST_IP = <compute node IP> MULTI_HOST=1 SERVICE_HOST=<controller IP> MYSQL_HOST=<controller IP> RABBIT_HOST=<controller IP> ENABLED_SERVICES=n-cpu, n-net, c-sch, c-api, c-vol On the compute node: localrc settings HOST_IP = <controller IP> MULTI_HOST=1 ENABLED_SERVICES=n-net, n-api, c-sch, c-api, c-vol On the controller node:
  8. 8. Work flow API request
  9. 9. http://devstack.org/guides/multinode-lab.html
  10. 10. Cells
  11. 11. Nova- cpu Nova -net DB DB Nova- cpu Nova -net Nova- cell Nova- cell Nova- sch Nova -sch Parent Child Grand-child
  12. 12. Parent-child structure
  13. 13. AMQP Build Request Parent Child Work flow
  14. 14. So, how we do we configure these cells in devstack?
  15. 15. Let’s try to configure a cell environment with one parent and one child
  16. 16. We used two VMs with Ubuntu 12.04 LTS installed as parent and child for this demo
  17. 17. Clone https://github.com/matiu2/devstack on both parent and child and checkout “cell_support” branch
  18. 18. Open localrc under devstack folder and type in below content.. MULTI_HOST=True enable_service n-cell n-api-meta disable_service n-cpu … Open /etc/nova/nova.conf and type in below content.. [cells] enable=True name=parent cell_type=api On Parent.. Run ./stack.sh Restart n-api and n-cell services
  19. 19. On Child.. Open localrc under devstack folder and type in below content.. MULTI_HOST=True enable_service n-cell disable_service n-api Run ./stack.sh Open /etc/nova/nova.conf and type in below content.. [DEFAULT] quota_driver=nova.quota.NoopQuotaDriver glance_api_server = <glance server running in parent> [cells] enable=True name=child cell_type=compute Restart n-cpu, n-sch and n-cell services
  20. 20. Now we are done configuring both parent and child…
  21. 21. How do the parent and the child know about each other now?
  22. 22. On parent, we will run the command: nova-manage cell create --name=child --cell_type=compute -- username=guest --password=password --hostname=<child ip> -- port=5672 --virtual_host=/ --woffset=1.0 --wscale=1.0
  23. 23. On the child, we will run the command: nova-manage cell create –name=parent --cell_type=api -- username=guest --password=password --hostname=<parent ip> -- port=5672 --virtual_host=/ --woffset=1.0 --wscale=1.0
  24. 24. Let’s try to build an instance in this cell environment…
  25. 25. http://openlystacking.blogspot.in/2013/07/creating-cell-environment-using- devstack.html
  26. 26. So far, we have seen… Brief introduction to devstack Single and multi-node environment Cells A demo in a cell environment Questions?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×