Devstack newton 설치 실습

OpenStack 설치 실습 (devstack)
리눅스 devstack 설치

1 사전 작업[ | ]

2 계정 생성, 권한 부여[ | ]

  • 'stack'이라는 계정 생성
root@ubuntu16:~# useradd -s /bin/bash -d /opt/stack -m stack
root@ubuntu16:~# cat /etc/passwd | grep stack
stack:x:1000:1000::/opt/stack:/bin/bash
  • stack 계정에 sudo 권한 부여
root@ubuntu16:~# echo "stack ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/stack
root@ubuntu16:~# cat /etc/sudoers.d/stack
stack ALL=(ALL) NOPASSWD: ALL
  • stack 계정으로 전환
root@ubuntu16:~# su - stack
stack@ubuntu16:~$ pwd
/opt/stack

3 git clone[ | ]

stack@ubuntu16:~$ git clone -b stable/newton https://github.com/openstack-dev/devstack.git
Cloning into 'devstack'...
remote: Counting objects: 39146, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 39146 (delta 9), reused 14 (delta 6), pack-reused 39124
Receiving objects: 100% (39146/39146), 11.63 MiB | 7.15 MiB/s, done.
Resolving deltas: 100% (27377/27377), done.
Checking connectivity... done.

4 local.conf 작성[ | ]

stack@ubuntu16:~$ cd devstack/
stack@ubuntu16:~/devstack$ vi local.conf
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

5 설치[ | ]

stack@ubuntu16:~/devstack$ ./stack.sh
... (생략)
=========================
DevStack Component Timing
=========================
Total runtime         878

run_process            70
test_with_retry         2
apt-get-update         11
pip_install            89
restart_apache_server  11
wait_for_service       12
apt-get                10
=========================



This is your host IP address: 192.168.43.181
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.43.181/dashboard
Keystone is serving at http://192.168.43.181/identity/
The default users are: admin and demo
The password: secret

WARNING: 
Using lib/neutron-legacy is deprecated, and it will be removed in the future

DevStack Version: newton
Change: d577fd5bd5be9f4fcda66b5e607efb788ef1c290 Merge "Put devstack-version info into separate file" into stable/newton 2017-07-31 14:44:48 +0000
OS Version: Ubuntu 16.04 xenial

2017-08-04 09:20:58.709 | stack.sh completed in 878 seconds.

6 확인[ | ]

stack@ubuntu16:~/devstack$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8776            0.0.0.0:*               LISTEN      29421/python    
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      1702/beam       
tcp        0      0 127.0.0.1:6633          0.0.0.0:*               LISTEN      21189/python    
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      2395/mysqld     
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      4481/memcached  
tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      18383/python    
tcp        0      0 127.0.0.1:6640          0.0.0.0:*               LISTEN      14429/ovsdb-server
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      1575/epmd       
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1323/sshd       
tcp        0      0 0.0.0.0:3260            0.0.0.0:*               LISTEN      29123/tgtd      
tcp        0      0 0.0.0.0:6080            0.0.0.0:*               LISTEN      27363/python    
tcp        0      0 0.0.0.0:9696            0.0.0.0:*               LISTEN      20603/python    
tcp        0      0 0.0.0.0:8774            0.0.0.0:*               LISTEN      19811/python    
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      19811/python    
tcp        0      0 0.0.0.0:9191            0.0.0.0:*               LISTEN      18044/python    
tcp6       0      0 :::5000                 :::*                    LISTEN      31009/apache2   
tcp6       0      0 :::5672                 :::*                    LISTEN      1702/beam       
tcp6       0      0 :::80                   :::*                    LISTEN      31009/apache2   
tcp6       0      0 :::4369                 :::*                    LISTEN      1575/epmd       
tcp6       0      0 :::22                   :::*                    LISTEN      1323/sshd       
tcp6       0      0 :::3260                 :::*                    LISTEN      29123/tgtd      
tcp6       0      0 :::35357                :::*                    LISTEN      31009/apache2
stack@ubuntu16:~/devstack$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:3f:7f:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.43.181/24 brd 192.168.43.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe3f:7fa6/64 scope link 
       valid_lft forever preferred_lft forever
3: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 66:30:cf:e2:8a:15 brd ff:ff:ff:ff:ff:ff
4: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether ae:68:ad:f0:33:49 brd ff:ff:ff:ff:ff:ff
    inet 172.24.4.1/24 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 2001:db8::2/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::ac68:adff:fef0:3349/64 scope link 
       valid_lft forever preferred_lft forever
5: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether da:8c:64:f1:31:40 brd ff:ff:ff:ff:ff:ff
6: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 0a:9a:6c:ba:e9:4a brd ff:ff:ff:ff:ff:ff
7: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:6d:27:3e brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
8: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:6d:27:3e brd ff:ff:ff:ff:ff:ff
stack@ubuntu16:~/devstack$ df -h
Filesystem                   Size  Used Avail Use% Mounted on
udev                         2.0G     0  2.0G   0% /dev
tmpfs                        396M  5.7M  390M   2% /run
/dev/mapper/ubuntu--vg-root  8.3G  4.1G  3.8G  52% /
tmpfs                        2.0G     0  2.0G   0% /dev/shm
tmpfs                        5.0M     0  5.0M   0% /run/lock
tmpfs                        2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda1                    472M   58M  390M  13% /boot
cgmfs                        100K     0  100K   0% /run/cgmanager/fs
tmpfs                        396M     0  396M   0% /run/user/1000

7 대시보드 확인[ | ]

8 같이 보기[ | ]

9 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}