더북(TheBook)

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

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

1. mysql 명령어를 이용해 MariaDB에 접속합니다. 여기서 -u 옵션은 사용자 ID를 말하며, root를 사용합니다. -p 옵션은 해당 사용자 ID의 패스워드를 사용합니다. 이때 -p와 패스워드 사이에 빈칸이 있으면 로그인되지 않습니다. MariaDB에 접속하면 Neutron 데이터베이스를 생성하고, 생성한 데이터베이스에 접근 권한을 설정합니다.

root@controller:~# mysql -u root -popenstack
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 332
Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04

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.01 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

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