Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

DDC Demo

532 vues

Publié le

Demo of how to implement a Distributed Data Center, utilizing the oneProvision feature.

Publié dans : Logiciels
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

DDC Demo

  1. 1. Cluster provision demo #OpenNebulaTechDay Sofia OpenNebula TechDay 2019
  2. 2. Example - Provision Template (1/3) --- name: sofia-provision playbook: default defaults: provision: driver: packet packet_token: ******************************* packet_project: ************************************ facility: ams1 plan: baremetal_0 os: ubuntu_18_04 connection: remote_user: root configuration: opennebula_node_kvm_param_nested: true Sofia OpenNebula TechDay 2019
  3. 3. Example - Provision Template (2/3) cluster: name: sofia-cluster hosts: - reserved_cpu: 100 im_mad: kvm vm_mad: kvm provision: hostname: "<%= @name %>-host1" datastores: - name: "<%= @name %>-images" ds_mad: fs tm_mad: ssh - name: "<%= @name %>-system" type: system_ds tm_mad: ssh safe_dirs: "/var/tmp /tmp" Sofia OpenNebula TechDay 2019
  4. 4. Example - Provision Template (3/3) networks: - name: "<%= @name %>-hostonly_nat" vn_mad: dummy bridge: br0 dns: "8.8.8.8 8.8.4.4" gateway: "192.168.150.1" description: "Host-only networking with NAT" filter_ip_spoofing: "YES" filter_mac_spoofing: "YES" ar: - ip: 192.168.150.2 size: 253 type: IP4 Sofia OpenNebula TechDay 2019
  5. 5. Commands Main commands ● oneprovision list ● oneprovision create [TEMPLATE] ● oneprovision delete ● oneprovision configure Sofia OpenNebula TechDay 2019
  6. 6. Example - Provision $ oneprovision create simple.yaml -d 2019-05-10 10:09:17 INFO : Creating provision objects WARNING: This operation can take tens of minutes. Please be patient. 2019-05-10 10:09:18 INFO : Deploying 2019-05-10 10:11:59 INFO : Monitoring hosts 2019-05-10 10:12:03 INFO : Checking working SSH connection 2019-05-10 10:12:05 INFO : Configuring hosts ID: 44747806-ec80-464d-aa52-47a7f4dec823 There are 2 information modes: ● -d: Verbose mode ● -D: Debug mode Sofia OpenNebula TechDay 2019
  7. 7. Commands Host specific commands ● oneprovision host list ● oneprovision host poweroff [ID] ● oneprovision host resume [ID] ● oneprovision host reboot [ID] ● oneprovision host reset [ID] ● oneprovision host ssh [ID] Sofia OpenNebula TechDay 2019
  8. 8. Example - Host Management $ oneprovision host poweroff 2 -d 2019-05-10 10:52:24 INFO : Powering off host: 2 HOST 2: disabled $ oneprovision host resume 2 -d 2019-05-10 10:53:31 INFO : Resuming host: 2 HOST 2: enabled $ oneprovision host ssh 2 Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Last login: Fri May 10 08:53:45 2019 from 212.161.114.185 root@sofia-provision-host1:~# Sofia OpenNebula TechDay 2019
  9. 9. Other Commands Other commands ● oneprovision cluster list ● oneprovision cluster delete [ID] ● oneprovision datastore list ● oneprovision datastore delete [ID] ● oneprovision vnet list ● oneprovision vnet delete [ID] Sofia OpenNebula TechDay 2019
  10. 10. Gaming Experiment http://bit.ly/EdgeExperiment Sofia OpenNebula TechDay 2019
  11. 11. THANKS! OpenNebula TechDay Sofia 2019

×