Guest User

students Vitrage hands-on lab - Openstack summit Berlin

a guest
Nov 14th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.74 KB | None | 0 0
  1. # download id_rsa: https://pastebin.com/XVG11ZeW
  2. chmod 700 id_rsa
  3.  
  4. # get available ip
  5. https://etherpad.openstack.org/p/osa-ny1.b
  6.  
  7. # enter machine
  8. ssh -i id_rsa ubuntu@<my_ip>
  9.  
  10. # enter lab env
  11. cd lab/
  12. git clone https://github.com/7mode/templates.git
  13. ./run_stack.sh
  14. kubectl apply -f numbercrancher.yml
  15. kubectl get pod  # redo until pod is RUNNING
  16. ./run_proxy.sh &
  17.  
  18. # check out CLI commands and UI
  19. # user: admin
  20. # pass: password
  21. # ********** be under demo project *********
  22. # ********** be under project tab *********
  23.  
  24. # check Prometheus dashboard
  25. http://<my_ip>:9090/graph?g0.range_input=15m&g0.stacked=0&g0.expr=rate(libvirt_cpu_stats_user_time_nanosecs%7Bname%3D~%22test.*%22%7D%5B1m%5D)%2F10000000&g0.tab=0&g1.range_input=15m&g1.stacked=0&g1.expr=rate(function_exec_time_sum%5B1m%5D)%20%2F%20rate(function_exec_time_count%5B1m%5D)&g1.tab=0&g2.range_input=15m&g2.stacked=0&g2.expr=avg%20by%20(instance)%20(rate(node_cpu_seconds_total%7Bmode%3D%27user%27%7D%5B1m%5D))*100&g2.tab=0
  26.  
  27. # run stress to raise Prometheus alarms
  28. ./run _stress.sh
  29.  
  30. # check out CLI commands and UI
  31. # check out Prometheus dashboard
  32.  
  33.  
  34. # lab exercises
  35. cd templates
  36.  
  37. # check out first template - heat stack with two vms
  38. vim step1.yaml
  39. vitrage template validate --path step1.yaml
  40. vitrage template add --path step1.yaml
  41. # check out CLI commands and UI
  42.  
  43. # fill second template - host containing two vms
  44. vim step2.yaml
  45. vitrage template validate --path step3.yaml
  46. vitrage template add --path step2.yaml
  47. # check out CLI commands and UI
  48.  
  49. # fill 3rd template - k8s comprised host
  50. vim step3.yaml
  51. vitrage template validate --path step3.yaml
  52. vitrage template add --path step3.yaml
  53. # check out CLI commands and UI
  54.  
  55.  
  56. # back to cleaned env
  57. cd ..
  58. ./kill_stress.sh
Add Comment
Please, Sign In to add comment