Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OpenStack from 10,000ft

OpenStack from 10,000ft

A lightning talk I whipped up for PyCon IE 2022.

Stephen Finucane

November 12, 2022
Tweet

More Decks by Stephen Finucane

Other Decks in Technology

Transcript

  1. OpenStack from 10,000ft @stephenfin - PyCon IE 2022

  2. Stephen Finucane (@stephenfin) Senior Software Engineer

  3. None
  4. 6 key services… Nova (Compute) Neutron (Networking) Glance (Images) Cinder

    (Volumes) Keystone (Identity) Placement (Resource tracking)
  5. None
  6. …and loads of others Swift (Object storage) * Designate (DNS)

    Ironic (Bare metal) Barbican (Key manager) Cyborg (Accelerators) …
  7. Couple of common design features Python 3 Traditional relational databases

    (MySQL) Message queues (RabbitMQ) They wrap other things
  8. Couple of common design features Python 3 Traditional relational databases

    (MySQL) Message queues (RabbitMQ) They wrap other things Bad upgrades, worse documentation :( (though way better than before)
  9. None
  10. How do I get an OpenStack? Public cloud provider Private

    cloud provider (i.e. work)
  11. How do I get an OpenStack? Public cloud provider Private

    cloud provider (i.e. work) r/homelab / DIY
  12. How do I create my own OpenStack? DevStack Kolla OpenStack

    Ansible TripleO
  13. How do I create my own OpenStack? DevStack Kolla OpenStack

    Ansible TripleO
  14. [[local|localrc]] ## Passwords ADMIN_PASSWORD=password DATABASE_PASSWORD=password RABBIT_PASSWORD=password HORIZON_PASSWORD=password SERVICE_PASSWORD=password SERVICE_TOKEN=no-token-password local.conf

  15. ❯ ./stack.sh

  16. ❯ ./stack.sh # Wait some time... ❯ systemctl status [email protected]

    ❯ journalctl --unit [email protected]
  17. How do I use an OpenStack? Horizon OSC (openstackclient) openstacksdk

    / Gophercloud Ansible Terraform ⭐ Kubernetes ⭐
  18. ❯ pip install openstackclient # ...or... ❯ sudo dnf install

    python-openstackclient # ...or... ❯ sudo apt install python-openstackclient
  19. ❯ openstack server create ... ❯ openstack network create ...

    ❯ openstack image create ... ❯ openstack volume create ... ❯ openstack project create ...
  20. ❯ pip install openstacksdk # ...or... ❯ sudo dnf install

    python-openstacksdk # ...or... ❯ sudo apt install python-openstacksdk
  21. import openstack # Initialize and turn on debug logging openstack.enable_logging(debug=True)

    # Initialize connection conn = openstack.connect(cloud='devstack') # List the servers for server in conn.compute.servers(): print(server.to_dict()) hello_openstack.py
  22. How do I find out more? docs.openstack.org opendev.org/openstack #openstack on

    IRC (OFTC) [email protected] Talk to me! 🙋
  23. Thanks!