더북(TheBook)

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

오픈스택 공식 매뉴얼을 참고해 컨트롤러 노드에 Nova 서비스를 설치해 보겠습니다. 데이터베이스를 생성해 데이터를 관리하고, Keystone에서는 Nova 서비스와 엔드포인트 URL을 생성합니다. 그리고 컴퓨트 서비스에서 사용하는 컴포넌트들을 설치하고 환경도 설정해 보겠습니다.

1. 데이터베이스를 생성하려고 MariaDB에 접속합니다. nova_api와 Nova 데이터베이스를 생성하고 접근할 수 있도록 권한을 설정합니다.

[root@controller ~]# mysql -u root -popenstack
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
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 nova_api; Query OK, 1 row affected (0.00 sec)

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

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

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

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

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

MariaDB [(none)]> exit; Bye

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