際際滷

際際滷Share a Scribd company logo
Openstack 101 Devstack Hungary
OpenStack 101

Minden amit a felhrl tudni szeretn辿l*

* felh = a vil叩g vezet ny鱈lt forr叩sk坦d炭 felh infrastrukt炭ra szoftvere
Devstack // bemutatkoz叩s
Shell script gy撤jtem辿ny Openstack gyors telep鱈t辿s辿hez
Bash scriptnyelvben 鱈rt叩k
Az Openstack k旦z旦ss辿g fejleszti 辿s t叩mogatja
Lehetv辿 teszi All-in-one 辿s t旦bb node-os telep鱈t辿st
Devstack // mire haszn叩lhat坦?
Fejleszt辿sre
V叩ltoz叩sok 辿s fejleszt辿sek tesztel辿s辿re
Az Openstack Infrastrukt炭ra CI rendszer r辿sze
Bemutat坦 辿s POC
Devstack // telep鱈t辿s p叩r perc alatt
1. Csin叩lj egy alap linux telep鱈t辿st*

2. Adj hozz叩 egy kis devstack-et a github-r坦l
git clone https://github.com/openstack-dev/devstack.git

3. Telep鱈tsd az Openstack-et
cd devstack && ./stack.sh

* Hivatalosan t叩mogatott disztrib炭ci坦k: Ubuntu 12.04, Fedora 18, CentOS/Rhel 6.4
Devstack // mire nem val坦? :)

Ne 辿p鱈tsetek belle
produkt鱈v rendszert!
Devstack // be叩ll鱈t叩sok localrc
# Default passwords
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
SCREEN_LOGDIR=/opt/stack/logs
HOST_IP=192.168.27.100
#
# Neutron configs
#
# https://wiki.openstack.org/wiki/NeutronDevstack
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
# Disable security groups entirely
Q_USE_SECGROUP=False
LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
Devstack // verzi坦k
master  jelenlegi fejleszti 叩g
stable/folsom  Folsom kiad叩s
stable/grizzly  Grizzly kiad叩s
$ grep "_BRANCH" stackrc
CEILOMETER_BRANCH=${CEILOMETER_BRANCH:-master}
CEILOMETERCLIENT_BRANCH=${CEILOMETERCLIENT_BRANCH:-master}
CINDER_BRANCH=${CINDER_BRANCH:-master}
CINDERCLIENT_BRANCH=${CINDERCLIENT_BRANCH:-master}
GLANCE_BRANCH=${GLANCE_BRANCH:-master}
GLANCECLIENT_BRANCH=${GLANCECLIENT_BRANCH:-master}
HEAT_BRANCH=${HEAT_BRANCH:-master}
HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master}
HORIZON_BRANCH=${HORIZON_BRANCH:-master}
IRONIC_BRANCH=${IRONIC_BRANCH:-master}
KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-master}
KEYSTONECLIENT_BRANCH=${KEYSTONECLIENT_BRANCH:-master}
NOVA_BRANCH=${NOVA_BRANCH:-master}
...
Devstack // screen
Bel辿p辿s ssh-n kereszt端l:
$ ssh -i id_vagrant vagrant@192.168.27.100
A devstack.sh mindent egy screen-en bel端l ind鱈t el:
$ screen -ls
There is a screen on:
29236.stack (10/15/13 09:54:49) (Detached)
1 Socket in /var/run/screen/S-vagrant.
Csatlakoz叩s a screenhez:
$ screen -r
Billenyt撤 parancsok:
Ctrl + A + D  detach, screen -r vissza叩ll鱈tja
Ctrl + A + N  k旦vetkez f端l
Ctrl + A + P  elz f端l
Devstack // screen
Devstack // demo
Devstack // demo - el辿r辿se
$ ssh -i id_vagrant vagrant@192.168.27.100
$ cd devstack
$ ./prepare-stack.sh
$ ./rejoin-stack.sh

Dashboard fel端let:

http://192.168.27.100
Devstack // test01 instance el辿r辿se
IP c鱈m:
172.24.4.227
Felhaszn叩l坦n辿v: cirros
Jelsz坦:
cubswin:)
Sz端ks辿ges be叩ll鱈t叩sok:
- 172.24.4.227 Floating ip allocation / association
- Security group szab叩lyok:
ICMP -1
(ICMP_ALL) 0.0.0.0/0 (CIDR)
TCP
22 (SSH)
0.0.0.0/0 (CIDR)
Bel辿p辿s termin叩lb坦l:
ssh cirros@172.24.4.227

More Related Content

Openstack 101 Devstack Hungary

  • 2. OpenStack 101 Minden amit a felhrl tudni szeretn辿l* * felh = a vil叩g vezet ny鱈lt forr叩sk坦d炭 felh infrastrukt炭ra szoftvere
  • 3. Devstack // bemutatkoz叩s Shell script gy撤jtem辿ny Openstack gyors telep鱈t辿s辿hez Bash scriptnyelvben 鱈rt叩k Az Openstack k旦z旦ss辿g fejleszti 辿s t叩mogatja Lehetv辿 teszi All-in-one 辿s t旦bb node-os telep鱈t辿st
  • 4. Devstack // mire haszn叩lhat坦? Fejleszt辿sre V叩ltoz叩sok 辿s fejleszt辿sek tesztel辿s辿re Az Openstack Infrastrukt炭ra CI rendszer r辿sze Bemutat坦 辿s POC
  • 5. Devstack // telep鱈t辿s p叩r perc alatt 1. Csin叩lj egy alap linux telep鱈t辿st* 2. Adj hozz叩 egy kis devstack-et a github-r坦l git clone https://github.com/openstack-dev/devstack.git 3. Telep鱈tsd az Openstack-et cd devstack && ./stack.sh * Hivatalosan t叩mogatott disztrib炭ci坦k: Ubuntu 12.04, Fedora 18, CentOS/Rhel 6.4
  • 6. Devstack // mire nem val坦? :) Ne 辿p鱈tsetek belle produkt鱈v rendszert!
  • 7. Devstack // be叩ll鱈t叩sok localrc # Default passwords ADMIN_PASSWORD=password MYSQL_PASSWORD=password RABBIT_PASSWORD=password SERVICE_PASSWORD=password SERVICE_TOKEN=password SCREEN_LOGDIR=/opt/stack/logs HOST_IP=192.168.27.100 # # Neutron configs # # https://wiki.openstack.org/wiki/NeutronDevstack disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service neutron # Disable security groups entirely Q_USE_SECGROUP=False LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
  • 8. Devstack // verzi坦k master jelenlegi fejleszti 叩g stable/folsom Folsom kiad叩s stable/grizzly Grizzly kiad叩s $ grep "_BRANCH" stackrc CEILOMETER_BRANCH=${CEILOMETER_BRANCH:-master} CEILOMETERCLIENT_BRANCH=${CEILOMETERCLIENT_BRANCH:-master} CINDER_BRANCH=${CINDER_BRANCH:-master} CINDERCLIENT_BRANCH=${CINDERCLIENT_BRANCH:-master} GLANCE_BRANCH=${GLANCE_BRANCH:-master} GLANCECLIENT_BRANCH=${GLANCECLIENT_BRANCH:-master} HEAT_BRANCH=${HEAT_BRANCH:-master} HEATCLIENT_BRANCH=${HEATCLIENT_BRANCH:-master} HORIZON_BRANCH=${HORIZON_BRANCH:-master} IRONIC_BRANCH=${IRONIC_BRANCH:-master} KEYSTONE_BRANCH=${KEYSTONE_BRANCH:-master} KEYSTONECLIENT_BRANCH=${KEYSTONECLIENT_BRANCH:-master} NOVA_BRANCH=${NOVA_BRANCH:-master} ...
  • 9. Devstack // screen Bel辿p辿s ssh-n kereszt端l: $ ssh -i id_vagrant vagrant@192.168.27.100 A devstack.sh mindent egy screen-en bel端l ind鱈t el: $ screen -ls There is a screen on: 29236.stack (10/15/13 09:54:49) (Detached) 1 Socket in /var/run/screen/S-vagrant. Csatlakoz叩s a screenhez: $ screen -r Billenyt撤 parancsok: Ctrl + A + D detach, screen -r vissza叩ll鱈tja Ctrl + A + N k旦vetkez f端l Ctrl + A + P elz f端l
  • 12. Devstack // demo - el辿r辿se $ ssh -i id_vagrant vagrant@192.168.27.100 $ cd devstack $ ./prepare-stack.sh $ ./rejoin-stack.sh Dashboard fel端let: http://192.168.27.100
  • 13. Devstack // test01 instance el辿r辿se IP c鱈m: 172.24.4.227 Felhaszn叩l坦n辿v: cirros Jelsz坦: cubswin:) Sz端ks辿ges be叩ll鱈t叩sok: - 172.24.4.227 Floating ip allocation / association - Security group szab叩lyok: ICMP -1 (ICMP_ALL) 0.0.0.0/0 (CIDR) TCP 22 (SSH) 0.0.0.0/0 (CIDR) Bel辿p辿s termin叩lb坦l: ssh cirros@172.24.4.227