더북(TheBook)

컨트롤러 노드 설치 및 환경설정

앞에서 살펴본 네트워크 및 서비스 구성도와 오픈스택 공식 매뉴얼을 참고해 컨트롤러 노드에 Neutron을 설치해 보겠습니다. Neutron 서비스도 Nova 서비스와 마찬가지로 데이터베이스를 생성하고, Keystone에 사용자와 서비스, 엔드포인트를 생성한 후 해당 컴포넌트들을 설치합니다. 그리고 설치한 컴포넌트들의 환경을 설정하고 재시작하는 과정을 거칩니다. 지금부터 컨트롤러 노드에 Neutron 서비스를 설치해 보겠습니다.

1. 먼저 MariaDB에 접속합니다. Neutron 데이터베이스를 생성하고 외부나 내부에서 Neutron 데이터베이스에 접속할 수 있도록 권한을 설정합니다.

[root@controller ~]# mysql -u root -popenstack
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 29
Server version: 10.1.12-MariaDB MariaDB Server

Copyright © 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE neutron; Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO ‘neutron’@‘localhost’ IDENTIFIED BY ‘neutrondbpass’; Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO ‘neutron’@‘%’ IDENTIFIED BY ‘neutrondbpass’; Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit; Bye

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.