더북(TheBook)

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

컨트롤러 노드에는 다른 서비스와 마찬가지로 데이터베이스를 생성하고 Keystone에 Manila 서비스 계정과 엔드포인트를 생성합니다. 그리고 Manila 데이터베이스에 테이블을 생성한 후 manila-api, manila-scheduler, python-manilaclient를 설치합니다. 환경설정을 하고 서비스를 재시작하면 컨트롤러 노드의 Manila 서비스가 설치됩니다.

1. mysql 명령어를 이용해 MariaDB에 접속합니다. 그리고 Manila 데이터베이스를 생성한 후 생성한 데이터베이스에 접근 권한을 설정합니다.

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

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

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

MariaDB [(none)]> exit; Bye

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