Click here to load reader

OpenStack + MidoNet を動かしてみた - 2015/2/16 MidoNetコミュニティ発足会

  • View
    131

  • Download
    2

Embed Size (px)

Text of OpenStack + MidoNet を動かしてみた - 2015/2/16 MidoNetコミュニティ発足会

  • OpenStack + MidoNet

    VitrualTech.jp

    2015/2/16 MidoNet

  • OpenStack @ITOpenStack

    ThinkITOpenStack

    8

    2

  • OpenStack

    2/18() HP HelionMirantisUbuntu http://EnterpriseCloud.jp

    3

  • EnterpriseCloud.jp OpenStack

    OpenStack

    1,000

    OpenStack

    4

  • OpenStack+MidoNet

    5

  • ORIZURU

    6

  • MidoNet Blog

    7 URL: http://blog.midonet.org/test-drive-midonet/

  • Orizuru

    OpenStack+MidoNet

    Docker

    https://github.com/midonet/orizuru

    8

  • 9 URL: http://blog.midonet.org/test-drive-midonet/

  • ORIZURU

    10

  • 11

    Macbook Pro CPU:4 Memory:16GB

    VMware Fusion OS

    Ubuntu 14.04.1 CPU: 4 Memory: 12GB : 40GB

  • 192.168.252.14

    midonet_manager

    192.168.252.13

    midonet_gateway

    12

    midonet_api 192.168.252.11

    Cassandra 192.168.252.10

    midonet_cli 192.168.252.12

    192.168.252.15

    openstack_compute

    192.168.252.16

    Openstack_controller

    192.168.252.17

    openstack_glance 192.168.252.18

    openstack_horizon 192.168.252.19

    openstack_keystone

    192.168.252.20

    openstack_mysql

    192.168.252.21

    openstack_neutron

    192.168.252.22

    openstack_rabbitmq

    zookeeper 192.168.252.23

    172.16.XX.XX

    14Docker

  • OpenStack Compute Nodes

    OpenStack Network Nodes

    OpenStack Controller Nodes

    MidoNet Gateway Nodes

    MidoNet Controller Nodes

    192.168.252.14

    midonet_manager

    192.168.252.13

    midonet_gateway Network State Database Nodes

    13

    midonet_api 192.168.252.11

    Cassandra 192.168.252.10

    midonet_cli 192.168.252.12

    192.168.252.15

    openstack_compute

    192.168.252.16

    Openstack_controller

    192.168.252.17

    openstack_glance 192.168.252.18

    openstack_horizon 192.168.252.19

    openstack_keystone

    192.168.252.20

    openstack_mysql

    192.168.252.21

    openstack_neutron

    192.168.252.22

    openstack_rabbitmq

    zookeeper 192.168.252.23

    172.16.XX.XX

  • ORIZURU

    14

  • Ubuntu

    Ubuntu 14.04.1 LTS ssh-server

    % sudo apt-get update % sudo apt-get upgrade

    % sudo apt-get install git make openssh-server

    15

  • root localhost ssh

    16

    ssh [email protected] OK % ssh-keygen -t rsa % sudo su - # mkdir .ssh # cat /home/ubuntu/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys # chmod 600 .ssh/authorized_keys % ssh [email protected]

  • GitHub Orizuru

    % git clone https://github.com/midonet/orizuru.git

    17

  • conf/localhost.yaml

    conf/localhost.yaml 127.0.0.1IP % cd orizuru % vi conf/localhost.yaml

    18

    servers: os001: ip: [IP]

    servers: os001: ip: 127.0.0.1

  • make % cd % cd orizuru % export OS_MIDOKURA_ROOT_PASSWORD=PW" % export CONFIGFILE="$(pwd)/conf/localhost.yaml" % make

    19

  • OK your system is ready. run 'make info' to see the urls and admin password

    make clean make % make clean % make

    20

  • make

    ssh [email protected] stage5 stage6 mysql stage7 zookeeper

    21

  • 22

    conf/localhost.yaml Debug debug: True

    make 2 MidoNet [email protected]

  • make info % make info Admin password: XXXXXXXXXXXXXXXX Horizon url: http://IP/horizon/

    make info 23

  • make info

    24

    XXX.XXX.XXX.XX

  • make info

    25

  • 26

  • OpenStack Dashboard(Horizon)

    P23Horizon URL

    27

    adminP23

    Admin password

  • OpenStack Dashboard(Horizon)

    28

  • []-[]-[]

    29

    IP

  • % ssh [email protected] [email protected]'s password:

    30

    cubswin:)

  • P23 Admin password

    OpenStack Controller

    OpenStack Controller % ssh [email protected]

    admin_openrc [email protected]_controller_os001:~# vi admin_openrc export OS_USERNAME=admin export OS_PASSWORD=9572b2b1a67d4aa2ff0c export OS_TENANT_NAME=admin export OS_AUTH_URL=http://192.168.252.19:35357/v2.0

    31

  • OS_AUTH_URL

    OS_AUTH_URLkeystone

    http://[keystoneURL]:[keystone]/v2.0

    P19 make % cat make_log | grep OS_AUTH_URL

    % curl http://192.168.252.19:35357/v2.0

    32

  • OpenStack Controller

    admin_openrc [email protected]_controller_os001:~# . admin_openrc

    33

  • Tips: Orizuru

    syslog % tail f /var/log/syslog

    34

  • Tips: % dstat -tcdn --top-io --top-cpu -- output log.csv

    35

  • OpenStack Controllerroot[email protected]_controller_os001:~# keystone token-get

    36

  • OpenStack [email protected]_controller_os001:~# neutron agent-list [email protected]_controller_os001:~# neutron net-list [email protected]_controller_os001:~# neutron subnet-list

    37

  • MidoNet CLI

    MidoNet CLI % ssh [email protected]

    MidoNet CLI [email protected]_cli_os001:~# midonet-cli midonet>

    38

  • MidoNet CLImidonet> list bridge midonet> list router midonet> list router router0 port midonet> list router router0 route

    39

  • ToDo

    MidoNet MidoNet CLI

    40