Click here to load reader

Running OpenStack + MidoNet (Using Orizuru)

  • View
    303

  • Download
    2

Embed Size (px)

Text of Running OpenStack + MidoNet (Using Orizuru)

VTJ

Running OpenStack + MidoNet Virtual Tecch JapanVitrualTech.jpNobuyuki Tamaoki2015/2/16 MidoNet Community Launch EventAbout meConsultant & Business development @Virtual Tech JapanEnjoy creating business around OpenStackWriter of @IT article named Tamaokis OpenStack WatchLatest article at ThinkIT, 8 OpenStack distribution comparison will be coming very soon2

Introduction

OpenStack SeminarFebruary 18th in Shibuya

OpenStack Provisioning Tool Battle - HP HelionMirantisUbuntu

Please visit!! http://EnterpriseCloud.jp

3IntroductionEnterpriseCloud.jp

You can find:The information necessary to start OpenStack for Enterprise Cloud.Download OpenStack installation guide1,000 Download /yearSeminar documentsOpenStack deployment know-how4IntroductionTodays goalTo let everyone deploy and run OpenStack+MidoNet in smooth and simple way5About Orizuru6Found Orizuru at MidoNet Blog

7Reference URL: http://blog.midonet.org/test-drive-midonet/What is Orizuru?Installer for OpenStack+MidoNetEnable to deploy all-in-one and multi-node environments easily.Docker container is used inside.

https://github.com/midonet/orizuru8Multi-node environment example

9 Reference URL: http://blog.midonet.org/test-drive-midonet/Lets use Orizuru10Preaparation11Macbook ProCPU:4 processor coreMemory:16GBVMware FusionGuest OS Ubuntu 14.04.1CPU: 4 processor coreMemory: 12GB allocatedDisk: 40GB allocated192.168.252.14midonet_manager192.168.252.13midonet_gatewayLets create all-in-one environment12midonet_api192.168.252.11Cassandra192.168.252.10midonet_cli192.168.252.12192.168.252.15openstack_compute192.168.252.16Openstack_controller192.168.252.17openstack_glance192.168.252.18openstack_horizon192.168.252.19openstack_keystone192.168.252.20openstack_mysql192.168.252.21openstack_neutron192.168.252.22openstack_rabbitmqzookeeper192.168.252.23Physical server172.16.XX.XXWith 14 Docker ContainersOpenStackCompute NodesOpenStackNetwork NodesOpenStackController NodesMidoNetGateway NodesMidoNetController Nodes192.168.252.14midonet_manager192.168.252.13midonet_gatewayNetwork State Database NodesComponents of the environment13midonet_api192.168.252.11Cassandra192.168.252.10midonet_cli192.168.252.12192.168.252.15openstack_compute192.168.252.16Openstack_controller192.168.252.17openstack_glance192.168.252.18openstack_horizon192.168.252.19openstack_keystone192.168.252.20openstack_mysql192.168.252.21openstack_neutron192.168.252.22openstack_rabbitmqzookeeper192.168.252.23Physical Server172.16.XX.XXIntall Orizuru141. Install UbuntuInstall Ubuntu 14.04.1 LTSChoose ssh-serverUpdate packages% sudo apt-get update% sudo apt-get upgradeInstall packages% sudo apt-get install git make openssh-server152. Configuration to ssh login to localhost as a root user16Make sure that you can ssh [email protected] % 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] Get Orizuru from GitHub% git clone https://github.com/midonet/orizuru.git174. Modify conf/localhost.yamlModify the server IP address from the default (127.0.0.1) to your servers IP address% cd orizuru% vi conf/localhost.yaml

18Afterservers: os001: ip: your servers IP addressBefore (default)servers: os001: ip: 127.0.0.15. Run OrizuruExecute make command% cd% cd orizuru% export OS_MIDOKURA_ROOT_PASSWORD=PW"% export CONFIGFILE="$(pwd)/conf/localhost.yaml"

% make19Set your own password6. See the resultThe installation succeeded if you see the message below.your system is ready.run 'make info' to see the urls and admin password

If not, do make clean and re-do make.% make clean% make 20The errors happened during the installationI tried the installation more than 20 times. Here are the examples of errors I run into:Cannot log in when I ssh [email protected] capacity was not big enoughCould not find files and/or directories in stage5Failed mysql setting in stage6Failed zookeeper setting in stage7etc21Trouble shooting22Enable debug mode in conf/localhost.yamldebug: TrueSave the log when you run make commandWait for a while and try againTry in multiple environments

Ask questions at MidoNet mailing [email protected] Check the configurationTo check the setting, do make info command% make infoAdmin password: XXXXXXXXXXXXXXXXHorizon url: http://servers IP address/horizon/Save the result of make info.23Example of make info result (1)

24XXX.XXX.XXX.XXExample of make info result (2)25

Confirm the testing environment26Access OpenStack Dashboard(Horizon)Access Horizon URL (see page 23 for the URL)27

User name: adminAdmin password (See page23)Access OpenStack Dashboard(Horizon)28

Check instances (1)Click [Project]-[Compute]-[Instance]29

Check your instance IP addressCheck instances (2)Log in to the instance% ssh [email protected]@200.200.200.3's password:30Input cubswin:) Admin password in page 23Check OpenStack Controller (1)Log-in to OpenStack Controller node% ssh [email protected]

Create [email protected]_controller_os001:~# vi admin_openrcexport OS_USERNAME=adminexport OS_PASSWORD=9572b2b1a67d4aa2ff0cexport OS_TENANT_NAME=adminexport OS_AUTH_URL=http://192.168.252.19:35357/v2.0

31How to find OS_AUTH_URLOS_AUTH_URL will be used when you access keystone nodehttp://[keystone URL]:[keystone port #]/v2.0Search the log from make command(page 19) make% cat make_log | grep OS_AUTH_URLTest% curl http://192.168.252.19:35357/v2.032Check OpenStack Controller (2)Load [email protected]_controller_os001:~# . admin_openrc

33Tips: Check the log of Orizuru environmentShow syslog in % tail f /var/log/syslog34

Tips: Check the server status% dstat -tcdn --top-io --top-cpu -- output log.csv 35

Check OpenStack Controller (3)[email protected]_controller_os001:~# keystone token-get36

Check OpenStack Controller (4)[email protected]_controller_os001:~# neutron agent-list

[email protected]_controller_os001:~# neutron net-list

[email protected]_controller_os001:~# neutron subnet-list37

Check MidoNet CLI (1)Log in to MidoNet CLI node% ssh [email protected]

MidoNet CLI [email protected]_cli_os001:~# midonet-cli midonet> 38Check MidoNet CLI (2)midonet> list bridge

midonet> list router

midonet> list router router0 port

midonet> list router router0 route39

My next agendaLearn MidoNet trouble-shootingPractice and master MidoNet CLIRun MidoNet in multi-node environment40